DocumentsUI: Allow open files instead of URIs

Check files' real path and mime type to open them only in standalone mode.
This allows, for example, installing apks.

Change-Id: I4501c694db84b8595cd3928752254a8914539972
(cherry picked from commit dfd085060d345e0f1b4e0123ecf94e2cc5586b84)
base: added national roaming for 3AT on orange austria
Users of 3AT (MCC 232 MNC 11) can roam on Orange (MNC 05)

Change-Id: I6c0823acda265faca3bf3a851cbec8b848668b2a
(cherry picked from commit 5fdfda9e81bca3b62bb8edfc34dd24ee9a6fd6fb)
frameworks/base: Fix change propagating issue

destroyLayer() function has been modified in kk. It is not correct
to propagate the UI corruption fix from jb to kk without considering
the new changes made in kk. This change is to make it align with
the new code in kk.

Change-Id: I34d11b230b9390fe8a989ab6f9c7d3a48d586205
(cherry picked from commit 98b99acd7a14c3b90c5139de88c2c4e788b4b384)
Allow configuration of the default screen-off animation style

Change-Id: Ib59f8fce45c11193104682b975ff6467df8cfc15
(cherry picked from commit 978d156b10581b1fcb2a3908840782cc2408f7aa)
PEEK [1/2]

Sensors are fully disabled when screen is on. When you turn the screen off,
it will start polling both gyroscope and proximity sensor values. If it detects
using the gyroscope sensor that device is lying on a table, it disables proximity
polling. If it detects with proximity sensor that it is in your pocket, it disables
gyroscope polling. This way, we save some battery from the beginning. Later, when you
receive a notification, it enables a partial wakelock (CPU on but at low frequency),
and starts listening for movement, either from getting it out your pocket or lifting
off from the table. If it detects those events, it will turn on screen and show the notification.
Wakelock timeouts on 10 secs, so if you receive a notification and there is no movement in that time,
sensors will stop polling after that time, disabling peek interaction until a new notification comes.
Peek doesn't process low and min priority notifications.

https://plus.google.com/+ParanoidAndroidCorner/posts/3wppxakBSVR

Contributors:
@D4rKn3sSyS
@Anu6is
@BigBrother1984

Signed-off-by: Jesus David <jesdga95@gmail.com>
Signed-off-by: Curtis Mayers <curtis.mayers@gmail.com>
Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
(cherry picked from commit fe70015033dacc82578984bb7978dc531c7b4477)
PEEK: Clean tabs and whitespaces

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
(cherry picked from commit 3306ed09e901df0189e489b5c535ee170955a00e)
FIXED - Notifications non-clickable bug

This bug was introduced by ME!

(cherry picked from commit 9d50850449e38161d1b3a3ece96a1638aaefb29a)
tweak to trigger change for git

(cherry picked from commit d3e314b977e085a7fdf390c7b21f53c73c0d4b06)
PEEK: configurable pickup timeout (1/2)

- Allow the user to set different pickup timeout when a notification comes up through PEEK.

Change-Id: Ifcd2f13101dcf6973ebcf016bce5f5314e1ce04c

Conflicts:

	core/java/android/provider/Settings.java

(cherry picked from commit f3ced71636e523345ff5d0c3122a20f8b4a0b938)
Revert "tweak to trigger change for git" <derp>

This reverts commit d3e314b977e085a7fdf390c7b21f53c73c0d4b06.

(cherry picked from commit 9125f26f8a9d5c4f5760872acf17f65c233f5acb)
frameworks: move keyguard wallpaper to system  (1/2)

Change-Id: I0eb1b5578b705c2ade4c0772fa86e09478b9f73e
Signed-off-by: Roman Birg <roman@cyngn.com>

Conflicts:
	core/java/android/provider/Settings.java

(cherry picked from commit 0163d3b472d7b0c877baca5d77169e041caa5d4e)
Return system theme when SecurityException is caught.

Isolated processes cannot access content resolvers so a SecurityException
will be thrown when calling getBootTheme.  This catches that
exception and returns sSystemTheme.

Change-Id: If4077adef4c657b80ba2c52a6610126dabe4ffdf
(cherry picked from commit ce75576ef08732dc9ee4ecfcdb724c26f45af853)
idmap: Don't log spam "CREATING STRING CACHE"

Change-Id: Idce5aa5881c8e860eca9749cc85f748303c913c0
(cherry picked from commit 5165741cbfa0a7479a6c89a34f9c5a5b77b5f38c)
Fix a NPE when putting a null-Bundle in an Intent

Happens frequently e.g. with GoogleAccountAuthenticator

Change-Id: I284bf153f40ee9cc3e70bce6efcc3b9e6706361b
(cherry picked from commit 75f75c243a965504ac5f70f9b84b0d649298601e)
Revert "Set some GC parameters only for dalvik"

This reverts commit de4539603e165f8df0d23a21b6a285213d7f712e.

Change-Id: I2fd71b8b8b6e72cdbe929bfc2afe275cb46e6c29
(cherry picked from commit be68f994739d548d66096d132a2ac03e87f9df7f)
QS: Add TD-SCDMA support to the LTE toggle tile

Recognize TD-SDCDMA LTE modes as valid LTE to light up the tile.

While I'm at it, remove the network checks from the actual toggle
action, since TelephonyManager now ignores the boolean argument
and always toggles, making the checks pointless.

Change-Id: I8e0020def1f091a6fef9dce4d9700478a826e9a3
(cherry picked from commit 0d06e211bfb9304d1a0a9cbdbd265a86efcdfaaf)
QuickSettings: fix long press on LTE Tile

Fixes network settings to work on single sim.

Based on http://review.cyanogenmod.org/#/c/62875/

Change-Id: I369bb0f99d8acdad27947e10823bc50bd75f4c28
(cherry picked from commit 6e6992fa97ec0812d835aff14df62b10372b1a0f)
LocationServiceManager: Fix deadlock due to updateMonitoring.

AppOps can be blocked if askOperation is called from main thread.
This causes location service manager to block while updating monitor
information of all location update receivers.

Fix AppOps to report all askOperation calls from main thread.
Also fix location service manager to handle MODE_ASK.

Change-Id: I085f01e992f60456ad24921bf4ce508ece54e8a6
(cherry picked from commit b08b24e232300db005e0e72b3960c1b4dcfe3639)
Bluetooth: Adds check to verify Bluetooth adapter state

This checks whether bluetooth is turned ON or not in
BLE stop scan process. BLE scan apis are called from applications
so need to check if BT adapter state is ON to avoid Bluetooth
crash

Change-Id: Ifc472be9b3f8baf978d6cdca2e4743a75b951635
CRs-Fixed: 634617
(cherry picked from commit 591d27e4402dafa6d4585b3958b26b2eb2ad8579)
Bluetooth:Settings:Handled ACTION_STATE_CHANGED intent at boot time

BluetoothAdapter.ACTION_STATE_CHANGED intent is added to foreground
activity to handle BT sync issue with  Power widget at the boot time

Change-Id: Ib26cb4630c711587da789dc920aa66ded97a9a3b
CRs-Fixed: 576879
(cherry picked from commit 57420ee9f7169d1c26347979aae2df7685111d30)