Don't animate the circle battery meter when battery is fully charged

Rotating a full circle is unnecessary, no need to redraw the battery
meter every 50ms

Change-Id: Ibc7232ccd296ddbcf7c920aa6d8f01baa92a06d7
AudioService: fix safe volume enforced even when disabled

On onConfigureSafeVolume, the proper API was not used, leading
to the setting not being respected. Sometimes after boot, the
heaadset volume will be set back to the safe volume.

Change-Id: I5ba8bb1a18ce97ed64646663c7e75cb277356778
Use alpha channel instead of red in drawCachedGlyphBitmap

the correct value to copy in bitmap is alpha component from
the cachebuffer. currently it is offset to red channel if format is
RGBA which is wrong.

this is followup fix for https://android-review.googlesource.com/#/c/93943/

Change-Id: I96b5ba35df5ccaef44caf2542d35d6585ba1df80
Signed-off-by: Digish Pandya <digishp@codeaurora.org>
Signed-off-by: houst0nn <houstonn@gmail.com>
immersive mode: don't unconfirm a package, that's just dumb

* This is very annoying for specialized apps
* See here for a great explanation http://stackoverflow.com/a/20309721
* The fact that it doesn't even notify the user until the NEXT time they
  run it makes it completely pointless in my opinion anyway.

Change-Id: I423611efc07d467e1d81c66d58adcff331be8b38
AudioService: fix cross deadlock in VolumeStreamState

Synchronize modifications of volume index by VolumeStreamState
class mutex instead of using synchronized methods.
This avoids possible cross deadlock when modifying volume on
two stream types simultaneously and one is slave to the other.

Bug: 13730145.

Change-Id: I13406c71010ce0c2e2f08f660b6101f310396c98
Revert "Finish fixing Zygote descriptor leakage problem"

This reverts commit 1d8b18f3ea78ffccca7a127a69d3d6c9876df486.
Keyguard: Make sure disabling Camera widget

This fixes the issue that Camera widget is enabled on non-camera devices
until users open up lockscreen settings

Change-Id: I599733f65ec31a16f8a8c5ee98a8a2ba6bc56c63
Fix circle battery opaqueness for the low battery color

Because of the DST_ATOP Xfermode the color was drawn below the full
gray ring resulting in a washed out red. Fix this by not setting an
Xfermode and drawing the color normally.
This does not affect the non-low color as it cannot get any whiter.

Fixes: CYAN-3282

Change-Id: If1183dcb272e84858371be3765ba758fa2560eeb
Animate circle battery rotation back to 0 after unplugging

After unplugging continue the rotation animation until it's back at 0
instead of jumping to it directly.

Change-Id: Ifea8351d609c0dc4ec82bd459942a197243dd5f1
Fix a NPE when putting a null-Bundle in an Intent

Happens frequently e.g. with GoogleAccountAuthenticator

Change-Id: I284bf153f40ee9cc3e70bce6efcc3b9e6706361b
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
Kitkat UI: Welcome back Holo

This reverts commit 7a0ee7961927bb47d43024a52d81683837e674ec.

Revert "fix number picker blue line and highlight"

This reverts commit c5f0b319565a491df4ba3224a8e9349bb4096b8c.

Revert "fix search textfield"

This reverts commit d72ce1d0cd86c12c7a2d0dfafec43374f86faa70.

Revert "fix remaining blue dialog dividers"

This reverts commit 6b36e323a458d3c212a51a6ccdede6d9d97ff095.

Revert "fb: change alert dialog to new 4.4 UI guidelines and add"

This reverts commit 44d672af47e60d3e768bf75dd7de682b20d589f6.

Revert "fb: changed all open forgoten UI from google into new UI"

This reverts commit 14e363a4c2bdbd3ae3b54a54322bed0ba0713fc1.

Revert "Update missing google UI changes for 4.4"

This reverts commit a4782d8a96267ac30b6598c16ab9b83fc34f2322.

Revert "fb: global menu follow new 4.4 UI"

This reverts commit 99bd887f747ba9ae25ef7173ed0cf2c341263033.

Revert "fb: correct seeker fb style for 4.4"

This reverts commit 2515bc0b49eca8f6e315b1defd6545c0be381ad8.

Revert "Follow on seekbars new UI guideline for 4.4"

This reverts commit c230f29132d5a6aa461934615131b1213a6a20a1.

Revert "Fix no recent apps color"

This reverts commit 3b4eda10f7924738088fba73ac6aaea8c2ed6a30.