800 Commits

Author SHA1 Message Date
Evan Laird
1fed537674 Merge "SystemUI: Display RAT icon when data is off"
am: e441298a11

Change-Id: I483d17ac1ef79b9b6f31bbefaf03f7833e13020b
2017-12-04 14:50:15 +00:00
Evan Laird
e441298a11 Merge "SystemUI: Display RAT icon when data is off" 2017-12-04 14:37:16 +00:00
Brett Chabot
e1843d67b6 Adjust tests to new android-support-test + espresso libraries.
(cherry picked from commit 85544ba5eb3642976ea0f85fb9e86401661afc2b)

Bug: 69455082
Test: make tests
Change-Id: I563776a0dd821af4abba47df79e14c255097836d
Merged-In: I7a41199cd7f0739f660a49b1af32e64f58590301
2017-12-01 16:50:03 +00:00
Wenting Xiong
63364fe24a SystemUI: Display RAT icon when data is off
Introduce customization and implementation to display RAT icon in status
bar even when data is off. Since some carriers require, this feature is
necessary.

Test: Test with simulated RIL
Bug: 28805511
Change-Id: I0428ba1749bdb884d210f1ff02cdf86b376a0ca8
2017-11-24 10:57:03 +09:00
Jason Monk
2044e6e377 Auto-dim refinements
- Don't auto-dim while wallpaper is showing
 - Up alpha to 60%

Change-Id: Ie5fc33279ca46f7de37befacbbd7b42b7d4e5d15
Fixes: 67735001
Test: manual
2017-10-16 11:21:38 -04:00
Chris Wren
e901a7e0ed Enable experimentation on notification snooze options
Bug: 67003813
Test: runtest systemui

Change-Id: Id46ef3938e2edc633f64cec7b66e10d80c9a0bff
2017-10-02 17:38:16 -04:00
Jason Monk
1ff77669e1 Don't show no sim when a sim has been detected.
Instead indicate a lack of signal until we have a subscription to
tell us what to show.

Test: updated existing tests
Change-Id: I170f3782597584e5e761b5c9f9fce3cdbdc26a4f
Fixes: 65744290
2017-09-29 11:17:05 -04:00
Evan Laird
9b120d5a08 Merge "Fix wifi tile animating full-dark when slashing/unslashing" into oc-mr1-dev 2017-09-26 14:09:09 +00:00
Evan Laird
6026b057e7 Fix wifi tile animating full-dark when slashing/unslashing
WifiTile now owns a specific tile view that will animate the tint/alpha
of the slash but not the underlying drawable. Becasue we always animate
from the disconnected icon <-> disabled icon, this fixes the problem
where the disabled icon will start off as full-dark and appear to flash.

Fixes: 63534380
Test: turn wifi on/off; runtest -x
tests/src/com/android/systemui/qs/AlphaControlledSignalTileViewTest.java

Change-Id: I824572fdf00e122b7c17104b727171d81ff104c5
2017-09-21 14:11:00 -04:00
Selim Cinek
cf6a6d244e Merge "Fix NPE which could occur when showing notification guts" into oc-mr1-dev 2017-09-18 18:08:29 +00:00
Kensuke Matsui
efa1a74bb8 Fix NPE which could occur when showing notification guts
SystemUI keeps shown heads-up notification for minimum display time
even if the notification is canceled right after it's posted.

This is intentional behavior but causes inconsistency between
mEntry and mRankingMap in NotificationData.
That inconsistency could cause NPE when showing notification guts.

To avoid this, update an Entry only when the corresponding Ranking
is available.

Fixes: 65567562
Test: manual - long press a missed call notification
               immediately after receiving an incoming call
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/NotificationDataTest.java

Change-Id: I6dc70d8e57efa7af0f23862a00d0e18cf39dfebb
2017-09-15 17:21:08 -07:00
TreeHugger Robot
a76a1e8842 Merge "Show mobile signal strength in QS edit panel" into oc-mr1-dev 2017-09-14 18:34:55 +00:00
Evan Laird
9d4d73b9cc Show mobile signal strength in QS edit panel
Apparently ImageView#setImageDrawable() will take the drawable you give
it and reset its level. Pre-empting that by setting the ImageView level
first fixes that.

Change-Id: I4233241df1e4425ad2c4f5c32599608354a10c30
Fixes: 63690824
Test: visual; runtest -x \
frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/SlashImageViewTest.java
2017-09-13 16:34:14 -04:00
Andrew Lehmer
1952fcffc3 Merge "AOD: Prewarm display while waiting for brightness sensor" into oc-mr1-dev 2017-09-13 18:59:00 +00:00
Lucas Dupin
cecc7c233a 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
2017-09-12 16:53:02 -07:00
Lucas Dupin
6865b71e1a Fixed keyguard inflation problem
Inflating a keyguard while dettached from window would
raise a NullPointerException since window insets wouldn't
be available at the time.

Test: packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/KeyguardBouncerTest.java
Change-Id: I7f48a62807877537814e6f34db1e6fa6fbec7923
Fixes: 65495303
2017-09-11 14:20:51 -07:00
TreeHugger Robot
e501718337 Merge "Fixed a flakey test" into oc-mr1-dev 2017-09-08 23:08:45 +00:00
Selim Cinek
21f336614c Fixed a flakey test
Since the test could be off the UI thread, cancelling
would not be synchronized properly.

Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/NotificationInflaterTest.java
Change-Id: Icfb02b637b76cdfb853c88130eabddf75203909b
Fixes: 65031224
2017-09-08 13:24:21 -07:00
Jason Monk
1c6116cbbb Update QS if the content gets stale
For system tiles this is more often, but for 3P tiles its pretty rare
except for on boot.

Test: runtest systemui
Fixes: 34804413

Change-Id: I166e2ab6a609acd63b9b4f19579bab12beabba27
2017-09-08 10:33:11 -04:00
Jason Monk
2ef8ed6532 Fix crash in presubmit tests
Test: runtest systemui
Bug: 65289824
Change-Id: Ibbce459e5e87ea667e91d546b7568f9addbb1c66
2017-09-07 14:51:41 -04:00
Jason Monk
d0d045575d Merge "Fix presubmit tests" into oc-mr1-dev 2017-09-07 16:11:24 +00:00
Jason Monk
b16ae4ac94 Fix presubmit tests
Test: runtest systemui
Bug: 65289824
Change-Id: Ibf2b61670d09a76eb908bd9d322ae36e0f7af3e0
2017-09-07 12:09:37 -04:00
Julia Reynolds
0be3f49560 Merge "Correctly block system work profile notifications." into oc-mr1-dev 2017-09-07 15:40:28 +00:00
Jason Monk
2602127d55 Merge "Fix disabled views with nearest touch frame" into oc-mr1-dev 2017-09-07 12:48:02 +00:00
Jason Monk
f8c2f7bd7b Add metrics for status bar
Test: runtest systemui
Fixes: 65289824
Change-Id: Ife5ce98862fc6a92740eaf80cdc0b74cb01dd04e
2017-09-06 15:03:41 -04:00
Julia Reynolds
33bef2c8eb Correctly block system work profile notifications.
Test: runtest systemui
Change-Id: I22a89b985a114485237f5ed8832d1a9c17789ca8
Fixes: 64951994
2017-09-06 14:31:49 -04:00
Jason Monk
3dd17a786c Fix disabled views with nearest touch frame
Test: runtest systemui
Change-Id: I83fe0483d2d45c05750cb52fa66c579be0194091
Fixes: 65158062
2017-09-06 14:10:39 -04:00
Adrian Roos
c7fd696990 AOD: Prewarm display while waiting for brightness sensor
This partially reverts commit a79ad59d49cdb3ef6f4cf864094063e3e9111586.

Instead of keeping AOD paused, we now turn the display on, but keep it soft
blanked by keeping the front scrim opaque black until we get a valid sensor
event.

Bug: 65010918
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/doze/DozeScreenBrightnessTest.java
Change-Id: Ic39d29814024d52117538a6a19adaf3866c7223e
2017-09-06 18:20:10 +02:00
TreeHugger Robot
2a6f25b995 Merge "Double tap to expand PiP." into oc-mr1-dev 2017-09-05 21:08:53 +00:00
Jason Monk
88aa3d0f3e Merge "Don't crash from null ServiceState in cdma" into oc-mr1-dev 2017-09-05 18:29:55 +00:00
Winson Chung
bca03117fe Double tap to expand PiP.
- Also fix issue with dismiss scrim not clearing when quickly swiping in
  the dismiss area and back, due to an incorrect check (menu state NONE
  != menu is not visible).

Bug: 62078042
Test: com.android.systemui.pip.phone.PipTouchStateTest
Test: Double tap PiP to expand it

Change-Id: I96d9ba169feadf0ea8315152fb3a5b2cfb69a2f0
2017-09-05 10:39:37 -07:00
Jason Monk
e153198367 Don't crash from null ServiceState in cdma
Test: runtest systemui
Change-Id: Ib9813af4896d90878df970ef798f3f09e6522f3a
Fixes: 65224543
2017-09-05 11:20:30 -04:00
Adrian Roos
c21891284b AOD Policy: Fix pausing timeout to use minutes instead of seconds
Bug: 65010918
Change-Id: I2a5f3a2109a38d7093fd0ea84fbb1026eb6c1215
Test: On AOD cover prox for 10s. Verify screen turns off.
2017-09-05 09:15:27 +00:00
Adrian Roos
a79ad59d49 AOD: Keep brightness sensor registered while covered
Keeps the brightness sensor registered even if proximity is near.

This allows the brightness sensor to react faster after coming out
of a pocket.

Also wait with unpausing AOD until the brightness sensor reports
a valid brightness again.

Bug: 65010918
Test: Cover prox sensor for 10s, verify with 'adb shell dumpsys sensorservice' that the binned brightness sensor is still registered.
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/doze/DozeScreenBrightnessTest.java
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/doze/DozeTriggersTest.java
Change-Id: Ife1bb7399a7ad8a15b1f4d210bb38044cbe9d3ae
2017-09-01 15:53:42 +00:00
Lei Yu
67594c6f54 Merge "Hook up AOD knobs to Settings.Global" into oc-mr1-dev 2017-09-01 00:54:01 +00:00
jackqdyulei
8443dd0e76 Hook up AOD knobs to Settings.Global
This cl creates AlwaysOnDisplayPolicy, which get values for the
following knobs(go/aod-experiments) from Settings.Global:
1. screen_brightness_array
2. dimming_scrim_array
3. prox_screen_off_delay
4. prox_cooldown_trigger
5. prox_cooldown_period

Also update code to make sure AlwaysOnDisplayPolicy is used
everywhere.

Bug: 64899561
Test: runtest -x AlwaysOnDisplayPolicyTest

Change-Id: I2e83ff980771e67177e4964bd83aa68b2bdca65f
2017-08-31 13:20:04 -07:00
Jason Monk
6bf3564040 Merge "Wrap all exceptions/crashes while plugins are active" into oc-mr1-dev 2017-08-31 18:50:13 +00:00
Jason Monk
1c3196398b Wrap all exceptions/crashes while plugins are active
To help differentiate them from real crashes.

Test: install crashing plugin
Change-Id: I88d991ab8d86f71bcc7042012d4d84d8a9af19f3
Fixes: 64527191
2017-08-31 12:46:15 -04:00
TreeHugger Robot
984b76f62e Merge "Add bt battery level to QS icons" into oc-mr1-dev 2017-08-31 16:36:57 +00:00
Jason Monk
3fd0b14fe6 Add bt battery level to QS icons
Test: visual
Change-Id: I690e496e3e88fd734d43ea2f25396772e922940c
Fixes: 63393322
2017-08-30 18:12:10 -04:00
Jason Monk
c2beef5130 Auto dim the nav bar to help prevent diff aging
Test: runtest systemui
Bug: 63630024
Change-Id: If2a6c0934f8751f82c027dbb3b5f103a34dc78d4
2017-08-29 18:58:00 -04:00
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