geofence: Low power geofence HW implementation

HW implemntation overwrites the SW implementation

Change-Id: I8762b0b2e3c5001622f9c8aa2a845ee64104faa3

Conflicts:
	services/java/com/android/server/LocationManagerService.java
fb: refactor QuietHours code

thanks to ivisiblk for the idea

Change-Id: I56e2b4a1945a4b93251b9937b701c86168b732b4

Conflicts:
	services/java/com/android/server/NotificationManagerService.java
	services/java/com/android/server/VibratorService.java

Conflicts:
	services/java/com/android/server/NotificationManagerService.java

Conflicts:
	services/java/com/android/server/BatteryService.java
	services/java/com/android/server/NotificationManagerService.java
	services/java/com/android/server/VibratorService.java
Quiet Hours Ringer (2/3)

Change-Id: Id58ffb24f0d0d57d8446265c899ec4124fe00c70
Return: Custom Carrier Label [1/2]

PS 3 : Fix code style
PS 5 : Rebase
PS 6 : Fix derp

Change-Id: Ic865e3c5204ab05f1e9ab0e081a54b155b577086

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

Conflicts:
	core/java/android/provider/Settings.java
Active display [squashed] (1/3)

Change-Id: I709196b232609a1dab8e9d7fdd0a6a655d487d93

Conflicts:
	core/java/com/android/internal/widget/multiwaveview/GlowPadView.java
	core/res/res/values/cr_symbols.xml

Conflicts:
	core/res/res/values/cr_strings.xml
	core/res/res/values/cr_symbols.xml
	packages/SystemUI/res/values/cr_dimens.xml
	packages/SystemUI/res/values/cr_styles.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

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

Conflicts:
	core/java/com/android/internal/widget/multiwaveview/GlowPadView.java

Conflicts:
	core/res/res/values/oct_strings.xml
	packages/SystemUI/AndroidManifest.xml

Conflicts:
	core/java/com/android/internal/widget/multiwaveview/GlowPadView.java
	core/java/com/android/internal/widget/multiwaveview/TargetDrawable.java
	core/res/res/values/oct_strings.xml
	packages/SystemUI/AndroidManifest.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
FULL ActiveDisplay Fixes/Options by codexc

ActiveDisplay: fix for disappearing notification bar
0c7588324f Browse code
maxwen authored

Active Display: Fix Derp
c6031125d0 Browse code
Der-Schubi authored

Active Display: Sort notifications by newest to oldest …
7674882824 Browse code
0xD34D authored

Active Display: Add some synchronization …
b3b33db6a6 Browse code
0xD34D authored

Omni: [1/2] Base: Fix pimp up ActiveDisplay …
434928a07e Browse code
micku7zu authored

pac : [1/2] Base: Pimp up ActiveDisplay …
b9e91f7a88 Browse code
Der-Schubi authored

Active display: Ability to turn off the screen, when a not clearable …
d047508943 Browse code
Der-Schubi authored

Change-Id: I90d74a9961169251ceac955e78803cdd369a949e
follow to kitkat changes their new fixes for active display

pulled from ChOS credit for 0xD34D

follow kitkat changes and fix ActiveDisplay never disabled after using turn off display option

pulled from omni , credit for Squadzone

using another logic to determine, when need to hide Statusbar and Navigationbar
we dont want systemui visibility reset if lockscreen still enable and ActiveDisplay force to Turn Off

Correct ActiveDisplay visibility when launch Ongoing Notifications

fix Back button navbar cant work on some conditions

since AD detect User Activity, we dont want to override UserActivity inside View, so do only if AD visibilty are Gone

also add patch to keyguard, do not reset if ActiveDisplay visibility Visible
taken from Lockscreen Notification by David L.-W <david.leppla.weber@gmail.com>

Change-Id: Ia4c1aa78e0ab2067cc071036cc8723d9e1ccf893

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
Base: Disable proximity sensor when screen goes on in ActiveDisplay/PocketMode.

Active Display (in Pocket Mode) currently only switches off the proximity sensor in some cases.
If the user switches on the screen itself, the sensor is left running. This change
stops the sensor as soon as the screen goes on. Active Display already started the sensor each
time the screen goes off.

PS2: In the mode that turns the screen off again when the device is pocketed,
the sensor stays on until you leave ActiveDisplay.

Change-Id: Id7afcd858f341ad929606d302c5741efa99a7c6f
[1/2] Base: ActiveDisplay (rework interface)
really fix AD buggy stuff
tested with Music play
tested with No lockscreen
tested with faster screen turn off
check all sensor going off if AD not Showing or Disabled
fix notification posted/removed
make AD using System Window so it will covered all screen
fix Navbar translucent if Lockscreen Blur merged :P
now using Rounded Image
also introduce new RoundedImageView widget
 courtesy of @vinc3m1 (thanks)
fix build
fix sometimes screen turn off after unlock because screen timeout (hopefully)
now using new parser to get Notification data (thanks @Achep for the parser)
rework lightsensor manager
add NotificationUtils
fix brightness sometimes not changing

add support applications privacy mode (will not show content message if enable on each app)
see http://jira.omnirom.org/browse/OMNI-600

allow bypass AD if no notification and lockscreen is secure
see http://jira.omnirom.org/browse/OMNI-594

fix proximity always enable after adding new feature allow bypass AD
fix parsing notification data from app with targetSDK < 17

fix excluded app value (no body notice this broken since AD merged into OmniRom xD )

add option to allow bypass AD
make AD multiuser support

Change-Id: I1fc3047496cce71cefc1718b8ef3f4c4fc1605eb

Base: fix ClockView ActiveDisplay

why no body report this bug?

this happen since AD merger into omnirom for the first time
i found this bug after using 24 time format LOL

Change-Id: I85be84914cc8210d9b0612994a4c25a5c6bfdeb6

Change-Id: I1fc3047496cce71cefc1718b8ef3f4c4fc1605eb
Picked from CarbonDev

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/values/oct_strings.xml
Grrr addtition that didn't go through... #noob
Show default profile name if no profile exists

Change-Id: I6b651d6b552ab3caf30102d289469eaf68f58a0e

Conflicts:
	packages/SystemUI/src/com/android/systemui/quicksettings/UserTile.java

Conflicts:
	packages/SystemUI/src/com/android/systemui/quicksettings/UserTile.java