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
fb: fix on tablets notification drawer height on custom image background

The measurment bases always on the height of the complete view. Due that we set
an image as background (does not make a difference if we do it like now with an image
view or set the background resource for the complete view) the image is calculated into
the measured height as well which leads into the problem the the panel completly opens
to the bottom.

To prevent that measure only the real content and decide based of this value how much the
rubberbands should go into action. This will be only done on devices which set a minimum
height for the drawer which indicates that we need to measure the content more exactly.

Change-Id: I9772abc8a48d5e46b5bb6e6239c0b4826115ac6a

Patchset: 3
https://gerrit.slimroms.net/#/c/3096/
fb: restore navbar compatibility with several xposed modules

I am tired of the complains....

Xposed use the emulator overwrite to enable/disable navbar...this results
into showing up navbar on reboot even if the user has set it to off in settings.

This fixes the issue and still keeps for emulator tests the basic overwrite functionallity
alive as long the provider value was not set.

We may should reflect that in settings as well.

Change-Id: Id60b45645d489c08539d56b8e05d135c36d38990

Patchset: 4
https://gerrit.slimroms.net/#/c/3098/
frameworks: Hope systemui improved battery life

See this:
http://image.thinkingbridge.org/keyguard.png

Remove KeyguardTestActivity

Change-Id: I3395d64abba87d5002bbc08af62c45dcc9e75015
Restore ProfileGroup notification override functionality

Also clean up a little.

JIRA: CYAN-3164
Change-Id: I9b71a225996315f517b59d2d6f4074175bbf2d64
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
SystemUI: remove unused translations

Change-Id: I9a20dbbcad652a058049eb5b7f8b9726a38c11a2
Frameworks AppOps: fix allow/reject counting

Was missing from the original counters commit:
http://review.cyanogenmod.org/#/c/57352/

Change-Id: I9c180ff132077f21426a36f2ceb7d23a054d7ae4
Quick Record Tile Save Location

Quick Record Tile now saves the file in Podcast folder inside your SDCard.

Change-Id: I2c49d0c92d6a1c90fc892b3ab440958aae73bd0a
Signed-off-by: Lokesh Chamane <lokesh.c703@gmail.com>
[3/4] core: Add Dialer suggestions and reverse lookup

Change-Id: I01b27afb075e36d8d807d2fdbf5032ddb6e10641

Conflicts:

	core/java/android/provider/Settings.java
[1/3] TeloRadio
Author: telo46
thanks DHOMD

Change-Id: I7f75c790eee87861adccb2b9ba83aeb33ed2c2cf
[2/2] frameworks/base: Add Captive Detection toggle

Change-Id: I4b7127780e7c6e106dc8017b9ba3c03816acaa2b

Patchset: 1
https://gerrit.omnirom.org/#/c/5359/
Fix NPE causing a hot reboot when pressing power button

Change-Id: I7331f1abf70d131af8e0c09694f174fffd5fb9ef
SUPL early data connection fix

if GPS started before data connection is alive, SUPL will be broken for entire power cycle.

Change-Id: I0486ac5e62a2d4a7da14506e3dd8e78da42f405d
increase touch sensitivity

Change-Id: I77e6aeca3667808e630dc142a2e561d3ddddef80
GlobalActions: Set the initial status of airplane mode toggle

Actually, the initial status of airplane mode toggle is set to false
when the power menu dialog is initialized.
This causes an issue if you set airplane mode and then reboot.
After the reboot, the dialog displays the wrong airplane mode status,
eg. "Airplane mode is not active", and if you toggle that option, a wrong
intent is sent again to put ON the airplane mode, instead of OFF, the
toggle (that is in transition state) will be set disabled.

This commit fixes this issue.

Change-Id: Id30355c1e090355645c437086c79ab59093c27a8
Frameworks: Add Fast Charge QS Tile

This includes a file observer to watch the sysfs file change

Change-Id: I74167ec82c62772cb94ee70cc32fd01321d50d45

Patchset: 3
https://gerrit.slimroms.net/#/c/3179/
Speedup kill app timeout delay
frameworks/base: Fix for the race in Wallpaperservice

Wallpaperservice has a race among message handler of
DO_DETACH and service's onDestroy. In certain cases,
the engine kept track in mActiveEngines is removed by
message handler of DO_DETACH and service's onDestroy
doesn't get a entry in mActivieEngines and isn't able
to invoke detach. This keeps the broadcast receiver,
mReceiver active and is unregistered by the framework
and a corresponding leak is reported.

  Later, the message handler of DO_DETACH continues
and invokes detach on mEngine, which attempts to
unregister mReceiver and framework throws an exception
"Receiver not registered: android.service.wallpaper.
WallpaperService$Engine$1@40874580" and causes the
framework to reboot.

  In case of system_server, WindownManagerPolicy and
android.server.ServerThread contest for access of
shared members, mActiveEngines and mEgine. Fix is to
protect the critical section via synchronized block.

Change-Id: Ice79cb8344fb54bcc6e9f76f4b143daac2608d7b