ActivityManagerNative: catch OutOfMemory exception at getTaskTopThumbnail

Change-Id: I0d4f5fcdae16d20ba6a0e96889d99a94b5b6175c
Freeing frame map

FileMap memory is never released until application exit

Release it now as the texture is already loaded and the memory
used for the packed resource can be released.

Change-Id: Id08a1e466337b3a0179684eb6a444e18147ee343
base: remove gradle configuration

Change-Id: Ib02b17b911444c9b186582c08abca3736ae82a4e
add iml files for opening projects in android studio

way faster and less messy

Change-Id: Ifb46a90c0f5eddd62cef719a445fbd9e67ca75d1
qs: fix network tile description

Fix period at the end of the network mobile description, ensure that there isn't
trailing whitespaces and only call one time to the cleaner method when
the description change. Clean up unused imports.

Change-Id: I9b965015e30e44efa00220e91da7e8b3e773a0f1
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
systemui: networkcontroller update default networks resources

Default network resources are locale dependent and should be update to reflect the
current user locale, if the locale changed.

Change-Id: I4688cc7132e0c0707ee30dd67ce025099655cded
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Fix glitch appearing when using translucent system bars in landscape.

Before: http://i.imgur.com/zJCjCvx.png
After: http://i.imgur.com/v563Shz.png

Change-Id: I0580ced6dcd614239ea0815bc9943c9bbe86eb99
(1/2) Base: allow to make the power menu one click

Change-Id: Ic538804741863dbf07a9f37c48e7a9c7b5ebc04c
Restore untrusted glStencilMask value on resume after functor

Fixes an issue where the stencil buffer is corrupted
(used in overdraw debugging, path clipping) when used in
conjunction with a HW accelerated WebView.

bug:15023700
bug:16465551

Change-Id: If201b503931380f7107a34e9a9a2f877a50f72b1
Fix NPE on tablets.

Commit d547e9d0944b31b2d05378c30f47261571a93262 updated the default
navigation_bar layout, but missed the overlaid one. Fixit.

Change-Id: Ia912075d6dfdb32cd569d6040231dafa894b0c7d
Revert "Freeing frame map"

This reverts commit 112f55164bf69048de326be6947e7e94579dfa3e.

Change-Id: I7634c6cef8810492742d0a5b77b113b0f4459be0
QuietHours: don't schedule alarms in the past

On the last day of the month, the trigger-alarm for the next day
was actually scheduled on the first day of the current month, which
caused it to fire immediately and then repeating this, leading
to high battery drain.

Fix this by scheduling the next alarm on the real next day.

Change-Id: Ied3b1dd3101650842a798d7e00e2a3a794ac8639
Ringtone: Add support for selection of phone ringtone for SIM-2.

-Issue: "The process android.process.media has stopped" pop up is
 displayed when ringtone for SIM-2 is selected.
-Rootcause: There is no type and URI defined for SIM-2 ringtone
 in the RingtoneManager. This is leading to SQl exception when
 executing a selection query.
-Fix: Add URIs for the SIM-2 and SIM-3 ringtones. Define
 interfaces to return them to app side based on subscription ID.

CRs-Fixed: 612945
Change-Id: If68c2d008dd86d2b55d3fb7f5667bbadc238d0b3
Provider: Add multi SIM ringtone support in SettingsProvider

This change will handle multi-sim queries in
SettingsProvider.java when openFile and
openAssetFile APIs are called by other components.
Thus, it will ensure to play the correct ringtone
corresponding to the SIM.

CRs-Fixed: 661216
Change-Id: I7b22c233b9c41669c1ad948b83a7aa2c55442af1
CallLog: Support for active time in CDMA call log

Display the type(Active time/Call out time) in call log of CDMA call.

Change-Id: I85c8c23a820dee3d58da93144ff4c037bb9120cc
Fix translucent navigation bar layout on tablets in landscape.

The status bar blocker view was visible and stretched over the whole
navigation bar, even though it's not even needed on tablets, as the
status bar never extends into the navigation bar there. Fix that by
hiding the blocker view, but keep it in the layout in oder to not
clutter the code with null checks.

Also cleanup unneeded method override.

Change-Id: I50d58e6e3496516b37f8c36b497cf8c9f569325c
Merge remote-tracking branch 'upstream/android-4.4' into android-4.4

Solved conflicts:
	services/java/com/android/server/power/ShutdownThread.java