Revert "fb: Handle navbar heights correct on dpi changes + more (1/2)"

This reverts commit 54fda4011710386b601105d238545e5aad088017.
Revert "[1/2] Base: allow to force enable navigation bar"

This reverts commit 00785e0abf686d65bd31eae54879f9214bf0bcea.
Revert "Expanded Desktop : Fix Left handed navbar during landscape mode"

This reverts commit f90dc3e43b95ba350a4ce4291a052ae2091d319c.
Revert "[2/2] Left handed navbar during landscape mode"

This reverts commit 30380331c7f24d7f167ee3a0de1e1f7d603563f4.

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

Change-Id: I5456fa375d5a9af862541d71c93555d2f6d0077a
Revert "[1/2] Base: Navigation bar height/width"

This reverts commit 0f85ef5df400dcff90068759fb0a9510500b977f.

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

Change-Id: If3131f9472b9b45fab09e0910dc8f982313098e4
Revert "NavigationBar : Customization"

This reverts commit 61941dd7b5d04af790cbaa4f902bb352a4725783.

Conflicts:
	packages/SystemUI/res/layout/mid_navigation_bar_land.xml
	packages/SystemUI/res/layout/navigation_bar.xml
	packages/SystemUI/res/values/cm_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarTransitions.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonView.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java

Change-Id: I878cf414440c9858125cf2c3261169c8681cf212
Revert "Add back navigation ring customization."

This reverts commit 38b969ba5a73f40ae56cdb48cf8f00ddf854f645.

Conflicts:
	core/java/com/android/internal/util/cm/NavigationRingHelpers.java
	core/res/res/values/symbols.xml
	packages/SystemUI/src/com/android/systemui/SearchPanelView.java
	packages/SystemUI/src/com/android/systemui/cm/ActionTarget.java

Change-Id: Ibc5e8a067707290d82b703f7a5a686618f1fcab5
fb: Slims navbar and navring customizations

add back our navbar and navring tweeks. This is a completly overworked
version compared to the one we carry about a year now. Small glitches
we had are now all fixed. As well it does not need to register extra observers
code was much slimmed down and improved.

Beside that we adapt the 4.4 navbar changes to our system so that it it
consistent with the new 4.4 UI

This patch adds:
- Navbar up to 5 buttons
- navring up to 5 buttons
- dynamic menu behaviour
- landscape navbar options as well now on tablets
- button glow color
- button icon color
- navrign and navbar user can set system or custom icons
- navbar height and width
- enable/disable navbar and navring
- actions are vor navbar and available for the whole system over SlimActions.java
	back
	custom app or activtiy
	home
	kill app
	last app
	notification drawer
	ime switcher
	power menu
	qs pannel
	recents screen
	screen off
	screenshot
	search
	torch if it is available on the device
- navring has targets for handling vib/mute/sound
- added Color class based on blk_jacks idea which first grey an icon out
  and then color it. This gives way better results. As well it fits now
  perfectly with the new 4.4 UI. Put it on a central place so that it is
  from everywhere available. notification shortcuts adapted to the new class
  place
- complete new icons thanks to kroz who has redone all for xxhdpi
- our slim special swipe drag drop press longpress options support
  like on 4.3 this two features
- a lot lot fixes as well on current google code

Conflicts:
	core/java/android/provider/Settings.java
	core/java/com/android/internal/statusbar/IStatusBar.aidl
	core/java/com/android/internal/statusbar/IStatusBarService.aidl
	core/java/com/android/internal/util/slim/ButtonsConstants.java
	core/java/com/android/internal/util/slim/ButtonsHelper.java
	core/java/com/android/internal/util/slim/SlimActions.java
	core/java/com/android/internal/widget/multiwaveview/GlowPadView.java
	core/java/com/android/internal/widget/multiwaveview/TargetDrawable.java
	packages/Keyguard/src/com/android/keyguard/KeyguardSelectorView.java
	packages/SystemUI/AndroidManifest.xml
	packages/SystemUI/res/drawable-hdpi/ic_sysbar_recent_land.png
	packages/SystemUI/res/drawable-mdpi/ic_sysbar_recent_land.png
	packages/SystemUI/res/layout-ldrtl/navigation_bar.xml
	packages/SystemUI/res/values/pa_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/ShortcutsWidget.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonView.java
	packages/SystemUI/src/com/android/systemui/statusbar/tv/TvStatusBar.java
	policy/src/com/android/internal/policy/impl/keyguard/KeyguardServiceWrapper.java
	services/java/com/android/server/StatusBarManagerService.java
	tools/layoutlib/bridge/src/android/view/IWindowManagerImpl.java

Change-Id: I96f42b5db726b2f85071263c3b88e138d7aedd44
fb: correct power menu navring icon

had a small jump in it when activated

Change-Id: Ibfb3fc1dbdc6b4d95f366df85dea0d2dfa6f404c
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/

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

Change-Id: Ib5ee29f1b30cff50d4c64f059259666a7618c090
fb: color system icons on navring like the other by default

otherwise it does not fit with the default rin targets

Conflicts:
	packages/SystemUI/src/com/android/systemui/SearchPanelView.java

Change-Id: Ief15a39b30517bb182bdb7d33cb9d87a8f0ecbad
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
fb: cleanup and let the navring stay and not

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

Change-Id: I73b36ef7a09dc08615fef522a8913a53b27b4763
fb: enable navbar for hw key devices

we moved this part into PhoneWindowManager which controlls the navbar.
Due that we allow on all devices a navbar the check on PhoneStatusBar
is not needed and prevend the navbar on comming up on hw key devices

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

Change-Id: I836fde1476caff1ca527299b2dacd260928db197
Upstream updates from AOSP relevant for Slim navbar

Change-Id: Ia8e62c154f5cc64fada5eead8b76c9bdc7d8d5d7
fb: slightly adjust navigationring background drawable size

for custom icons to fit the system icons

Conflicts:
	packages/SystemUI/src/com/android/systemui/SearchPanelView.java

Change-Id: Ieb4bbb6f2378a18bd03d95761b6f871fd950d1df
fb: navigationbar use always slimactions and add contentdescription

No need to use the AOSP implementation at all...we can send all actions
over SlimActions....so remove AOSP implementation and clean up

As well add contentdescription for accessibility events like talkback
for ppl who are not able to see. Gives the user all information back
needed.

Change-Id: I8f82f1139f1248d9cf8e762d6669bb75ae4e205f
fb: small cleanup and fixes in navbar transitions

this commit fixes several things

- cleanup: no need to go every time trough all calculations if back
button is not present

- force to set alpha value for backbutton on disableflag
changes (merge derp from 4.4.1 merge)

- new introduced workaround from google to animate the altbackkey->backkey
on password lockscreen should not depend on home button view existence and
should only call for the respective disable flags which are always present
from the system. As well which is needed for our navbar call the animation
values from whatever button is existend which behaves like home (so all buttons
only recents and back button not)

whatever still to do if the user uses password as keyguard method
google introduced a workaround to give the altbackicon->backicon
same transition then all other icons....but this workaround is not
really good working and has off timings compared to the other buttons.
Will be fixed in a seperate patchset and should be submitted back to
google as well.

Change-Id: I2c3135b7eb3b87042b757c422f77ef9f5ed280a3
fb: add theme switch (TRDS) to navbar and navring

and show toast if a mode is running wich does not support
lightsensors

- rebase

Conflicts:
	core/java/com/android/internal/util/slim/SlimActions.java
	core/res/res/values/slim_strings.xml
	core/res/res/values/slim_symbols.xml
	packages/SystemUI/src/com/android/systemui/SearchPanelView.java

Change-Id: I171b0098d73090f76717b4180ab7989328b97382