Forward port battery icon options [1/2]

Bring forward the various battery icon options.
Portrait, Landscape, Circle, Text.

Still retains new options for where to display battery percentage text.

Change-Id: Icfc14d989eebde9014538291c24aa76d328df234
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarView.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Battery icon:Fix battery % not showing up on lock screen

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Remove cm clear all button [1/2]

Revert "[Base]: recents panel clear all button tweaks"

This reverts commit c1c377b70af61b02c1a2c5fbfca417b2db43d13b.

Revert "Fix up 'clear recents' UX."

This reverts commit dfe8e7f33cc6bb8135f1dfffebfd8e66c4f39635.

Revert "Fix - place Clear Recents button above the nav bar"

This reverts commit b153b04987c096d20521d29268fa1e57d7056bbb.

Revert "Add clear all recents action to recents panel"

This reverts commit 3adbbd93be89992ba9fdfb3b0c084a6c35503126.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

Conflicts:
	packages/SystemUI/res/values/strings.xml

Conflicts:
	packages/SystemUI/res/values/strings.xml

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Clear Recent Apps (From NavBar)

Original author: TheMrcool212

this is not using cm's clear recents way, cm uses a button to clear recents but mrcool coded like pa's way at kk based pa roms so navbar recents button turns to clear all button when you open recents menu.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

Conflicts:
	packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Don't remove the last app

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Use 'dismissAllTasks' to clear all apps

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
clearallrecents: remove dead code

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Framework: Add enabler for Navbar Recents

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

Conflicts:
	core/java/android/provider/Settings.java

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
QuickBoot: switch normal power off to quickboot

Handle power off button when quickboot mode enabled.

Change-Id: If317441a611e5bfed69c1a3c7ee4045b49a36d86
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
QuickBoot: enable QuickBoot power on

Support long press power key to power on when in QuickBoot mode.

Change-Id: I92a70e6d58f7b6c49e19ec446766f95d4c873846
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
QuickBoot: Add wakeup check under QuickBoot mode

We only want QuickBoot application to wakeup screen in QuickBoot
mode. Add wakeup check to filter out other wakeup callers.

Change-Id: I765c698449ed0aca8d18d3ec93e00ce34bc33a68
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
QuickBoot: remove alarms for killed apps

Device may be woken up by WAKEUP alarms, which have been set
by those killed apps before. Here to get the killed apps list
and remove the alarms from AlarmManagerService.

Change-Id: I86b119e3c0e695a34cba3f168b15ecd6b97e462b
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
QuickBoot: restrict app's auto start under Quickboot mode

Don't launch apps that not in whitelist under Quickboot mode.

Change-Id: I5d156cbea4ef18397ce4569cb74f73a446a6e49b
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
QuickBoot: filter alarms that not in whitelist

Don't response to alarms that not in whitelist under QuickBoot mode.

Change-Id: Ib43d13897f11945e0fa8b9b06c68b7949ca456c8
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
QuickBoot: don't wake up screen when usb connected

Don't wake up screen in QuickBoot mode when usb connected.

Change-Id: If65936a0edbbc3b36a0768294e5c3bd7d741018a
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
QuickBoot: Don't handle specific broadcasts from QuickBoot

Don't process the BOOT_COMPLETED/SHUTDOWN broadcasts sent by
QuickBoot. They are only for apps.

Change-Id: I1551d0cd73d87b6780dcffd4c1ad5c54a7c76cc8
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
QuickBoot: enable poweroff charging under QuickBoot mode

Support poweroff charging by enable/disable qbcharger process under
QuickBoot mode.

Change-Id: I34ee10443564ba3f9ebc7239137958c80e8db6c9
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Base : Initial slim lockscreen shortcuts

Thanks to slimrom and ResurrectionRemix Team.

Change-Id: I5fa0258957a47e35985fca4384a380316e3be24a
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

Conflicts:
	core/java/android/provider/Settings.java

Conflicts:
	core/java/android/provider/Settings.java
	core/java/com/android/internal/statusbar/IStatusBar.aidl
	core/java/com/android/internal/statusbar/IStatusBarService.aidl
	packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java
	packages/SystemUI/src/com/android/systemui/statusbar/tv/TvStatusBar.java
	services/core/java/com/android/server/statusbar/StatusBarManagerService.java

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Fix build

Signed-off-by: Paul Beeler <pbeeler80@gmail.com>
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Frameworks: slim up sounds and update (1/2)

Till now we modified always the aosp make files etc. Was complicated to maintain.
Hence we add now an own slim folder and own AllAudioSlim.mk to mainatin it completely
ourselves.

As well reduce size etc etc

Change-Id: I0d60a0abe0935f1000016bc5d69b4f4e36616941
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>