Revert "Fix transparency for status bar"

This reverts commit 45dfc3ba5be9057e0db19c1a1df26b93736a2c1e.
Revert "Dirty fix for the previous commit."

This reverts commit 1cf6798a6bf0e1bead4c60e3e37038e82f3287ad.

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java

Signed-off-by: iceandfire <arhamjamal@gmail.com>
Revert "Change the way how you modify the StatusBar Color. - daxxmax"

This reverts commit c66eb5ffb4c6824ebe285c66a1f40acff31a82c7.
Revert "Re-do Transparency and color, fuck PA codes."

This reverts commit 7bb2eaf2ecfb78bc2251298a6103cf2f8cf06e64.

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/layout-sw600dp/navigation_bar.xml
	packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java

Signed-off-by: iceandfire <arhamjamal@gmail.com>
Little fix after reverts.

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

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

Conflicts:
	packages/SystemUI/res/layout-sw600dp/navigation_bar.xml
	packages/SystemUI/src/com/android/systemui/statusbar/NavigationBarView.java

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

Currently just uses the same logic/values as the nav bar. We may want to separate those out

  Patch Set 9: Fix whitespace before merge

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

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

Signed-off-by: iceandfire <arhamjamal@gmail.com>
Framework: NavBarColor (1/2)

Change-Id: I7ed579d95d921e08d8f9d0a9160605457b8c4cb3

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

Signed-off-by: iceandfire <arhamjamal@gmail.com>
SystemUI: update nav bar keyguard logic

More consistant with statusbar transparency logic.

Change-Id: Ieba5e695417f2c0a7e34805a21c7b198274ccf83
Signed-off-by: Roman Birg <romanbirg@gmail.com>
SystemUI: respect statusbar background for themes

one love

Change-Id: Iaa71bdec2b258b13b581cacb618be2a90eba3020
Signed-off-by: Roman Birg <romanbirg@gmail.com>
Include android.permission.ACCESS_SUPERUSER permission in the base API

Since we don't include this version of the su binary we need to
register this permission other wise if user installs Koush's Superuser
apk later all apps previously installed will not be granted
superuser permission as it, the permission, did not exist when apk
previously asked for permissions

This is a hack to avoid Android Issue 25906
 (https://code.google.com/p/android/issues/detail?id=25906)

Change-Id: I4bc044fa8808d7e11e8cc004f680a99d11d9b66d
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

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

PS8:
New Structure for Hiding NavBar

ps9 : Fix a few derps.
ps10 : more derps/Try/catch/ etc.
ps11 : Hiding NavBar now Marginall works.
       There are a lot of things that can break this right now.
       it doesn't recover well from toggling itself on/off and
       if you 'hide/show' the NavBar, it doesn't take to that kindly
       either.  One thing the seems have an effect is to change the
       height of the NavBar.  there is something that gets reset in
       PhoneWindowManager by doing the height change that helps.

ps 12 :  Reworked some of the logic.  Added visual hints to indicate where
the swipes should occur.  Also completed landscape (phone) orientation shift
for swipe.  Made several changes in the window layout formulas in
PhoneWindowManager so that NavBar is treated like a real overlay when
in AutoHide Mode.  Otherwise, certain windows and elements were
resizing when the NavBar was shown/hidden.

ps 13:  Add images (button/drag) from NitrozK

ps14:  Start implementation of longpress on handle to launch
       NavRing.  Fix press navbar resets hide timer.

ps 15: add timeout to settings observer
       make searchlight visile on lockscreen even if navbar hide enabled.
Mike and I think there no point in wasting a swipe on the lockscreen lets
just show it all the time since its our version of lockscreen targets. Only
thing thats weird is after unlock the navbar should auto time out and its not.
It wait until you touch outside then acts as it should.

ps 16: Fix hdpi image
ps 17: switched to 9patch's from nitroz
       added options for stretching draghandle/swipe area width (on tested on
              grouper might need tweaking of values)
       added option to make draghandle.invisible (right now if invisible wont
              register clicks, needs fix)

ps 18: moved constants to demins for overlays

ps 19:  Redo some of the weight calcs.  This basically works if you
	keep weight at 100.  not working otherwise
ps 20: Abandoned Weights, now setting Width of handle based on pixel
	calc.  Fixed 'Invisible' setting on Handle.

ps 21: Add quick tile ( needs images), fix crash when phones rotate,
       swap a division for a multiplication. Come on now Mike. ;-)

ps 22: change screenheight to screen width for landscape... still need something for tabs.
ps 23: added logic for phabs and tabs landscape width, set default width to 5
ps 24: add padding to the SlidingChallengeLayout if we hide the navbar
PS 25:  Fixed NavBar staying visible after unlock.
	Fixed IME Offset in Landscape Mode.
ps 26: This *should* fix QS Tile toggle & provide an Opacity control for
	the drag handle.
ps 27: try to reset screen size on Autohide change.
ps 28: Change QS icon to match 'Hide NavBar' icon

Change-Id: Ic4ad3d9dec139ebeee2ee1e81d97ec603116f5f9

Conflicts:
	packages/SystemUI/res/values/dimens.xml
	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/QuickSettings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java
	packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java

Signed-off-by: iceandfire <arhamjamal@gmail.com>
Fix Transparency Value not sticked with autohide

PS2: move settings TransparencyManager out of if block

Change-Id: I02f4984144867561955bf2b73291f503d6c1b1e7
Signed-off-by: kecinzer <kecinzer@gmail.com>
SystemUI: unregister ContentObserver

We were leaking memory.

PS2: move instanciating to the SearchPanelView constructor
PS3: more possible memory leaks

Change-Id: Ie9ddf00c698692f418cb8ef473dff2b1aa05135d
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Fix Searchlight showing under NavBar at Lockscreen

Ps 2:  Fix SearchLight at Lockscreen for Realz this time.

Change-Id: Ib6ebcaf84f9f9e88872b634c4939adf56021abc0
Signed-off-by: Zaphod <mwilson@acesappraisal.com>
Toggle rewrite (1/2)

Change-Id: I80ef0c3f1cbe8e0d35c7a4e4111ad22b96196963

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/layout/quick_settings_tile_bugreport.xml
	packages/SystemUI/res/layout/quick_settings_tile_ime.xml
	packages/SystemUI/res/layout/quick_settings_tile_settings.xml
	packages/SystemUI/res/layout/quick_settings_tile_swagger.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

Signed-off-by: iceandfire <arhamjamal@gmail.com>
Toggles: cleanup class and quiet down logging

Change-Id: I39f1382ee2d340a2d2676aa85e6fbc6641bb3c61
Signed-off-by: Roman Birg <romanbirg@gmail.com>
Toggles: fix initial bluetooth icon

Change-Id: I7ceb1e382dce07bd4ccca0777535e49015a16070
Signed-off-by: Roman Birg <romanbirg@gmail.com>
Keyguard: fix nasty file handle leak

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