telephony: Add support for additional emergency numbers

 * Some devices intended for international sale do not return proper
   emergency numbers in the ril.ecclist property.
 * Add support for a static list of emergency numbers to be appended
   to the list supplied by the radio.
 * Set "ro.ril.ext.ecclist" to use this.

http://review.cyanogenmod.org/#/c/54194/

Change-Id: I7a6cedadf6f7c0b576e6f08a0660b5e4c34af61b
Fix stencil buffer bug.

Stencil test is enabled by setStencilFromClip(), but not disabled
in some use case, which causes some of the pixels are discarded by
mistake in draws followed. Disable stencil test when there is no
dirty clip.
CRs-Fixed: 539456

http://review.cyanogenmod.org/#/c/52751

Change-Id: I13ee0fa8ec010837fa61563529f8977750ea0409
Update the layer's alpha value upon composition of the layer

Fixes: This patch makes sure that the layer's alpha value is
up-to-date and does not reflect the previous view's alpha value.
It fixes the square block on marquee fading edge when text view
is applied transparency.
CRs-Fixed: 562000

http://review.cyanogenmod.org/#/c/54146

Change-Id: I97a9e7d98cd8db0c63f1907490d335e88075b1fa
frameworks/base: Fix aliasing violations

Fix violations of strict aliasing rules

Change-Id: Ia83db6a0be18f52e8f274c581c3b42f031b39247
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

Conflicts:
	voip/jni/rtp/AudioGroup.cpp
AppWindow: performance and memory improvements

- create views when showing the AppWindow and mNeedsUpdate is true
- don't recreate views with each app install/update/removal
- remove all views before creating a new instance

Change-Id: Iedf573b77787bacf88d6d0a4a2ff09568dfb43f0
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Network stats: use number formating based on android code

Uses logic from Formatter.formatFileSize

Change-Id: I9008df0e90fbaf8d733cfd853dc1ef6160cf67f5
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>

Conflicts:

	packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkStatsView.java
Fix a programmatic smooth scroll bug

Bug: smoothScrollToPosition() stops at child view of which height is
higher than list view itself.

Change-Id: I695ca9db4c706aa7f365967dd3916f9a01917346
Signed-off-by: Yongyi Li <yongyi.li.cn@gmail.com>
AwesomeAction: check if ACTION_ASSIST intent can be handled

This will avoid a force close if no handler is available.

Fixes: http://bugs.aokp.co/issues/95

Change-Id: I041e8739ff9271cc02a73009e3def0585b00ffbc
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
SearchPanel: check if string is null before accessing it

This fixes http://bugs.aokp.co/issues/104

Change-Id: Ib05d473bf6afcaada19c2490bebca18d0ba6fb58
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Regenerate all the OpenGL stubs.

Bug: https://code.google.com/p/android/issues/detail?id=60390
Change-Id: I2e6f210178f656a5f08a1fcd4239581d680329a6
ActivityManager: memoize for performance

isHighEndGfx and isLargeRam are frequently called upon.. isLargeRam very
frequently within the ActivityStack. these aren't going to change after
they're calculated the first time so subject them to a basic memoization.
FTW.

Change-Id: I176089f99ac6c6e4074cb2fde502c729986ea701

Conflicts:

	core/java/android/app/ActivityManager.java
Fix a variety of small publicly-reported bugs.

Possible NULL dereference in cmds/bootanimation/BootAnimation.cpp.
https://code.google.com/p/android/issues/detail?id=61556

Missing fclose in core/jni/android_os_Debug.cpp.
https://code.google.com/p/android/issues/detail?id=61546

Bad loop guards in core/jni/android_util_Process.cpp.
https://code.google.com/p/android/issues/detail?id=61557

Assignment to wrong variable in libs/androidfw/AssetManager.cpp.
https://code.google.com/p/android/issues/detail?id=61560

Missing delete[]s in libs/androidfw/ObbFile.cpp.
https://code.google.com/p/android/issues/detail?id=61549

Leaks on error in tools/aapt/Images.cpp.
https://code.google.com/p/android/issues/detail?id=61552

Two missing fclose calls in tools/aapt/Resource.cpp.
https://code.google.com/p/android/issues/detail?id=61553

Missing fclose in tools/aidl/aidl.cpp.
https://code.google.com/p/android/issues/detail?id=61554

Change-Id: I5820f3824e72d07a9acb776cf0af3e7443f5694a

Conflicts:
	libs/androidfw/AssetManager.cpp
Always initialize local boolean variables when possible

It's currently possible to reference deviceModeChanged in InputReader
while it's in an unknown state. Change the style of initialization
here and a few other places to better prevent this type of error.

(cherry-pick of f583d0dcc6e5c1968c472c844f6c8fbbe036ad78.)

Bug: 11433748
Change-Id: Ic450ca4afe50987b022db9d20bb1cb18ccf060cc
Create screenshot directory if it doesn't exist

Change-Id: Iace92040b05869542cfd1038fea978617fba6f0d
Avoid IndexOutOfBounds Exception in ActivityManager

Bypass the iteration to avoid the exception during
the execution of ensureActivityVisibleLocked() because
startSpecificActivityLocked() within for loop may delete
the elements from History stack.

Change-Id: Iad9bdc6521b25b12d4c67e6b89f375a99b17748b
CRs-Fixed: 535900
Fix a JNI local reference leak in JNIMediaPlayerListener::notify.

Bug: https://code.google.com/p/android/issues/detail?id=62137
Change-Id: I776cd83a66de37fdbbe8af367bf1b26e5e0c7247
AudioService : Ensure uri is not null

Checks to make sure the uri is not null, otherwise the entire
subsystem crashes.

Change-Id: Iac04b6d11335236d527b8d5a1ccb48c1e09a4ac2
Network Usage: Add ability to change text color 1/2. (Credit AOKP)

Change-Id: I01ccaa0d1053f2310c355d6a205b0f471e8b7abc
Recents clear all app lock option.

Apps can be locked and unlocked from being clearable in
the recents panel by selecting the option in the popup
menu when long pressing the item.

PS2:
Remove commented out line and add method descriptions.

PS3:
Persist locked tasks.

PS4:
Use persistentTaskId.

PS5:
Fix landscape layout

Change-Id: I254ecbe45c14d47a60e7d39c011421e4c9c276a0

Conflicts:

	packages/SystemUI/res/menu/recent_popup_menu.xml
	packages/SystemUI/res/values/vendor_strings.xml
	packages/SystemUI/src/com/android/systemui/recent/RecentsActivity.java
	packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
NetStats: Add net stats to system bar.

PS2:
PS3:
Hide net stats view when notification area is disabled.

Change-Id: Ib35dd46b026dab00abe73966105806c54266e466

Conflicts:

	packages/SystemUI/res/layout/system_bar_notification_area.xml
	packages/SystemUI/res/values/vendor_styles.xml
	packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java