History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
def8c8da6c32b1f0c9607f6563b93a1702178056 18-Sep-2017 Jason Monk <jmonk@google.com> Refinement of auto-dimming nav

- Make dimming only happen for interaction with nav
- Extend time to dim
- Shorten time to start dimming by same amount.

Test: visual
Change-Id: Ieb5b31bacdde9ce1952601ad65cff2d54386dd0f
Fixes: 65694001
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
dd68a88a51d2ddb7d7932b41cfdc2124ddc8a3e5 13-Sep-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Do not play sounds when unlocking from AoD." into oc-mr1-dev
cecc7c233a298f533f28ce7e2792026b3427680e 13-Sep-2017 Lucas Dupin <dupin@google.com> Do not play sounds when unlocking from AoD.

Playing tap target sounds when unlocking from AoD
make them overlap. Let's skip taps and only play
the "unlock" sound.

Change-Id: I381e13604c61938ceceac903a8e2a52bf9192bbe
Fixes: 64411995
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/ExpandableNotificationRowTest.java
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
f4849e9848932462e3002840ad4289829b629746 11-Sep-2017 Zhi An Ng <zhin@google.com> Merge "Check mKeyguardUserSwitcher for null" into oc-mr1-dev
8e32aa1fc01d650dffc6a42559ecff1393b69d46 11-Sep-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix nav bar color while QS customizing." into oc-mr1-dev
2ade51b5ae652e3bc9b31ae4defdeb9503846933 08-Sep-2017 Ng Zhi An <zhin@google.com> Check mKeyguardUserSwitcher for null

Bug: 65397789
Change-Id: Iaae968fae65182681492f635e9b09a4d15dcf897
Fixes: 65397789
Test: manual
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
ed376a36a3b33d66f532d72e1e809757e0dde90b 07-Sep-2017 Winson Chung <winsonc@google.com> Alternative fix for preventing PiP from screenshot sharing.

- Revert 942a85c6d608dd6a4a31937fe0b57ae43105d5b2
- Use a more specific fix for the triggering of PiP from the SysUI
screenshot share intent.

Bug: 63984385
Bug: 63581685
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: Click share on the screenshot action, ensure activity below does
not enter PiP
Change-Id: Id8041d50dd429030c20940dca19e5c62bbc0c6a4
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
73112d39ea5d352c04f38b91ae06a31f7bbe147b 06-Sep-2017 Jason Monk <jmonk@google.com> Fix nav bar color while QS customizing.

Test: visual
Change-Id: Ida232817ea1f4419264c3befaa2d14d763fc49a3
Fixes: 64273179
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
a3150625ecc245a81070eb61e4b76d14b8d11417 30-Aug-2017 Jason Monk <jmonk@google.com> Don't touch auto dim on app change

Test: manual
Bug: 63630024
Change-Id: I134aa2695bad36606588ca3e52685826f25ea306
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
c2beef51306e8916f481218c449b9759ce017c09 30-Aug-2017 Jason Monk <jmonk@google.com> Auto dim the nav bar to help prevent diff aging

Test: runtest systemui
Bug: 63630024
Change-Id: If2a6c0934f8751f82c027dbb3b5f103a34dc78d4
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
3ea1e3d57dd62c758e8c1ec58e974fb7fd4b7873 26-Aug-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add API to disallow entering PiP when launching a new activity" into oc-mr1-dev
77af296764e65448e49f2e920f44103f004e7a0c 26-Aug-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Revert "Support keyboard long-press on notifications"" into oc-mr1-dev
464d0d9b1de2a8c881c7d5d41fe7c0f5c0f5d28e 26-Aug-2017 Selim Cinek <cinek@google.com> Revert "Support keyboard long-press on notifications"

This reverts commit 2ca798932ea2945184df1c5500b5b9f08af9af55.

Fixes: 65061056
Change-Id: I88bcb549b9e76958d280625a96796791b6f29060
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
02f8fa9603e7e8d9071c26e64acbccac4431745a 25-Aug-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fixed that the status icons were showing in the camera" into oc-mr1-dev
f7e03e1a9e28e7f631509de4fe2c26f24b584af1 22-Aug-2017 Winson Chung <winsonc@google.com> Add API to disallow entering PiP when launching a new activity

- Use this API when launching the camera from a double tap gesture where
the user expects the camera to start for immediate use.
- Fix missing case of restoring the enter pip state.

Bug: 63916952
Test: Double tap to launch the camera, and ensure it does not trigger
the current activity to enter PiP (if it supports it)

Change-Id: I2acf44984bcc57dff75701d0e9cbd6b798a97cd8
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
3a49ba2e402701170a61f18632652d1a9379cf15 10-Aug-2017 Selim Cinek <cinek@google.com> Fixed that the status icons were showing in the camera

When launching to quicksettings, the camera icons showed
above the camera, clashing with their UI

Test: launch camera (locked) and click on galery
Fixes: 64317909
Change-Id: I4ef68963af11f6d0be739c79cdf352ba35d9ece0
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
e7c9d8f905c2d3575502533d39866cc923ea14cc 24-Aug-2017 Geoffrey Pitsch <gpitsch@google.com> Merge "Support keyboard long-press on notifications" into oc-mr1-dev
130d850614b4ace865a6aa196284dd0be4b95a61 24-Aug-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add extensionController based on PackageManager FEATURE" into oc-mr1-dev
2ca798932ea2945184df1c5500b5b9f08af9af55 18-Aug-2017 Geoffrey Pitsch <gpitsch@google.com> Support keyboard long-press on notifications

ExpandableNotificationRow now handles long-clicks for keyboard support.
SwipeHelper calls performLongClick to trigger the listener on the row.
Now that the View listens to long clicks, SwipeHelper cancels
long-presses on the View when it see touch down events, so the event
doesn't get duped in the touch case.

Bug: 34840327
Test: manual
Change-Id: Ibeb93507781443d6b2dac209afd889b1d8d54aeb
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
bac4b7d1b1f3b2b43136914c6f86702eb24d956f 22-Aug-2017 Lujiang Xue <rogerxue@google.com> Add extensionController based on PackageManager FEATURE

Bug: 64818339

Test: make and flash on 6P and headunit, verified in car mode the phone keep phone status bar, and on headunit, it use car status bar all the time
Change-Id: I6b3de99f4c21a50eb8521bf61f640f12cd6c3f02
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
efeb2cf94349656476c991614a19c3aec8a8ef24 24-Aug-2017 Selim Cinek <cinek@google.com> Merge "Fixed an issue where isFalseTouch could be queried" into oc-mr1-dev
980a44e69c45b9271fa8b8c6da1e2097cda564aa 23-Aug-2017 Selim Cinek <cinek@google.com> Fixed an issue where isFalseTouch could be queried

We shouldn't forward any touches if we're not on the
lockscreen.

Test: drag down, turn of the screen
Change-Id: I90acdd7e57322227042b98741721fec977b80f97
Fixes: 63165400
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
b9afae2e50c0240ee103ab44fad13b75aef985b6 21-Aug-2017 Adrian Roos <roosa@google.com> AOD: Only play wakeup animation when actually waking up

Fixes an issue where the wake up animation could play when going to sleep,
if the screen turning on for AOD happened after the finishing going to sleep.

Change-Id: I6b00aaefb672a630f43ca229d6cc66d12bc4205c
Fixes: 64814671
Test: Pull up app launcher, turn off screen, verify AOD does not blink.
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
ba7ca590afe9d99d93e6b81b0185b4b349476091 15-Aug-2017 Adrian Roos <roosa@google.com> FingerprintController: Make sure to reset the fingerprint mode when going to sleep

Fixes an issue where the fingerprint controller could be stuck indefinitely, causing
the status bar to be in the SHADE state instead of the KEYGUARD state.
Now reset when going to sleep.

Also adds logging.

May also fix a second bug where the scrims were stuck in a bad state.

Change-Id: I55d456c5d157f92758267f684de2bd216ef07d94
Fixes: 64598807
Bug: 64594986
Test: mp sysuig; unlock with fingerprint; verify transition still works
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
d180d76305ef77ae170c6242b848694cb9e18fb9 16-Aug-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add method to cancel StatusBar touch" into oc-mr1-dev
637323131ab73e7dca0c55b718be6644db41eb55 16-Aug-2017 Kevin Chyn <kchyn@google.com> Add method to cancel StatusBar touch

Fixes: 64611899

Test: manual
Change-Id: I80f458f0365d9634c5f360793def6f673777473c
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
9c4faa85f1bc4ffc2aa949da7b5d8439f4c638a2 15-Aug-2017 Jason Monk <jmonk@google.com> Fix race condition crash

1 line fix
Lots of lines for test

Test: runtest systemui
Change-Id: I90b006b5d9c02025ecc600c2f10014a96cbf33f8
Fixes: 62573587
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
27106b97b3db88a2460b582fa61b5acc8c30fdd1 07-Aug-2017 Adrian Roos <roosa@google.com> Merge "AOD: Fix launching notifications from occluded AOD" into oc-dr1-dev
am: 9f3bac52ee

Change-Id: I8c17429ce2b79a3e14e7b6cbabf7b377ace44718
91ffdc4194181f17e74c1faef4cb002274f04a75 04-Aug-2017 Adrian Roos <roosa@google.com> AOD: Fix launching notifications from occluded AOD

Fixes an issue where launching notifications from AOD when a SHOW_WHEN_LOCKED
activity was showing did not work because the bouncer got dismissed.

After that was fixed and the bouncer showed, the launch transition did not
work because the panel was not collapsible. Instead of waiting for the panel
to collapse, just start keyguardDone directly if not collapsible.

Change-Id: I8813f91c741da372c9cb559797f4dc0fe8578d8c
Fixes: 63686192
Test: Disable TrustAgent if enabled, launch maps navigation, get notification, double tap on notification and/or actions. Verify Bouncer shows and unlock works.
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
e2038e5709717d780df014d3ababc1d920baaf16 04-Aug-2017 Adrian Roos <roosa@google.com> Merge changes I901908d9,Iac9835ad into oc-dr1-dev
am: 47aac56746

Change-Id: I6e90dd7720b41c22bd7f87114e3854d028be0346
47aac567468fefd5d71c417b29d567b7163fbdeb 04-Aug-2017 Adrian Roos <roosa@google.com> Merge changes I901908d9,Iac9835ad into oc-dr1-dev

* changes:
AOD: Fix RemoteInput from dozing
AOD: Fix janky launch transition from AOD2
61676aa7f4fe814b22c9beaed298f3ee13cb7b7d 03-Aug-2017 Adrian Roos <roosa@google.com> AOD: Fix RemoteInput from dozing

Launching remote input from doze was broken because:
- We reset the keyguard, calling showKeyguard and clearing the states when stopping to doze
- updateIsKeyguard cleared the state; instead clear it now when we actually show / hide the keyguard

Change-Id: I901908d96ba93a49e4104b622bdd5ca604a8e392
Fixes: 64335172
Test: Receive message on AOD2, click Reply, verify it opens reply box
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
33fa84029832a80fee88a9cdfbae405fe27abd5d 04-Aug-2017 Adrian Roos <roosa@google.com> Merge "AOD: Add support for dimming in software" into oc-dr1-dev
am: b2107c9b56

Change-Id: Ic3cf031a067ae6221ae9e8fb3acdcd1625dfa7bc
6d5ebb7b7056548479a4a4416ce07aad919e819e 03-Aug-2017 Adrian Roos <roosa@google.com> AOD: Fix janky launch transition from AOD2

Fixes the transition that happens when when a notification is launched
from AOD2 and the keyguard can be unlocked without going through the
bouncer.

Change-Id: Iac9835ade42be4ecf02ee7430cf76d05fc006361
Fixes: 64164248
Test: Disable lockscreen security, turn off phone, receive SMS, double tap; verify no jank
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
c8e29e78863784037670f56e48464924b7f960ea 03-Aug-2017 Adrian Roos <roosa@google.com> AOD: Add support for dimming in software

Some devices cannot dim low enough in hardware in low power states.
To work around that, keep the front scrim at higher opacity when needed
to simulate lower brightness.

Bug: 63995944
Test: Configure scrim in config.xml; use device in very dim light at night, observe AOD is sufficiently dim.
Change-Id: I92fffedeea89b9327d76dfb184c5c761364ead11
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
1a9c0c37aad35ffbb714e36b320699f10f7c12d8 03-Aug-2017 Adrian Roos <roosa@google.com> Merge "Assist: Only call lockscreenShown when it is actually shown" into oc-dr1-dev
am: bc3c1d0170

Change-Id: I598d82fcd14702151a924dd481fa067613c76b0e
bc3c1d0170992c584b569ad689974be84a2b1c35 03-Aug-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Assist: Only call lockscreenShown when it is actually shown" into oc-dr1-dev
4e9fa9d795cb3c3d932d5452a497adc8b04553ea 02-Aug-2017 Adrian Roos <roosa@google.com> Assist: Only call lockscreenShown when it is actually shown

Fixes an issue where lockscreenShown called during onStartedWakingUp. Instead,
we now call it only when the lockscreen is actually shown, not when the layout
is requested for doze.

Change-Id: Idd196bf4fd5027e64a872ac8c0387531e8f59606
Fixes: 64141781
Test: Trigger Elmyra from AOD, verify Assistant shows.
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
13b17b29905c33a370989a80722b2f920aaa4ae5 31-Jul-2017 Adrian Roos <roosa@google.com> Merge "AOD: When prox covered disable touch during pulse instead of aborting" into oc-dr1-dev
am: 3cace2a148

Change-Id: I94e9f30fa3f56b56c140f834674d38b776c8ed21
3cace2a1482784ace8b8f732bfbb646b9ef612df 31-Jul-2017 Adrian Roos <roosa@google.com> Merge "AOD: When prox covered disable touch during pulse instead of aborting" into oc-dr1-dev
37642e83ab0f7d9269dd1176393355a9787864d3 28-Jul-2017 Adrian Roos <roosa@google.com> Merge "AOD: Fix more flickering" into oc-dr1-dev
am: f2c8a24f56

Change-Id: I8027fe0d4050ca906c4e8973e9c5a9ad0ffa802c
a6c03f8d27cf6239e318e815dd12e2eed5d300a4 26-Jul-2017 Adrian Roos <roosa@google.com> AOD: When prox covered disable touch during pulse instead of aborting

Fixes a UX issue where covering the prox would abort dozing. This
was done to prevent falsing and save power, but in practice results
in a frustrating experience when the proximity sensor is covered
transiently when reaching for the device.

Instead, just ignore touch while the sensor is covered.

Change-Id: Id70f8605c6c7a37288a383d587025bb9b4191b42
Fixes: 64007762
Test: Trigger AOD2, cover sensor. Verify phone stays on but double tap does nothing.
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
a5c6322dc5ad01d05560182651d4af84d32c2fc5 27-Jul-2017 Adrian Roos <roosa@google.com> AOD: Fix more flickering

Fixes an issue where waking up with fingerprint would not work correctly
if the keyguard was not locked.

Also fixes flickering when triggering the Assistant on AOD.

To achieve the above, also ensures that whenever the scrim is visible, the status bar window is expanded.

Finally, log the alpha and tint of the scrims to systrace.

Fixes: 63983663
Fixes: 63065774
Bug: 63531607
Test: Disable power key locks immediately, trigger AOD, unlock with fingerprint. Verify no flicker; Trigger Assistant from AOD in various scenarios. Verify no flicker.

Change-Id: I0db2938afdde23c1995f6ac905d4a6abdf25cdec
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
bbc80d97888aef8f988b7ef1e8725c45555f42cc 27-Jul-2017 Selim Cinek <cinek@google.com> Merge "HeadsUpManager: escalate via wakefulness lifecycle instead of broadcast" into oc-dr1-dev
am: 02be5d1ddd

Change-Id: I0e3d90ebb299cae9268f3d49820776bb7f309991
02be5d1ddde77b01d79231dc01838ce81cf8bf45 27-Jul-2017 Selim Cinek <cinek@google.com> Merge "HeadsUpManager: escalate via wakefulness lifecycle instead of broadcast" into oc-dr1-dev
0dbe7df15e2efe1c713c00a4ae9c3ef0ff97df6f 27-Jul-2017 Adrian Roos <roosa@google.com> Merge "AOD: Fix wakeup transition jank" into oc-dr1-dev
am: 6efe486397

Change-Id: I016efc215fa8fcf66a814f7cdf25a8ae0cc13e75
6efe4863973a3fd877cfcbe3a850021fb3bdf09e 27-Jul-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "AOD: Fix wakeup transition jank" into oc-dr1-dev
3a5550a3be11555d2eec49f97589a6698c605a74 27-Jul-2017 Lucas Dupin <dupin@google.com> Merge "Add theme variables to SysUI dump" into oc-dr1-dev
am: 4451b6ae19

Change-Id: Ia176aeafa9c9e2d0b979a472bb444657b4417ab9
4451b6ae1930c6d02ea49a4214f894df12147cb3 27-Jul-2017 Lucas Dupin <dupin@google.com> Merge "Add theme variables to SysUI dump" into oc-dr1-dev
3bad9a6caf99031eb6cef2f437ca60e6723bc60a 26-Jul-2017 Adrian Roos <roosa@google.com> HeadsUpManager: escalate via wakefulness lifecycle instead of broadcast

Fixes an issue where heads up notifications were escalated too late,
which caused notifications not to show on ambient display if they came
in after the device started dozing but before the SCREEN_OFF intent came
in.

Instead, we now escalate when we start going to sleep.

Note that SCREEN_OFF is dispatched on the wakefulness lifecycle, not the screen
lifecycle.

Change-Id: Ied73161d1007d1c65c31e8c5a6f660124a1f4385
Fixes: 63992199
Test: Receive notification right when the display turns off. Make sure AOD does not show in a weird state.
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
79150c22e6a6d6ae19b6d88604e424c0f7a290cf 27-Jul-2017 Adrian Roos <roosa@google.com> Merge "AOD: Make sure to update visibilities after instant expanding" into oc-dr1-dev
am: 4bb2f8e9fb

Change-Id: Ica37d75f7e45ad418113196b077fa4244512adc4
4bb2f8e9fb25b41fc5dc963b1c9379caeb7ccade 27-Jul-2017 Adrian Roos <roosa@google.com> Merge "AOD: Make sure to update visibilities after instant expanding" into oc-dr1-dev
e6d30674de70b9ee387f3c3e7951b67d6123f2fd 25-Jul-2017 Adrian Roos <roosa@google.com> AOD: Make sure to update visibilities after instant expanding

Fixes an issue where disable flags were not applied properly because
they were not recomputed after expanding the PanelBar.

Change-Id: I6933ba4951bf768a15a9d4f58728558939f106ae
Fixes: 64001235
Test: Open camera, put to landscape, press power; Verify time and battery icon are not visible in transition.
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
51465ea3b667a4123baf7eebb8f590aeaec2aafe 27-Jul-2017 Adrian Roos <roosa@google.com> AOD: Fix wakeup transition jank

No longer do the upwards animation from AOD1, because there is a fade in instead now.

Also, because the DozeService gets finished when waking up, we were disallowing
animations again. Instead, we now ignore disallowing animations while waking up.

Also don't cancel the NotificationPanelView wakeup animation when another identical
request comes in.

Also adds tracing for various SystemUI states.

Bug: 63531607
Test: Wake up from AOD1. Ensure there is no jank or flicker
Change-Id: I383ffa320f28ac4bf5432e4f4f5c06372717f66f
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
8a4522dceb22413b96dac180ba1301a8c30652a4 27-Jul-2017 Lucas Dupin <dupin@google.com> Add theme variables to SysUI dump

Dumping current themes and scrim states to make debugging easier.

Bug: 63890571
Test: adb bugreport # look for new variables
Change-Id: Ia9bfd1b91d8d2c19930cb896d337ecdfa776e6cb
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
8093e387e4582ab9e79a0b21434635d20028b999 27-Jul-2017 Selim Cinek <cinek@google.com> Merge "Added haptic feedback for longpressing." into oc-dr1-dev
am: 8a3ccb11a0

Change-Id: Iabf8f8b72cd059d3c2f8b8f0767e65e1fed09a13
8a3ccb11a0078a151af78c037ba0ab0221c8399d 27-Jul-2017 Selim Cinek <cinek@google.com> Merge "Added haptic feedback for longpressing." into oc-dr1-dev
8f50b50d0da36dfb144e02fbd52e6c17a837f014 26-Jul-2017 Selim Cinek <cinek@google.com> Added haptic feedback for longpressing.

Test: manual, add notification, longpress, observe
Fixes: 62392747
Change-Id: I764bc159afd8b65c0467af8fe634584237b79629
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
deb56eb3f5f93cc675da8e3d743e0e95ddd11e7e 26-Jul-2017 Beverly <beverlyt@google.com> Merge "Volume dialog doesn't show on ambient/aod." into oc-dr1-dev
am: 382644aa74

Change-Id: I7c8bfab80e82d2841f43a75ce7fddc0b03cacc70
147966d7ae1b4066e1d358b3647c11c61a679201 26-Jul-2017 Adrian Roos <roosa@google.com> Merge "Fix flickery behavior when launching notification when occluded" into oc-dr1-dev
am: dd22dcbcdf

Change-Id: I50d98b16eb4ce43a555a0136a74421e891754786
382644aa745f5375ce41047e660918df3d440d7c 26-Jul-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Volume dialog doesn't show on ambient/aod." into oc-dr1-dev
dd22dcbcdf11603b086a337e8cb5a8359d412eae 26-Jul-2017 Adrian Roos <roosa@google.com> Merge "Fix flickery behavior when launching notification when occluded" into oc-dr1-dev
ef15776aaf850777dfa7f640bcd3889855a01314 25-Jul-2017 Lucas Dupin <dupin@google.com> resolve merge conflicts of a1f64b0a9188 to oc-mr1-dev

Test: I solemnly swear I tested this conflict resolution.
Change-Id: Ic2395d055e1f27b186c3b87be5440dc410ee16a3
5c6c7586cdd000b400336fe8fc91404b35d43fd5 25-Jul-2017 Lucas Dupin <dupin@google.com> Merge "Ambient indicator text color" into oc-dr1-dev
a1f64b0a9188d105ef1821510150b2ee42c9e47d 25-Jul-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix jank when switching themes" into oc-dr1-dev
88d75329fff90034611c37294bc6b9c1cb5962f0 25-Jul-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Ambient indicator text color" into oc-mr1-dev
8775ad8f194bdb0183941273c3e4f7e3d242988f 25-Jul-2017 Adrian Roos <roosa@google.com> Merge "Fingerprint: Show bouncer when fingerprint is disallowed" into oc-dr1-dev
am: 544e628e16

Change-Id: I2df5b364bbfde27299d5f5114224dd6bfaeaa782
544e628e165a27d15672ab9bc5ffe0a558d37d91 25-Jul-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fingerprint: Show bouncer when fingerprint is disallowed" into oc-dr1-dev
d2ddb44922df105031c529b84fb91ade14d0bb0b 11-Jul-2017 Lucas Dupin <dupin@google.com> Ambient indicator text color

Ambient indicator needs to be aware of overlay changes and
doze states.

Fixes: 62276116
Test: together with ag/2525169
Change-Id: Ia563ded294b2ebf862326f5831ee04ee11149625
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
e17ce5286f2c25c2ce440b30f476e9e88a6d1e8e 18-Jul-2017 Lucas Dupin <dupin@google.com> Fix jank when switching themes

Turning overlays on and off takes time,
it also doesn't allow us to have fine control
over which view is using which theme.
Lock screen colors are now driven by themes.

Change-Id: Ie8860d00dbb0705ed76edf60a9d3030618dd21ca
Fixes: 63751714
Test: Visual. Set wallpapers, unlock.
Test: runtest -x packages/SystemUI/tests/src/com/android/keyguard/KeyguardSecurityContainerTest.java
Test: runtest -x tests/Internal/src/com/android/internal/colorextraction/ColorExtractorTest.java
Test: systrace
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
b331f9d216e464a7ea5c5d92bb4464ed5d8b1e26 21-Jul-2017 Jorim Jaggi <jjaggi@google.com> Fix flickery behavior when launching notification when occluded

- Launch the action after the panel is fully collapses in this
case such that we have a clean transition, like we do when
launching all other activities from the shade.
- When Keyguard flags changed, don't execute the app transition
when there was already be one before, as it might interfere with
that one and start it prematurely.

Test: go/wm-smoke
Test: Launch notification from occluded notification shade
Bug: 63686192
Change-Id: I49efb2f627fcc7a0d6386dcea2510d31ab520b11
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
7f58322d51ad63a1282ec8ced0675ca25a4b400e 24-Jul-2017 Jorim Jaggi <jjaggi@google.com> Revert "Fix jank when switching themes"
am: 6498f96283

Change-Id: Ie5813f1c04a6db9d5ee291df764873900add5064
6498f962836ff75d55510fbe0d8ddfd3c5f5dc34 24-Jul-2017 Jorim Jaggi <jjaggi@google.com> Revert "Fix jank when switching themes"

This reverts commit e5d0b9dddbcd8e6be7725a89b82fb990db2dade7.

Fixes crashloop with lock pattern

Change-Id: I3721444c91e2be625c59ec3e6ba14f1080badc07
Fixes: 63980375
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
3a82a4a0f213952d88180fc21ec705018681312e 23-Jul-2017 Selim Cinek <cinek@google.com> Merge "Removing contents hidden string for public notifications" into oc-dr1-dev
am: 8650c7c0f1

Change-Id: I10d7ab191f47bf167a5be5e0d11d7698aae58cd1
8650c7c0f1181764f24d7b6e9e0514c9180f3ad0 23-Jul-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Removing contents hidden string for public notifications" into oc-dr1-dev
902ba7bab54bdf238eba516e5d65b78664a298a4 22-Jul-2017 Lucas Dupin <dupin@google.com> Merge "Fix jank when switching themes" into oc-dr1-dev
am: a74f575ff9

Change-Id: Ibc8fa59cfa6139b03aa7fb08361eb43331484be5
a74f575ff9440befb3233dcb7f883d1a06e39d63 22-Jul-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix jank when switching themes" into oc-dr1-dev
85e05eb545a9a2d72a701d59ac86d80988de03ad 21-Jul-2017 Beverly <beverlyt@google.com> Volume dialog doesn't show on ambient/aod.

Fixes: 62598406

Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/volume/VolumeDialogControllerImplTest.java
Change-Id: Ibb2e1119f0c6d96e9016ebe8fdd9d03b6a3c71b8
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
4c535d55807ce336cd5bba5bfa24b6fd95b44e80 21-Jul-2017 Adrian Roos <roosa@google.com> Merge "Flicker free screen-on from AOD" into oc-dr1-dev
am: 5f62026b4e

Change-Id: I70c0f6e119344358ef460c994adc6189d396400b
e4cb6c8a31585de27afe89b1c06e1a5a124d8c66 19-Jul-2017 Adrian Roos <roosa@google.com> Flicker free screen-on from AOD

When pulsing from AOD, we force the display OFF first. This allows
us to transition smoothly from AOD.

Also, we add a scrim transition for whenever we are waking up from
dozing. This relies on I4f3a863709a970f0fc8682c0a0c3547886e1fd0f
which forces the DOZE -> ON transition through OFF first.

Also fixes the WAKE_AND_UNLOCK transition that happens when waking
up with the fingerprint sensor.

Also fix an issue where KeyguardViewMediator's mWakeAndUnlocking
was cleared in onScreenTurnedOff; this should have been added to
the wakefulness lifecycle instead and now that the AOD -> ON transtion
dispatches the screen off callback it broke the fingerprint unlock
transition.

Fixes: 35849781
Fixes: 63887857
Fixes: 63783651
Fixes: 63727166
Test: AOD, receive notification; AOD, unlock with fingerprint; AOD, wake to lockscreen. Verify that everything is flicker-free.
Change-Id: I7d539db80a1c7e9216cf4c5c1e6d314c1893f12d
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
e5d0b9dddbcd8e6be7725a89b82fb990db2dade7 18-Jul-2017 Lucas Dupin <dupin@google.com> Fix jank when switching themes

Turning overlays on and off takes time,
it also doesn't allow us to have fine control
over which view is using which theme.
Lock screen colors are now driven by themes.

Change-Id: I4b5db6234cafebbe8eaa952781c038370a11488b
Fixes: 63751714
Test: Visual. Set wallpapers, unlock.
Test: runtest -x tests/Internal/src/com/android/internal/colorextraction/ColorExtractorTest.java
Test: systrace
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
499c20f25d0f6ba03b82a8c4444eabc67f11eb81 20-Jul-2017 Selim Cinek <cinek@google.com> Removing contents hidden string for public notifications

We're now only showing the notification header instead of the
repetitive contents hidden string. On Aod, we're still showing
a string however, since without it, it looked too empty.

Test: manual, set sensitive setting on lockscreen, observe notifications
Change-Id: If2bb66b9b3b366715aa68087e5c35cf1cdff3693
Fixes: 63741232
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
66c41b0e69119484640e94bf7c81639e63fc5b99 11-Jul-2017 Lucas Dupin <dupin@google.com> Ambient indicator text color

Ambient indicator needs to be aware of overlay changes and
doze states.

Merged-In: Ia563ded294b2ebf862326f5831ee04ee11149625
Fixes: 62276116
Test: together with ag/2525169
Change-Id: Ia563ded294b2ebf862326f5831ee04ee11149625
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
58ba685bac9bd7a0f37b66678fa8414407e3abcf 18-Jul-2017 Adrian Roos <roosa@google.com> Fingerprint: Show bouncer when fingerprint is disallowed

Fixes an issue where the bouncer was no longer showing after we
successfully authed a fingerprint but it was not allowed to unlock
the device.

Change-Id: Ieb91e876b8b7e4daf64141db1718451eb3ba1368
Fixes: 62446740
Test: Enter 5 wrong lockscreen credentials, locking out for 30 seconds. During that time try to unlock with fingerprint. Verify it shows the bouncer reliably.
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
7f0c9be1cc0f895badb0e99b033f0f1933dced6e 20-Jul-2017 Adrian Roos <roosa@google.com> Keyguard: only show after screen fully turned off
am: 4757c8ccf8

Change-Id: Iadb07f0e33b1de9d266a9cd91d606a72e94de704
a91fb78a054521ce7da5dbfe6f4e9f5caf36c101 20-Jul-2017 Adrian Roos <roosa@google.com> StatusBar: Switch status bar to using the new lifecycles
am: 731d4dfe60

Change-Id: Iad1cea70608c9b2a48bd5e6308ad2e135dc0f720
4757c8ccf83d4391255273529aba8feb9ccd4a21 18-Jul-2017 Adrian Roos <roosa@google.com> Keyguard: only show after screen fully turned off

Fixes an issue where the keyguard was displayed before the screen
was turned off fully, causing the AOD screen to briefly show during
the screen off animation.

Change-Id: Idc4621995bd67c1db255fab5a8de60d3aeef5d18
Fixes: 63526727
Test: Turn screen off. Make sure the AOD clock is not visible
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
731d4dfe60dc840764292dc2fefa9644f02a8b33 18-Jul-2017 Adrian Roos <roosa@google.com> StatusBar: Switch status bar to using the new lifecycles

Also removes some now unneeded cruft from StatusBarKeyguardViewManager.

Bug: 62446740
Test: Try unlocking phone with fingerprint and regularly from all kinds of states (AOD1, AOD2, non-AOD ambient display)
Change-Id: I3560615ce77f0c2ad9944832baaa568c300af9bb
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
075c4a3d631865b30e728da24657a78c6c564614 20-Jul-2017 Philip Quinn <pquinn@google.com> Merge "Ping the StatusBar about power key events. am: c3a503d8fd" into oc-dr1-dev-plus-aosp
am: c5f9c329c1

Change-Id: I2906e0d6faae5a800cb70e13e5fb8fe590fe0bfa
c3a503d8fd505d3f14b52d4af1c6e2509de7d6b5 19-Jul-2017 Philip Quinn <pquinn@google.com> Ping the StatusBar about power key events.

Bug: 63183852
Test: runtest systemui

Change-Id: I5d8209396e3e761b404c1071a7004f34c6e6c927
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
37705c344386d767d8a3bd96335b79daf9db6b43 20-Jul-2017 Mady Mellor <madym@google.com> Merge "Fix snooze not dismissing when it should" into oc-dr1-dev am: f113a07d9e
am: b2e49ed777

Change-Id: Ia6816270e7eb4fd2ff3a6e1fb14238b2bbd92d9e
32343e6bd91d3e1527c1f77ef63595cd8b8ea920 19-Jul-2017 Mady Mellor <madym@google.com> Fix snooze not dismissing when it should

Simply check whether the guts is a leavebehind, if it is allow it to
be dismissed.

Test: manual - snooze a notification, touch outside note that it disappears
- show notification controls on a notification that will
be removed, note that the controls remain, once 'done' is
hit the notification is removed
Bug: 63788509
Change-Id: I42c97239f4e3e17f2e69322c94bd8e8f9d7f0737
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
dc7b2bc5e3b1d00f02b5c9a9dc8fde2a3c459bff 19-Jul-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge ""Block notifications screen off" setting is used" into oc-dr1-dev
3fdfedb0180145198631b6074f4ea3eb69ae1f7d 19-Jul-2017 Jorim Jaggi <jjaggi@google.com> Merge "Fixes for increased usage of light navigation bar" into oc-dr1-dev am: 3dc5e0ae3a
am: 49824690de

Change-Id: Ib31c87334d9fc2b9943250b26fcbbcac3921e0cb
3dc5e0ae3ab8b69f52dc43f3515d77891dc47e23 19-Jul-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fixes for increased usage of light navigation bar" into oc-dr1-dev
ff46d4c935752f22808865b2fb60f883ae02a1c5 17-Jul-2017 Jorim Jaggi <jjaggi@google.com> Fixes for increased usage of light navigation bar

- Fix an issue where IME doesn't really cover nav area but still
became window to deterine light navigation.
- Only invert nav bar icons when expanding the shade if the scrim
is dark.
- Fix logic such that status bar always becomes the window to
dermine light nav bar on lockscreen.

Test: Open shade with light nav
Test: Open Keyguard in landscape in all apps
Test: Unlock phone with light nav

Change-Id: If024a8b81942a6675243b703c0509cd88de8d932
Fixes: 63539478
Fixes: 63533427
Fixes: 63577858
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
c863ce56e99059db94da72a0535605be1812bb07 17-Jul-2017 Esteban Talavera <etalavera@google.com> Merge "Enforce policy for camera gesture in keyguard" into oc-dr1-dev am: daa1539a5e
am: 1f439e4bc7

Change-Id: I99b1d51c154bcda4121fd818ec17a3c90431443d
ee14617065da742c9d8048b4f4efecc1dc09637a 17-Jul-2017 Beverly <beverlyt@google.com> Merge "Added check for AOD before showing volume dialog." into oc-dr1-dev am: 47e4fde159
am: 7be3f44673

Change-Id: If5fa613b100a5d216575ad4f53523f706edcfc07
daa1539a5e34e2b9d36651a44d05fd1cfd72656a 17-Jul-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Enforce policy for camera gesture in keyguard" into oc-dr1-dev
38159cee769ae239574bbd5f24a3e97306704f61 13-Jul-2017 Beverly <beverlyt@google.com> "Block notifications screen off" setting is used

Fixes: 63520128

Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarTest.java

Change-Id: Ib0f737999aac9fc944812fb90644a5be5c801da2
(cherry picked from commit 6cfa71486ea4b11456a5bd945a7b5c49c9d862f2)
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
40f8b999aed314ed3bbb381b446460cc5c3bafa7 14-Jul-2017 Esteban Talavera <etalavera@google.com> Enforce policy for camera gesture in keyguard

If the admin has disabled the camera for secure
keyguards, in addition to removing the bottom-right hand
corner camera button do not allow the camera to be opened
via the camera gesture either.

Bug: 63334090
Test: Manually tested launching the camera on secure and non-secure keyguard and non-keyguard, both via camera icon and gesture
Change-Id: I104688eaad719528376e2851f837d5956a6a1169
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
3b3165e5a99269a71c3c3568aa344a7f6400a988 17-Jul-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge ""Block notifications screen off" setting is used"
8ebef8494e9a284c214b41d8a984584c93112459 12-Jul-2017 Beverly <beverlyt@google.com> Added check for AOD before showing volume dialog.

Fixes: 62598406

Test: runtest systemui

Change-Id: I407eed0e0559ef0bc61d36ad9c5e84c6924c161e
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
6cfa71486ea4b11456a5bd945a7b5c49c9d862f2 13-Jul-2017 Beverly <beverlyt@google.com> "Block notifications screen off" setting is used

Fixes: 63520128

Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarTest.java

Change-Id: Ib0f737999aac9fc944812fb90644a5be5c801da2
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
edd2360f1647089688b61a7ae66cf79e48414f17 13-Jul-2017 Lucas Dupin <dupin@google.com> Merge changes Ie4fd89a3,Ica428dbc,Id3d1e935 into oc-dr1-dev am: 6a6d63be45
am: b02198da14

Change-Id: I9b8ad92792978bb0eddca3ffe7688f366b95d7e9
6a6d63be45e03b383235e29b712893891e2c2af0 13-Jul-2017 Lucas Dupin <dupin@google.com> Merge changes Ie4fd89a3,Ica428dbc,Id3d1e935 into oc-dr1-dev

* changes:
Check mark color after successful auth
Ripple colors should match sysui theme.
Correct navbar colors after rebooting
1f6d93a0353e14c71b65a0224ffdd24b143bd741 13-Jul-2017 Selim Cinek <cinek@google.com> Merge "Fixed a bug where an incoming call wasn't launching" into oc-dr1-dev am: ac77186d34
am: d4a3ca8d76

Change-Id: I7853e861904dac6a251979dfe841107f9956772d
ac77186d349480edaea3c513dc4cae672fda7d0c 13-Jul-2017 Selim Cinek <cinek@google.com> Merge "Fixed a bug where an incoming call wasn't launching" into oc-dr1-dev
ebf423466cff0b2db08d322dbf9772e9b1a3bbf1 13-Jul-2017 Selim Cinek <cinek@google.com> Fixed a bug where an incoming call wasn't launching

When the lockscreen isn't showing, but aod is, an incomming
call would not launch its fullscreen intent but show up in
AOD1. In addition was the display completely messed up and
overlapping other parts of the AOD screen.

Test: receive call while in AOD but not locked
Change-Id: Icc3e989167e72289ddcd0a62064526db9004cdc2
Fixes: 62402251
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
e3fd65f9e582ae098dccc0d432387c39ee504f29 13-Jul-2017 Adrian Roos <roosa@google.com> Merge "AOD: Implement long press gesture to launch assist" into oc-dr1-dev am: 3fbd93056e
am: 6d626acdbf

Change-Id: Iabff9ca955aef414ad7e62e0c68e2774ff01c9b7
3fbd93056e3b142080a2313158d2b0e7ef84061e 13-Jul-2017 Adrian Roos <roosa@google.com> Merge "AOD: Implement long press gesture to launch assist" into oc-dr1-dev
f7b7bab3dc0bf6b543aaabbc49eac510a3ab6549 12-Jul-2017 Lucas Dupin <dupin@google.com> Correct navbar colors after rebooting

System UI visibility flags shouldn't be set based on overlay
states. Overlays may persist across reboots leading to
situations where the navbar might be white when the rest of
the UI is black.

Change-Id: Id3d1e935c1f02a76491a92e521565468602719d5
Fixes: 63138897
Test: reboot, swipe up, look at navbar
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
d0963a07d148426d7b872862697ae1ca538a834b 15-May-2017 Adrian Roos <roosa@google.com> AOD: Implement long press gesture to launch assist

Bug: 37684244
Test: adb shell settings put secure doze_pulse_on_long_press 1; turn screen off, long press, verify assistant is launched
Change-Id: I87335d3c091bbb17022d79e599f46fb826039b7d
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
9d552b5d47c0ce0c39b73d5b0f0fb33a988bf9db 11-Jul-2017 Lucas Dupin <dupin@google.com> Merge "Fix scrim opacity in the brightness mirror" into oc-dr1-dev am: c393be76d9
am: 51b9716332

Change-Id: I6400941fbb285c7aec8c82c8c09eb3f83982e52d
c393be76d9550e143963e3fef1a6c47a004a5c16 11-Jul-2017 Lucas Dupin <dupin@google.com> Merge "Fix scrim opacity in the brightness mirror" into oc-dr1-dev
0407c1259c0e2b67274d92b8357f91cf925941f6 10-Jul-2017 Lucas Dupin <dupin@google.com> Merge "Add theme style flag to WallpaperColors" into oc-dr1-dev am: 8b94ef697e
am: a9682937b6

Change-Id: Id3a0cd1c34166f156d0c94b412ca7d9397e38672
8b94ef697ed1256d427f9fc82d64146d6dcd571e 10-Jul-2017 Lucas Dupin <dupin@google.com> Merge "Add theme style flag to WallpaperColors" into oc-dr1-dev
39784a14f38c64e6151be45caaf62dd28106bf1a 08-Jul-2017 Lucas Dupin <dupin@google.com> Fix scrim opacity in the brightness mirror

ScrimController should be the only owner of scrim views.
This enables up to have better control over their opacities
and when they should fade in and out.

Test: visual
Change-Id: Ie3a1e1b4cc32e7998abe221a5c08eda2a8a2e6c0
Fixes: 38430977
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
456cb9603a7bd5dc7a9d627387398b3da474bac9 08-Jul-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Moving color extraction classes" into oc-dr1-dev
e5ffbb038210abb5204e8d4f15ce74410c3d4d48 08-Jul-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Moving color extraction classes"
4bd24f36c5c4845bc9fda9c7211d1be2937a748a 29-Jun-2017 Lucas Dupin <dupin@google.com> Add theme style flag to WallpaperColors

Theme colors should always be the same in sysui and launcher.
We're now sharing a hint HINT_SUPPORTS_DARK_THEME, to make sure
we're never out of sync.

Test: runtest -x tests/Internal/src/android/app/WallpaperColorsTest.java
Fixes: 63140091
Change-Id: Ibd196f540d77269df377804b0f4d4d0d20820067
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
ab78a4707b276a58c758e5a7122a21d75403497b 07-Jul-2017 Adrian Roos <roosa@google.com> Merge "AOD: Block when fingerprint is already authenticated but waiting for goingToSleep to complete" into oc-dr1-dev am: eacef7a03a
am: f53f45e06f

Change-Id: I58f11a9e583a4af800868b47e90636c342425745
eacef7a03a4d011b01102ab8e2edd8eb82b2e7af 07-Jul-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "AOD: Block when fingerprint is already authenticated but waiting for goingToSleep to complete" into oc-dr1-dev
7224c1eca2afa13f2b975447db537038446e4177 06-Jul-2017 Lucas Dupin <dupin@google.com> Moving color extraction classes

Fixes: 62220212
Test: make
Test: runtest -x tests/Internal/src/com/android/internal/colorextraction/ColorExtractorTest.java
Test: runtest -x tests/Internal/src/com/android/internal/colorextraction/types/TonalTest.java
Test: runtest systemui
Change-Id: I7c4cf5c40a88555e81fbad9bec2b32c55c927468
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
b05305c19060ef6c8cc95222f96f777a710a982f 07-Jul-2017 Adrian Roos <roosa@google.com> Merge "AOD: Finish pulse when notification is removed" into oc-dr1-dev am: 7bed78952e
am: 7be2711d7c

Change-Id: I83bb778ff97b0ac3e88e35e2112a357cd136d0eb
e2292a94bb7cc7917c089f1f221ccbb34f9f2ea2 06-Jul-2017 Lucas Dupin <dupin@google.com> Moving color extraction classes

Fixes: 62220212
Test: make
Test: runtest -x tests/Internal/src/com/android/internal/colorextraction/ColorExtractorTest.java
Test: runtest -x tests/Internal/src/com/android/internal/colorextraction/types/TonalTest.java
Test: runtest systemui
Change-Id: I7c4cf5c40a88555e81fbad9bec2b32c55c927468
Merged-In: I7c4cf5c40a88555e81fbad9bec2b32c55c927468
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
be1066266ab0bf2910c4a27905c746f81abaaa56 07-Jul-2017 Lucas Dupin <dupin@google.com> Merge "WallpaperColors caching and synchronization" into oc-dr1-dev am: bd17b31310
am: 3f8a36052b

Change-Id: Ie66ba8d4fbc26bb256239d5c1b064210c19eb8ab
7bed78952ee53789737c0e4858098410f9320844 07-Jul-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "AOD: Finish pulse when notification is removed" into oc-dr1-dev
bd17b313103a25fda7b5bf20ea498b6b2583f07f 07-Jul-2017 Lucas Dupin <dupin@google.com> Merge "WallpaperColors caching and synchronization" into oc-dr1-dev
710a0b13628be61899472959526fa5e6fbb06b1f 07-Jul-2017 Adrian Roos <roosa@google.com> AOD: Block when fingerprint is already authenticated but waiting for goingToSleep to complete

Improves an issue where immediately triggering fingerprint after
the devices goes to sleep results in a lot of flickering.

There's still flicker however if the fingerprint authenticates after we've requested the AOD
display state, but before it has actually been applied.

Bug: 62887179
Test: Go to Home. Lock screen. Immediately unlock via fingerprint. Verify that the AOD screen does not even show.
Change-Id: Ib6425eee803a8c7e02f9621a571e562e825af57f
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
b95b8e7cee5c4544668b7afd87e813733b9948b9 07-Jul-2017 Adrian Roos <roosa@google.com> Merge "AOD: Keep doze brightness when unlocking with fingerprint" into oc-dr1-dev am: 3bd612f92b
am: 1b94e6c444

Change-Id: I95b9aa4773fafb62d5c8d440a90a93d8cfd54db3
4042e2fa794385b55cac4ddbe3979a9903a165f1 07-Jul-2017 Adrian Roos <roosa@google.com> AOD: Finish pulse when notification is removed

Change-Id: I346e7ef77cc3c9bb2c72bd028953f0e5ff757502
Fixes: 38174509
Test: receive notification while phone off (with or without AOD). Swipe away notification. Verify that it goes back to the base state immediately
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
3e23eb59d09faca2e40e308a191d8499ffdb6ab3 07-Jul-2017 Adrian Roos <roosa@google.com> AOD: Keep doze brightness when unlocking with fingerprint

Updates the logic that was already in place to prevent lighting up
the display before the unlock transition starts:
- treat AOD as pulsing in FingerprintUnlockController
- now that doze can use more than one brightness level, use the current

Bug: 62885451
Test: Unlock with fingerprint from AOD. Observe that the unlock transition does not prematurely change the brightness level
Change-Id: I266bd5e4c0a1d5b4c347a65c0e7936247e333cfc
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
2f3ce67821fae78b4e78b676dd6f5c6537bed671 07-Jul-2017 Adrian Roos <roosa@google.com> Merge "Keeping notifications around that show guts" into oc-dr1-dev am: ea2cbdecca
am: b42d05d64f

Change-Id: I278ad860ceccb2a1ae258b36ada9c3ba4806dc67
ea2cbdeccaa2157315bbdd9a4832351a1ecb706b 07-Jul-2017 Adrian Roos <roosa@google.com> Merge "Keeping notifications around that show guts" into oc-dr1-dev
278367f101a3b737f882802305cf09e3c64bebc0 07-Jul-2017 Jason Monk <jmonk@google.com> Merge "Fix crash when no StatusBarView" into oc-dr1-dev am: c424b22979
am: bd06bad5de

Change-Id: Ied19e5d1bd98c57634c336f3d930b2789bc70738
c424b22979010b4c3462a51f6bff616bd8b0865e 06-Jul-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix crash when no StatusBarView" into oc-dr1-dev
9ca0078f78906709f569a8f3b65a47e861cf76d0 06-Jul-2017 Adrian Roos <roosa@google.com> Merge "Merge "AOD: Fix flicker when unlocking with fingerprint" into oc-dr1-dev am: 88265d29bd" into oc-dr1-dev-plus-aosp
am: db0b661d5e

Change-Id: I02b1314ec88a8b62b22619229d8ef0ac92020d95
5ecf80ceb8f058a824868928ea57444a8e1d682f 06-Jul-2017 Jason Monk <jmonk@google.com> Fix crash when no StatusBarView

Test: runtest systemui
Change-Id: Ia0a4a97f554e0b9d6e41c295e8e07d278f8ad248
Fixes: 63260821
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
88265d29bdd949d1211cd37d89ae1ec5a1c9f6e4 06-Jul-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "AOD: Fix flicker when unlocking with fingerprint" into oc-dr1-dev
7d8f86f3f174a76e00e5094a2cac4575e810acc5 06-Jul-2017 Lucas Dupin <dupin@google.com> Merge "Password field colors" into oc-dr1-dev am: e21a151fe7
am: 1ea58e5016

Change-Id: I9e0551fc0ec8d17fa92f9e40679b2c2956566f97
e21a151fe7961f503f7dfd970320c990bf6cd012 06-Jul-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Password field colors" into oc-dr1-dev
ac2668b115daa8b609fc4e0182bfba8e80c3513f 06-Jul-2017 Adrian Roos <roosa@google.com> Merge "AOD: Disable if device is not yet provisioned" into oc-dr1-dev am: 789f10fe12
am: e510562e75

Change-Id: Idb953e1b1a1b574e433d90d2f92b1a96c33808f1
026266633d151acece242f1c0f5eeae0f3d0587c 06-Jul-2017 Adrian Roos <roosa@google.com> AOD: Fix flicker when unlocking with fingerprint

FingerprintUnlockController assumed that not pulsing is the same
as the screen is off. But with AOD this is no longer true. Instead
we now also trigger that flow if the screen is on and dozing.

Change-Id: Iad2fd65c50ad359d50bb357b41c57df123665df2
Fixes: 62885230
Test: Unlock from AOD with fingerprint; ensure that the status bar stays in AOD mode during the transition
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
789f10fe12ccda4d313b9f1193c28ebc4e09eda5 06-Jul-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "AOD: Disable if device is not yet provisioned" into oc-dr1-dev
a42f67c402adcdfe1df8a444395c05efaddac682 06-Jul-2017 Jason Monk <jmonk@google.com> Merge "Fix some config issues with sysui" into oc-dr1-dev am: f636e3fb52
am: f6219fa804

Change-Id: I664f79cf1b63edb083773b3cd283fec4d0a5e9bb
f636e3fb52cf047c878d66454fa910cab9f086e1 06-Jul-2017 Jason Monk <jmonk@google.com> Merge "Fix some config issues with sysui" into oc-dr1-dev
75ec37906799d0a0103b73a55a573dd39559c1f3 29-Jun-2017 Lucas Dupin <dupin@google.com> WallpaperColors caching and synchronization

Making sure that colors are being cached in
WallpaperManagerService and that sysui won't
force a new color extraction.

Fixes: 62958267
Test: manual, reboot, look at systrace
Test: runtest -x cts/tests/app/src/android/app/cts/WallpaperManagerTest.java
Change-Id: Ic079a8e3d4d4ad65947b718dcc544f795c16f152
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
89516d4bd30938264991101a4cf15988dead5777 05-Jul-2017 Lucas Dupin <dupin@google.com> Password field colors

Test: Visual. Set light/dark wallpapers, lock/unlock.
Change-Id: I16806512ef983ede22ee13cdeb41f5620cb52888
Fixes: 62590347
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
a02df55dcfcf8be113e3fab9b9bda77ebbb68d5e 05-Jul-2017 Jason Monk <jmonk@google.com> Merge "Updates to brightness mirror to play with color extraction" into oc-dr1-dev am: 4cccea6b6a
am: eafc0029ea

Change-Id: I75f4b42c017ae397706b7fe9a423da878b0db217
3622014acad084c1e1e79c41117260b883fa0f0d 05-Jul-2017 Selim Cinek <cinek@google.com> Merge "Calling hideKeyguard more often, instead of caching it" into oc-dr1-dev am: 71e0a3758f
am: 9208057da2

Change-Id: Ic001802c968735f2ec4e624b02c4e9ced88f2fb2
4cccea6b6a0cf732229fcf3657ab2039f2bec334 05-Jul-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Updates to brightness mirror to play with color extraction" into oc-dr1-dev
71e0a3758fa715b707b83269312c03cd585070bb 05-Jul-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Calling hideKeyguard more often, instead of caching it" into oc-dr1-dev
f3fe3bf5b97c78b141e7cee738a3011998840bf7 05-Jul-2017 Jason Monk <jmonk@google.com> Fix some config issues with sysui

It wasn't creating a delta so as soon as a change happened, it would
return true for any config changes.

Also StatusBar wasn't receiving config changes because the callback
was named wrong and SystemBars no longer passes it through.

Test: manual
Fixes: 62968485
Fixes: 62893293
Change-Id: I56750047168007edd0ca9ea35cb36c23dc790661
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
88262944c2c54cb861c05f15deed5f886b01b1d2 05-Jul-2017 Jason Monk <jmonk@google.com> Updates to brightness mirror to play with color extraction

Test: visual
Change-Id: Idfd86fc06b2dab183463963fd4ce32e9a27bf286
Fixes: 63124649
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
8268e77d0daebd53bff39f9ee81cd903042e4c85 05-Jul-2017 Jason Monk <jmonk@google.com> Remove UI_MODE_CAR for QS because it isn't doing anything right now.

Test: make
Fixes: 62597341
Change-Id: I9923982bfefc2604c176eb514d7053b701a09a63
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
f2d545e30717c09c39df36aa601cf39e44dcdc50 05-Jul-2017 Adrian Roos <roosa@google.com> AOD: Disable if device is not yet provisioned

Change-Id: If1563d9558205936a8c78d1232eb0879700ff6b3
Fixes: 62263216
Test: adb shell settings put user_setup_complete 0; turn off screen; verify AOD does not show
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
b622447f4ac69010b398025ce872bb3f88708c76 04-Jul-2017 Selim Cinek <cinek@google.com> Keeping notifications around that show guts

We're now delaying the showing of the guts until
the user actually closes them.

Test: manual, remove notification while guts are showing
Change-Id: Ife75154eab92ba70d62b8a41e3663daea8a92312
Fixes: 62293195
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
c3d4c74c17eb403fbe766d5a796c0003af7a4e46 03-Jul-2017 Selim Cinek <cinek@google.com> Calling hideKeyguard more often, instead of caching it

Because we were caching the Keyguard state, we didn't call
hideKeyguard anymore when going to the shade locked and then
unlocking. As a consequence did we never update the public
mode and therefore remained in a wrong state.

Lot's of bad things could happen with it, for example did
inline reply not work anymore and the clear all button would
be hidden in certain cases. In general would the user not
be properly unlocked.

Test: manual, go to locked shade with redaction turned on, unlock via affordance, observe notifications are unlocked
Fixes: 62721741
Fixes: 62378400
Change-Id: Ibc757859ef26a1dba887e8986d6a2f8f2fe2efb4
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
3594b9f4fda1e83c48aba8ace4c688d5c0ea21c6 03-Jul-2017 Selim Cinek <cinek@google.com> Merge "Fixed an issue where the shelf could be hidden" into oc-dr1-dev am: fdc84a13a2
am: 3ec9d993ce

Change-Id: I307a3d65603f5ede0e283f36715271bc68b8eabd
fdc84a13a25c205c87b5d5dff92244ae8c295759 03-Jul-2017 Selim Cinek <cinek@google.com> Merge "Fixed an issue where the shelf could be hidden" into oc-dr1-dev
707e2072c81b7405e6c9102b1f937fd251f56291 30-Jun-2017 Selim Cinek <cinek@google.com> Fixed an issue where the shelf could be hidden

During reinflation, the panel could be stuck in
a bad state where qs edit mode was on but not
visible. QS edit now persists through reinflations.

Test: manual
Change-Id: I6e7a20fda2db2184a26a11093064a1367469ab45
Fixes: 62807612
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
ef41612373960438f3757efd61c3c7d5b54e5c58 30-Jun-2017 Jonathan Solnit <jsolnit@google.com> Merge "Turn off camera lift logging" into oc-dr1-dev am: 61dd3b8970
am: d70aa27518

Change-Id: Ibe0d525b2a3241da2f67c828c04db9b2e631bec9
61dd3b897048a7a625b2c5bebb6eb497e1333301 30-Jun-2017 Jonathan Solnit <jsolnit@google.com> Merge "Turn off camera lift logging" into oc-dr1-dev
1c9ec1ad9086dd6c6f8d2700bc71fa0e79e749d0 30-Jun-2017 Adrian Roos <roosa@google.com> Merge "AOD: avoid flicker when turning off screen" into oc-dr1-dev am: b4fe9ce703
am: a186fb8a92

Change-Id: I2d6b7033a8d20b521c9da50bfb84c0cd3b543004
baa410b877940c53562cf499e3691b027615af75 29-Jun-2017 Jonathan Solnit <jsolnit@google.com> Turn off camera lift logging

Test: Triggered camera lift, confirmed no logging
Bug: 63141065
Change-Id: Ib93fd5885196a9a3055dabb8b956b23d6928cc49
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
94cbe1c1bb723ab6b6c0b6c076e2900a1ea2218a 29-Jun-2017 Adrian Roos <roosa@google.com> AOD: avoid flicker when turning off screen

Avoids a flicker during the turn off sequence where
the status bar would not enter the keyguard mode until
after AOD has already shown.

To avoid this, now also show keyguard if dozing and
the device is not yet fully asleep as long as the
screen is off.

Change-Id: Ic90b33a368332c9a7d7202b4e25a6c7c23b6506c
Fixes: 36506840
Test: Enable AOD, go to home screen, press power. Verify that there is no flicker in the transition to AOD.
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
54daefe3aa8dcdee149ce95fd4f8ecf60632c9f1 08-Apr-2017 Anthony Chen <ajchen@google.com> Use custom QS fragment for auto use-case.

Use a custom QS fragment if the UI mode is car. This fragment disables
the quick settings row and expansion. Remove the config options that
used to have disabled this in the phone QSFragment.

To accomplish this, introduce a new QSFooter interface. The old
QSFooter.java now implements this.

Test: boot on phone and Android Auto headunit
Bug: 33210494
Change-Id: I5accc2d27d6725380ca5e271d332a03991c9419b
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
873979f76e7da75646bf801d85543a37b7cc8408 22-Jun-2017 Jason Monk <jmonk@google.com> Merge "Add test for StatusBar.dump" into oc-dr1-dev am: 4448d47ed2
am: d7d1189826

Change-Id: I5a58420a7bca1758ea3b98896bae8ab95ec02f61
5130537ec5300cf0c5e98f74aa9363e668ecdb28 22-Jun-2017 Jason Monk <jmonk@google.com> Add test for StatusBar.dump

and make it pass

Test: runtest systemui
Change-Id: I26cd913d8df468635b091d5fb3531c975e0ca848
Fixes: 62573356
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
77ff192a8176b4b0b1e175e40f5b2592163ddc41 21-Jun-2017 Mady Mellor <madym@google.com> Merge "Add customs accessibility actions to snooze, allow it to be focused" into oc-dr1-dev am: 51278d6a27
am: c5b6f4eeb6

Change-Id: I415d17f3bb384974a0642533e5002c5b1841168a
51278d6a279ed28e4092b0975da376f8c89ad499 21-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add customs accessibility actions to snooze, allow it to be focused" into oc-dr1-dev
b253ac08cfa2a8990930029970ef76431f8997ca 20-Jun-2017 Lucas Dupin <dupin@google.com> Merge "Separate theme breakpoints" into oc-dr1-dev am: 52e6e12ad6
am: 159c24ec58

Change-Id: I41578235e3f0ba7080537835967093593cddb8d9
52e6e12ad6fb8a7f80d1d209bbd6ade0f63d92f2 20-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Separate theme breakpoints" into oc-dr1-dev
30f4c97aaaf966422729f5eba53adfea3a9280b4 20-Jun-2017 Jonathan Solnit <jsolnit@google.com> Merge "Check for keyguard occlusion on camera lift" into oc-dr1-dev am: e07567cc0b
am: 9a0894b930

Change-Id: I1e4a944ff83e46978cc4d15175347d0a44019ae5
e07567cc0b93121f67430f8c63b5f4a837508a07 20-Jun-2017 Jonathan Solnit <jsolnit@google.com> Merge "Check for keyguard occlusion on camera lift" into oc-dr1-dev
96d7be7129d9b3aa5f99cc8cdd8c8773c9929afb 13-Jun-2017 Lucas Dupin <dupin@google.com> Separate theme breakpoints

Separating dark sysui theme from dark
colors on lock screen since they should
be independent.

Bug: 62346335
Test: manual
Change-Id: I1e2ddc8b80f838bcac1647b7c5ac2d5ba50765e3
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
1cf432610a7d4f71ae7b071a3b75e75711e8e223 19-Jun-2017 Jason Monk <jmonk@google.com> Merge "Fix flash of ambient on fp unlock" into oc-dev am: c885c24e10 am: 1a2133629f
am: c2b629c61e

Change-Id: Ibf4d518b1292e6768df43d65c71923921448043f
1a2133629f9d47e7378c62e0c5a484c89d085033 19-Jun-2017 Jason Monk <jmonk@google.com> Merge "Fix flash of ambient on fp unlock" into oc-dev
am: c885c24e10

Change-Id: Ibbff840983dc3f15745275d44393645f110b74c1
c885c24e106eb174583e8796616d0a4efdf0d731 19-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix flash of ambient on fp unlock" into oc-dev
6e8d70991ce48298ad8676f7a1ecae0fb01476b1 16-Jun-2017 Jonathan Solnit <jsolnit@google.com> Check for keyguard occlusion on camera lift

Instead of just checking if the keyguard is locked, check that it's showing and
not occluded. Also add more logging.

Bug: 62386862
Test: Attempted lift gesture from the following states:
1. Locked
2. Suspended
3. Incoming phone call while locked
4. In phone call while locked
Change-Id: I55e75c695c9f1349ca16791a25029bf33477d7b7
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
be9df03cbffc90d085c002e98d8cf0a46fcbbeef 15-Jun-2017 Jason Monk <jmonk@google.com> Fix flash of ambient on fp unlock

If we are in fp mode WAKE_AND_UNLOCK assume always set dozing
to false because we may not have received the keyguard callback
yet but we still should be hiding doze content.

Test: Add delay to exit animation callback and use fp unlock
Change-Id: I3d9256482cd5a35f6fa8864577b799432e2ab189
Fixes: 34916735
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
3cc09dc02772eb0dd30aecac9e28be20e7f9733d 15-Jun-2017 Chris Wren <cwren@google.com> Merge "add a log for peek to shade expansion" into oc-dev am: 04298759fe am: c31da7a282
am: 0e21a57709

Change-Id: I4f3bba6ede13af9140de86724e663eb0372a3ed8
0e21a57709ac1af516321f09efb2fe4c1d5b9c47 15-Jun-2017 Chris Wren <cwren@google.com> Merge "add a log for peek to shade expansion" into oc-dev am: 04298759fe
am: c31da7a282

Change-Id: I0dba70d94710852d07fa3f141d61ed869756a379
4bf303695b3d869a0be0f1b13defab7167c5b975 15-Jun-2017 Chris Wren <cwren@google.com> Merge "add a log for peek to shade expansion" into oc-dev
am: 04298759fe

Change-Id: I4813fcd717b966e2ed2b1835d12d4183633f60ff
621933fd7bd276c536e6c5c2dd8f5d411283006c 14-Jun-2017 Chris Wren <cwren@google.com> add a log for peek to shade expansion

Move the note_load counter into the manager, replacing
the redundant and useless notification_load counter.

Update the StatusBarTest to allow for hander side-effects.

Test: runtest systemui
Change-Id: I2551c51cc0f4627995abe4401eafc2e5adb3a8fa
Fixes: 27698560
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
1ead7fc753ba30152cc37b387252616cba39205f 24-May-2017 Lucas Dupin <dupin@google.com> Scrims should be grey when in-app

Bug: 38164389
Test: runtest -x colorextraction/tests/src/com/google/android/colorextraction/ColorExtractorTest.java
Test: runtest -x tests/src/com/android/systemui/colorextraction/SysuiColorExtractorTests.java
Change-Id: Ifcc04a8562e46b4f65bce0470ccd6c02dffcf377
(cherry picked from commit e1571705e6ea8367e7ee93d61104ce27035492dc)
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
dc8c430c67ceb7054521fdfbd294d251325bb89d 14-Jun-2017 Lucas Dupin <dupin@google.com> Merge "Disable StatusBar logs" into oc-dr1-dev am: 2306a78963
am: 3d41a8df31

Change-Id: Ia710e1720c6c08d90dbf7581f9916eb1767fbfd9
7ac74d5261a3b74cc067386bdcc4b7ad147a3a6b 14-Jun-2017 Lucas Dupin <dupin@google.com> Disable StatusBar logs

Reverted DEBUG flag that was accidentally
set to true.

Test: make
Change-Id: Icb37d7831052f4bb1c3a1e2349f5af5270a9e932
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
25c7a58f33c7c24e59f522b86e3cf064fdfd3b8c 02-Jun-2017 Adrian Roos <roosa@google.com> AOD: Use double tap coordinates to trigger Ambient Indication

Bug: 38386446
Test: Double tap on AOD, verify that it still works. On device that supports double tap coordinates, verify that double tapping on ambient music opens ambient music.
Change-Id: Ic75ba731a980c9598c85927e83d2032f01da4822
(cherry picked from commit 44198f5124743f0d603eb4efa3b436bd96f32144)
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
920fd89aefee6b39aa634d6bb49c0669a86a63e3 06-Jun-2017 Mady Mellor <madym@google.com> Add customs accessibility actions to snooze, allow it to be focused

- Add plumbing for accessibility action IDs, enabling custom
accessibility options in the local context menu
- Allow snooze view to be focusable
- When option is selected announces the selection via window state change

Test: manual
Bug: 34840333
Change-Id: Idca0b0e00e792d3e3f71fc6a15b9b26d9136f6da
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
f973d7357681a10295f01797e7e4eae38a143924 12-Jun-2017 Anthony Chen <ajchen@google.com> Merge "Add a method that allows the shade to be toggled."
e1571705e6ea8367e7ee93d61104ce27035492dc 24-May-2017 Lucas Dupin <dupin@google.com> Scrims should be grey when in-app

Bug: 38164389
Test: runtest -x colorextraction/tests/src/com/google/android/colorextraction/ColorExtractorTest.java
Test: runtest -x tests/src/com/android/systemui/colorextraction/SysuiColorExtractorTests.java
Change-Id: Ifcc04a8562e46b4f65bce0470ccd6c02dffcf377
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
89678d6661f731ed8621d8c271216e3d1ddb4ddd 09-Jun-2017 Jason Monk <jmonk@google.com> Merge "Add notification listener plugin hook" into oc-dr1-dev am: 8f8b5ac031
am: 05ac6544c9

Change-Id: I30313673df89ae8a60d4da5b1da62bceb35430d3
8f8b5ac031ca3b2c44341a24e2e6429aa99f83fd 09-Jun-2017 Jason Monk <jmonk@google.com> Merge "Add notification listener plugin hook" into oc-dr1-dev
6289ecaa53ed9bcab1c0539614963ff6306d9e3e 09-Jun-2017 Selim Cinek <cinek@google.com> Merge "Fixed an issue where the notification could stay userlocked" into oc-dev am: dc66506f0a am: 4ab7b364a5
am: 2afc9a8fe3

Change-Id: I1ab1a3b8240d892333548664754fc40dc028c032
4ab7b364a554769bc947b940f86f9a22bbd68d51 09-Jun-2017 Selim Cinek <cinek@google.com> Merge "Fixed an issue where the notification could stay userlocked" into oc-dev
am: dc66506f0a

Change-Id: Ia2ea2f1b69bdcab2d27a56e89fbfb87b8cc11eed
e8bcfaf5d0bdcbdd94d17d3b7a9b9a0b0d9240ec 09-Jun-2017 Adrian Roos <roosa@google.com> Merge "AOD: Use double tap coordinates to trigger Ambient Indication"
98bf8ba30c51ccfdd5bef1d40123dca40fdf7cf9 08-Jun-2017 Jason Monk <jmonk@google.com> Add notification listener plugin hook

Allows plugin control over notifications right at the entrance
to sysui and gives them the opportunity to mess with them how
they see fit.

Test: manual
Change-Id: I569bf37138da66d0524acecfa36ceb409f98fbb4
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
f8c4add85188a90940d9d7045ab4c945375fcff2 08-Jun-2017 Selim Cinek <cinek@google.com> Fixed an issue where the notification could stay userlocked

When collapsing the shade while draging down (using fingerprint)
notifications would stay userlocked and would appear in a small
height instead of their regular size.

Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarWindowViewTest.java
Change-Id: Ibd97a6ce063bc2fcd76f11e010e781a61bd76b5f
Fixes: 36469584
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
9eae838a099547396437ce9a9aa7999f54d2c6c4 08-Jun-2017 Selim Cinek <cinek@google.com> resolve merge conflicts of 383cc530492e to master

Test: I solemnly swear I tested this conflict resolution.
Change-Id: I52ee72a7e09792c604eb7cb4a76a6657f808e720
4317e457ba819163fbe0fd14b24f19f74804c95e 08-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "AmbientIndication: Add tap again hint" into oc-dr1-dev
ab67c300f3ff486500344ca5d3e9d0dc772f3bf1 08-Jun-2017 Selim Cinek <cinek@google.com> Merge "Fixed an issue where the qs panel wasn't properly placed" into oc-dr1-dev
334964899f8104d0abf483a390e982886f087773 07-Jun-2017 Selim Cinek <cinek@google.com> Merge "Fixed a flicker of group notifications" into oc-dev
am: beba1bf936

Change-Id: I22d44dde99093cbcf10ca8cddb3beccfdc9bdafb
beba1bf936e62da9a0add95e29e0e146adc03f52 07-Jun-2017 Selim Cinek <cinek@google.com> Merge "Fixed a flicker of group notifications" into oc-dev
c18a13d97f516de914181ccd8c6565970354af16 02-Jun-2017 Adrian Roos <roosa@google.com> AmbientIndication: Add tap again hint

Adds a hint for tapping the ambient indication again to open.
Also fixes an issue where the indication bottom padding was not correctly
updated if the indication was shown while the panel is collapsed.

Bug: 38387500
Test: tap indication, verify it shows the tap-again-to-open hint. Also verify that if the indication gets set while the phone is unlocked that sufficient space is reserved after transitioning to the lockscreen.
Change-Id: Ie9a152b0bd86807958376fd278ef9502c03af6b2
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
084dbc33745884f9c81dcfef3a01aeabee53898b 07-Jun-2017 Adrian Roos <roosa@google.com> Merge "AmbientIndication: Add tap again hint"
44198f5124743f0d603eb4efa3b436bd96f32144 02-Jun-2017 Adrian Roos <roosa@google.com> AOD: Use double tap coordinates to trigger Ambient Indication

Bug: 38386446
Test: Double tap on AOD, verify that it still works. On device that supports double tap coordinates, verify that double tapping on ambient music opens ambient music.
Change-Id: Ic75ba731a980c9598c85927e83d2032f01da4822
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
5cf1d0589a0045ee5f01802975f394847e891215 02-Jun-2017 Selim Cinek <cinek@google.com> Fixed an issue where the qs panel wasn't properly placed

The QS panel should only be placed below the notifications
if it has notifications above the shelf. This ensures that
all animations including icons are appearing in the right
place.

Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/ExpandableNotificationRowTest.java
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/AboveShelfObserverTest.java
Fixes: 35305470
Change-Id: I97fb0c76ed69b7638ce83a7c06856d87bf6bf65f
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
8c28b3999c51fdc30c0f3982cb935fa8f40a3269 07-Jun-2017 Selim Cinek <cinek@google.com> Merge "Merge "Fixed an issue where USER_ALL notifications were showing" into oc-dev am: 295dd7193e am: 0151c6886f" into oc-dr1-dev-plus-aosp
am: 0b28195727

Change-Id: I290639670e15542bb073b836e249692014cdd6c8
53d851191bd522df41a861c2d4936bc0db065364 07-Jun-2017 Selim Cinek <cinek@google.com> Merge "Fixed an issue where USER_ALL notifications were showing" into oc-dev am: 295dd7193e
am: 0151c6886f

Change-Id: I9bc738f6bad45e314e077c2250fe3e086571db7a
3158673eebc6806eb1883a76ec2356975b334b0e 07-Jun-2017 Selim Cinek <cinek@google.com> Merge "Fixed an issue where USER_ALL notifications were showing" into oc-dev
am: 295dd7193e

Change-Id: I1f41744ec2cc5d820e7381858d5974b17db8d893
9b12a427a77aaf9466d527d4647fe04adfd59cf4 07-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Don't autoexpand btw notifications"
295dd7193ebe24fe93c893078d9fd3733fa2d66d 07-Jun-2017 Selim Cinek <cinek@google.com> Merge "Fixed an issue where USER_ALL notifications were showing" into oc-dev
72fc8db1e2b14da16bfb9170bc6172d3f93d0e97 07-Jun-2017 Selim Cinek <cinek@google.com> Fixed a flicker of group notifications

When replacing a supressed group with it's summary, the icon
would flicker. We're now suppressing icon animations of
replaced notifications.

Test: add notification and children 1 by 1 and observe no flickering
Change-Id: I79440e473296e766ab80832ce74f450aee1af8ea
Fixes: 38459207
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
e049f0cb6d24ee16bccc4ce62fb77fc9e809f2fc 07-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge changes from topic 'dungeon-master'

* changes:
Hide redundant foreground service notifications.
Updates to Dianne's Dungeon.
2e59523ce6709e2b75fe596c590f36ce973a60b0 07-Jun-2017 Selim Cinek <cinek@google.com> Merge "Fixed an issue where would could be left with empty notifications" into oc-dev am: 25e509462f
am: b8c7c9ee2d

Change-Id: I8560e900e1c0c2cf7caf1ba748a5b928ff69f638
25e509462f046523927ea8f759259da5f4a9fcef 07-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fixed an issue where would could be left with empty notifications" into oc-dev
e251ca5c07f537a9e466874d50c6b109d09c6b1a 06-Jun-2017 Selim Cinek <cinek@google.com> Don't autoexpand btw notifications

We now only systemexpand high priority notifications.

Test: manual add min prio notifications only, observe expansion
Change-Id: I74e3be9a6ae0f44da9da05a5725c9d1505f9d234
Fixes: 62035830
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
f5aafb9e18ae9563f9ad9c718b1a863afe254c0f 28-May-2017 Dan Sandler <dsandler@android.com> Hide redundant foreground service notifications.

If an app with a foreground service has (at least one)
FLAG_FOREGROUND notification shown to the user, we allow
that to satisfy the requirement that the user be informed
about such things. But if the fg notification or its channel
is blocked by the user, we show the NOTE_FOREGROUND_SERVICES
notification (a/k/a Dianne's Dungeon) provided to us by the
activity manager.

Note that if even one of the foreground processes for the
current user is missing its disclosure notification, the
user will see the whole dungeon.

Bug: 36891897
Test: runtest -x frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ForegroundServiceControllerTest.java
Change-Id: I435b7c01e60f99da162c9ea61656e2991d2cb87c
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
20bc608dcc8667f3e41e650f611771d9decfa995 06-Jun-2017 Jorim Jaggi <jjaggi@google.com> Fix issue with dialer launch transition am: db93133782
am: 1a5f0c7ca8

Change-Id: Id8384736c70d82b9ef95e4cb805dde08f039dc04
db9313378223da6a16673054310d2c0414f86343 02-Jun-2017 Jorim Jaggi <jjaggi@google.com> Fix issue with dialer launch transition

Test: Disable assistant, launch dialer on secure keyguard
Test: Launch assistant
Test: Launch camera

Change-Id: Ic3231f5f28fa0cf704b5f5d6e1993b296f14f5a3
Fixes: 38450585
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
8b9017346febd74c188bd41ad6b54e3d60146f71 06-Jun-2017 Siarhei Vishniakou <svv@google.com> Merge "Remove unused variable 'screenon'"
ace4e33ccbe9cde6e543602f05d726a7ee56b5d8 06-Jun-2017 Siarhei Vishniakou <svv@google.com> Merge "Remove unused function"
52b2f160a1a29e393a59c66c9605c3cba72e5d0c 06-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Tonal palette gradient types"
d002a0a96eb857804b3aafbcd32cf66a378c5b6c 05-Jun-2017 Siarhei Vishniakou <svv@google.com> Remove unused variable 'screenon'

Test: make
Change-Id: I341ef164b2e56a774b531aff7020c82aa69d1157
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
ab1684790280be50317cfb80d5cf68913197c158 05-Jun-2017 Siarhei Vishniakou <svv@google.com> Remove unused function

Test: make

Change-Id: Ia8dd15d0490a99adc91636ad4641c3df846a024c
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
0e06bc93af723ac5c743afeacd0652d8ba2d1878 05-Jun-2017 Selim Cinek <cinek@google.com> Fixed an issue where USER_ALL notifications were showing

The public mode for USER_ALL notifications were always
showing not on the lockscreen and therefore were visible
even if the user decided otherwise.

Test: runtest systemui
Change-Id: Ie4b312b0013df7d5ece81f89f754644efb66fe21
Fixes: 62259623
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
7aaa353cbb872c308b9be292e11e88d4e497645c 28-May-2017 Lucas Dupin <dupin@google.com> Tonal palette gradient types

The tonal palette now has 3 gradient types, one for regular scrims
another one for places that require stronger contrast, and a last
version for extra contrast.

Bug: 62161354
Test: runtest -x frameworks/base/packages/SystemUI/colorextraction/tests/src/com/google/android/colorextraction/ColorExtractorTest.java
Change-Id: I0be6726334f7a71f04ee02c61994101c97771f1a
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
008cea772ac4d6122e81c19ff6128e33b7415917 28-May-2017 Dan Sandler <dsandler@android.com> Hide redundant foreground service notifications.

If an app with a foreground service has (at least one)
FLAG_FOREGROUND notification shown to the user, we allow
that to satisfy the requirement that the user be informed
about such things. But if the fg notification or its channel
is blocked by the user, we show the NOTE_FOREGROUND_SERVICES
notification (a/k/a Dianne's Dungeon) provided to us by the
activity manager.

Note that if even one of the foreground processes for the
current user is missing its disclosure notification, the
user will see the whole dungeon.

Bug: 36891897
Test: runtest -x frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ForegroundServiceControllerTest.java
Change-Id: I4f5d96f80b7c1901faadb56661a42d26f746aa88
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
77cb4d2cd02d23464fdfd61745b98030d17faa9f 02-Jun-2017 Selim Cinek <cinek@google.com> Fixed an issue where would could be left with empty notifications

If the state between systemui and the notification manager got
out of sync, we would not immediately remove the notifications when
using clear all.

This could lead to holes in the notification shade
temporarily. While this isn't a fix, it helps avoiding these ugly
states, similarly to how we already do it when manually swiping.

This also improves that only notifications that are visible are
actually participating in the clear all animations instead of
all of them.

Test: manual, hit clear all observe animations / normal clearing
Bug: 62171447
Change-Id: I83d0f3cb0bae4bc43bf35d3f9399cebc05259680
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
aaaea497430e53b3b3f63b6602ad24fbe9bf161e 02-Jun-2017 Adrian Roos <roosa@google.com> AmbientIndication: Add tap again hint

Adds a hint for tapping the ambient indication again to open.
Also fixes an issue where the indication bottom padding was not correctly
updated if the indication was shown while the panel is collapsed.

Bug: 38387500
Test: tap indication, verify it shows the tap-again-to-open hint. Also verify that if the indication gets set while the phone is unlocked that sufficient space is reserved after transitioning to the lockscreen.
Change-Id: Ie9a152b0bd86807958376fd278ef9502c03af6b2
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
9cac5ffa587c9c87a640a4c01cffe7fc9b96f477 02-Jun-2017 Jason Monk <jmonk@google.com> Fixup tinting for keyguard status bar

- Tint all the things!
- Simplify onOverlayChangeds
- Probably some other stuff

Test: manual
Change-Id: I280c60c56e32f3f8c761da95db7737cf6cfcb5bd
Fixes: 62220433
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
1f1a2740d4dfe2134063a4f156f0e671be2a1f67 02-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge changes from topic 'lockscreen_themes'

* changes:
Change keyguard theme when wallpaper colors change
Themeable keyguard clock
Use theme color on transient text
Keyguard icon colors matching light or dark theme
987f1937a0231a2b6d09bf7c3bbb7df9de04d6b4 14-May-2017 Lucas Dupin <dupin@google.com> Change keyguard theme when wallpaper colors change

Bug: 38163994
Bug: 37014702
Bug: 62053168
Test: visual
Change-Id: I5a2da4ef2ad6fc1dab71588f2d0f5bd207731900
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
bb99cb3e6459f13b9f3f0abd988f833d82877399 01-Jun-2017 Selim Cinek <cinek@google.com> resolve merge conflicts of c08a40267be5 to master

Test: I solemnly swear I tested this conflict resolution.
Change-Id: I4acedef91b60b76d5e8f07d15ed92325a9d6c8b1
a7a39ea187480e86023ac92e6570dac0f9e40e2e 01-Jun-2017 Selim Cinek <cinek@google.com> Merge "Fixed an issue where the panel could be stuck tracking" into oc-dev
887ae68bb86719b9835792901a3c3ba437702773 01-Jun-2017 Charles He <qiurui@google.com> Merge "SystemUI: fix notification redaction logic." into oc-dev am: 5f3cab514b
am: 5de2e7dfe2

Change-Id: Ib7f35d8239f67be672ffeadaccc9d2c1f72354bb
32e43b71f37a8e15afa5e41cc9b9530069bd61e0 01-Jun-2017 Charles He <qiurui@google.com> Merge "SystemUI: fix incorrect redaction of profile notifications." into oc-dev am: 1a3bf132c8
am: 165f304de5

Change-Id: I155273a9147547b8f461072b73d61bb83e20fdfe
5f3cab514b42398463f59a46f8c646783683f31c 01-Jun-2017 Charles He <qiurui@google.com> Merge "SystemUI: fix notification redaction logic." into oc-dev
1a3bf132c8cd6391741ad9888ea67b7f508cd6c9 01-Jun-2017 Charles He <qiurui@google.com> Merge "SystemUI: fix incorrect redaction of profile notifications." into oc-dev
0d9f7d7bebe3fd08d6879ea3f8f13a153f036761 28-May-2017 Charles He <qiurui@google.com> SystemUI: fix notification redaction logic.

Previously, the logic for redacting sensitive notifications is flawed
for apps that have individually overridden the system-wide redaction
setting. Sensitive notifications from such apps are still redacted even
after unlock.

This CL fixes the issue and also simplifies the redaction logic by
taking advantage of the needsRedaction() method.

Bug: 35951989
Test: manual, see bug log
Change-Id: I6b72ed97b3056a93cbe44f54c607c16445f39551
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
8d4e99fe8b97360b824aeefbf96b840d7aadcc9a 26-May-2017 Adrian Roos <roosa@google.com> AmbientIndication: Move into container

This allows fixing the following bugs:
- ambient indication should be hidden outside keyguard
- ambient indication should animate with the unlock hint
- ambient indication should fade out when unlocking

Fixes: 38289189
Test: observe that the things above are working correctly
Change-Id: I34aff69bb5621a3f12c25e87eac6a89c8c7e2165
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
be2c443e21410bb27decec5d2aea60ef37f10c05 30-May-2017 Selim Cinek <cinek@google.com> Fixed an issue where the panel could be stuck tracking

Multiple issues are fixed that could lead to the panel being
stuck on the lockscreen. The easiest way to reproduce it was
to swipe up while on ambient display, which could easily happen
in a pocket.
This also adds some safeguards, such that it won't happen again
and ensures that notifications can't be swiped in AOD.

Test: add notifications in AOD, try swiping on them
Change-Id: I8ba0ebe72c3a2734b59443f3b93dbe5f1837cbbd
Fixes: 38486627
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
a614d3c8eb46985e17e523b0c16f7faf8ef5274b 30-May-2017 Julia Reynolds <juliacr@google.com> Merge "Suppress HUNs according to group alert behavior" into oc-dev am: 8bc45cb78f
am: 393efb57d7

Change-Id: I3d701017ccd7006e146c163ff651ae4e639065c7
8bc45cb78fafcd6165004addf9d8c538ee91b936 30-May-2017 Julia Reynolds <juliacr@google.com> Merge "Suppress HUNs according to group alert behavior" into oc-dev
e1411aa701b0307cf071daf8e3e6d043a8b1e478 30-May-2017 Selim Cinek <cinek@google.com> Merge "Fixed a bug where min-priority were in the middle" into oc-dev am: 7ddf54211f
am: 613ac93620

Change-Id: If2740716c8e5093176a839f880d8681109e63356
31581eb45e13f77a4a0b633304fdce06f9a04868 27-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Scrim opacity varies based on notification count"
a0bf851a557da6aac636440aa14862f5e916eae9 25-May-2017 Lucas Dupin <dupin@google.com> Scrim opacity varies based on notification count

Test: visual
Bug: 62068907
Change-Id: I7055f47443bf6520e42c00797d5c76108a824465
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
7ddf54211f35ef9cf203154db36148d659b53a7d 27-May-2017 Selim Cinek <cinek@google.com> Merge "Fixed a bug where min-priority were in the middle" into oc-dev
30203159f9b04a7955c4ebdbf8b61f1c754495a2 26-May-2017 Julia Reynolds <juliacr@google.com> Suppress HUNs according to group alert behavior

Test: runtest systemui, systemui-notification
Change-Id: I9f987bc0ba22f2d48b02585fd722880bb5c2a9b5
Fixes: 62126386
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
b5cc48f8c9c450d5d55e41cefbeb2fcfdf5bdf49 26-May-2017 Yoshinori Hirano <yoshinori.hirano@sonymobile.com> Merge "Collapse QS panel forcibly after dismissing Keyguard" into oc-dev am: dc23c5e809
am: 0a5d096384

Change-Id: I595e06692d61a4f8961254d6a2bddc5cc17b082a
c673fbc2c2eb37037dae9a8c55b1588ab398a116 14-Apr-2017 Yoshinori Hirano <yoshinori.hirano@sonymobile.com> Collapse QS panel forcibly after dismissing Keyguard

The Quick Settings panel is not collapsed when the screen lock is
unlocked by using TileService APIs (unlockAndRun() and
startActivityAndCollapse()).
To fix this issue, the QS panel should be collapsed forcibly when
startActivityAndCollapse() is called.

Bug: 38252721
Test: manual - install an app which calls startActivityAndCollapse()
inside the runnable passed to unlockAndRun().

Author: Yuta Yamada <yuta.x.yamada@sonymobile.com>
Change-Id: I82d1df368d5024283f58ee5cc2d42559aac28467
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
55a3e738a695d23982eb2e904f47a3435994a325 26-May-2017 Selim Cinek <cinek@google.com> Fixed a bug where min-priority were in the middle

The recent intrusiveness could elevate min priority notifications
temporarily and the reordering was also blocked while looking at it.
We're now allowing the shade to reorder if a notification updates to
min-priority.

Test: manual, add intrusive notification, update while looking at the shade to min
Change-Id: I75b23a7cbaecc8ae941d6680a924c79371c95991
Fixes: 37515606
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
fd0f4377abb091860b799684578dd8589683af98 26-May-2017 Selim Cinek <cinek@google.com> Merge "Fixed memory leak with the inflater" into oc-dev am: 3d5fd7a959
am: 9cd34aa978

Change-Id: I8466a554dbe03eb83f8f737ff76b159dde0fc532
3d5fd7a95993db3a96bd1ee712dc391ee57b9955 26-May-2017 Selim Cinek <cinek@google.com> Merge "Fixed memory leak with the inflater" into oc-dev
67ff248168fb77dadd81886df134cbfe048a6001 25-May-2017 Selim Cinek <cinek@google.com> Fixed memory leak with the inflater

Because min priority children could be removed from
their parents after the removal, a new inflation task
would be started, leading to the view being instantly
readded again. This lead to memory leaks.

It also fixes a bug where the inflation would not inflate
enough views that could lead to crashes / wrong layouts.

Finally there was a indexing error when handling removal
of group summaries.

Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/NotificationInflaterTest.java
Change-Id: Iac242946bd30060967ee7877560d40e63f39f996
Fixes: 62067645
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
c37a22aad6651f1bbcd002a56b35e51db4c3c8a7 25-May-2017 Charles He <qiurui@google.com> SystemUI: fix incorrect redaction of profile notifications.

There is a race condition for devices with unified profile challenge
when the device unlocks:
1) StatusBar queries TrustManager and caches the locked/unlocked state
of a managed profile, and
2) TrustManager updates its own record of the locked/unlocked state of
the managed profile.

If 1) happens before 2), StatusBar will keep an out-of-date state for
the managed profile, resulting in notifications in the profile being
redacted incorrectly.

This CL avoids the race by removing the dependency on TrustManager for
the case of unified challenge.

Bug: 35951989
Test: manual, with logging
Change-Id: I5ce9df017e1de3aca5236d1207fe1867fa5a80c2
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
5c0a17ce9aa0040ca3862a8502eb5c00643eb3c9 25-May-2017 Adrian Roos <roosa@google.com> Merge "AOD: Fix wakeAndUnlockPulsing transition" into oc-dev am: 838e365581
am: e90d58ed09

Change-Id: I93ab6feaf0b4fd36fa80fdc48878a5c71df70e26
88e61aad090a05e482e8f007cb5d92bcb338a2c1 24-May-2017 Adrian Roos <roosa@google.com> AOD: Fix wakeAndUnlockPulsing transition

Change-Id: Ia5d999f1756050a972f986357d563703abce7172
Fixes: 37878458
Test: Double-tap to trigger Ambient Display, use fingerprint to unlock. Verify transition is Buttery Smooth
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
e549a8d62108c7c7dabedbf4e77b9a653781723b 15-May-2017 Jorim Jaggi <jjaggi@google.com> Optimize latency when unlocking phone

Latency when unlocking the phone regressed a bit for two reasons:
- For lockscreen -> app we now have to create a full starting
window containing the snapshot, while previously this was just
showing a surface.
- For lockscreen -> home, we can't use the saved surface anymore
because currently we don't support snapshotting translucent
activities. However, in the long term, we want home screen to be
more involved into transitions anyways, so we'll have to wait for
the first frame draw anyways.

However, crystal ball trainee developer Jorim added some
artificial latency in this transition 3 years ago, because he knew
that it is going to be an issue at some point so we have some
headroom to improve! Genius! On a more serious note, it was because
he didn't understand how to read systraces with binders involved (to
be fair, there was also no binder tracing).

Now, we can completely fix the introduces latencies above by
removing this latency of 100ms, and we are 30-70ms better than
before! However, this requires a lot of discipline in SystemUI.
Currently, the callback to dismiss Keyguard takes around 30ms. By
moving all non-essential binder calls of the main thread or to the
next frame, we bring this down to 5ms, such that window animation
and Keyguard animation starts about at the same time.

Test: Take systrace, unlock phone...profit!

Fixes: 38294347
Change-Id: I481fe4ecf358ed09f7142dd9e7ecd290b53c500c
Merged-In: I3ea672bc2eca47221bc6c9f3d7c56b6899df207d
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
fabc743bcf6e6623e530545c4b31285ea642f087 15-May-2017 Jorim Jaggi <jjaggi@google.com> Optimize latency when unlocking phone

Latency when unlocking the phone regressed a bit for two reasons:
- For lockscreen -> app we now have to create a full starting
window containing the snapshot, while previously this was just
showing a surface.
- For lockscreen -> home, we can't use the saved surface anymore
because currently we don't support snapshotting translucent
activities. However, in the long term, we want home screen to be
more involved into transitions anyways, so we'll have to wait for
the first frame draw anyways.

However, crystal ball trainee developer Jorim added some
artificial latency in this transition 3 years ago, because he knew
that it is going to be an issue at some point so we have some
headroom to improve! Genius! On a more serious note, it was because
he didn't understand how to read systraces with binders involved (to
be fair, there was also no binder tracing).

Now, we can completely fix the introduces latencies above by
removing this latency of 100ms, and we are 30-70ms better than
before! However, this requires a lot of discipline in SystemUI.
Currently, the callback to dismiss Keyguard takes around 30ms. By
moving all non-essential binder calls of the main thread or to the
next frame, we bring this down to 5ms, such that window animation
and Keyguard animation starts about at the same time.

Test: Take systrace, unlock phone...profit!

Change-Id: I3ea672bc2eca47221bc6c9f3d7c56b6899df207d
Fixes: 38294347
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
bbc06abe377166f32c9421164064212c08a043e3 17-May-2017 Marc Hittinger <trojal@google.com> Merge "Update defaults for isHighEndGfx settings."
ef496ea80dfcc468bd051b9379f61e8fe141814d 13-May-2017 Jorim Jaggi <jjaggi@google.com> Optimize App -> Recents

- Use same strategy to draw thumbnail bitmap by moving
startActivity off from the main thread and start caching the future
when AM is busy executing startActivity.
- Move some binder calls off the main thread.
- Add some trace points for better analysis in the future.
- Make toggleRecentApps asynchronous so we don't have to wait on
the next app-vsync - it's totally not needed.

Test: com.android.apptransition.tests.LatencyTests

Fixes: 32668632
Change-Id: Id6483e26e9d6c1e319bceaa8268da976cedfbca3
Merged-In: I15db41f2e821779972ab3b430033c70aa1dfd907
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
6b46038e6a0e4c45cebe655f1c3bcf8986319853 13-May-2017 Jorim Jaggi <jjaggi@google.com> Optimize App -> Recents

- Use same strategy to draw thumbnail bitmap by moving
startActivity off from the main thread and start caching the future
when AM is busy executing startActivity.
- Move some binder calls off the main thread.
- Add some trace points for better analysis in the future.
- Make toggleRecentApps asynchronous so we don't have to wait on
the next app-vsync - it's totally not needed.

Test: com.android.apptransition.tests.LatencyTests

Change-Id: I15db41f2e821779972ab3b430033c70aa1dfd907
Fixes: 32668632
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
e658cc212a6b19319934d5142064cacff20f0d2c 27-Apr-2017 Anthony Chen <ajchen@google.com> Add ability to set a custom background for auto.

Also, clear heads-up entries when switching to notifications panel. Auto
does not want any notifications to be pinned to the top.

Test: booted up android auto headunit
Bug: 33210494
Change-Id: If722a887f4bc0d4a91ca37d4e7de5af94ca0f8dd
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
9ad00e090d2a6d979dbc6e7eae056e1655c8ef2b 13-May-2017 Anthony Chen <ajchen@google.com> Add a method that allows the shade to be toggled.

This method allows the shade to be dismissed when it's down and vice
versa.

An alternative is to expose a method that returns a boolean indicating
whether or not the shade is down and call the show/hide methods
appropriately. However, choose not to go with this approach since
IStatusBar.aidl is oneway.

Test: booted up on phone and AAE headunit
Bug: 35930275
Change-Id: I5b8cadc1793ff2e21f242e866c01f57de20fbea6
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
5a81ac8158e4d2061ce674137675c969b3c05cee 11-May-2017 Adrian Roos <roosa@google.com> Merge "AOD: Update wakeup animation" into oc-dev am: 40b34460ef
am: a6ca1c47a3

Change-Id: I04799d23877f1baae0acf632e5ee4b7a88844551
307f2d1530c5c03b5c128b12deaf026ceafeae28 11-May-2017 Adrian Roos <roosa@google.com> Merge "AOD: Anchor clock at a third of the height" into oc-dev am: 2af0676b2d
am: 65b4bb8cc2

Change-Id: I3b00e784eb3d264ba6543cd86a477773d6ed0435
40b34460ef10c7af4b2ffd50a348cd367e6465d3 11-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "AOD: Update wakeup animation" into oc-dev
28f90c78b213fb436b243126e8bc10c4f554bd1c 09-May-2017 Adrian Roos <roosa@google.com> AOD: Update wakeup animation

Fixes several issues with the wakeup transition.

Bug: 34716110
Test: Trigger ambient display, press power button
Change-Id: I1fa6e0be13c80a84356a8826ed18e9477bf2aba2
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
52414e31cd2e6388ce542f8c5819807c7b8ba7f6 28-Apr-2017 Adrian Roos <roosa@google.com> AOD: Anchor clock at a third of the height

Change-Id: Ie9074be76f23f9c353e38b515fd5a3cd9702696d
Fixes: 37646086
Test: Trigger AOD, observe that clock does not shift in response to notifications.
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
d74dedc24a32d9a5e969b836caa1eceb114b6cb9 10-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Rounded corners support, off by default."
d4afe152bf5cd93e5034f5b8b43b2f0fe0269a7f 01-May-2017 Jason Monk <jmonk@google.com> Rounded corners support, off by default.

Test: runtest systemui
Bug: 33208650
Change-Id: I63e11e36268e277cc1c5e70651fa5248aa8b3fc0
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
e63854a7bc5763d4554f928d951e19d72ec33e0a 09-May-2017 Anthony Chen <ajchen@google.com> Merge "Allow notification expansion to be toggleable."
522ec7f05b086bfa29e5b9109569c6c66c291fa4 09-May-2017 Mady Mellor <madym@google.com> Merge "Don't commit snooze on horizontal swipes or when its in its expanded state" into oc-dev am: 5ddf88dfe6
am: 0efd4ee719

Change-Id: Ib46bee991ccf218ee89e96f8d7e3e913be0099a5
5ddf88dfe650a6adc2b86a99d0792b9f024b0ad9 09-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Don't commit snooze on horizontal swipes or when its in its expanded state" into oc-dev
bd54d2c2bdc36e9ae317de088f0f7a25e955d905 09-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Handling the touch better when the screen turns off" into oc-dev
8d54bdb7e29b2fbf1a6b207d3166fc3620305f29 09-May-2017 Selim Cinek <cinek@google.com> Merge "Handling the touch better when the screen turns off"
2c2f0e27d1055fe79693b5ff4bbf7bd907073ade 03-May-2017 Selim Cinek <cinek@google.com> Handling the touch better when the screen turns off

Previously we were only cancelling touches when
showing keyguard, but this is not enough, since
a user might be touching it while on the keyguard
(e.g with falsing)

Fixes: 37287962
Fixes: 36416066
Fixes: 37696557
Test: manual, turn of screen while interacting
Change-Id: I572ade2380986ef087468dff721b1d1dfa7a48ab
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
6bf88a01d7811d9460e088e743882a02d6250b86 10-Apr-2017 Anthony Chen <ajchen@google.com> Allow notification expansion to be toggleable.

Android Auto does not want notificaitons that have actions to be
expandable. Rather, they should always be in their expanded state. The
only exception to this are grouped notifications, which should be
collasped by default. They also can still be expanded.

Modify the code to allow this to be changed. In addition, modify some of
the animation so that the dividers so not flash when the notification
group is expanding.

There is also a change to bring the header of the notification to the
front so that the child notifications do not overlap it. This is because
in Auto, the app name and icon are not displayed in the header, but the
expand button is still there.

Test: booted on phone and Android Auto headunit.
Bug: 33210494
Change-Id: I0a121a0eaee6159ccea9961721abe92603484a17
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
48a92a5dbbf98d9f0235554e2bea3c969f7f2cee 03-May-2017 Selim Cinek <cinek@google.com> Handling the touch better when the screen turns off

Previously we were only cancelling touches when
showing keyguard, but this is not enough, since
a user might be touching it while on the keyguard
(e.g with falsing)

Fixes: 37287962
Fixes: 36416066
Fixes: 37696557
Test: manual, turn of screen while interacting
Merged-In: I572ade2380986ef087468dff721b1d1dfa7a48ab
Change-Id: I572ade2380986ef087468dff721b1d1dfa7a48ab
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
afc4f9313c281e07efbfa20846d83f0c1c77f5ad 09-May-2017 Selim Cinek <cinek@google.com> Merge changes from topic 'background_inflation' into oc-dev am: 03fbdbe6ff
am: cc360f9b69

Change-Id: I456f81ff6300792e8639733d0115d878683d1694
03fbdbe6ffc769f864f62a5cd87183b9b299fe30 08-May-2017 Selim Cinek <cinek@google.com> Merge changes from topic 'background_inflation' into oc-dev

* changes:
Fixed the contrast for low-priority notifications
Moving Row inflation to the background too
Moving the inflation to the background
bae55d277c50b57df4733de57d646e47cda77ff3 05-May-2017 Daniel Sandler <dsandler@android.com> Merge "Make status bar disable() debugging more concise." into oc-dev am: e39fa61e0b
am: 1cb53d6888

Change-Id: I0b0b6744a7035bb092cc42eed29cec00dcb4a0df
e39fa61e0b09e77e7858508507f29c230c671ada 05-May-2017 Daniel Sandler <dsandler@android.com> Merge "Make status bar disable() debugging more concise." into oc-dev
c2dbe49bdcd487cb18bc97f5d4942224f64e8540 30-Mar-2017 Mady Mellor <madym@google.com> Don't commit snooze on horizontal swipes or when its in its expanded state

- Previously any touch outside of the snooze menu would commit the action
(similar to how notification info gets reset) now only touches that
aren't horizontal swipes will commit the action (if you snooze multiple
in a row, it's jarring for the snooze item to disappear when you hit
'down' on the next notification)
- Tracks expanded state of snooze menu
- Rather than commiting (i.e. snoozing) upon outside action when the
menu is expanded it collapses the menu, upon next outside action snooze
is commited

Test: manual / runtest systemui
Bug: 37253059
Change-Id: Ie0383fb8de49efe1b1bf0ed75d60cf75864f0210
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
f6f76bcfebd70a7570e8687bc889eb590ccea0c2 03-May-2017 Adrian Roos <roosa@google.com> StatusBar: Make sure showKeyguard is called when needed

- Fixes an issue where the keyguard was not visible after returning
from the bouncer because the panel was not expanded
- Fixes an issue where the keyguard was not hiding sensitive content
because the showKeyguard call was made before the keyguard became
locked
- Fixes an issue where the ambient display was showing bad state because
the panel was not expanded when turning the screen off.

Test: trigger bouncer, press back. Observe that keyguard shows again. Also, trigger bouncer, then lock. Observe that ambient display works. Also turn on "hide sensitive notifications on lockscreen", observe that it actually does that.
Fixes: 37868130
Bug: 37907366
Change-Id: Ic03e46a067d6e6a0152796136c39a0de66301008
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
0f66a4cc16ec1a927c90ac559c73c80ddcb5ee71 29-Apr-2017 Selim Cinek <cinek@google.com> Moving Row inflation to the background too

Previously only the contentview inflation was on the
background, now the inflation of the row is too.

Test: runtest systemui
Bug: 34888292
Change-Id: I3adc6b3311217421c9de5c37794397b8a3fd665d
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
b38bb750cacdbe7bdbe28ec44d4b717a6b773350 02-May-2017 Marc Hittinger <trojal@google.com> Update defaults for isHighEndGfx settings.

Enable ThreadedRenderer for persistent process by default, and do not
use black background behind status bar.

Test: Manually tested and profiled memory performance.
Change-Id: Ic6c535745f6f216e51c7966924268e750dbd355e
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
0b80c4e518110ba385a1b83d1e29325f164dc90d 01-May-2017 Jason Monk <jmonk@google.com> Revert "Revert "Extend extension support""

This reverts commit e9f2d284ef044c6df15165092036b9ef80ebb790.

Test: runtest systemui
Change-Id: I6d1ca9af8ee2fb4b242ccd2f9772f7d23cc35866
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
01d3da63cef1f82db182c6995264bf3ea3371dcc 29-Apr-2017 Selim Cinek <cinek@google.com> Moving the inflation to the background

The inflation of the notifications is moved to
the background. This should improve the general
performance when adding / removing groups and alike.

Test: runtest systemui
Fixes: 34888292
Change-Id: Ieb19a09a5a97d496d9319d917a5e317a3ad76fc4
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
db88dac4c01a59b9e550766e189c8fea6f98c993 30-Apr-2017 Dan Sandler <dsandler@android.com> Make status bar disable() debugging more concise.

Bug: 37252687
Test: development/tools/logblame/power_toggle_test
Change-Id: I09512a46ed60a26084e515ff2e930d6fd741cc66
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
4f7c67fcce8efd2a393f46074c1162f5bd6661f9 28-Apr-2017 Adrian Roos <roosa@google.com> Merge "AOD: Show keyguard while dozing but not locked"
e9f2d284ef044c6df15165092036b9ef80ebb790 28-Apr-2017 Guang Zhu <guangzhu@google.com> Revert "Extend extension support"

Bug: 37785708

This reverts commit 9933c1cf931c88c9220cc8e4c12fe5d05eb1d940.

Change-Id: Ic96e178835f5a9bbd2416f0e573975c60172388c
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
9933c1cf931c88c9220cc8e4c12fe5d05eb1d940 27-Apr-2017 Jason Monk <jmonk@google.com> Extend extension support

- Add support for ui mode type selection
- Convert plugin fragment listener over to extensions to be more
versatile
- Add tests

Test: runtest systemui
Change-Id: Id5f28aa14b16e5a12df0434c9792bce551011efb
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
087826ad11a3f4a6efdd5bbf376cd83a21ca584c 20-Apr-2017 Adrian Roos <roosa@google.com> AOD: Show keyguard while dozing but not locked

Fixes an issue where AOD would not work correctly between screen
off and when the keyguard actually locked.

Fixes: 30017474
Test: Settings > Security > Gear, set lock device after 30s, disable "lock immediately on power key", turn phone off, try double tap. should work without having to wait 30s
Change-Id: Ifa88e35a821b86a2ed8117ed8a63fc51b5304121
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
2630dc7ecf16a965321cfc615104f372cd2b0e96 21-Apr-2017 Selim Cinek <cinek@google.com> Moved notification builder creation to the background

In preparation of future colorization work, the creation
of the notification builder is moved to the background.

Test: manual, add notifications, update them etc.
Test: runtest systemui
Bug: 36561228
Merged-In: Iaec5febf4d8d9da348d77e0d4f6f61b9746fae16
Change-Id: Iaec5febf4d8d9da348d77e0d4f6f61b9746fae16
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
5ba2254df1cb71355efb0a3831581e2f2babcdbe 21-Apr-2017 Selim Cinek <cinek@google.com> Moved notification builder creation to the background

In preparation of future colorization work, the creation
of the notification builder is moved to the background.

Test: manual, add notifications, update them etc.
Test: runtest systemui
Bug: 36561228
Change-Id: Iaec5febf4d8d9da348d77e0d4f6f61b9746fae16
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
0b0841885286919ab7ff659e411b345a9d1fba06 21-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Ambient Indication: Add supporting infrastructure"
75fa9648ec9d11d8a0cb64a9a7e22c249906b132 18-Apr-2017 Adrian Roos <roosa@google.com> Ambient Indication: Add supporting infrastructure

Adds a stub for inflating the ambient indication. Also
adds some logic to the panel view to avoid the
indication by showing fewer notification while it's
there.

Bug: 36777988
Test: m SystemUI
Change-Id: Ifee218860a7561d77edf0f71a17e02c975132597
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
b2dd788e797380a6ecf0f26a009ebbe163b279dc 20-Apr-2017 Mady Mellor <madym@google.com> Merge "Update snooze visuals to match latest design" into oc-dev am: c1d9cdfe79
am: c69c1aafe2

Change-Id: Ie99c3f3aa3f7faf7d2ced99adca13c2788852b51
c1d9cdfe79edb9710e5ceb40a6ea53453b3a923e 19-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Update snooze visuals to match latest design" into oc-dev
266d403281588384d8d60c9b217dfbed58308d1b 18-Apr-2017 Adrian Roos <roosa@google.com> Merge "AOD: Implement redacted notificatinos" into oc-dev am: 89e8b7b58e
am: 0ded7c8578

Change-Id: I83239f9124595c1bd8ca113e3b6afcee48935375
9c63a51eba33855173959944c8d819f8dbab29c4 18-Apr-2017 Adrian Roos <roosa@google.com> Merge "AOD: Do not show guts nor snooze" into oc-dev am: 96da371a6d
am: a4f06716da

Change-Id: Id57b55adf501c3c58c36ae9e4bf2c119e7a137cd
7441c000b1cfd44c991ded51d290d962fecc9ad2 18-Apr-2017 Geoffrey Pitsch <gpitsch@google.com> Merge "Accessibility for Notification Inline Controls" into oc-dev am: 8c3a371bf3
am: dcceca2341

Change-Id: I65df8c670dccb50b023bdce64f4705d8b4814dab
89e8b7b58efe9a8b986c937dbb9ac806d34d2bf8 18-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "AOD: Implement redacted notificatinos" into oc-dev
6037c69765f43fb320b5f32c2923e665c0d20552 18-Apr-2017 Jason Monk <jmonk@google.com> resolve merge conflicts of 5e511e588d49 to master

Test: I solemnly swear I tested this conflict resolution.
Change-Id: I00afe80d65d03a3e2d6cf85c43d6c528fb2c137a
96da371a6d15a531db4c968a2182adace67d271e 18-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "AOD: Do not show guts nor snooze" into oc-dev
8c3a371bf3b349e8ad7b1c736187acd6d41301b0 18-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Accessibility for Notification Inline Controls" into oc-dev
1a1ecfcf5ae32482aee23ebc7c4389daf164cadd 17-Apr-2017 Adrian Roos <roosa@google.com> AOD: Implement redacted notificatinos

Test: Turn on "show sensitive notifications on lockscreen", receive notification, observe AOD
Bug: 36610748
Change-Id: I981ef4cea7cefc76dcd55ebad9d05c758927dabb
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
8604ac3af5d5ea9e50b9c14a0ff78e9b76e24a75 18-Apr-2017 Jason Monk <jmonk@google.com> Merge "Fix up color issues as a result of theme change" into oc-dev
e09fb7029ac29f337b8d3b9e564e5b994a9ed927 30-Mar-2017 Mady Mellor <madym@google.com> Update snooze visuals to match latest design

Also updates it so that the height animates going from collapsed / expanded

Test: manual / runtest systemui
Bug: 36249479
Change-Id: Ice10e42986eddc9b87ba79cd00dfc59fefef5464
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
da2259a4a5474945fc3eb0051c1ec7415df44237 18-Apr-2017 Adrian Roos <roosa@google.com> Merge "AOD: disable quicksettings while dozing" into oc-dev am: 1c4c981c03
am: 1eb27d06c5

Change-Id: I75bac43421227497d68e5e28790c256f86624421
3ca223a8ce3d43cd6411adecd393538150dd6d77 17-Apr-2017 Adrian Roos <roosa@google.com> AOD: Do not show guts nor snooze

Fixes: 37179751
Test: receive notification while phone is off, try longpress or accessing the gear icon through swiping, ensure neither works
Change-Id: If18ac166eac28cd7ad05a12f670b2ddbad9e29b8
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
d94e788318002dfb70545173773393ac1b389d20 06-Apr-2017 Geoffrey Pitsch <gpitsch@google.com> Accessibility for Notification Inline Controls

Send WINDOW_STATE_CHANGED event in status bar
Disable falsing when in touch navigation
Accessibility string for enable/disable switch
Bug: 34840327
Test: runtest systemui
Change-Id: I60cc7e49d9e6323e23a17183b8b10c9d857501bb
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
18c990104c8cc75aa080fa7dd96313252bf333a9 17-Apr-2017 Jason Monk <jmonk@google.com> Fix up color issues as a result of theme change

Test: visual
Change-Id: I9adc8b85b40e3ac2df6099655c7479c74675b7bb
Fixes: 37372025
Fixes: 37362926
Fixes: 37358881
Fixes: 37326340
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
68d468019ea7552c0b35f3f59a768552b5de3bcb 17-Apr-2017 Adrian Roos <roosa@google.com> AOD: disable quicksettings while dozing

Test: Trigger ambient display / AOD, verify quicksettings is not expandable
Bug: 37303800
Change-Id: I694360f4d728ff9714036d0b92176c922ff53e9a
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
bd2e0ace1407d37081758d56bba69250b655efaf 17-Apr-2017 Yoshinori Hirano <yoshinori.hirano@sonymobile.com> Merge "Fix EmergencyCryptKeeperText initialization" into oc-dev am: 1afa1646a2
am: 8a323ab65f

Change-Id: I7003321f7d5a66ec73d0e7f7765be3135a06536e
2696aa35770af7182f237abb5f0ef8e5f59f1c4d 10-Apr-2017 Yoshinori Hirano <yoshinori.hirano@sonymobile.com> Fix EmergencyCryptKeeperText initialization

Moved the initialization to CollapsedStatusBarFragment
because EmergencyCryptKepperText is included in status_bar.xml

Bug: 37198942
Test: visual

Change-Id: I1b87e4857cea7f7b582f7e0f6062b70da98df13a
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
bca5cb30a50305fe7697fc16f4e283d72cf86e81 15-Apr-2017 Adrian Roos <roosa@google.com> Merge "AOD: Prolong AOD2 after interaction, turn off AOD when prox covered" into oc-dev am: 490ef3cda4
am: 153159130f

Change-Id: Iabcf85cb191df80d1a24277dd420e3045838ded8
490ef3cda4c45b512730b470f4e26f8f9ceb7754 15-Apr-2017 Adrian Roos <roosa@google.com> Merge "AOD: Prolong AOD2 after interaction, turn off AOD when prox covered" into oc-dev
c0c18cafef9baee9aab8221579c1588ecec74403 14-Apr-2017 Philip Quinn <pquinn@google.com> Null-check mNavigationBar when returning its view.

Without this check there's no way to avoid a NullPointerException if
getNavigationBarView() is called before the navigation bar fragment is
created.

Bug: 36852229
Bug: 37330416
Bug: 37331698
Fixes: 36508501
Test: make -j; cannot reproduce bugs.
Change-Id: Ia3c9b4eaea26b78cdc39a446918047eb1f440d70
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
67cca7442bfeffc0bace506a796cfdd39e5d511c 14-Apr-2017 Adrian Roos <roosa@google.com> AOD: Prolong AOD2 after interaction, turn off AOD when prox covered

Turns off AOD 1 and 2 when the proximity sensor is covered.
Also extends the AOD2 duration when the screen is touched or
the lift gesture is triggered.

Also fixes some issues with the fingerprint unlock transition
from AOD where the doze state for the NotificationPanelView
was cleared too early.

Also hides the wallpaper while we're dozing.

Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/doze/DozeMachineTest.java
Fixes: 36893539
Fixes: 36893538
Fixes: 36033906
Fixes: 37327153
Change-Id: I3fccae1515a0daf2ff99589ed78ec947687e6262
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
5e3742e9e2722e10c99f9b0647cc884e505240e9 07-Apr-2017 Anthony Chen <ajchen@google.com> Allow the "clear all" button to be toggled.

Android Auto UX does not want a "clear all" button. Conditionally create
the "clear all" button depending on this config value.

Test: booted up on phone and Android Auto headunit
Bug: 33210494
Change-Id: Idc3d702efec5d51d6da28f5af3673248997270cc
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
066b8d8b5fa6cd3dee6ad15a646d0e1ff248d932 12-Apr-2017 Charles He <qiurui@google.com> Merge "Disallow direct-boot aware activities to bypass work lock" into oc-dev am: 9f074e2224
am: fd7eb11a2b

Change-Id: I221b89a01108e1d932a612f45b81798cebbaf66b
e7c5ced2119f89b8e8b722b9010e685db8168b69 12-Apr-2017 Charles He <qiurui@google.com> Disallow direct-boot aware activities to bypass work lock

Effectively reverting 89927b3cd96472c478a988d6c731cd09d412a043, which
allowed direct-boot aware activities in the work profile to show before
the profile was unlocked. This causes problems with key eviction
introduced in O. Specifically, many system activities (e.g.
ChooserActivity, activities in Settings, etc.) are marked direct-boot
aware, and therefore can be started while the work profile is locked
with key evicted. Currently they either bypass the keyguard when they
should not, or simply crash due to profile still being locked.

In the future, we need to create a new mechanism to allow activities
such as video calls, alarm clocks, etc. to bypass the work keyguard. It
probably involves checking for something like FLAG_SHOW_WHEN_LOCKED.

Bug: 36961785
Bug: 35708183
Bug: 30296144
Test: manual, by following the steps in the bugs quoted
Test: runtest -c com.android.server.am.ActivityManagerServiceTest frameworks-services
Change-Id: I5ccaaf963f3dd96e4abb785a10aa258b15363178
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
72a0339c013bae9ec8948aea8351c2fcab041ada 12-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Expose KeyguardBottomAreaView from StatusBar."
bb23c9b80baa674155a5dad8950c15a82bf86be0 06-Apr-2017 Julia Reynolds <juliacr@google.com> Merge "Show a link to app settings in notification guts." into oc-dev am: 0ff1b458ac
am: fafcda882b

Change-Id: I397e37d0cbff42be9bc41e42eef094a8237e9c9a
c844806fe94606899729415e928a3a097bca0e61 02-Apr-2017 Philip Quinn <pquinn@google.com> Expose KeyguardBottomAreaView from StatusBar.

Test: make -j
Bug: 36530846
Change-Id: Iaf6f81f00045ebf1169ab54ebb73fdfd8aa388cb
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
3aeddedc179db6921547e6bd652b0195102f4449 31-Mar-2017 Julia Reynolds <juliacr@google.com> Show a link to app settings in notification guts.

Test: runtest systemui, cts
Change-Id: I7204102d5c83d589af5d3da57f72068491c12daa
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
6ac83f9a83a2610c10c9f2cccc75fd2f24f256be 05-Apr-2017 Adrian Roos <roosa@google.com> Merge changes I70f79400,I2f8cab37 into oc-dev am: bb790ca951
am: b298e4f87c

Change-Id: Id26bc89dfc8ac5575293d4f9e8c241a66742c3a2
bb790ca951541b3ddcc456d2a98a53522e90756e 05-Apr-2017 Adrian Roos <roosa@google.com> Merge changes I70f79400,I2f8cab37 into oc-dev

* changes:
AOD: Adjust header to spec
AOD: Only show actually pulsing entries
ab066639b8dcbf7af14f85bd62ab5a31a7e8e0c7 05-Apr-2017 Geoffrey Pitsch <gpitsch@google.com> Merge "Inline Controls hide Settings button when no appropriate link." into oc-dev am: 18cbccbfb0
am: 6375068908

Change-Id: I9b90d07b011c019da8b24f17ded6d53742c17a53
18cbccbfb018b4de27096bf970fbdc091e316f1e 05-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Inline Controls hide Settings button when no appropriate link." into oc-dev
51689509610ff2f0893b85469a98a308d057203c 05-Apr-2017 Adrian Roos <roosa@google.com> Merge "AOD: update AOD2 views to spec" into oc-dev am: 146293b35c
am: 60c0420907

Change-Id: I7db2fc62ca26c3c5b89e37b529b18c783a4ef3bd
146293b35cb5c4eba3104e18d2bb666692ff8e11 05-Apr-2017 Adrian Roos <roosa@google.com> Merge "AOD: update AOD2 views to spec" into oc-dev
7d062c4549ac03d4d16953c3b800830c555a2ed4 31-Mar-2017 Adrian Roos <roosa@google.com> AOD: Only show actually pulsing entries

Fixes an issue where swiping away a notification on AOD2 would
expose the next notification.

Bug: 34716110
Test: receive notification while phone is off, swipe away notification, verify that the next notification does not become visible
Change-Id: I2f8cab37912e6b1edcc129c994a7138c80da7af9
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
d83e9999f73f479da14e716c825da4dbf169b657 16-Mar-2017 Adrian Roos <roosa@google.com> AOD: update AOD2 views to spec

- Increase notification header size
- Dim clock in AOD2
- Hide shelf in AOD2

Bug: 30876804
Test: manual
Change-Id: I272ff54bd0dbed0ae4271c922f62304401651fc9
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
029a3fa6dbad5b191bfb712166aa504a47ed8328 30-Mar-2017 Geoffrey Pitsch <gpitsch@google.com> Inline Controls hide Settings button when no appropriate link.

Notifications sent to USER_ALL when not the system user.
Fix bug when notification wants to unhide the settings button.

Test: runtest systemui
Change-Id: I45c91426c8ec68eac19ab33378a33e5376bfc9e2
Fixes: 36708034
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
c0e26219108c5928a7181f8f5c72030e24901709 01-Apr-2017 Winson Chung <winsonc@google.com> Merge "Ensure we show the PiP menu in response to KEYCODE_WINDOW." into oc-dev am: 2af994ec03
am: da7ef8060d

Change-Id: I715e2e79b729d28b856a8eda42b099db56cb0184
ac52f2892d5c72c26387d510093ddfc741a8a632 30-Mar-2017 Winson Chung <winsonc@google.com> Ensure we show the PiP menu in response to KEYCODE_WINDOW.

Bug: 36687605
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testWindowButtonEntersPip
Change-Id: I0bb35fd666eb6a438e4676267f6726b44bffb3db
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
f44cb65679aada3b5975d8822cf938313ffbdda0 30-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Expose KeyguardIndicationController"
5278d3d38c3c674a987bab18dd5f971d19244861 29-Mar-2017 Geoffrey Pitsch <gpitsch@google.com> Wait to unlock before changing notification importance

Test: runtest systemui
Change-Id: I66614de96e0a5c725ac6f6e7b76f64b39326ba6b
Fixes: 36264464
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
056d307a34787f5a42deac48bc7b1897806a2bbf 28-Mar-2017 Adrian Roos <roosa@google.com> Expose KeyguardIndicationController

Bug: 30608859
Test: make SystemUI
Change-Id: I2db573095ec544ed78b70db3ae0a7f5ec32c9f02
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
b29e0db8f812532a0a4ff9837b1485545f0e3460 27-Mar-2017 Jason Monk <jmonk@google.com> Merge "Fix status bar visibility initialization"
60033fc07023c617e22629b919180054a7ccb11c 24-Mar-2017 Jason Monk <jmonk@google.com> Fix status bar visibility initialization

Make sure it starts up to everything showing and that the StatusBar
calculates the bar mades after it is attached.

There is still a bug where the behind scrim is showing during SUW,
but this fixes many of the issues besides that case.

Test: visual
Change-Id: I93314c607e374c97d5c06f936ef8b7e07e057648
Bug: 36407135
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
8c09ac7435c62a8ba2e34d57a7ac3be2ddf23adc 16-Mar-2017 Jason Monk <jmonk@google.com> Clean up and cover more QS metrics

Change-Id: I4ab5e54398024c8b16ca8223f0639aadcdef4377
Fixes: 34801532
Test: runtest systemui
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
95d743c38c919dd500d9dcacf9f998500d403d9e 10-Jan-2017 Mady Mellor <madym@google.com> Add plugin interfaces to control notification menu / swipe behavior

1) Updates the notification menu plugin to do more:
- The plugin can now supply the view it wants to display behind a
notification as the menu
- Touch interaction (i.e. notification translating on top) is piped
through to the plugin so it can update the view behind the notification

2) Makes NotificationMenuRow an implementor of the plugin which moves
a bunch of that logic out of NotificationStackScroller

Test: runtest systemui
Change-Id: I8723b96c195ff7311317d5523418cfcbe2a79b52
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
d0856f00c748b598eee3106ae7d3f85ea8c91fdc 16-Feb-2017 Geoffrey Pitsch <gpitsch@google.com> Inline Notification Controls to full spec

Based off redline spec
Support bundled notifications when long-press on summary
Hide banned text when sent from the default channel

Test: runtest systemui
Change-Id: I9315b4dc12cafbdf37ba9896879bfbe23c8d6921
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
fd57db6ead1b990ed000c5cd15d8fd1d1668f13e 09-Mar-2017 Chris Wren <cwren@android.com> re-enable StatusBarTest tests

Also fix a broken test by passing the fake
logger deeper into the status bar.

Bug: 35138327
Test: runtest --path frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarTest.java
Change-Id: I74dda6fbcf1e48d9723cd0e7f63eff4a5e561338
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
ef3199040f0c87f130f8321d9e937604e9f46ca6 07-Mar-2017 Chris Wren <cwren@android.com> more testable MetricsLogger interface

Begin migration to non-static methods to allow easier mocking.
New clients should use the non-static methods.
Old clients that want to unit test metrics
should move to the new interface.

Bug: 35138327
Test: runtest --path frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarTest.java
Change-Id: I168f3787ee50ddde8aa2d42c05b2b816d1d3a30e
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
25e98e3c9222f2d84d2daab9f0f591cb2a7aa7fe 07-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Waiting for reinflating the notifications until the user switched"
e5b770e47d44a40d412c7d42010b2cf67920d9e3 04-Mar-2017 Jason Monk <jmonk@google.com> Updated QS UI

- Adds footer to QS which contains the date/alarm info
and all touch targets (settings, edit, etc.)
- Swaps out emergency + carrier text on cell tile for a
standard CarrierText from lock screen in the header
to make the header only contain status info.
- Add dividing line
- Work on animations

Test: runtest systemui
Change-Id: I97dfea1b1ea7006b53eb61ac3a1f942c64dd282d
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
4bf70f5f43a3101c9ccf29f45a193ba7c6397f77 03-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix initial StatusBar wiping out disabled state"
fc0f937722dd306ba9d077b0e9894331804ffafd 03-Mar-2017 Selim Cinek <cinek@google.com> Waiting for reinflating the notifications until the user switched

Previously we would react to density changes immediately even if
we were still switching users, which could apply a new density
to the wrong notifications.
We're now waiting until we actually switched.

Test: add notifications on different user with different density, switch
Change-Id: Ieb0094ba6740bd5b9c53b275127bd128bc19236e
Fixes: 30839163
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
00659bad38874f400297f58bc0d1037615de40fd 03-Mar-2017 Jason Monk <jmonk@google.com> Fix initial StatusBar wiping out disabled state

It was injecting some current disabled state before it actually
had any, which made us lose the disabled state.

Change-Id: Ie6947e72733212e3efcfaea09a59e586ae35fb1d
Fixes: 35767933
Test: Set pin, go to bouncer, look at home
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
5bfecd1079e45d5a5ec3b0316d6b510519ca3394 03-Mar-2017 Selim Cinek <cinek@google.com> Merge changes Ie009b2c3,I313b5334,Iae36fc6b

* changes:
Animating the statusbar icons now when closing
Fixed a few issues around notifications and density changes
All touches to low priority headers should be accepted
24176c3376775d78a7cd35f7d80c2c3f1b4ccdab 02-Mar-2017 Selim Cinek <cinek@google.com> Animating the statusbar icons now when closing

On the keyguard the statusbaricons would not animate
in if there were no notifications. We can't just magically
appear them in that case but need to animate them.

Change-Id: Ie009b2c351b7a45f9219ddc1114be79477ea692b
Fixes: 33652041
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
9ef119c76f8ab7bb4cf1c8b1a69a82fac0dda6f9 02-Mar-2017 Selim Cinek <cinek@google.com> Fixed a few issues around notifications and density changes

Because density and font size changes would actually be
delivered by Dependency, the SystemUI could actually get
the onDensityChanged after the onDensityOrFontScaleChanged.
Let's make sure all configuration changes now go through the
same listener.
This also ensures that the caching of the icon offsets is done
correctly, since the statusbar layout may actually be laid out
later then the shelf.

Test: change density from small to large, observe normal layout
Change-Id: I313b5334ccbb57f7929fe03dbd5119396123b137
Fixes: 35678628
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
3f80513733afc15adca877ed3421227cf56c57d9 02-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge changes Ic4370fa8,I81c43329,Ic563a8fe,I6d4be770,I858d1c95, ...

* changes:
Fixed a bug where a wrong notification could be visible
Fixed a bug where the icon would dissappear
Continued low-priority group implementation
Fixed an issue where the minimum height wasn't applied correctly
Worked around a bug where the view could render blank
Fixed another memory leak
Creating the right views for low-priority group children
Move the inflation away from the statusbar
c478f9023d7649d85e60759c9e6c0e033774293b 23-Feb-2017 Selim Cinek <cinek@google.com> Creating the right views for low-priority group children

Previously we always created the low-priority views even if it
was in a group, but now we use the collapsed or the singleline
one based on the group state.

Test: runtest systemui
Bug: 35125708
Change-Id: I49d418912f65c3bc8b672d383eb6a0526fcb8993
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
1a48babb5ed30e8a3eb9645355d6455b21041406 18-Feb-2017 Selim Cinek <cinek@google.com> Move the inflation away from the statusbar

Since the notifications need to inflate more dynamically
based on their own state, the inflation is moved away
from the statusbar.
This also improves the apply inplace logic, that was
reinflating all views even if only a single notification
layout was changed.

Test: runtest systemui
Bug: 35125708
Change-Id: I42a33065ab60b7c45ca979ae2d7baa1518bf92b7
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
ec34da8f6f31c5ee1e543c0c7999a067487e0ce9 24-Feb-2017 Jason Monk <jmonk@google.com> Add method for plugins to reference global dependencies

The new annotation versioning system allows plugins to share common
global interfaces that can be versioned on their own. To facilitate
this add a static method for plugins to get a hold of dependencies.
To get any dependency a plugin must @Requires it so it can be version
checked.

Test: Plugin that uses the new call.
Change-Id: I8e01260f8fbc14465502d506a7aa08212795ad9b
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
5098977b20699c2ed32a621524abd5a1b2ab7de4 23-Feb-2017 Julia Reynolds <juliacr@google.com> Change time methods to durations.

Test: cts, cts verifier, runtest systemui-notification
Change-Id: Ia612f59e91f3a3e1de14cd7217fe18ecaf61033c
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
8008bd1a2150b017753ef7406f3d1bb660b7ca22 22-Feb-2017 Adrian Roos <roosa@google.com> AOD: Enable double tap in AOD

Bug: 30876804
Test: Enable AOD; turn off phone, double tap; receive notification, double tap outside notification; on lockscreen, tap shade, should still bounce
Change-Id: Ifb32461432f64c333b3a86a29b5ac51dfc27a43d
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
89f423d3751fa63b095009bedb57b6faa765d69a 18-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix leak in NotificationStackScroller by nulling out translatingParent"
4c97b0a9920cea65e2d7d8607347946124de8c92 15-Feb-2017 Mady Mellor <madym@google.com> Fix leak in NotificationStackScroller by nulling out translatingParent

Once a notification is removed we don’t need to keep reference to
mTranslatingParentView.

Fixes: 35323108
Test: runtest systemui
Change-Id: Ibbecfde4b4f1ee56e3c4e0ec59fadf1284f6c6ce
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
e4b106b1aaf0f96a5006086d2a67e2c86e41c6a1 16-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix notification shelf icon showing on top of snooze leave behind"
2a7e2deb57bd5d29b94bce62fb0d906b15b6bd33 16-Feb-2017 Adrian Roos <roosa@google.com> Merge "AOD: Show fingerprint error messages"
dcdaaec8d5bb58b55d59a5759cb393e258c6d8d5 15-Feb-2017 Adrian Roos <roosa@google.com> Merge "AOD: Show High notifications on AOD"
d7937b348864d60472c5c8f700e748c97f596dff 15-Feb-2017 Jason Monk <jmonk@google.com> Merge "New system for versioning sysui plugins"
e4a2476ea9fbbb453d3fc137a1c876eb322eb868 14-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix status bar showing on lock screen on boot"
8b39573f1589b8c77d35df5e85ec8b92fe0b70c7 14-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Heads-up notifications of increased height behave better"
1e5ba5d087d8800407134af095aa4303e8721dbf 14-Feb-2017 Jason Monk <jmonk@google.com> Fix status bar showing on lock screen on boot

Fix dispatching of disables through StatusBar.

Change-Id: Iee5e5d8cdf64f06b28986ff599aa3479c712980f
Fixes: 35200453
Test: visual
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
91ba307d9bbd1b9c62feb1bea1d8035d11572d72 14-Feb-2017 Adrian Roos <roosa@google.com> AOD: Show fingerprint error messages

Change-Id: I6570bffed1632b5e42ad5f82f7e0ab6192e04e1d
Fixes: 34902351
Test: Enable fingerprint, get notification on Ambient Display, try to unlock with wrong finger. Verify that the fingerprint not recognized message shows
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
649924d030929a484053f9d432dce3931668a541 14-Feb-2017 Adrian Roos <roosa@google.com> AOD: Show High notifications on AOD

Previously, it was only Urgent.

Bug: 30876804
Test: Receive notification that is high, but does not peek (e.g. Gmail) while screen is off. Verify it shows on Ambient Display
Change-Id: I9233a96abbc55a54dc5fab81ad79ee0980a0a035
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
9031554c25ff06ffeb7bf761cd74989b18c19551 14-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "AOD: show AOD1 instead of AOD2 on double tap"
434180ce5155f0c405080698031f05e9eab3dd4c 13-Feb-2017 Mady Mellor <madym@google.com> Fix notification shelf icon showing on top of snooze leave behind

Also fixes an issue where the guts closed listener would always call
onHeightChanged because the notification isn’t marked as removed
until after the listener gets called.

Fixes: 34866027
Test: Manual - have one notification, snooze it
Change-Id: Ic67bdb353b8bb5df8bdaaf6d3e71ade7da05ee46
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
87ed69bd6b652c716364e05ba5bad6517eb005c8 10-Feb-2017 Selim Cinek <cinek@google.com> Heads-up notifications of increased height behave better

In the shade, the heads-up version when their height is
increased now behave better and the notification shows more
then a single message as well.

Test: add heads-up for messaging style notification while shade is expanded
Bug: 34469375
Change-Id: Ia3475eec5b4474aae950ef0eb84afb28689245ae
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
b2a872906c04bb36d622b952881667e71f76c52e 13-Feb-2017 Adrian Roos <roosa@google.com> AOD: show AOD1 instead of AOD2 on double tap

Bug: 30876804
Test: Have a notification showing, turn off screen, double-tap to Ambient Display, observe that device shows only the time and notification icon, not the expanded notification
Change-Id: Ic9b9fc392b67b0411588c1287cdf61ca2397990d
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
df44b606f357bb67e7a3b44e58f551c1c731ce42 03-Feb-2017 Geoffrey Pitsch <gpitsch@google.com> Updated Inline Notification Controls

Removed old xml resources, strings, dimens, etc
Different behavior when sent from the default channel.
Display how many notification categories are used by the app.
Group label when channel is associated with group.
Add package icon.
Fix tap-away-to-save behavior

Test: runtest systemui
Change-Id: Ib41a536a5c4e7c7747a2453eddc3b4b4b99ffa7a
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
5bec68fbea1a02d7debc2eeeaf01b9478de216e5 09-Feb-2017 Jason Monk <jmonk@google.com> New system for versioning sysui plugins

Use annotations to handle the multi-dimensionalness of interface
versions, but still maintain compile time inclusion of current
versions.

Test: runtest systemui
Change-Id: I0789a72112cf6630a6406f76020071c8a6d9e24c
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
34895c404b0153f021094d149cf36918edbd4552 09-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge changes I348c18dc,I0c33d519

* changes:
SysUiLeaks: Detect leaks in TunerService
SysUiLeaks: Detect leaks of NotificationData.Entry
f6d562b83f16fe9a90464179087110c869640cf7 03-Feb-2017 Adrian Roos <roosa@google.com> SysUiLeaks: Detect leaks of NotificationData.Entry

Bug: 34932615
Test: manual
Change-Id: I0c33d5194fe94e99b7bebe3a04a3730e41575080
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
aa573e9e8632552d1fa8bdd6b0ee408ff9a93a6b 27-Jan-2017 Jason Monk <jmonk@google.com> Work on separating out the status bar management

Lots of stuff:
- Make StatusBarIconController be a permanent dependency
- Break out dark stuff into DarkIconDispatcher
- Create StatusBarFragment
- This bit is a bit ugly for now, but will be better later
- Other stuff probably

Test: runtest systemui
Change-Id: I4973bc9f944e66af92731bf1edd2b39657f1782f
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
54f9672986b86abf010852ec692b76dfa6090dce 08-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Use the Context name to publish and use vrmanager"
d0e1022237305e374e34c9f7afcdff373d5f0290 08-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "SysUI: Add method for plugins to keep status bar full screen"
8deb67cb64b0cd93be545caf7887a12ed3611841 08-Feb-2017 Craig Donner <cdonner@google.com> Use the Context name to publish and use vrmanager

Bug: 34736524
Test: build
Change-Id: I8aabb4d242fb2378b24dd30a972c382a7f8f4934
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
421a9410b462770544c6ae9a554542fa2fe1acb1 06-Feb-2017 Jason Monk <jmonk@google.com> SysUI: Add method for plugins to keep status bar full screen

Lots of things detect overlays these days (installing apps) and the
only way to avoid the problems associated with this is to live in
the status bar window. So allow plugins to hold the window open
when they want to so they can have overlays be in that.

Move StatusBarWindowManager to Dependency to make things easier
as well.

Test: Install the example plugin, test can access QS and interact
with apps

Change-Id: Ib2288bf56704960847217bad01a480ab407e0ffe
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
2187d34e3509b7590ec5177555c96f8e9108d04e 03-Feb-2017 Julia Reynolds <juliacr@google.com> Highlight selected channel on launching settings.

Test: manual
Change-Id: Iae49dcf8989a6524012897c321c0499e784a05e1
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
cd1d343ffd26927db4d8773941f1c9286ad6b5a4 06-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "StatusBar: Clean up buzzBeepBlinked and friends"
5bed8d17af58b4670524ea3e01ce2a7e7558fd50 06-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Longpress overview in minimized mode only for resizable launches (1/2)"
fb692acb647b19b078a95fab8f186f1ca1469250 02-Feb-2017 Matthew Ng <ngmatthew@google.com> Longpress overview in minimized mode only for resizable launches (1/2)

Since resizable launchers in minimized mode shows more of the docked
stack than in non-resizable launchers, it will play the same
functionality as split screen where long press overview button will
exit split screen into fullscreen mode.

Test: test was written - adb shell am instrument -w -e class
com.android.androidbvt.SysUIMultiWindowTests
com.android.androidbvt/android.support.test.runner.AndroidJUnitRunner
Fixes: 34892561
Change-Id: I9f957dada1b325b36068d59fa9b2d1fa4912b804
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
1bf6077afeecec35fe0d57072e851f9810e937cd 04-Feb-2017 Adrian Roos <roosa@google.com> SystemUI: Add LightBarController dump

Test: adb shell dumpsys activity service com.android.systemui
Bug: 34198865
Change-Id: I7b109449b3d5e392a55740a8237bd43c509089a7
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
4f3463290bfaa2942f201fb48f82403895053873 03-Feb-2017 Selim Cinek <cinek@google.com> Merge "Increased the collapsed size of messaging notifications"
d7af66d0c3439a62e6157c6e60f10aae4acb337b 02-Feb-2017 Jason Monk <jmonk@google.com> Merge "Move recents CommandQueue callbacks to recents"
580f32d7b01cd94487b6473c47854cf01a03f53e 02-Feb-2017 Geoffrey Pitsch <gpitsch@google.com> Merge "SystemUI uses Builder API with NotificationChannel"
764da991def991a3aa7f09ab715ad18062e79cd9 02-Feb-2017 Jason Monk <jmonk@google.com> Move recents CommandQueue callbacks to recents

This will make it a more common and less broken place for both
handset and TV.

Fixes: 34813216
Test: make and click on recents button.
Change-Id: I2fd9c3103e2be28a19497719ac5763c064beeed1
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
b3f0849c3edfdb9f48c7171199467944457bc527 02-Feb-2017 Anthony Chen <ajchen@google.com> Merge "Refactor notification to allow for overlay by Android Auto."
1dc93bc407540561ebba1cc007073ab9c71d7a4e 31-Jan-2017 Geoffrey Pitsch <gpitsch@google.com> SystemUI uses Builder API with NotificationChannel

Some changes to channels based on UX feedback.

Test: runtest systemui
Change-Id: I1b2f661ba145d6926035f992231dc3c2f8cbf844
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
27a52fa86bd279407575192fc9842b6a54624cfb 01-Feb-2017 Chris Wren <cwren@android.com> port status bar logs to Tron V2

Bug: 33303260
Test: runtest --path frameworks/base/core/tests/coretests/src/com/android/internal/logging/legacy/ && runtest --path frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone
Change-Id: I7746b846247e930617f0b440217635e71ed58bb5
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
643e51e3a1b2704c2f081e731311e176a0d90197 31-Jan-2017 Adrian Roos <roosa@google.com> StatusBar: Clean up buzzBeepBlinked and friends

Test: mmm frameworks/base/packages/SystemUI
Change-Id: Idcd1fe02e825c18782880d8d12345776a3928ddf
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
58c4d503b528657320da0960ce8fba8b7b2654c7 01-Feb-2017 Adrian Roos <roosa@google.com> Merge "AOD: Fix in-place ambient layout updates"
3cb3ad9998b478845538604c3ee3635a31642185 01-Dec-2016 Anthony Chen <ajchen@google.com> Refactor notification to allow for overlay by Android Auto.

Android Auto requires different styling for notifications. In
particular:

- Background of scrim to be a different color
- Notification shade should always be full width
- No quick settings
- User switcher always visible
- Card styling, such as rounded corners and more spacing between items.
- Notification shade to be triggered from a button on the navigation
bar.

Refactored different areas of the framework to allow for this. This
mostly means extending notification code and overriding methods where
appropriate.

Test: manually tested
Bug: 33487455
Change-Id: Ifcea70e121c1cbbeb057bb6ce8d351336ae41554
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
bd5bf5eaa45dfd92f0829d5bb95a14cb0f09f2ce 31-Jan-2017 Selim Cinek <cinek@google.com> Fixed an issue where heads-upped notifications would stay

If a heads up notification was briefly removed right after
it was added it could linger around in systemUI until
the panel collapsed.
We need to make sure not to apply this improvement if
reordering isn't allowed, otherwise it will never time out

Test: existing tests pass
Bug: 34608075
Change-Id: I7768f6111ada30edcb997a42940e5e336efe1cf2
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
7d1009b3bd3b69768f293eb73109c52b8da8ec8e 26-Jan-2017 Selim Cinek <cinek@google.com> Increased the collapsed size of messaging notifications

Messaging notifications now get an increased boost in size,
since those are usually important to the user.

Test: existing tests pass
Bug: 34469375
Change-Id: Idfc2d2403b04c4c2d17b821e3ccbbbd48d31654d
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
c68b34191af628fa3e6a1f5f9b2b4bfccb6cd987 27-Jan-2017 Adrian Roos <roosa@google.com> Merge "AOD: Fix fallout from new Ambient Display"
4320e89ffa0a59599055cfb06ea19352fbf39fde 24-Jan-2017 Adrian Roos <roosa@google.com> AOD: Fix DirectReply

Test: Receive notification with RemoteInput on Ambient Display, tap the action with the remote input. Observe that the device wakes up, unlocks and opens the RemoteInput.
Bug: 34500641
Change-Id: Iabb3ca0b33944cdf41c798852ff68cd74489bff4
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
05d3d00abac5dd60a3543291c6c51e5b6242aee3 27-Jan-2017 Adrian Roos <roosa@google.com> AOD: Fix fallout from new Ambient Display

- Double tap on shelf did not wake up phone
- Calculate content height hint after setting new visible type
- Clean up content hint calculation for type ambient

Test: Trigger ambient disply. Observe that clicking on shelf works. Observe that the actions are not cut off.
Change-Id: I494fdd9f75e0fc3243d801f7d8f209eec44d2d84
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
95d3aa31738bcc150be2c8d5e1d6c14707b5c919 27-Jan-2017 Adrian Roos <roosa@google.com> AOD: Fix in-place ambient layout updates

Change-Id: I7863bd5690476b76456182ee37527548f4acb54d
Fixes: 34734890
Test: Post notification, post update to notification, enter ambient display, observe that ambient display is up to date.
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
2a6ea9c2a1b52b0386270ec73e1e6d6a9b614a34 26-Jan-2017 Jason Monk <jmonk@google.com> Delete BaseStatusBar

It is a relic of a more complex time, but has passed out of all
knowledge for too long.

Test: manual testing on phones and TV
Change-Id: I62a15d9413ea4bda3ac82bf6f7d22c096e2c1cdc
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java