Frameworks AppOps: Enable MODE_IGNORED for OP_WAKE_LOCK

  *) Kitkat commit log highlights that the current
     implementation state is for auditing only
     https://android.googlesource.com/platform/frameworks/base/+/713df150b92a0a5eea877f99405e31eefbf93a09

  *) We go one step further and honour MODE_IGNORED
     when for OP_WAKE_LOCK.

Change-Id: I889227ca24a508a0d96bd43594c5179ba758ae3d
Merge branch 'cm' into HEAD
config_deviceHardwareKeys: the correct default is 0

How about instead of having to set 438 device trees to have the correct value
in each device tree overlay we make the 10 devices that still use hardware keys
set the correct value in their device tree overlays.. KTHNX.

Change-Id: Ibef20d7dc6e2fd718dbf2349a01682dac81ebf4f
Merge "config_deviceHardwareKeys: the correct default is 0" into L5
Optimize drawBitmapMesh using TRIANGLE_STRIP

Draw BitmapMesh using STRIP instead of TRIANGLES.
Depending on where the bottleneck is located in the pipeline,
there is a potential for saving two-thirds of the time spent rendering.
The speedup is due to avoiding redundant operations,
i.e., mapping each vertex four times to texture and color attribute,
sending each vertex twice to the GPU, vertex processing of GPU ...

In this patch:
1. Refactoring mesh using Strip.
2. Batch triangles by adding extra vertexs at the start and end of rows.
3. Optimize computing positions of texture and color attribute.

Benchmark: Drawing Bitmap(1152x768 px) with 200x200 meshes
Performance: ~46% improvements (from 26.4 fps to 38.7 fps)
Memory: Reduce 80800 vertices with xy, uv, rgba data.

Change-Id: I08c5c20d981d88528ce7b02012feefae468d6ec4
Signed-off-by: kui.zheng <kui.zheng@arm.com>
Add CM PlatLogo (1/2)

Screenshots:
http://i.imgur.com/flnUNE5.png
http://i.imgur.com/d6xGEcF.png

Change-Id: Ie2b092bafd3588270177648003dafed8226cf298
fix permission XML syntax

Change-Id: I3017b0cd7ecd76312be014b58fd2f3bc78ed2f1b
pm: Add persist property to enable lazy dexopt

 * Add "persist.sys.lazy.dexopt" property to enable lazy dexopt
   on userdebug builds.  As much as I enjoy these 20 minute
   dexopt sessions, I prefer instant gratification.

Change-Id: I568692f04d67c3c0a1a138fb724eda41e24b1235
Merge branch 'cm' into HEAD
Revert "Add CM PlatLogo (1/2)"

This reverts commit 4347a1ad8ed1e70831e11cd4dd43ff24b8983b22.
SystemUI: Bring back animated rotation tile

Partially revert "QS: Update rotation lock icons."
This reverts commit 1a462c1d2384608e0f546631d431ba39c7e6b27c.

Updated vector icons to match the newer API

Change-Id: Iafd5bb03cbb1c75b48c55be35a799377f5adcc6a
Merge remote-tracking branch 'cm/cm-12.0' into HEAD
ResourceTypes: Don't warn when resources with id 0 have invalid package identifiers.

Change-Id: I0f59d7663db0c69a2075fade256a4b55481dd137
Framework: Forward port ADB over network (Part 2 of 2)

Includes:
- ADB Over Network, integration of the adb-host mode (already present)
  The feature can be used/tested without the Settings part:

    setprop service.adb.tcp.port 5555

  Note: This ADB setting is not persistent (for security purpose) and
  require init.rc implementation event like this : http://bit.ly/AdbTcpIP

  Author: Tanguy Pruvot
  Id: I5c61a53948349c785356cb5aae165110d75e3074

  Author: sssemil <suleymanovemil8@gmail.com>
  Show notification on adb over network too

  Screenshots - http://goo.gl/TgsRI6
  Id: I9ddc0aa9a4f330a06ab5d97a8645d1b31bb6f299

Change-Id: I101216c5b8ddff5040d9eeaf35afefc5cd98bbf3
Notifications with icon==0 ARE FINE WITH US

Change-Id: Ifec0a3031aecfef14ba9055753753e506db2357e
Merge branch 'cm' into HEAD
Improve scrolling cache

Scrolling cache helps make short scrolls/flings smooth but will
cause stutter when long flings are made. This patch disables
scrolling cache when long flings are made.

This patch also fixes a related bug where scrolling cache will
not be enabled properly when transitioning from flinging to scrolling.

Patch Set 2: Calculate threshold based on maximum velocity (Sang Tae Park)

Credits: Pawit Pornkitprasan

Change-Id: Iad52a35120212c871ffd35df6184aeb678ee44aa
KeyguardSimPinView: don't send dummy request to get remaining pin

I'm not sure of the behavior on QCOM RILs, but on Broadcom RIL
(and probably other RILs), this will eat into the user's PIN
remaining tries. Given that the user is only given ~3 tries, this
is a very bad idea.

In addition, if onAttachedToWindow is called multiple times before
the RIL replies, this can completely delete the retry quota leading
straight to the PUK screen.

Change-Id: I339f1b6d79d543ae8930a7bb95acf823fd5ae20e
Framework: Volume key cursor control (1/2)

This feature is moved to framework so it also works with third
party keyboards.

Change-Id: I8e20240e7bee5351ab20bb3d701eb95a5fd3e112
framework: port IME selector notification toggle (2/2)

Change-Id: Ia35960d88468dba44cdfad26c7cc74f811a6844f