SysUI:  NavBar & Widgets rollup [1/2][WIP]

This will bring back NavBar widgets, along with some
changes/rollups on the NavBar side.
Very much a WIP. Just wanted to post where I was so others
could continue if I get busy.

2 :  Address some Tablet stuff
3 :  Icons & Strings
4 :  another icon
5 :  more icons & layouts
6 :  fix some shortcut/aokp action stuff- fix NavRing so it
     only inflates on swipe, not long press of home.
7 :  Roll in jubakuba's porting of Hide NavBar.  Really needed to
     be handled in this mega-NavBar commit rather than separately.
8 :  API change fix for setInitialDisplaySize
9 :  restore Searchlight (NavRing on lockscreen) that got removed
     during the previous edits.
10 : move togle classes under aokp package
11 : Fix reference in Phablet NavBar layout

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

Conflicts:

	core/java/android/provider/Settings.java
	core/res/res/values/symbols.xml
	packages/SystemUI/res/drawable-hdpi/stat_sys_data_fully_connected_hp.png
	packages/SystemUI/res/drawable-mdpi/stat_sys_data_fully_connected_hp.png
	packages/SystemUI/res/drawable-xhdpi/stat_sys_data_fully_connected_hp.png
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/NavigationBarView.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	policy/src/com/android/internal/policy/impl/GlobalActions.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
framework fix up AOKP status (1/2)

original commit by whitehawkx

ps3: remove dependency

Change-Id: I923e05e684e8769b9fa5cad23a7da7c0e927dbe1
Signed-off-by: Jubakuba <Jubakuba@gmail.com>
App Resolver  (1/2)

Removes the 'Alt App Grid' option and makes a 'compromise'
app-resolver as default.  The new resolver retains the look
of JB, but adds the old 'one click' functionality of ICS.

picture here:
https://twitter.com/Dont_Panic_Zaph/status/275336603424149504

Change-Id: Iafa3283a165dd55f61e6ea32fbd2a91459399464
Signed-off-by: Zaphod <mwilson@acesappraisal.com>
App Resolver - fix NPE

Derp Factor = ++Zaphod.

Change-Id: I1ced9eed198a30bf3c54e6926957f93a4915599e
Signed-off-by: Zaphod <mwilson@acesappraisal.com>
SysUI - Return Search as NavBar option [2/2]

See RC commit.  Bringing back search as a 'KeyCode' for
the NavBar as opposed to forcing it as a Shortcut to Google/Search.

Change-Id: Ia043ebb284e6b0ee64328d2331aff52510fd8c94
Signed-off-by: Zaphod <mwilson@acesappraisal.com>
Allow all widgets to be added to lockscreen.

Instead of this halfhearted approach, it should
be an option through ROMControl.

Make option for rc.
White Space

Change-Id: I75ee3ba85e0263f1e8f090beccaab2dbe2bbb7a4
Lockscreen: Option for Unlimited Widgets 1/2

Change-Id: I84233118664debce7f28e628eaf675c624533d0a
Signed-off-by: Stevespear426 <stephen.k.spear@gmail.com>

Conflicts:

	policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java
SystemUI: fix inconsistent recents button behavior

Change-Id: I6065ae7ba9abb680a3abd64d77bce5292a17853e
Signed-off-by: Roman Birg <romanbirg@gmail.com>
Fix space/tab confusion.

Change-Id: Ib90fcc6573fefc178592d8bb16377c18501498b5
SystemUI: fix long pressing notifications

Stops the intent from firing off when long pressing
for the menu.

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

Conflicts:

	packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowView.java

Change-Id: Iab4ecde25464033378b6ae95c1ec6d1e902d103e
SystemUI: fix pulldown header for themes

Change-Id: I3607a146a2f44dc26c1d972708779c841ef7d8ae
Signed-off-by: Roman Birg <romanbirg@gmail.com>
SystemUI: remove mStatusBarContainer to fix focus handling

Since we're killing sysui when restarting themes, there's no need
to try and be graceful about removing views, which is likely why
this extra parent view was added.

This fixes long pressing on a notification bar passing through and
firing off the click intent when the menu shows up.

Change-Id: I3f2539ee100f52a51fc270c34cde39cd312715be
Signed-off-by: Roman Birg <romanbirg@gmail.com>
Themability of battery text type

This allows to themers to change color of text style of battery.

  Patch Set 2: Fix whitespace and pre-existing formatting issues.

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

Conflicts:

	packages/SystemUI/src/com/android/systemui/statusbar/policy/SbBatteryController.java
SystemUI: nav bar menu keys as left and right dpad arrows

ps3: null check
ps4/5: more consistent implementation
	now properly hides on lockscreen if keyboard is
	still up. the arrow keys should also work with any
	navigation bar configuration that we support right
	now

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

Conflicts:

	packages/SystemUI/src/com/android/systemui/statusbar/NavigationBarView.java
SystemUI: refactor fast charge toggle

Device trees need to set a path to enable the toggle.
It will not show otherwise.

Moved all file operations off the main thread and use a
preference to save the last state so it persists.

	<!-- empty string to disable, or like: /sys/kernel/fast_charge/force_fast_charge
         it is disabled by default so devices need to add an overlay to enable-->
    <string name="config_fastChargePath" translatable="false"></string>

PS8: Lower delay to 250

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

Conflicts:

	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java
SystemUI: don't add tint to app icons or custom images

Change-Id: Ie5a4e308f10d2045f33b1621eac7870712e5d11f
Signed-off-by: Roman Birg <romanbirg@gmail.com>
SystemUI: add statusbar slider preference

Change-Id: Ibad11cd0495aa5fc2aa31e6f6c1e1cf85b8a582b
Signed-off-by: Roman Birg <romanbirg@gmail.com>
LED Notification: Force update on SCREEN_OFF

Also replace com.android.phone with com.android.contacts to allow customization.

Change-Id: I52e129e6987f17a3e92f65a96c9ad79a2b4a5a05
Signed-off-by: Gergely Szell (sethyx) <szell@hu.ibm.com>
SystemUI: ram bar and recents performance improvements

PS2: add SettingsObserver to eliminate the need for SysUI restart
PS3: tab derp
PS4: stop jumpy behavior when clicking recents fast!
PS5: more reasonable timeout
PS7: restore :)

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

Conflicts:

	packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
Recents: Fix Recents for MultiUser

Its actually the rambar thats causing the crash, running state needed
to be updated.

Change-Id: I081803e77c247fbaa6d8bf75dec889200e618f75