Status bar brightness control

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

Change-Id: I8c814003edfb204bfa4d1c8961f3f4d53bfbc1bd
Status bar brightness control improvements

- Fix status bar brightness control when on secure lock screen.
- Prevent brightness changes after notifications panel has been opened.
- Don't adjust brightness for swipes <45° from vertical.
- Stop using a VelocityTracker

reference:
https://github.com/CyanogenMod/android_frameworks_base/commit/71c97740b5404b3c0be89454e55a69c1ca8655ec
https://github.com/CyanogenMod/android_frameworks_base/commit/212c63a250b81676a89f9de145cf4f1b378b43fb

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

Change-Id: Iac4847436abf5ea13459c76aa40db3f01190aff1
Statusbar clock and date customizations

Some things changed on kitkat + our old code needed in general a bit
rework. All done with this patchset.

This commit add support for:

- Clock and date enable/disable
- Clock and date position
- AM/PM styles multilang support
- color
- Date format
- Date style

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/Clock.java

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/Clock.java

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

Change-Id: I5a640a182528cf72a7da0259d37116d4e957b39f
Lockscreen shortcuts

Conflicts:
	core/java/com/android/internal/widget/multiwaveview/GlowPadView.java
	packages/Keyguard/src/com/android/keyguard/KeyguardSelectorView.java
	packages/SystemUI/src/com/android/systemui/SearchPanelView.java

Change-Id: Icb4309db6e6cbbc926bc3c70b021f06f4f3e2121
Revert "Lockscreen shortcuts"

This reverts commit dc8e63fd55d4ce84c43223deba8ce9c95a858116.
Add GlowPadView extensions needed for lockscreeb/quicklaunch shortcuts
Fix layout of MultiWaveView and GlowPadView.

If the calculated size of the rings is much smaller than the measured
size (which is happening e.g. on mdpi 600x1024 tablets), the glow pad
appeared shifted to the right.
This happened due to the insets being calculated as difference of
available and needed size, and later on being added to the available
size. Example numbers (Nexus 4 with density forced to 160):
- computed size in onMeasure: 768x505
- scaled size in onMeasure: 505x505
- thus, insets are calculated as 131/0
- in onLayout, placementWidth (364) and max target width (108) are much
  smaller than width (768)
- thus, center is calculated as 131 + (768 / 2) = 515, thus shifted to
  the right

Fix that by not using width in the calculation, as the inset size
already takes it into consideration.
Hide GlowPadView warnings

Make message verbose and contingent on DEBUG. This has been spamming my logs everytime I touch navbar or lockscreen targets.
Lockscreen shortcuts

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

Change-Id: Id3e0e4b4b142922b4a8b8c795cbb0c7be71b0905
Revert "Lockscreen shortcuts"

This reverts commit 0210bfc4f29237631e4b91a29a6710cb91521c6f.
Quick launch shortcuts

Conflicts:
	core/res/res/values/ras_symbols.xml
	packages/SystemUI/src/com/android/systemui/SearchPanelView.java

Change-Id: I56a3675be01695754f75aa740121170d628a348b
Lockscreen shortcuts

Conflicts:
	packages/Keyguard/src/com/android/keyguard/KeyguardSelectorView.java

Change-Id: I3ebcebbca2d9f05de81799ff81bd05492b1e22d0
Revert "Quick launch shortcuts"

This reverts commit 8351e4fbeef189380322478d616d889bc95adcd6.

Conflicts:
	core/java/android/provider/Settings.java
	core/java/com/android/internal/util/rascarlo/NavigationRingHelpers.java
	packages/SystemUI/src/com/android/systemui/SearchPanelView.java
	packages/SystemUI/src/com/android/systemui/rascarlo/ActionTarget.java

Change-Id: I6adaca456d582a010b7370da208cc309dbdbbc10
Lockscreen shortcuts: fix indention
Removed clock color settings

It's useless since i'm not going to add other color settings

Conflicts:
	core/java/android/provider/Settings.java

Change-Id: I3ba1c9c2cd37dccabc7aea4c4ec5605d5f3bfe12
Fix derp

Change-Id: Id5f56f30fb53cea41792c4b7bfa674b6478b8d88
Frameworks: port statusbar notification count (1/2)

Change-Id: Id23ac43866fa7fb9043d1f598a1f88cd4fa9ab9b

update notification count backgrounds and text color to match kitkat ui

  - also add duplicates in inverted folders to keep inline with trds themeing

Conflicts:
	core/java/android/provider/Settings.java

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/StatusBarIconView.java
Bring back the status bar activity indicators for mobile data and wifi

* adds a setting for this as well as reverting the following commit:

Reverts "Remove signal/wifi activity indicator icon overlays."

This reverts commit fcc901c10bffdfb9c6b31e676dec36b47d949979.

Change-Id: I7aa85f7c8442c45d17e42cac7823dfe93e3f24c1

Conflicts:
	packages/SystemUI/res/layout/signal_cluster_view.xml
	packages/SystemUI/src/com/android/systemui/statusbar/SignalClusterView.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkController.java
Frameworks: Wakelock Blocker (1/2)

Change-Id: I38114529e535a3168ddb2135b10d7811347d7cf2
Signed-off-by: Arnav Gosain <nolinuxnoparty@gmail.com>

Conflicts:
	core/java/android/os/IPowerManager.aidl
	core/java/android/provider/Settings.java
	services/java/com/android/server/power/PowerManagerService.java

Conflicts:
	services/java/com/android/server/power/PowerManagerService.java

Conflicts:
	core/java/android/provider/Settings.java

Conflicts:
	core/java/android/os/IPowerManager.aidl
	core/java/android/provider/Settings.java
	services/java/com/android/server/power/PowerManagerService.java