Use Android L navbar icons by default

Change-Id: I80425aec8db26e56954c0c081ee811eeff86e4fd

Conflicts:
	packages/SystemUI/res/drawable-hdpi/ic_sysbar_back.png
	packages/SystemUI/res/drawable-hdpi/ic_sysbar_back_ime.png
	packages/SystemUI/res/drawable-hdpi/ic_sysbar_back_land.png
	packages/SystemUI/res/drawable-hdpi/ic_sysbar_home.png
	packages/SystemUI/res/drawable-hdpi/ic_sysbar_home_land.png
	packages/SystemUI/res/drawable-hdpi/ic_sysbar_menu.png
	packages/SystemUI/res/drawable-hdpi/ic_sysbar_menu_big.png
	packages/SystemUI/res/drawable-hdpi/ic_sysbar_recent.png
	packages/SystemUI/res/drawable-hdpi/ic_sysbar_recent_land.png
	packages/SystemUI/res/drawable-hdpi/ic_sysbar_search.png
	packages/SystemUI/res/drawable-mdpi/ic_sysbar_back.png
	packages/SystemUI/res/drawable-mdpi/ic_sysbar_back_ime.png
	packages/SystemUI/res/drawable-mdpi/ic_sysbar_back_land.png
	packages/SystemUI/res/drawable-mdpi/ic_sysbar_home.png
	packages/SystemUI/res/drawable-mdpi/ic_sysbar_home_land.png
	packages/SystemUI/res/drawable-mdpi/ic_sysbar_menu.png
	packages/SystemUI/res/drawable-mdpi/ic_sysbar_menu_big.png
	packages/SystemUI/res/drawable-mdpi/ic_sysbar_recent.png
	packages/SystemUI/res/drawable-mdpi/ic_sysbar_recent_land.png
	packages/SystemUI/res/drawable-mdpi/ic_sysbar_search.png
	packages/SystemUI/res/drawable-xhdpi/ic_sysbar_back.png
	packages/SystemUI/res/drawable-xhdpi/ic_sysbar_back_ime.png
	packages/SystemUI/res/drawable-xhdpi/ic_sysbar_back_land.png
	packages/SystemUI/res/drawable-xhdpi/ic_sysbar_home.png
	packages/SystemUI/res/drawable-xhdpi/ic_sysbar_home_land.png
	packages/SystemUI/res/drawable-xhdpi/ic_sysbar_menu.png
	packages/SystemUI/res/drawable-xhdpi/ic_sysbar_menu_big.png
	packages/SystemUI/res/drawable-xhdpi/ic_sysbar_recent.png
	packages/SystemUI/res/drawable-xhdpi/ic_sysbar_recent_land.png
	packages/SystemUI/res/drawable-xhdpi/ic_sysbar_search.png
	packages/SystemUI/res/drawable-xxhdpi/ic_sysbar_back.png
	packages/SystemUI/res/drawable-xxhdpi/ic_sysbar_back_ime.png
	packages/SystemUI/res/drawable-xxhdpi/ic_sysbar_back_land.png
	packages/SystemUI/res/drawable-xxhdpi/ic_sysbar_home.png
	packages/SystemUI/res/drawable-xxhdpi/ic_sysbar_home_land.png
	packages/SystemUI/res/drawable-xxhdpi/ic_sysbar_menu.png
	packages/SystemUI/res/drawable-xxhdpi/ic_sysbar_menu_big.png
	packages/SystemUI/res/drawable-xxhdpi/ic_sysbar_recent.png
	packages/SystemUI/res/drawable-xxhdpi/ic_sysbar_recent_land.png
	packages/SystemUI/res/drawable-xxhdpi/ic_sysbar_search.png
Update Roboto fonts to Android L versions

Change-Id: I541694b159e32bb90c1889e894c4352e43f3ce40
Reset battery stats [1/2]

Change-Id: I90c1d1ab73c2187b68230a6db1db19dec2a5924b

Conflicts:
	core/res/res/values/strings_custom.xml
Identicons: Add identicons to ChaOS Lab [1/3]

Change-Id: Ie0ffc4a4c2a41d6a5f35aad761c4c17a725bbc2a

Conflicts:
	core/java/android/provider/Settings.java
Fix the texture ID reuse issue in HWUI.

Issue: When the layer of previous frame is destroyed, it doesn't clear the
texture id in mBoundTextures[mTextureUnit], so in the next frame, if
glGenTexture returns same texture ID of the previous frame,
the new texture is not bound.

CRs-fixed: 671736

Change-Id: Ifc5fd2115fb1863b3c006ab14b0faabeaeb4eab4
[Asset Manager] Fix memory leakage bug

Symptom: memory leakage
Root Cause: new SortedVector but not free it in native cpp
Solution: free the SortedVector
Project: AOSP
Note:

Change-Id: Iab5a7f2e8d8509631301e7231427927d4797c856
update parameters in uploadToTexture() for GLES20

Google optimized the uploadToTexture with GLES3.0+,
This allows us to upload a sub-rectangle of texture,
but this has compliance issue with GLES 2.0.

With OpenGL ES 2.0 we need to copy the bitmap in a
temporary buffer if the stride doesn't match the width,
and then upload entire temporary stripes.

Change-Id: I8987cd8347913c61b7fa45bd47be1189aa6bdb05
Signed-off-by: Shenghua Lu <shenghua.lu@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Guobin Zhang<guobin.zhang@intel.com>
keyguard: force marquee effect for carrier text

This allows to make rooms for languages with long carrier text descriptions.

Change-Id: I8a3f69d186e79971c66c4977d258b2bda48ceeff
JIRA: CYAN-4356
Issue: https://jira.cyanogenmod.org/browse/CYAN-4356
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
base: fix volumen panel traslucent after stream icon click

Change-Id: I290ecb07106198882739a5b734f4d6a89d3eb5fb
JIRA: CYAN-4487
Issue: https://jira.cyanogenmod.org/browse/CYAN-4487
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>

Conflicts:
	core/java/android/view/VolumePanel.java
IndexOutOfBoundsException observed rarely in ProcessStats

Sometime IndexOutOfBoundsException is observed in ProcessStats
while allocating longs array. This could be due to synchronization.
This fix will return if array index is >= size.

Change-Id: I1df34152c95f2ff61829da07f750e79a6f1efab3
CRs-fixed: 626638
Fix a resource race bug in PathCache

When enabled defer rendering, it will do precache for DrawPathOp.
The paint used for creating PathTask in precache just get the address
of mFilteredPaint of OpenGLRenderer. So for the following defer
operation like DrawTextOp has possibility change the mFilteredPaint
by getPaint while another WorkerThread in PathCache is using the paint
which pointed to the same address of mFilteredPaint to generate bitmap.
As a result, it will generate a wrong bitmap for generateTexture in
PathCache. To fix it, do a copy of paint when creating PathTask.

CRs-Fixed: 664244

Change-Id: I5516f5b143458b88d3573d15b7ebb34f688800c7
base: App crash when select suggestion's length more than specified.

App crashed by catch IndexOutOfBoundsException which raised
by check span range when select suggested string.The root
cause is that the editor will truncate the suggested string
which length is more than it specified, but it also set span
use the suggestion's original length.

Update the suggestion's real length after editor replace the
original string to suggested.

Change-Id: I2d765701934a9e68be172cb87a104590f3cdeceb
CRs-Fixed: 532211
Applications crash observed while selecting words from suggestion list

While selecting words from suggestion list, applications are crashing as
textview span are going out of index. For textinput where spaces are not
allowed length difference shall be calculated properly to avoid Index
out of bound situations.

Change-Id: I360318cf9241abbb7f58ad1ddf3f3c8d364f17d1
CRs-Fixed: 642057
MMS: Fix Messaging will force close after tap one item in suggestion list

The span end is larger than string's length, it caused IndexOutOfBounds
exception.

Check the span end to avoid the IndexOutOfBounds exception.

CRs-Fixed: 555378

Change-Id: Iaf1cbe8db8704b3112afb6207982750b650fe5c5
Fixing IndexOutOfBounds Exception in ActivityManager

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

Change-Id: I195da10a8e9161572bdb653ad3021998d4f2a939
CRs-Fixed: 651963
base: Add support for FLAG_SUPPORTS_PROTECTED_BUFFERS

For the clients (WFD) which need secure HWC composition,
FLAG_SUPPORTS_PROTECTED_BUFFERS need to be set.
- Define new flag VIRTUAL_DISPLAY_SUPPORTS_PROTECTED_BUFFERS
- In VirtualDisplayAdapter, add support for the flag
FLAG_SUPPORTS_PROTECTED_BUFFERS.

CRs-Fixed: 653794
Change-Id: Ib954943f3e27067b2805188771f951c115833237
Added validity check for Pointer Index

Checking if the pointer index is valid before querying for X & Y
coordinates. This is done to avoid IllegalArgumentException.

Change-Id: Ic7f3022d33c313a0bfe8b55c9bc89019b33d23b7
Frameworks: Fix to avoid crash when the tab is not set.

Tab is not highlighted in Videoapp unlike Music app.
Instead the list is highlighted with mSelectedTab a negative value
when onFocusChange is called.
Add a check for mSelectedTab.

Change-Id: I930657b8a9be4be4d973f876242a15a667ec6f94
CRs-Fixed: 657606
audio: Inform audio HAL if it is a voice call initiated by Telephony

setMode() API with IN_CALL mode can be called by any of the Apps.
In HAL, it is required to distinguish if it is a real voice call
or not. Inform to audio HAL if it is a voice call by checking
getPhonestate() updated by telephony.

CRs-Fixed: 662804
Change-Id: I20a661f49f6566bdd1e23d6de18b509e2728ef19

Conflicts:
	media/java/android/media/AudioService.java
Common: Add the api to parse the string to current language

These APIs are used to parse the text to local languange.
For example, if the carrier name in English is got from network or SIM card, we will
use these APIs to parse it to local language and display it to the user.

Change-Id: Id4922c526d77f434b43c5ac013472b6a1cd5069c