Lockscreen : Vol long press skip tracks (1/2)

Straight port from cm7

Credit : Kmobs,Sven,Cvps..and all who've refined it

Patchset 2 : Minor fixes
Patchset 3 : Fix misplaced closing bracket
Patchset 4 : Rework the conditional logic
Patchset 5 : Rebase
Patchset 6 : Fix vol change for wake screen
Patchset 7 : Cleanup

Change-Id: I74584932772ddabbd203acb4d6a65270fd6b20c2
Profiles: Addition of Wimax (1/2) + Logic Cleanup

Change-Id: I4277e1982fb46637291ccba7e0d959c770cc623f
Japanese: translation of 'profile' related entries.

Change-Id: I2da29d5bc33a68123b5cc38e82a2cb57fde2774e
Profiles: Case insensitive duplicate name checking

 - Prevents duplicate names such as Default/default

Change-Id: I479a34192295677653985a66b05becb2d1b6cdf3
profiles: Add support for disabling screen lock

 * We can now have the option of disabling lockscreen security as part
   of the profile. A good use case for this is to create "Car" profile.
   You certainly don't want to input a pattern, or worse, face-unlock if
   you should happen to break the law and use your phone whilst driving.
 * Profile system now permits insecure mode or entirely disabling
   lockscreen as an override.
 * Fix issue where changes aren't applied if the active profile is
   modified.
 * Also fix a couple of string-comparison derps.

Change-Id: I07a09b7011bad4f32cdd7bfa576e3befa71193ea
profiles: Fix "disabled" lock screen mode

Without this fix, it's impossible to select the "Disabled" lock screen
mode.

Change-Id: I214f52093d78631f799a604394e838a4b329494a
bootanim: Don't cache textures if they're expected to use a lot of VRAM

bootanimation cached all the textures generated until the animation
was completed.
For Hi-res animations with lots of frames (like the new CM9 anim on
xhdpi devices), this implied using large amounts of video RAM, more
than most devices actually have available, causing the animation to
stall (and in some cases, gralloc to lock up); so if an animation is
expected to use a lot of RAM (rough estimation based on frame size
and number of frames), disable cache entirely and generate the textures
on demand

Change-Id: I157e5cdde2aab1d82d980d77cbedd9f127c83a1d
Telephony: Make the compat-flag verification method available everywhere

Export needsOldRilFeature() through the commands interface to make it
available to other parts of the telephony stack

Change-Id: I0e6fec083f5208795bf5067f8c73e35660e942ed
Telephony: Make partial QCOM USIM support more widely available

The usage of special paths and network states for USIM cards isn't
limited to Huawei devices; it appears to be a common requirement
on recent CAF devices, so make it available under the "qcomuiccstack"
ril compatibility option

Change-Id: Idb1895061a4e05a6a6bb3df72336002bd53a3d4a
Fix custom LED values string

Change-Id: I8c44ec327f752932d9200142a620d577b6850804
libs/rs: Fix parameter swap in rsAllocation

This change swaps index and size parameter in rsAllocation calls as
Google's comment suggests

Change-Id: Id14ba3de342c8b0ec27fb8b62f3993d8f7e21e46
CRs-Fixed: 320824
libRS: release last surface reference when shutting down GL

CRs-fixed: 329203
Change-Id: I42f9f652912367ef7ed8a007dd330b66c0167abb
SurfaceFlinger: Set the buffer size in the GraphicBufferAlloc

When setting the buffer size, store the required size, and allocate
the buffer of the required size in GraphicBufferAlloc, instead of
SurfaceTexture. We do this because SurfaceTexture does not always
run in the server process space. GraphicBufferAlloc always runs in the
server process.

Change-Id: I53661d8a9a27f9974837f2ed2fe13facf8dd8d9c
Remove opaque check in GLRenderer when preparing dirty region.

Since preserved swap is enabled, we need to clear the color buffer
when the scissor rect is prepared for a new process. This prevents
garbage to be present from the previous process in the color buffer

Change-Id: I72b7154c52affecfd6bf50889062b1769042d5d9
CRs-Fixed: 320345
SurfaceTexture: Avoid binding texture if format not supported in GPU HW

Certain formats may not be supported in GPU HW. For them, avoid binding
textures. When the textures created from surface flinger, they may not
be needed if we are not using GPU composition.

Change-Id: I3eda6aa419dcef3d19f844d620d4c89236a6a714
Fix 'Avoid Binding Texture' logic in SurfaceTexture & SurfaceFlinger

Change-Id: I32de5ddb77e339b3749379804233c0772d29c983
DisplayHardware: Set MDP composition flag correctly

Change-Id: Id0c7172fe8578f3eb26bbe10a448a96fee1d72cd
binder: add support for Ion

Add classes to allocate from the Ion memory manager.
binder: Get rid of old flag

MAP_LOCKED_MAP_POPULATE is an outdated flag that is not used
anymore. Get rid of this flag in MemoryHeapIon
frameworks/base: Add cpu governor service

Increase sampling rate when the display turns off and set it
back to the original value when it turns back on. This helps
reduce power consumption for use cases such as MP3 playback with
the display turned off.