fb: do not block home button if incoming call is a background call

The user want to navigate ahead if it is a call in background.
So we allow it.

Change-Id: If40b8abba05b600191bfc1403f197e624fd7a360

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
SystemUI: fix torch toggle delay on boot

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

Conflicts:
	core/java/com/android/internal/util/mahdi/MahdiActions.java
frameworks: move safe volume warning above expanded volume panel

Fixes JIRA bug BACON-50

Change-Id: I1bc7c4781aa81cccd42281f70b394b7f7d81d3e5
Signed-off-by: Roman Birg <roman@cyngn.com>
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
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
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>
hwui: fix possible null pointer de-refrence

add layer check for  null before de-refrencing it.

issue link: http://code.google.com/p/android/issues/detail?id=61622

Change-Id: I54fc21ec594effcfb1eededd80dd5b0b52645c4c
Remove getBoundTexture().

GetBoundTexture checks the bound and active texture,
and we should clear the id from all bound textures
(regardless of whether they're active or not).
Remove the check and getBoundTexture() method,
and just always call caches.unbindTexture(texture.id).

CRs-fixed: 681102

Change-Id: I481386394f382519bb7ea2700c4e808e00474c70
[2/2] Permit home button wake to be configurable
base: Remove duplicated key handling

Change-Id: Ifd8ecac2b3758f0c6a4dbaa39350831af0b145a0
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
QS: Make CameraTile respect locale changes for the label.

Change-Id: Id4be230c443263b4185e5b4af6e8df6805a7aac5
QS: Make PerformanceProfile Tile respect locale change for label.

Change-Id: I5afaa0c0f468e3b79f5b22c4c2804463d7a16651
AudioManager: Add Bluetooth A2DP profile trigger

    - Introduce a new profile trigger for Bluetooth A2DP
      connections.  We can't use the default ACTION_ACL_CONNECTED
      because it would apply the volume settings before routing
      has been established to the A2DP device.
    - Modify AudioService to send an intent after the audio
      route has changed to A2DP to ensure our volume change
      will apply to the correct device.
    - Allows the user to disable the A2DP profile and still
      trigger the profile change.

Fixes JIRA issue: BACON-47

Change-Id: Ib51dac6d79abbaf494b86af4480e293162814459
frameworks/base: add SmartCover support

config part:

https://gerrit.nameless-rom.org/#/c/7597/

Change-Id: I1e196eeffd0b83d7445c2394648649939b67c6f4

Conflicts:
	packages/Keyguard/res/values-af/cm_strings.xml
	packages/Keyguard/res/values-ar/cm_strings.xml
	packages/Keyguard/res/values-ca/cm_strings.xml
	packages/Keyguard/res/values-cs/cm_strings.xml
	packages/Keyguard/res/values-da/cm_strings.xml
	packages/Keyguard/res/values-de/cm_strings.xml
	packages/Keyguard/res/values-el/cm_strings.xml
	packages/Keyguard/res/values-es-rXA/cm_strings.xml
	packages/Keyguard/res/values-es/cm_strings.xml
	packages/Keyguard/res/values-et/cm_strings.xml
	packages/Keyguard/res/values-fi/cm_strings.xml
	packages/Keyguard/res/values-fr/cm_strings.xml
	packages/Keyguard/res/values-hu/cm_strings.xml
	packages/Keyguard/res/values-in/cm_strings.xml
	packages/Keyguard/res/values-it/cm_strings.xml
	packages/Keyguard/res/values-iw/cm_strings.xml
	packages/Keyguard/res/values-ja/cm_strings.xml
	packages/Keyguard/res/values-ku/cm_strings.xml
	packages/Keyguard/res/values-lt/cm_strings.xml
	packages/Keyguard/res/values-nb/cm_strings.xml
	packages/Keyguard/res/values-nl/cm_strings.xml
	packages/Keyguard/res/values-pl/cm_strings.xml
	packages/Keyguard/res/values-pt-rBR/cm_strings.xml
	packages/Keyguard/res/values-pt-rPT/cm_strings.xml
	packages/Keyguard/res/values-ro/cm_strings.xml
	packages/Keyguard/res/values-ru/cm_strings.xml
	packages/Keyguard/res/values-si/cm_strings.xml
	packages/Keyguard/res/values-sk/cm_strings.xml
	packages/Keyguard/res/values-sr/cm_strings.xml
	packages/Keyguard/res/values-sv/cm_strings.xml
	packages/Keyguard/res/values-th/cm_strings.xml
	packages/Keyguard/res/values-tr/cm_strings.xml
	packages/Keyguard/res/values-uk/cm_strings.xml
	packages/Keyguard/res/values-zh-rCN/cm_strings.xml
	packages/Keyguard/res/values-zh-rHK/cm_strings.xml
	packages/Keyguard/res/values-zh-rTW/cm_strings.xml
	packages/Keyguard/res/values/cm_strings.xml
	packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitorCallback.java
	packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java
	packages/Keyguard/src/com/android/keyguard/KeyguardViewMediator.java
(1/2) Frameworks: allow to enable / disable smart covers

Change-Id: I83d96696fefedc19fc3bce7265a4fcf2d4c894bc

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
add support for Smart Cover HAL