Commit Graph

34235 Commits

Author SHA1 Message Date
Selim Cinek
3ce82b7ae4 Merge "Dismissed keyguard gone runnables when aborting" into qt-qpr1-dev 2019-10-10 21:01:53 +00:00
Kevin Chyn
42c6f1693b Merge "Set the negative button when configuration changes and dialog is restored" into qt-qpr1-dev 2019-10-10 20:41:48 +00:00
Kevin Chyn
050e5a64b7 Set the negative button when configuration changes and dialog is restored
Fixes: 140607595

Test: manual, rotate the device
Change-Id: I9c9c0b9640735404d66c901011c39f28caa540da
2019-10-10 11:48:16 -07:00
Lucas Dupin
0a410d3a6c Do not register lift when sensor is not present
Bug: 141284056
Fixes: 142365481
Test: force snesor to return null
Change-Id: I45583e4f1c06ec7088a7d6335597a8671555f339
(cherry picked from commit 3b745ddf4a)
2019-10-09 16:16:40 +00:00
Lucas Dupin
dd78b67df8 Merge "Keep interrupts on when in battery saver mode" into qt-qpr1-dev 2019-10-08 23:48:13 +00:00
Bill Yi
f0cd160410 Import translations. DO NOT MERGE
Change-Id: I995c79defa649cee05b3c78398c329876f5bc98e
Auto-generated-cl: translation import
2019-10-05 17:27:08 -07:00
Selim Cinek
300dcfb7c3 Dismissed keyguard gone runnables when aborting
Previously those actions could linger around
and lead to a variety of bugs.
Also fixed an issue when gutsManager calls were overlapping
to protect against these issues

Fixes: 130885521
Test: atest SystemUITests
Test: see bug description
Change-Id: Iffe37e6d48bbc9c26ba92f362d7b67bf743c7c28
2019-10-01 16:18:02 -07:00
Selim Cinek
29b8d32f0d Merge "Only calling finishedwhen all the animations have finished" into qt-qpr1-dev 2019-09-30 20:12:54 +00:00
Selim Cinek
22fa97577f Only calling finishedwhen all the animations have finished
Previously we would finish way too early if any of the scrims
finished animation. Since some scrims almost never change, we
would have animations being terminated early.

Fixes: 141649119
Test: unlock with bypass, observe no lock icon change
Change-Id: I6aefd6a27ef315995d8e1ae62c27a5f33cc9e160
2019-09-30 09:58:20 -07:00
Lucas Dupin
6edeb18701 Keep interrupts on when in battery saver mode
Battery saver was completely aborting the doze service, disabling
all interrupts. This is not ideal since it impacts the user journey,
especially when using face auth.

From now on the screen will still be off, but DozeService will be
retained, in order to receive sensor events.

Test: w/ battery saver: lift, tap, and observe aod being off
Test: w/ battery saver: receive notification, no HUN.
Test: w/o battery saver: lift, tap, and observe aod being on
Test: w/o battery saver: receive notification, HUN is received.
Fixes: 134157254
Change-Id: I9b713c78857c4e4c22d8d9bfff165b1b51dfd804
Merged-In: I9b713c78857c4e4c22d8d9bfff165b1b51dfd804
2019-09-27 16:12:21 -07:00
Bill Yi
ccca5cecb7 Import translations. DO NOT MERGE
Change-Id: Ifa63cc635ba88e89cb4d2e12b8615c986d274cd1
Auto-generated-cl: translation import
2019-09-27 15:42:49 -07:00
TreeHugger Robot
407f2f37c8 Merge "Fix Password entry won't enable when lockout finished in screen-off" into qt-qpr1-dev 2019-09-26 00:42:31 +00:00
TreeHugger Robot
99c07af2bf Merge "DO NOT MERGE Allow for HTML styling in mobile data type content descriptions" into qt-qpr1-dev 2019-09-25 17:57:10 +00:00
Evan Laird
83c87e50b1 DO NOT MERGE Allow for HTML styling in mobile data type content descriptions
This CL implements a (somewhat hacky) way to enable HTML attributes in
the mobile data type content description strings. This way we can use
some basic styling in the Quick Settings cellular data tile which uses
it in a TextView.

We do this by assuming that the content description is valid, escaped
HTML, and send two separate CharSequences to all of the listeners, all
of which can then decide if they need the regular content description or
the prettified version.

Test: atest SystemUITests; system ui demo mode
Bug: 141177147
Change-Id: Idf387111b0cdc34ad3762eac0ec6c2b484b393e3
2019-09-25 11:12:37 +00:00
lumark
e98f04b936 Fix Password entry won't enable when lockout finished in screen-off
CL [1] introduced a check to see if password entry need to show
soft-keyboard for fixing keyboard popup unexpected issue.

But it shouldn't need to block the password entry re-enable when
lockout finished in screen-off state.

Move the original check right before the showSoftInput to fix the case.

[1]: I3c43d09d4206c48f1afcd8dad79e7978337f1b7d

Fix: 128563724
Bug: 112811602
Test: manual as issue steps:
    1). Set up Password as screen lock.
    2). Enter lock screen.
    3). Input wrong password 5 times, and it will show "Try again in 30 seconds" message.
    4). Wait device screen off auto, and then wait 30 seconds.
    5). Screen on device.
    6). Swipe up and then try to input password to unlock, expected password entry
        should enabled and can invoke soft-keyboard.

Change-Id: I3e0eeffdb3536588c0e039c8fbeaf8833e7af06e
2019-09-24 12:48:03 +00:00
TreeHugger Robot
513a591c02 Merge "Apply front scrim to doze pulsing" into qt-qpr1-dev 2019-09-21 00:59:16 +00:00
TreeHugger Robot
ccb430008e Merge "Remove 'x' policy for non-default DSDS SIM" into qt-qpr1-dev 2019-09-20 20:22:59 +00:00
TreeHugger Robot
62c0d7bc31 Merge "Fixed an issue where the notification icons could overlap the clock" into qt-qpr1-dev 2019-09-20 19:38:21 +00:00
TreeHugger Robot
77e4d230f6 Merge "Ensure that handles are hidden and stay hidden when not fully awake" into qt-qpr1-dev 2019-09-20 17:27:27 +00:00
Dave Mankoff
a01c818e28 Merge "DO NOT MERGE Revert line from master-cp that should be different in qpr1" into qt-qpr1-dev 2019-09-20 16:43:14 +00:00
Dave Mankoff
42216b5eeb DO NOT MERGE Revert line from master-cp that should be different in qpr1
In master, we retrieve the KeyguardUpdateMonitor through Dependency.get().
This change has not landed in qpr1 and should use a different method of
access.

Bug: 140270231
Test: atest SystemUITests
Change-Id: Icbba30e52d4d011fc01cba13262b18a3a235316c
2019-09-20 16:28:40 +00:00
Matt Casey
33cea5b30a Merge "Revert "Add shadow to assistant handles"" into qt-qpr1-dev 2019-09-20 16:13:42 +00:00
Evan Laird
2ea99c1435 Remove 'x' policy for non-default DSDS SIM
This CL changes the policy for showing the 'x' on the mobile signal
indicator such that we do not show an 'x' when a subscription has an
icon group of NOT_DEFAULT_DATA, except in the case where mobile data is
turned off on the default subscription

Test: atest SystemUITests; manual
Fixes: 135457552
Change-Id: Ie21462be12a9920d9b2830039f4095c5bd82bd2c
2019-09-20 11:52:36 -04:00
Miranda Kephart
e92074dc66 Revert "Add shadow to assistant handles"
This reverts commit c445bbf3eb.

Reason for revert: Causes memory issues on the GPU (~50mb -> ~70mb)

Test: Memory usage goes back down to 53mb with this revert.
https://sponge.corp.google.com/invocation?tab=Logfile+Index&id=7643bf50-41bb-45a7-8c93-d0ddb1f82a04&searchFor=
(last file, search for com.android.systemui#anon-and-swap-avg-median)

Bug: 141187457

Change-Id: Ia48eca3f95097562771abc3a523bd32b74f2d443
2019-09-20 14:52:21 +00:00
Selim Cinek
29f8585965 Fixed an issue where the notification icons could overlap the clock
Because we were cancelling an animation but never reseting the translation
we could be stuck in weird transition states.

Fixes: 136117476
Test: lock and unlock quickly with overlapping animations, observe no overlap
Change-Id: Iee389fa77588289417d0e3e5bdc31aeda1aac58a
2019-09-19 16:43:33 -07:00
Mady Mellor
7943c7b5ab Merge changes from topic "landscape-jeeze" into qt-qpr1-dev
* changes:
  Restrict height of expanded view in landscape & fix left / right padding
  Restrict the space bubbles are centered in while in landscape
2019-09-19 23:11:16 +00:00
Mady Mellor
4cb4e0a189 Merge "Notify display is empty even if it's not the expanded bubble" into qt-qpr1-dev 2019-09-19 23:10:44 +00:00
TreeHugger Robot
0df74f4d32 Merge "SSIN: Use the application's context to load icon resources." into qt-qpr1-dev 2019-09-19 22:01:07 +00:00
Dave Mankoff
a9667ff3ab Merge "Add new ProximitySensor wrapper that automatically uses appropriate sensor." into qt-qpr1-dev 2019-09-19 21:54:03 +00:00
TreeHugger Robot
a05396b249 Merge "DO NOT MERGE: Revert "Force FGS notifications to show for a minimum time"" into qt-qpr1-dev 2019-09-19 14:13:57 +00:00
Evan Laird
7c6df8dad1 DO NOT MERGE: Revert "Force FGS notifications to show for a minimum time"
This reverts commit 09843a687b.

Reason for revert: There is possible reentrant behavior when posting the safeToRemove callback after a FGS has been canceled/reposted

Bug: 140948482
Change-Id: I2c5b9135e57a87f412dce8c167147dcb38f6bbae
2019-09-19 13:09:06 +00:00
TreeHugger Robot
4ac6a113ed Merge "No need to use getExpandedBubble for singleTaskDisplayDrawn/Empty callbacks" into qt-qpr1-dev 2019-09-19 00:40:59 +00:00
Govinda Wasserman
7b546489a6 Ensure that handles are hidden and stay hidden when not fully awake
Previously handles used either the wakefulness lifecycle or the doze
state to determine whether to hide the handles. This change makes them
use both and hides if either signal indicates that the phone is not
fully awake.

Test: atest google/perf/jank/SystemUI/UbSystemUIJankTests-Lock:android.platform.systemui.tests.jank.SystemUiJankTests#testUnlock -v
Test: atest AssistHandleLikeHomeBehaviorTest
BUG:141219006
FIX:141219006
Change-Id: Iedbf5421c369440a3170f1a0b1add66bd289ec7a
Merged-In: Iedbf5421c369440a3170f1a0b1add66bd289ec7a
2019-09-18 21:27:47 +00:00
Dave Mankoff
46b9d68f6c Add new ProximitySensor wrapper that automatically uses appropriate sensor.
Bug: 140270231
Test: manual && atest SystemUITests
Change-Id: Id151ce8f702f7deadab73ee3904a0a883870b237
Merged-In: Id151ce8f702f7deadab73ee3904a0a883870b237
2019-09-18 14:48:39 -04:00
Lucas Dupin
01047d0372 Merge "Avoid going to SHADE_LOCKED when already in SHADE" into qt-qpr1-dev 2019-09-18 17:42:58 +00:00
Lucas Dupin
e7ff7be645 Avoid going to SHADE_LOCKED when already in SHADE
It's not possible for the device to go to SHADE_LOCKED after you're
already unlocked, still it's possible that it would happen.

Added an extra condition to avoid it, and logs to catch the regression
if it happens again.

Fixes: 139259891
Test: pull down notification while authenticating
Change-Id: I5c2b81906fa444dfd07d040b81a527245d4130e6
2019-09-18 10:38:34 -04:00
Gustav Sennton
dfa968d402 SSIN: Use the application's context to load icon resources.
SSIN = Smart Suggestions in Notifications.
When posting a notification with contextual/smart actions app developers
supply their own icons for their actions. These icons can reference
resources from within the application package. Therefore we need to use
a Context from that package to load icon resources.
Before this CL we were using the SystemUi context which doesn't have
access to the same resources as the app context - meaning we were not
able to load the icon the app developer was providing us (unless they
provided an Icon instance rather than just a resource ID for their icon).

Bug: 137044913
Test: atest SmartReplyViewTest
Test: manual - create a notification with a
contextual action whose icon is referenced through a resource ID (not an
Icon instance). Ensure the icon is shown correctly in the notification.
Change-Id: Ia6d7b3689c46b65558437e00a947ba3cd330e4ca
2019-09-18 08:07:52 +00:00
Chris.CC Lee
d424e202b3 Apply front scrim to doze pulsing
When ambient goes dark, apply the same front scrim opacity during doze
pulsing. The would then be a common behavior to all pulsing reaons.

Bug: 139445074
Test: Manual tests
Test: atest ScrimControllerTest
Change-Id: I3f1f7ca00b9d200ce4a7120b5328527ab9d9fb13
2019-09-18 14:38:25 +08:00
Mady Mellor
9be3bedc5b Restrict height of expanded view in landscape & fix left / right padding
Previously the height & width of expanded view was not updated when
switching between landscape & portrait. This CL:

* Adjusts max height calculation so it accounts for landscape
* Updates the position, height, & left / right padding of the expanded
  view when the orientation changes, also accounting for notches / navbar
* Also accounts display cutout when calculating IME inset for expanded
  view

Test: manual - have multiple bubbles with different heights (small & max)
             - expand the stack
             - go to each bubble and rotate to landscape / portrait
            => in landscape the heights should be restricted & width
               of the view shouldn't overlap notches (turn them on/off)
               or navbar (turn gesture nav on/off), in portrait
               the max height should increase
Bug: 135487618
Change-Id: Iaffcef0a070d3eb2d6b21248be3c94a861d77d5d
2019-09-17 18:12:07 -07:00
Mady Mellor
e19353d67b Restrict the space bubbles are centered in while in landscape
In landscape don't use the full screen width, instead, restrict to a
percentage of the screen & enforce a minimum of the width of the screen.

* Updates the displaySize passed to ExpandedAnimationController
  to be the "real size", this is consistent with what BubbleExpandedView
  uses now
* Alters positioning calculations in ExpandedAnimationController &
  accounts for notches / screen decorations

Test: manual - have multiple bubbles
             - expand the stack
             - rotate the device
             => observe that the bubbles look nicely centered (i.e. not
                too much space or too little space) in landscape & portrait
Bug: 135487618
Change-Id: Ief7fc6f762f8cc130e37963d48005f15a1bea743
2019-09-17 17:57:26 -07:00
Mady Mellor
ca184aaecd Notify display is empty even if it's not the expanded bubble
onSingleTaskDisplayEmpty occurs when the activity is removed from the
activity view (e.g. app crash). When a bubble'd app crashes we want to
collapse the bubble (if expanded) & notify that it's empty so that next
time it's opened it will try to populate the activity again.

We were only doing this if the crashed app was the currently expanded
bubble, but that's not always the case.

This CL adds a method in BubbleData to clean up the display for a given
displayId & calls that in the non-expanded case.

Also adds some null pointer checks.

Test: manual - modify bubbles test app to have a crash when you click a button
             - post some bubbles
             - expand / collapse a bubble
             - crash the bubbles test app
             => see crash dialog
             - expand bubble
             => bubble should be populated
Bug: 138461119
Change-Id: I2fb226766676226980c67dc0536ed37eb43cedf1
2019-09-18 00:12:26 +00:00
Mady Mellor
5186b1311d No need to use getExpandedBubble for singleTaskDisplayDrawn/Empty callbacks
getExpandedBubble checks if the shade is expanded or not and returns
null if the shade is expanded, we don't care about that for the display
drawn callbacks.

Test: manual, have a bubble notification on lockscreen, tap it, note
      that the bubble is expanded & visible after going through lockscreen
Bug: 138461119
Change-Id: I00dff7cd3301db6a2613a947015ac0408b545202
2019-09-18 00:10:04 +00:00
Lucas Dupin
89ebc7c1ad Merge "Fix status bar flickering" into qt-qpr1-dev 2019-09-17 22:46:13 +00:00
Lucas Dupin
7f356e28de Fix status bar flickering
The keyguard status bar would be visible momentarily while the keyguard
is fading out. Let's keep it hidden until the keyguard is gone.

Test: reach, auth, press power, look at status bar: gone
Test: reach, press power, look at status bar: gone
Test: reboot, reach, press power, look at status bar: visible
Test: reach, press power, wait for auth filure, look at status bar: visible
Test: reach, pull down, wait for auth filure, look at status bar: visible
Fixes: 140259100
Change-Id: I0aa705107e11e3ad8182ac8d5b6104c9f86754be
2019-09-17 10:17:51 -04:00
Mady Mellor
fd48588768 Merge "qt-r1-bubbles-dev @ build 5835883" into qt-qpr1-dev 2019-09-16 21:55:51 +00:00
TreeHugger Robot
23c1105c1b Merge "Fix touch goes to the window behide PiP" into qt-qpr1-dev 2019-09-15 16:17:03 +00:00
TreeHugger Robot
3390e7b741 Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev 2019-09-14 19:24:24 +00:00
Bill Yi
c5615d8c31 Import translations. DO NOT MERGE
Change-Id: I698ae74015e0351fbf89090e19ce7c4bf605d822
Auto-generated-cl: translation import
2019-09-14 03:28:11 -07:00
TreeHugger Robot
421f0d367d Merge "RESTRICT AUTOMERGE Remove the possibility of an NPE that is being seen in master." into qt-qpr1-dev 2019-09-13 21:13:17 +00:00
Dave Mankoff
9ee4f596b6 RESTRICT AUTOMERGE Remove the possibility of an NPE that is being seen in master.
This code is not actually doing anything useful in QPR1, so best to
simply remove it.


Bug: 140950258
Test: manual
Change-Id: I53abdef77a93ad854935f79e431d9861b40c2427
2019-09-13 14:05:12 +00:00