Revert "AwesomeAction: Performance update"

This reverts commit 31afbfc9786ccd99ece642755e681b235af8d65a.
LastApp Toggle [1/2]

Creates an action useable by NavBar & NavRing to toggle
between most recent apps.  Will try to ignore the launcher
when possible.  ie, if you've just rebooted and have not opened any
apps, it will do nothing.  if you open 1 app, it will toggle between
that 1 app and the launcher.  Once two apps have been opened, it will
toggle between those two apps.
It's kind of like opening recents and hitting your #2 slot repeatedly

PS 2:  Add Icons from Hoolm.  {Thanks!}
       Re-wrote the logic for selecting next app.  Rather than
toggling back to launcher if only 1 app open, it does nothing.
toggling only occurs now when there are at least two apps open.
One issue that I still need to work out is that 'Recents' is somehow
showing up as a valid target to toggle to.  It shouldn't.

ps 3:  getRunningTasks() does not filter out 'Excludefromrecents'.
Thus we need checks for 'default launcher' and SystemUI.
as I write this, I realize I might be able to query the
ExcludeFromRecents flag of the package a bit more easily.

ps 4: Whitespace fix.
ps 5: one more whitespace fix.
ps 6: remove unnecessary dependency

Signed-off-by: Zaphod <mwilson@acesappraisal.com>
Change-Id: I0b59121b07b9ba44a2837a8db0266441ed82f9a3

Conflicts:
	packages/SystemUI/src/com/android/systemui/aokp/AwesomeAction.java
add recent apps GB style action to navbar buttons (1/2)

This will add the option to open the Gingerbread style
recent application dialog.
This is the dialog that will show when doing <Alt><Tab> with
a bluetooth keyboard.

Change-Id: Id7894b698c43683467d7e8283b4b2b3dd1946f87
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
SystemUI: transparency control overhaul

Allow more customization. TransparencyManager's responsibility
is to apply the values it is being fed from Settings.System set by
ROMControl.

Tablets do not use transparency currently, but it shouldn't throw
any errors.

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

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/NavigationBarView.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarView.java
Fix longpress action for tehter toggles

Jumps directly into tether settings.

Change-Id: Ifdc825bb3f816e60d6e9232501935a26f757128c
Signed-off-by: kecinzer <kecinzer@gmail.com>
Fix NavButton AlphaGlow when pressed

Note that since users can set the Navbar Alpha, this will be a relative
brightness. In AOSP the button brightens to 1f alpha when pressed (.7f is not pressed).
if user sets alpha to 1.0, then there will be no difference.

Change-Id: I3d2d863bd4ff0cc2be14718afe3a17d795b77729
Signed-off-by: Zaphod <mwilson@acesappraisal.com>
Framework: QuickRecord Tile (2/3)

PS2: Stop FC on Auto-Stop Recording
PS3: Allow Playing of File If not recorded
        in this SystemUI Lifetime && fix FC on
        file not existing
PS4: Refresh Playing/Recording On Demand && Cause Layout Issues
      -Layout isn't utilizing tile info & is thus lower rather than centered
        Layout Should Be Fixable...this method might be temporary.
        Too tired to think.
PS5: Urgh Rebase
PS6: Fix Layout issues from PS4
PS7: Resize xhdpi images to 64x64
PS8: Add File Check && User Instruction String
        Change Default String & Add "Recording Captured"
        String & Icon on a two second timer.
PS9: Don't allow playing of file if it doesn't exist.
PS10: Images!!!!
PS11: Remove "WIP" from title.
PS12: Revert audiosource.default back to .mic
        (Higher Quality)
PS13: PS12 somehow managed to corrupt some MDPI images.
PS14: Change Timer to PostDelayed
        (Assuming this is better.  Hopefully some input?)
PS15: Operation makeJonStanfordHappy
        (Operation makeMikeHappy might end in lulWut)
PS16: Operation makeMikeHappy part1
        (Mike mentioned the idea of a switch rather
         than booleans, which I like...upcoming.)
PS17: Operation makeMikeHappy part2
        (Switch Statement)
PS18: Operation flipMikesSwitches
        (LULIDK)

To-Do:  Wait for Roman...and...that's it?
           (Jerk<3)

HUGE thanks to Dustinb17 https://twitter.com/dustinb17 for the icons!
Huge thanks to Shane New for making him do it =]

Change-Id: I4ae639b9684861cc7831c465530ae87634773c0d

Conflicts:
	packages/SystemUI/res/values/strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java
Quicksettings: fix updating 2G,LTE and WifiTether tiles

adding an observer to listen for state changes

also move updating torch and navbarhide

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

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java
AwesomeAction: Performance update

Use hashmap and switch case, also use containskey() to
bypass switch/case if its a custom app.

oops sorry marc
double oops..

rebase

Change-Id: I90b353df3de035c58e1871b8a3085c82f7d24145
Toggle rewrite (1/2)

Change-Id: I80ef0c3f1cbe8e0d35c7a4e4111ad22b96196963

Conflicts:
	packages/SystemUI/res/layout/system_bar_notification_panel.xml
	packages/SystemUI/res/layout/toggle_tile_user.xml
	packages/SystemUI/res/values/colors.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java
	packages/SystemUI/src/com/android/systemui/statusbar/tablet/NotificationPanel.java
Toggles: cleanup class and quiet down logging

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

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/toggles/FastChargeToggle.java
Toggles: fix initial bluetooth icon

Change-Id: I7ceb1e382dce07bd4ccca0777535e49015a16070
Signed-off-by: Roman Birg <romanbirg@gmail.com>
SystemUI: transparency mgr bug fixes

- Avoid potential NPE which crashes SysUI
- Sometimes while in the home screen pulling down a phablet panel would have delayed
    reaction and statusbar would be transparent while the panel is below it, it looks
	ugly and avoid it.

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

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarView.java
Only show "charging" if the battery is really charging.

If there's a charge problem (battery health/temperature out
of spec, or low charging current), the lockscreen and status
bar should not indicate that charging is occurring.

(Previously we showed "Charging" and a lightning bolt any
time the device was plugged in.)

Bug: 7509976
Change-Id: I27ec0e2cec1307fbc6ef262dd5181a4db6d3bed0

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryController.java
	policy/src/com/android/internal/policy/impl/keyguard/KeyguardMessageArea.java
Toggle bug fixes

This patch fixes:
* bluetooth not showing correct state
* battery information should retain after rearranging toggles
* tile text being cut off
* network toggle should stay updated after rearranging
* ime toggle will collapse statusbar
* wifi ap toggle states should update
* user/favorite user layout fix
* use consistent color for toggle texts

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

Conflicts:
	packages/SystemUI/res/values/styles.xml
	packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryController.java
	packages/SystemUI/src/com/android/systemui/statusbar/toggles/FastChargeToggle.java
Final BT toggle fix!

Change-Id: I0c8f85ef87d1f359c18cab8c4d07f681fe2b5649
Signed-off-by: Gergely Szell (sethyx) <szell@hu.ibm.com>
AwesomeAction: Make more awesomeer

Patchset 1:
- Switched to static methods and enums
- Moved Navbar helpers to its own class to
  be moved to FW for RC navbar recode.
- Created broadcast reicever
  use it like this...

     Intent i = new Intent();
     i.setAction("com.android.systemui.aokp.LAUNCH_ACTION");
     i.putExtra("action", "**string you want AwesomeAction to launch**");
     mContext.sendBroadcast(i);

Removed screenshot option for 2 reasons
1) Security
2) Can't be made static.

Patchset 2/3 : white space / string derp

Patchset 4: mini optimization in fromString function

Patchset 5/6 : clean up. Should be good to go now.

Change-Id: I9159a70082058f4dd1afc47c9d57a6f4b4a6bfb1

Conflicts:
	packages/SystemUI/src/com/android/systemui/SearchPanelView.java
	packages/SystemUI/src/com/android/systemui/statusbar/NavigationBarView.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/key/ExtensibleKeyButtonView.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/key/RecentsKeyButtonView.java
	packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java
QuietHours Toggle (1/2)

Icon Credits: Oliver Geith

Signed-off-by: Bajee11 <bajee11@gmail.com>
Change-Id: I0fa349969115e420140f24d10302a2cdb0c91c83

Conflicts:
	packages/SystemUI/res/values/strings.xml
FW: Navring Rework.

PS2: Moves drawables and static strings to Frameworks, Removes
     some redundant code from RC.

PS3: Needs awesome action update for now if we dont add it ill
     rebase.

PS4: Rebase and clean up, plus I added the option to turn "off" the
      navring by setting all targets to null or none.

PS5: added logic for custom icons

PS6: forgot to add Icons to the settings observer
     adjust some long press logic

PS7: Comment message clean up

PS8: Rebase of the new awesome action

PS9: cleanup

PS10: Rebase

Change-Id: Iff157e4e49407f46284f52697befe6cc3d5a42d7

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values/symbols.xml
SystemUI: set correct initial NFC toggle state

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