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 degenerate triangles.
3. Optimize computing positions of texture and color attribute.

Benchmark: Drawing Bitmap(1152x768 px) with 200x200 meshes
Performance is doubled (from 26.4 fps to 53 fps, Nexus10).
Memory footprint: only 17% of original method.
(from 240000 to 40401 vertices with xy, uv, rgba data.)

Change-Id: I08c5c20d981d88528ce7b02012feefae468d6ec4
Signed-off-by: kui.zheng <kui.zheng@arm.com>
Frameworks: Pin shuffler - fix wrong default value

lol

Change-Id: Ie22e7b402c7c458a90c30ea999190c6c6890036b
SystemUI: make long pressing recent switch to last app

With this patch, long pressing the recents key on the navigation bar
will attempt to switch to your last application in the activity stack
before the active one.

The user's current home launcher package is ignored as well as SystemUI (so that
RecentsActivity does not influence the behavior).

Change-Id: I38771e0fce16b55bb5186af47115b4e812cb60b0
Signed-off-by: Roman Birg <roman@cyngn.com>
Signed-off-by: Adnan Begovic <adnan@cyngn.com>
frameworks: add keyguard wallpaper functionality to WallpaperManager

Adapted for cm-12.

Change-Id: I0eb1b5578b705c2ade4c0772fa86e09478b9f73e
Signed-off-by: Roman Birg <roman@cyngn.com>
Navigationbar: Fix 'back' button in landscape mode

Credits: Anderson Aragão
Add missing 'ic_sysbar_back_ime_land' drawables
platform/framework/base: Fix Half Blank screen issue in Wallpaper

Issue: Start Any Full Screen Activity/ VideoView Activity in
       portrait mode, change to landscape mode and then perform
       suspend and resume. Only Half of the screen has display,
       the other half is blank screen

Fix: Added a check to update surface size on both rotation change
     and surface size change.

Change-Id: Iba77dfdb778ea3c60bbb1df33188fd4f792ab77c
CRs-Fixed: 712741
Enable Advanced reboot option as default [1/2]
PackageManager: add persist property to enable lazy dexopt
Battery text mode (1/2)

PS2: Make battery level more fit current solution
PS3: Fix displaing battery level inside the icon
PS6: Show battery level in status bar header when charging and percentage
     mode set to inside icon (it's replaced by charging icon)

Change-Id: I537c99827e78c796b4980ec7751e5f9b58a88251
Signed-off-by: kecinzer <kecinzer@gmail.com>

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarHeaderView.java
Theme: Text select handle
Install market apps=true
Revert "    Improve scrolling cache"

This reverts commit 1265ac4f05200b0e3243cbfe8e1c6fe35d646851.
framework: add blacklist disconnect cause

Constant to be used when marking a Call as blacklisted.

Change-Id: If8e0ba7a2fb9b3ebbcfde04df48cd0ab14bba864
Signed-off-by: Roman Birg <roman@cyngn.com>
SystemUI: Add sound item in quick settings panel

Add sound item in quick settings panel.

CRs-Fixed: 715258

Change-Id: I090929a3622101edc5413afe4f7c2d1863139d2c

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QSTileHost.java
Update color dependent items when reusing notifications.

The notification might have changed its color setting.

Change-Id: Icf494db47b30af5505107eec2f728fb8bcba421a
Revert "volume rocker wake: add volume keys to isWakeKey KeyEvents"

This reverts commit 505093ba71ba3fbfc1f5b6f3e8fdcc52c60c9d6d.
Add option to disable searchbar in recents [2/2]

Coded by yashade2001 <yashade2001@gmail.com>

Signed-off-by: Yashar Ahmedizadeh <yashade2001@gmail.com>

Conflicts:
	packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
Smooth Spinners: Makes the loading "spinner" animation smoother in non-holo apps

Credits: kristofpetho

Signed-off-by: snak3ater <saeedyasir91@gmail.com>
Fix: Don't disable rotation lock tile

Rotation tile was hiding if the user disabled Auto-rotate
option from display settings.Enable auto rotate tile as always visible

Signed-off-by: snak3ater <saeedyasir91@gmail.com>