fb: fetch navbar glow color from color.xml

better for new theming engine which will come in future

and now I will start doing again usefull patches lol. Just
needed to do something other.

Change-Id: I35dde45e47c59a2407c191d0077f0adb91f32381
Fix: external storage problem NavRing and NavBar applications

If the user binds an app which is located on the
external sdcard and is rebooting the button icon
will be left blank because the navring/navbar is already
constructed before the sdcard is mounted. To avoid
this we listen to the app available intents.
If it is not available the ring target/navbar button shows the none icon.
 When available it shows the
correct app icon. So that the user can clearly see
this app is accessable or not. As well when the
user goes into mass storage mode or does
unmount the sdcard or whatever case could
happen that the application is not there.

Reference:
https://review.slimroms.net:8443/#/c/12364/
https://review.slimroms.net:8443/#/c/12363/

Change-Id: Ib5ee29f1b30cff50d4c64f059259666a7618c090

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
fb: color system icons on navring like the other by default

otherwise it does not fit with the default rin targets

Change-Id: I78ba40dc3d71ee5cd3dd0d484bee91c17090f68b

Conflicts:
	packages/SystemUI/src/com/android/systemui/SearchPanelView.java
fb: controll user case when user freeze or uninstalls or reinstall apps

till now on navbar navring or powermenu it still shows the app icon
or it does not show any icon after reboot. For UX it is way better
to clearly show the User that she/he has disabled or uninstalled an app
which is binded. If this is the case the Icon changes to the error
none icon....on PowerMenu as well in settings and Error string will be shown
So the user clearly know that he either needs to bind this action to another
one. Or to restore the accidentaly removed app. If the user restores the
Icon of course it shows immediately again up

As well I removed the observer for shortcuts widgets completly and moved
the observing values into the already existend PhoneStatusBar observer.
So we do not have currently on all the systemUI another one then the
actual from AOSP

Change-Id: I25623dc12ba4c1ae6ee6a106aa903d3c28c92a92

Conflicts:
	core/java/com/android/internal/util/slim/AppHelper.java
	core/java/com/android/internal/util/slim/ConfigSplitHelper.java
	core/java/com/android/internal/util/slim/PolicyHelper.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
fb: give the system proper values back if it is a hw key or navbar device

as well allow this behaviour to be overwritten by system.prop like
it is suggested by google.

Needed to show eg the menu button in apps correct on the different
device types

Change-Id: Ic6145fb70ec9b67802d6d7a5ce70c21f3452cdcd
fb: add big menu support back

some in our team as well user want it urgently so we do it for
now till new Slim recents is back then we handle it so or so in
another way and do not need the recents button anymore and can
use the big menu button as permanent and get rid off the smal
3dot completly,

Change-Id: I785b83140725f3f3e8b274081d764a0e35b8946c
fb: allow navring to show without assisten application

this commit adresses two problems

1. If the user does not install google now eg the navring does not
show up anymore even when other targets are assigned. Due that we moved
the disable/enable controll completley into searchpanelview which
calls DelegateHelper to disable it we just can remove the check
here in BaseStatusbar

2. On camera widget the navring is disabled and gets enabled afterwards.
This is of course a problem if we do not have targets assigned at all.
To fix it check for existend targets on the navigation ring

Change-Id: I1aa83fc8274995d9c1e9b88c76977977589502a6

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java
fb: cleanup and let the navring stay and not

dimiss on targetchange....user seems to like it more
this way.

Change-Id: I73b36ef7a09dc08615fef522a8913a53b27b4763
fb: do not inflate twice

small derp does not effect anything but as we know inflating is slow

Change-Id: Ie31a5b9dbcab4141aac1b96dbec294d53f818e2e
Frameworks: notification drawer background (1/2)
fb: notification transparency (1/2)

so after keyguard is mostly done let us start notification drawer
and QS. First one custom background.....either color or picture
with custom alpha and ability to set a landscape picture seperatly
(landscape phone only)

Compared to the 4.3 included version completly recoded and better
integrated. No idea what I thought 1 year ago on the old implementation

cheeers

Change-Id: Id7d0f718acd05d34fab57bb250c29ed944bdcd58

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
Revert "Add Power menu options Author: DvTonder"

This reverts commit 93d7546ea3043b13a88ac50a830d7776e2ea74c1.

Conflicts:
	core/java/android/provider/Settings.java
	policy/src/com/android/internal/policy/impl/GlobalActions.java
	services/java/com/android/server/wm/WindowManagerService.java
Frameworks: Advanced Power Menu

Change-Id: I1c9af874a340e4fccbef09a5879f0b718d6998dd

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values/slim_strings.xml
	core/res/res/values/slim_symbols.xml
	policy/src/com/android/internal/policy/impl/GlobalActions.java
	services/java/com/android/server/wm/WindowManagerService.java
fb: Slims new Power Menu (1/2)

gmillz already prepared it and I finished it now. Idea was to be more
flexible on the power menu but at the same time not complicated.
So we adapted Power Menu to our dslv system which allows to sort
drag swipe etc the entries.
So user can now have the power menu how they like it.
As well custom apps or activities can be added

So currently:
airplanemode
custom apps
screenshot
reboot
sound
power off

are available as options to add or remove or customize with our
easy dslv settings

As well we are only using our central classes for it....means adding
whatever shortcut is mostly only a 10 line change in future

Change-Id: Ibec6627538408f29fc328808fdc51b82e9827fd0

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values/slim_symbols.xml
	packages/SystemUI/src/com/android/systemui/SearchPanelView.java
	policy/src/com/android/internal/policy/impl/GlobalActions.java
fb: support new dslv

see Settings

Change-Id: I0fea545317d6a3f9cdebcd395f7b1f21ff3c4ccb
fb: system wide immersive mode aka expanded desktop thanks to

Danny and Kiril for the base

and kroz for the graphics

At least it is expanded desktop mode like on 4.3 and before but using
not the nice new immersive mode from google which was introduced with 4.4
Means everwhere it is swipable in from the top or bottom depends on
if the navbar or statusbar is existend. As well it respects our other
features like 0dp settings for navbar in landscape or portrait etc.
The option to choose the mode what the user want to hide we removed
due that it is now absolutly not needed. 1. it is swipeable now
2. The user can disable navbar like he want in navbar settings if
urgently needed

As well added shortcut support for navbar navring and powermenu

Change-Id: I37e8f9571cf622154d347b7eabd13bffc99ae187

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values/custom_strings.xml
	core/res/res/values/slim_symbols.xml
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Quicksettings customizations Slim style

First thank to CM for the general base idea.....but we changed, fixed a lot
as well the UX is not the best on original implementation. It is way to much
to list all down what we changed and ehanced and fixed...so just a small overview

Whatever this patch adds following tiles:

Airplane mode
Battery
Bluetooth
Brightness
Go to sleep
Location
Torch
Lock screen
LTE
Mobile data
Orientation
Settings
Sound
Sync
Wi-Fi AP
Wi-Fi
User switcher
Network mode
NFC
Screen timeout
Quiet hours
Volume
Expanded desktop
Music - new nifty one ;)
Reboot

and the usual dynamic tiles which are always dynamic now. As well we put all setup
options into one screen.

as reference see

http://s1.directupload.net/file/d/3461/phhimlo7_png.htm
http://s7.directupload.net/file/d/3461/fvaxgins_png.htm

and video
http://www.file-upload.net/download-8362155/drawer.mp4.html

PS2: QuietHours broadcast
PS3: Context derp.
PS4
- revert QS battery tile implementation and move it into new
  Battery tile
- move click action to longpress on alarmtile for more consistent
- collapse qs for location tile to show the confirmation dialog
  when turning on
PS5: change sleep screen icon back to our power icon and add longpress
     action to open power menu
PS6: rename GpsTile into LocationTile and do not remove it on devices
     without GPS due that location is always available over wifi as well
     minor icon corrections
PS8:
- added expanded desktop
- added Music tile
- minor fixe
PS9:
- tweek the music tile...check the video
http://slim.mimic.ca/images/music_tile.mp4

PS10:
- better controll of the picture stream on the music tile
- send a broadcast if no bindable music callerId is present
  to force music player to start
PS11:
- fix location tile
PS12:
- add lincenses and changed on some tiles the click and lonpress behaviours
  to be consistent
PS13:
- tweek screen time out tile and added never as option to it
PS14:
- added reboot/recovery tile
- added text color
- tile quanitity per row including text resize
- added tile bg color
- added tile bg pressed color
- added tile bg alpha
- added langscape duplicate or not option
- some tweeks and minor fixes
PS15:
- remove depreciated code
- reboot tile add a small delay before calling final reboot
- remove added padding....not needed any more with the new style
PS16:
- better settings support
PS17:
- add more dynamic tile layout to handle better 3,4,5 tiles in a row
PS18
- wifi tile as well sorry

custom tile not sure if we do in initial version...lets see. Settings is a lot
work due that I want to change a lot on our old version

Other then that it seems to be done now :)

so lets go doing the settings lol

Change-Id: I41c4e06198b0849dba3eefa6f05536d606b49d3b

Conflicts:
	core/java/android/provider/Settings.java
	core/java/com/android/internal/util/slim/DeviceUtils.java
	core/res/res/values/slim_symbols.xml
	packages/SystemUI/res/values/slim_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsTileView.java
Remove a couple of tiles and fixes