Immersive Mode

Use Googles Immersive Mode instead of our previous convoluted code.
Change the Immersive Helper to only popup once, not once per app.

Change-Id: Ib207a8ae4f88aee5ad7d0cc9c36bed61606a1efb
Signed-off-by: iceandfire <arhamjamal@gmail.com>

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values-cs/strings_custom.xml
	core/res/res/values/custom_symbols.xml
	core/res/res/values/strings_custom.xml
	policy/src/com/android/internal/policy/impl/GlobalActions.java
frameworks/base: remove some duplicate ringtones/notification sounds

PS2: Start mk file cleanup
PS3: Remove empty mk files
PS4: Remove more dupes and unused audio

Change-Id: I7a091218e41b3cf7eea9738d9ea569d9cb3ee91d
SystemUI: move toggles strings to strings_custom

Change-Id: Idac5869ae3603d81bfc743dad816f4d768feaa01
Signed-off-by: Roman Birg <romanbirg@gmail.com>
SystemUI: Immersive Mode toggle

Change-Id: Ic818f3f92d143c203bf99fb43198152942a186dc
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
SystemUI: add permission to kill apps

Change-Id: Icebada693b137a7cb46493a687a17a6240469674
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
base: Transparent Lockscreen from PA

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>

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>
Signed-off-by: iceandfire <arhamjamal@gmail.com>

Conflicts:
	core/java/android/provider/Settings.java
	services/java/com/android/server/wm/WindowAnimator.java

Fix: Correct possible null pointer when enabling see through lockscreen

PS2: Remove unused variable

Fix: Ensure lockscreen see through setting persists after reboot

If see through was enabled and the device was rebooted,
the user had to toggle the setting off and on again to activate.

Change-Id: Ib97226d979227ba93eea61e4cd194e59430a9ecf

Conflicts:
	core/java/android/provider/Settings.java
Remove the useless videos

Change-Id: Iece10bffbff1689f276493aa6423659f79b128b9
Fix navbar layout

Before: http://owain.nl/before.png
After:  http://owain.nl/after.png

Change-Id: Ie3e3c54a9644d232b1d9b74cbc9fa0eeed072b98
Updated drawables for navbar

Replaced old icons with edited and centered kitkat ones.

Change-Id: I9d996c19763c6e46c5495e790955a35f65cdfde9
Signed-off-by: kecinzer <kecinzer@gmail.com>
SystemUI: update custom nav bar icons

Give them a drop shadow like the new buttons

Change-Id: Iff7d0b1230e824925c98faba99f1a0daa07f0dd4
Signed-off-by: Roman Birg <romanbirg@gmail.com>
Signed-off-by: iceandfire <arhamjamal@gmail.com>

Conflicts:
	packages/SystemUI/res/drawable-hdpi/ic_sysbar_null.png
	packages/SystemUI/res/drawable-mdpi/ic_sysbar_null.png
	packages/SystemUI/res/drawable-xhdpi/ic_sysbar_null.png
KeyGuard: minimize challenge when showing the lockscreen (1/2)

This will allow the user to choose wether the lockscreen
challenge (circle, pattern, pin) is minimized when the screen
is turned on.

Change-Id: Ib6f3cde5f2f951b42a9e8a0b5897ace864c4f6c3
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Signed-off-by: iceandfire <arhamjamal@gmail.com>

Conflicts:
	core/java/android/provider/Settings.java
SystemUI: update navigation bar layouts

For tablets, mimic stock button paddings.
Except for when 5 buttons are used, then
distribute them equally across the navbar.

Change-Id: I99ccc07d31bc7b719c44be74f164d88d7dc542d5
Signed-off-by: Roman Birg <romanbirg@gmail.com>
SystemUI: fix battery text % dropping to 0

When the statusbar was recreated, the battery
text view was using the old reference and callback
(which didn't exist anymore). So just recreate the
text view with the statusbar.

Change-Id: I1f246a16d0a7d84054052372b68ec220eb4a7d27
Signed-off-by: Roman Birg <romanbirg@gmail.com>
Alternate drawer activity (Swipeable tabs)

Signed-off-by: iceandfire <arhamjamal@gmail.com>