Commit Graph

759 Commits

Author SHA1 Message Date
TreeHugger Robot
510cdad67b Merge "Fixed a bug where notifications could be dimmable" into oc-mr1-dev 2017-08-25 02:07:15 +00:00
Selim Cinek
8a9308d33c Fixed a bug where notifications could be dimmable
Because of a delayed call, notifications could become
dimmed again after the unlock.

Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayoutTest.java
Change-Id: I76e847cf6d3c8a34ca4b6dd16b1c8e13ddfe4993
Fixes: 64868746
2017-08-24 12:35:17 -07:00
TreeHugger Robot
130d850614 Merge "Add extensionController based on PackageManager FEATURE" into oc-mr1-dev 2017-08-24 19:33:53 +00:00
Lujiang Xue
bac4b7d1b1 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
2017-08-24 10:15:50 -07:00
TreeHugger Robot
07168bf44b Merge "AOD: Fix crash when AOD is stopped immediately after starting" into oc-mr1-dev 2017-08-23 17:12:27 +00:00
Adrian Roos
5502b8942f AOD: Fix crash when AOD is stopped immediately after starting
Fixes an issue where the screen state was set after DozeService was already
destroyed, causing a crash.

Change-Id: I13ff590b62f905330ccb438692410e118b76c242
Fixes: 64907936
Test: runtest -x $ANDROID_BUILD_TOP/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeScreenState.java
2017-08-23 15:41:54 +02:00
TreeHugger Robot
9d41e8cd47 Merge "Fixed a bug with decorated custom views" into oc-mr1-dev 2017-08-22 22:48:14 +00:00
Selim Cinek
fc8073c4b6 Fixed a bug with decorated custom views
Even if their layout still maches, the content was unrecoverably
destroyed, so we can't just reapply it anymore.

Fixes: 62911941
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/NotificationInflaterTest.java

Change-Id: I3a50c96484686958570ac5e4949df3ad4b8a421a
2017-08-22 14:58:59 -07:00
TreeHugger Robot
70b438cadf Merge "Hide subtitle for dialog from QS when applicable" into oc-mr1-dev 2017-08-17 18:00:03 +00:00
Daniel Sandler
d33fe05c66 Merge changes from topic "revert-injectors" into oc-mr1-dev
* changes:
  Revert "Add API to allow apps more control over instantiation"
  Revert "Add plugin to swap out recents"
2017-08-17 14:32:40 +00:00
TreeHugger Robot
0480580696 Merge "Protect against weak pointer crash." into oc-mr1-dev 2017-08-16 16:29:03 +00:00
TreeHugger Robot
d8e7cb4b47 Merge "Fix broken test" into oc-mr1-dev 2017-08-15 22:04:58 +00:00
Dan Sandler
f6e33b1b33 Revert "Add plugin to swap out recents"
This reverts commit 0ea67d82e3.

Bug: 64345190
Change-Id: I353c064db7bfaf91e98b5fd0d3e7180381a1b2b8
Test: n/a
2017-08-15 16:45:07 -04:00
Jason Monk
0f5d402c1e Protect against weak pointer crash.
Because assuming GC won't run within any period of time is not a
valid testing strategy.

Test: runtest systemui
Change-Id: Id29ab777a70ca27b6ca33bd2a44cfb4c38f0fd09
Fixes: 64581449
2017-08-15 14:29:49 -04:00
Lucas Dupin
143c678bb5 Fix broken test
Change-Id: Iee80b8ec552f960dac08bfa062c128337eb22eff
Fixes: 64715967
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/colorextraction/SysuiColorExtractorTests.java
2017-08-15 11:28:23 -07:00
Winston Man
9aaa8cfc91 Hide subtitle for dialog from QS when applicable
- Always show device management subtitle
- Hide subtitle for others (vpn/network monitor/ca) if there is only 1
message
- Show subtitles if there are multiple messages

screen shots of a few combinations of conditions

device management + vpn
https://hsv.googleplex.com/5171127252942848

device management
https://hsv.googleplex.com/5156831890505728

vpn
https://hsv.googleplex.com/4788656657137664

ca + vpn
https://hsv.googleplex.com/6238262343499776

ca
https://hsv.googleplex.com/5725008114483200

ca + network log
https://hsv.googleplex.com/5145599846383616

network log
https://hsv.googleplex.com/5124533736439808

Bug: 64555046
Test: hard coded valued for each condition
Test: runtest --path frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/QSSecurityFooterTest.java
Change-Id: Id9fcd8f0727eb2d40338c8c0d6530ab576f7b310
2017-08-15 19:18:32 +01:00
TreeHugger Robot
8170ea1b3c Merge "Fix race condition crash" into oc-mr1-dev 2017-08-15 16:43:24 +00:00
Jason Monk
9c4faa85f1 Fix race condition crash
1 line fix
Lots of lines for test

Test: runtest systemui
Change-Id: I90b006b5d9c02025ecc600c2f10014a96cbf33f8
Fixes: 62573587
2017-08-15 09:32:27 -04:00
Jason Monk
a3c3d850fb Make sure network tests pass with airplane mode on
Test: runtest systemui
Change-Id: I0cc619d28b6802c0791c5880651ce1f91ea83f35
Fixes: 38023097
2017-08-14 11:04:42 -04:00
Adrian Roos
63953ef041 Merge "AOD: Fix navbar flicker when transitioning to AOD" into oc-dr1-dev
am: 1cbfe74fc2

Change-Id: I6b5c4ce303455e592ecb0e6c6bfcd238fbd8a7ef
2017-08-11 23:54:50 +00:00
TreeHugger Robot
1cbfe74fc2 Merge "AOD: Fix navbar flicker when transitioning to AOD" into oc-dr1-dev 2017-08-11 23:43:11 +00:00
Jason Monk
577e6bebd0 Merge "Change default temp threshold to use shutdown temp" into oc-dr1-dev
am: 84626a4e3d

Change-Id: I4c3c5be04aaa1eee409ea706b387370cedf5b15b
2017-08-11 22:29:00 +00:00
Adrian Roos
8db9311cb6 AOD: Fix navbar flicker when transitioning to AOD
Under certain circumstances, the transition to AOD can happen before
the navigation bar gets a chance to hide itself, which happens in a
traversal. To work around this, post turning the screen on such that
it only happens after the next traversal.

Change-Id: I178b9394e7cc6baa8e9552c9819c3ce9b044defb
Fixes: 64599221
Test: Open Whatsapp / Gmail, turn off screen, verify navbar does not flicker.
2017-08-11 14:29:35 -07:00
Jason Monk
d819c31050 Change default temp threshold to use shutdown temp
Base the temp threshold to be based on the shutdown temp lowered
by some amount to ensure the warning can be seen before a shutdown.

Test: runtest systemui
Change-Id: I033a776e874d76018592954932ed5127e1b228ae
Fixes: 62845934
2017-08-11 14:44:51 -04:00
phweiss
ae76c77780 Dismiss SystemUIDialogs on ACTION_CLOSE_SYSTEM_DIALOGS
This fixes the bug where different dialogs can appear
over the ambient screen or the Recent Apps screen.

Bug: 63286397
Test: manual, runtest systemui
Change-Id: I86d0cdd3d30e0ea8cbdae2dc220e1f988cf6decb
(cherry picked from commit 679dc2492c)
2017-08-11 10:38:19 +00:00
Beverly
334bc5fc77 Low battery notification has unique sound.
Change-Id: I51c8e099da04d4bf1a55d081c9fce7fc8fb90bd1
Fixes: 63853037
Test: runtest systemui
2017-08-09 16:57:28 -04:00
Jason Monk
0a19be5607 Merge "Make NearestTouchFrameTest run on more device configurations" into oc-dr1-dev
am: a083c8f83a

Change-Id: I472011ba027b2d6b363807cee098e6114c231d38
2017-08-04 17:38:34 +00:00
TreeHugger Robot
a083c8f83a Merge "Make NearestTouchFrameTest run on more device configurations" into oc-dr1-dev 2017-08-04 17:26:55 +00:00
Jason Monk
e57e9dcadf Make NearestTouchFrameTest run on more device configurations
Test: runtest systemui
Change-Id: Ied095c1e884d1ca95531e2f4e182f1d1bcaaeb35
Fixes: 64339927
2017-08-04 10:59:13 -04:00
Adrian Roos
243edb8950 Merge "AsyncSensorManager: Fix unregistration bug" into oc-dr1-dev
am: 6583c37a1b

Change-Id: I6c5fd9d65202fd9b7f2c784d84e5b2dbbff7b6d2
2017-08-04 14:13:47 +00:00
Adrian Roos
6583c37a1b Merge "AsyncSensorManager: Fix unregistration bug" into oc-dr1-dev 2017-08-04 13:59:33 +00:00
Adrian Roos
e2038e5709 Merge changes I901908d9,Iac9835ad into oc-dr1-dev
am: 47aac56746

Change-Id: I6e90dd7720b41c22bd7f87114e3854d028be0346
2017-08-04 13:31:17 +00:00
Adrian Roos
47aac56746 Merge changes I901908d9,Iac9835ad into oc-dr1-dev
* changes:
  AOD: Fix RemoteInput from dozing
  AOD: Fix janky launch transition from AOD2
2017-08-04 13:20:02 +00:00
Adrian Roos
b1f77247c2 AsyncSensorManager: Fix unregistration bug
Fixes an issue where unregistering a listener without specifying a sensor did
not work correctly; when passing null as the sensor, SensorManager.unregisterListener
silently ignores the call; instead, we now call the proper variant if given a null
sensor.

Change-Id: Iac362d8d6ae966308578cb4f177bd37af10b81a2
Fixes: 64357270
Test: runtest -x $T/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/AsyncSensorManagerTest.java
2017-08-04 13:17:44 +02:00
Adrian Roos
33fa840298 Merge "AOD: Add support for dimming in software" into oc-dr1-dev
am: b2107c9b56

Change-Id: Ic3cf031a067ae6221ae9e8fb3acdcd1625dfa7bc
2017-08-04 09:52:31 +00:00
Adrian Roos
6d5ebb7b70 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
2017-08-04 11:45:58 +02:00
Adrian Roos
c8e29e7886 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
2017-08-03 20:14:31 +02:00
Beverly
7084e59bae Merge "Added null test to avoid regression for onRemoteVolumeChanged." into oc-dr1-dev
am: 6407874ae0

Change-Id: Ib0fcc0592a57be6bce184b729f1c25ee02595062
2017-08-02 18:39:02 +00:00
TreeHugger Robot
6407874ae0 Merge "Added null test to avoid regression for onRemoteVolumeChanged." into oc-dr1-dev 2017-08-02 18:22:03 +00:00
Beverly
4e9366183f Added null test to avoid regression for onRemoteVolumeChanged.
Change-Id: Iebcf30a381250c06055143528914632a00e474bc
Fixes: 63946353
Test: runtest systemui
2017-08-02 13:53:58 +00:00
Jason Monk
d789b7b99f Merge "Make it easier to click on phone nav buttons" into oc-dr1-dev
am: 7d08ca6e4d

Change-Id: I8e2c578cb564b2bc2de7c793eb40dea2639fa04e
2017-08-01 19:52:08 +00:00
Jason Monk
9262c942b5 Make it easier to click on phone nav buttons
When touches fall through the normal click targets, redirect them
to the nearest view.

Test: runtest systemui
Change-Id: I48267d9b1e15bf8dbe8725b72326751b03196efa
Fixes: 64080938
2017-08-01 12:29:59 -04:00
Adrian Roos
13b17b2990 Merge "AOD: When prox covered disable touch during pulse instead of aborting" into oc-dr1-dev
am: 3cace2a148

Change-Id: I94e9f30fa3f56b56c140f834674d38b776c8ed21
2017-07-31 12:36:20 +00:00
Adrian Roos
a6c03f8d27 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.
2017-07-28 14:09:52 +02:00
TreeHugger Robot
a33b64cea0 Merge "Differentiate dnd countdowns/countdowns to an alarm" into oc-mr1-dev 2017-07-27 14:23:03 +00:00
Julia Reynolds
7635ab0a1b Differentiate dnd countdowns/countdowns to an alarm
Test: runtest systemui, manual
Change-Id: I63b6c6b4128c7c3551efc64f54ce3e55ab2de54d
Fixes: 36569568
2017-07-26 16:07:12 -04:00
Beverly
deb56eb3f5 Merge "Volume dialog doesn't show on ambient/aod." into oc-dr1-dev
am: 382644aa74

Change-Id: I7c8bfab80e82d2841f43a75ce7fddc0b03cacc70
2017-07-26 16:40:41 +00:00
TreeHugger Robot
382644aa74 Merge "Volume dialog doesn't show on ambient/aod." into oc-dr1-dev 2017-07-26 15:34:32 +00:00
Lucas Dupin
ef15776aaf resolve merge conflicts of a1f64b0a91 to oc-mr1-dev
Test: I solemnly swear I tested this conflict resolution.
Change-Id: Ic2395d055e1f27b186c3b87be5440dc410ee16a3
2017-07-25 12:00:01 -07:00
TreeHugger Robot
a1f64b0a91 Merge "Fix jank when switching themes" into oc-dr1-dev 2017-07-25 17:40:02 +00:00