Fix the resource IDs used by CTS tests

* Google didn't make networkAttributes a public resource, so everyone
  is failing CTS after adding new resources to the framework. This
  fixes it.
* Same thing with config_useFixedVolume

Change-Id: I720b36d0922b636fe30f691f016add6b8cc7ade3
MiniThumbFile: Fix image/bitmap retrieval

Change I66005dd69b0a5c8f4353bd7a8225d163a654fd2d changed the insertion
and creation indexing mechanism, but the retrieval method was still
using the old sparse one. Fixit

Fixes android.provider.cts.MediaStore_Images_MediaTest#testInsertImageWithBitmap,
android.provider.cts.MediaStore_Images_MediaTest#testInsertImageWithImagePath,
android.provider.cts.MediaStore_Images_ThumbnailsTest#testQueryExternalMiniThumbnails,
and android.provider.cts.MediaStore_Video_ThumbnailsTest#testGetThumbnail

Change-Id: I41feea79fa304635f3908055fb95a8c85718a97f
SystemUI: fix wrong statusbar background.

If we turned off screen while some panel was visible than
background of PhoneStatusBarView will not be updated because we receiving single
panelExpansionChanged call and after super.panelExpansionChanged mFadingPanel
will be null (onAllPanelsCollapsed cause this).

Allow updating background when mFadingPanel is null.

Change-Id: Ib123f27500790c1b7ec787b7e433372629daa08d
Merge remote-tracking branch 'github/cm-11.0' into HEAD
Limit QC camera features to post-ICS HALs

ICS blobs don't support longshot, and have a different API/method enum
for histograms

Change-Id: I6704b9302344ae2ae6386312b68de669bb5c11f2
Merge remote-tracking branch 'github/cm-11.0' into HEAD
Vpn: Setup routes.

Change-Id: Ia00467fbc4324ca5f6dab6e0ff2609cd5de9a423
(cherry picked from commit 93f9ebe47437d71bf66c8999f7cffc973f5959ed)
Revert "Fix error checking in MemoryFile."

This reverts commit 2142c2cf6ffc0979fff7d0312fd6f90ca6c08a19.
Fix android.os.cts.MemoryFileTest#testLength
ActivityManager: Fix monkey tests

Change I30e38c6c27d339d55a8f9a0f4106185356a9b9a0 (adding ordered
broadcast prioritization) adds the assumption that every broadcast
generator has a full-fledged caller app, which isn't true for
monkey-created tests. Make sure the caller is a full app before
checking if it is AID_SYSTEM to avoid an NPE

Fixes com.android.cts.monkey.*

Change-Id: Ide0dd046c6c5eb10ab4acb504237b58cbbbd8cfa
Restore ProfileGroup notification override functionality

Also clean up a little.

JIRA: CYAN-3164
Change-Id: I9b71a225996315f517b59d2d6f4074175bbf2d64
(cherry picked from commit 0af22dd78bb0f00a25e313b0575bbae7f76c4f4b)
storage: Don't list removed volumes in storage list

 * Don't tell apps that USB storage or empty SD slots are available for
   use. This fixes errors about trying to create dirs in vold as well
   as the relevant CTS cases.

Change-Id: Ic763d40c19b0bb9f7497cc1515baf1661d76e9ee
(cherry picked from commit 5a3c6b053fc5e0163c1941dd8845997939ce6349)
base: fix battery stats

* Fix IBatteryStats.aidl posititions. BatteryService.cpp from hardware sensors uses a position token
from the binder. The dock battery patch broke this order, causing sensor stats to be send to
wakelock stats, causing a breakage in the partial wakelock counter.
* Create a separate dock stats implementation to avoid collision in the internal statics variables
of the normal stats implementation.

Change-Id: I22c92d5941804449668530715bf5381b00164593
JIRA: CYAN-3127
Issue: https://jira.cyanogenmod.org/browse/CYAN-3127
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
QS: Fix up Wifi Display tile for screencasting and reenable it

Replace the Wifi Display code with MediaRouter/RemoteDisplay observers,
and turn let the controller manage the tile again

Change-Id: Iaf5c509ae078b9305d1d314ec76d44362beb025e
QS: Rename WiFiDisplay to RemoteDisplay

Change-Id: Iae8537482bc2c2a1beca71336a569bc5d4c16df5
Merge remote-tracking branch 'github/cm-11.0' into HEAD
Merge remote-tracking branch 'github/cm-11.0' into HEAD
Merge remote-tracking branch 'github/cm-11.0' into HEAD
Merge remote-tracking branch 'github/cm-11.0' into HEAD
Make the default value of in-call noise suppression configurable.

Change-Id: I1dc0b6085807c49370a06243689b70ea4b91732b
(cherry picked from commit 590defe697dc662f44e8cd5255efbf98524293b7)
Add OpenCnam paid account settings keys

Change-Id: I895b5f2b2a8a8de568e5aa1cea5d66ba490985fc