Fix incorrect name in eglSwapBuffers log wrapper

Correctly identify eglSwapBuffers in EGLLogWrapper, which had been
labeled as "eglInitialize".

Change-Id: I67c61e100e2f84400ceebc28712f036e5a055017
Fix for Location Services

Credit: nbehary@XDA
Advanced PowerMenu

rebased by Ayysir <dresadd09691@gmail.com>
===

[*] screenshot and fastboot
<author> <drcmda>

[*]Remove safemode reboot option

Duplicated option, holding shutdown option is aosp way
<author> <D4rKn3sSyS>

[*]New reboot dialog

Nice icons and more options. Not hardcoded, used typedarray.
Credits to FNV for the original commit and safe mode drawable
<author> <D4rKn3sSyS>

[*]PowerMenu reboot

Based on Cm implmentation original author unknown
Change-Id: If478247694f2b4ae7ff4f02daeb0b4a655181751
<author> <aaronpoweruser>
Global actions cleanup

Patchset 2: Fix build
Patchset 3: Add message to confirmation dialog
Patchset 4: More consistency with the system

Change-Id: I09bf56374a5ba9a875b94a53845be99a347417dc
Lock Screen: quick unlock feature

Allows unlocking of the device without pressing enter for passwords and pins.

Change-Id: Ia85164a9758c8c5a3a11b48fed4092cdbf6dbec0
Signed-off-by: Evan Anderson <evan1124@gmail.com>
(1/2) Volume Rocker:

* Volume rocker wake
* Volume rocker music control

Change-Id: I0b9b252153e1fe048f7048a9da2197797a577ff1
Signed-off-by: Andre Saddler <dresadd09691@gmail.com>
Volume Rocker: Switch from Broadcast to Audioservice.

* Fix volume rocker music track seek.
* Minor fixes

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

Change-Id: If4afda046b9fbebda611615371a718122ffb57b6
Volume Rocker: Do not wake up during track seek.

* After switching to Audioservice track seek works great but it woke the device too if we select both options. Wake only if we do not skip tracks (like raising the volume).

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Lockscreen: See through (1/2)

Add the ability to see through lockscreen.
Adapted to kitkat from jellybean by @BigBrother1984

Signed-off-by: D4rKn3sSyS <jesdga95@gmail.com>
Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS2:

* Adding missing sem-colon.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

Change-Id: I9057a6e302a5a824799844f27e8f64ff677a520a

PS3:

* Replace and remove undefined mContext.
* Define the boolean enableScreenRotation inside new method.
* Whitespaces clean up.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS4:

* Restore mContext in setKeyguardParams().

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS5:

* Fixes for setKeyguardParams() and maybeCreateKeyguardLocked() methods, kitkat changed some things.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS6:

* Missing sem-colon.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS7: Fix all the things.

* Effects doesn't vanish after first unlock.
* Created condition in updateShowWallpaper() method that just return if see through is activated, he was restoring the wallpaper at second lock.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS8: Cosmetic changes.

* Correct java style name to seeThrough() and place it above updateShowWallpaper().

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS9: Other cosmetic changes.

* Better name to the see through boolean.
* Removed a space nitpick.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS10:

* We had two booleans for the same thing, ditch the one defined in one class only and take the global.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

Change-Id: I06d952f85baf284961a24c8c9f90b29f4aef719a

Conflicts:
	services/java/com/android/server/wm/WindowAnimator.java
Notification LED Control (1/2).

[Original writen at CyanogenMod by David Van Tonder (DvTonder <david.vantonder@gmail.com>).]

* Make led color customizable.
* Global and per-app settings.
* Default led color is white.
* The option category replace old stock on/off checkbox.
* Remove useless code from display settings, the feature has its own java files.
* The java files in settings are stored into its own com/android/settings/notificationligh folder.
* Credits into code comments of each specific java file.

PS2/3/4:

* Fix code derps.
* Forget to define a method.
* Remove wrongly added code.

PS5/6:

* Move entries to pa_symbols and pa_config.
* Update description.

PS7:

* Use ArrayMap instead of HashMap (more memory efficient).
* Remove observer for medium battery level.

PS8:

* Correctly import ArrayMap.
* Didn't updated creating of ArrayMaps.

PS9/10:

* Fix defaults.
* Enable battery led.
* Update description.

PS11/12:

* Ditch battery led option.
* Update commit description.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

Change-Id: I34654992e0225c32413e6cbe9f0ca18c1729a186
LED: Simplify logic

Removed settings observer for enabling custom led settings.

Change-Id: Ic5dfec96696ad5d2f7247b4a04a2df584dd35454
[1/2] base: expandable volume panel and tweaks

* Ditch aosp volume panel and use expandable as default, hardcode it.
* Add VOLUME_LINK_NOTIFICATION option to allow adjusting notification
  and ringer separately (default=1).
* Add VOLUME_ADJUST_SOUNDS_ENABLED option to allow disabling
  the volume adjust sound (default=1).
* Replace old Settings slider icon with new KitKat cog icon

Signed-off-by: Ricky Salinas <rsalinas1@mail.usf.edu>
Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

Change-Id: I94e0f944f76ee9751663de8ac40d99a342884259
Quicktoggles

Patchset 1: Invert actions
Patchset 2: Basic drag and drop handler (temporally stored, no animations)
Patchset 3: Animations and hover effect
Patchset 4: White color, better view swaping method, fixed bugs
Patchset 5: Edit mode (long press on user tile), Overshoot interpolator for scale animation (still temporal)
Patchset 6: Removed interpolator, added animation on entering/leaving edit mode, Stuff sticks through reboot
Patchset 7: Fixed view swapping for real
Patchset 8: Fixed jerky animations
Patchset 9: Fixes for phonestatusbar, preparing for activation method
Patchset 10: Airplane toggle -> Aint nobody got time for dat. Disable activation on user tile (waiting another method to come up to my mind)
Patchset 11: Better drag handler, edit mode on tablets only
Patchset 12: New icons, animations, back to hovering
Patchset 13: Fix behaviour with temporary tiles and slow animations
Patchset 14: Edit mode on phones (credits to Curtis Mayers: https://gerrit.paranoidandroid.co/#/c/241/)
Patchset 15: I'm not the only nitpicky here right?

Change-Id: I967f94428606f8f909cb428eaaa6d12e9d59808e

Patchset 16: Integrate into master branch.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsTileView.java
[1/2] Frameworks: Optional statusbar battery icons

    * Circle battery and circle battery percent (from CM <Sven Dawitz>)
    * Battery bar percent from Google
    * Quicksetting battery tile reflects status icon (from SlimROM <kufikugel>)

Part 2: packages_apps_Settings

Patch set 2: clean white spaces
Patch set 3: fix conflicts

Signed-off-by: Anu6is <curtis.mayers@gmail.com>
Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

Change-Id: Ic4056d08874672263444152813a4a8e805a4abf3
Immersive mode on quick settings

This adds the ability to toggle statusbar / navbar via quicksettings (former expanded desktop), but
using the new 4.4 APIs that allow a swipe-up, swipe-down gesture, to restore bars.

Credits to CM project for the implementation
http://review.cyanogenmod.org/#/c/53468/

Drawables by Arz Bhatia

Patchset 2: Rebase
Patchset 6: Fixes from CM

Change-Id: I1f694d87f0364aed7b6951714ea2bfbfd8555064
Update reboot and screenshot power menu drawables with xxhdpi versions

Change-Id: I59fff6cf1621f59662408b8223a6582cdb54049e
Fix quicksettings issues

Also add rotation tile

Change-Id: I315745ee60030eb8ead4ee1798940b45af91449a
QuickSettings: Immersive: Collapse panels on click

Most of the time users will want to enable immersive mode and go right back to the app.  This simplifies this process by closing
the quicksettings panel after immersive is activated or deactivated.

Change-Id: I7bb154941405e8efb568cf5c3cce92e963539ff8
Signed-off-by: Evan Anderson <evan1124@gmail.com>
Quicksettings: Immersive: Fix collapse panel animation.

Right now it collapse after the ui goes into immersive mode so the collapse animation is not showed.
First collapse the panel then go into immersive mode so we see the animation.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

Change-Id: Icf2925fa517fc077929e02d1f96a8cd51163b809
Quicksettings addons.

* Add lightbulb tile.
  Phone: Click to toggle flash on/off, long click to open the app.
  Tablet (No flash): Click to open the app and make screen white with 100% of brightness.
  Added boolean to check for camera flash availability.
  Thanks Lo Huot for the drawables.
* Quick pull down from right side of status bar.
* Long click action for user tile (opens sync settings).
* Long click action for rotation tile (opens accessibility settings).
* General cleanup.

Change-Id: I84a90d64cae466b2461be4164ff89b17fa920b84
Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>