Commit Graph

22564 Commits

Author SHA1 Message Date
Mady Mellor
7e36009dd0 Merge "Make lifecycle events for bubble activity views report normally" into qt-dev 2019-04-25 20:19:30 +00:00
TreeHugger Robot
07deba3ce1 Merge "Improve theme application transition." into qt-dev 2019-04-25 20:11:26 +00:00
Lucas Dupin
5a9e4ba9d5 Merge "Fixed clock face resetting to default one after rebooting" into qt-dev 2019-04-25 18:11:12 +00:00
TreeHugger Robot
1f8b77d213 Merge "Add setting for silent notifs on lockscreen" into qt-dev 2019-04-25 17:41:37 +00:00
Salvador Martinez
be3f6b9401 Merge "Update SysUI to use system cache for battery estimates" into qt-dev 2019-04-25 17:23:28 +00:00
Amin Shaikh
96e60d7b5e Improve theme application transition.
- Remove duplicate app info changed / activity relaunch messages caused by
applying several overlay packages sequentially; this eliminated the
double launcher activity restart
- Asynchronously enable each overlay from SystemUI; this increases the
speed of enabling overlays, thus decreasing the effect of the frozen
activity transition

Fixes: 130151718
Test: make; change themes many times
Change-Id: Idcf04edc88cb9391b9920b9e1f9f873a5b62b311
2019-04-25 16:55:43 +00:00
Julia Reynolds
5b655c3915 Add setting for silent notifs on lockscreen
Test: atest
Bug: 128445911
Change-Id: If07b593aa0588f494691c7399e471a142fb585c6
2019-04-25 10:05:15 -04:00
shawnlin
366d126d06 Fixed clock face resetting to default one after rebooting
The root cause is that the initial clock plugin was set before the onPluginConnected() was
called.

Set the clock plugin once the onPluginConnected() is called and it's
current clock plugin.

Bug: 131044332
Test: manual
Change-Id: I133183d66db05620d6da77abb0643e8e5ee60ebc
2019-04-25 21:16:36 +08:00
Fabian Kozynski
f5096afd11 Merge "Fix intent for next alarm" into qt-dev 2019-04-25 13:14:30 +00:00
TreeHugger Robot
5f82f12cdb Merge "Interstitial frame for grace period of face auth" into qt-dev 2019-04-25 08:58:25 +00:00
TreeHugger Robot
475b517a3d Merge "Use correct heads-up notification height." into qt-dev 2019-04-25 08:56:42 +00:00
Winson Chung
05500a3651 Merge "Ensure we get the right nav bar mode for the current user in sysui" into qt-dev 2019-04-25 06:14:57 +00:00
TreeHugger Robot
7c94df4903 Merge "Resolve size compatibility bounds by original display attributes" into qt-dev 2019-04-25 04:17:33 +00:00
Kevin Chyn
d9919f2750 Merge "Do not dismiss BiometricPrompt when "soft" errors are received" into qt-dev 2019-04-25 03:20:30 +00:00
TreeHugger Robot
b24641b2a8 Merge "Position "At a Glance" on custom clock below status bar." into qt-dev 2019-04-25 02:22:08 +00:00
Lucas Dupin
787f9a068a Interstitial frame for grace period of face auth
Delay bouncer for a few millis if face auth is happening to avoid
overlaping animations.

Fixes: 130327140
Test: manual
Test: atest KeyguardBouncerTest
Change-Id: I6873605ba3e8d54af86325d81b10cc6aec131cf2
2019-04-24 19:10:00 -07:00
Winson Chung
1aa24b9b5e Ensure we get the right nav bar mode for the current user in sysui
- Load resources from the current user's context to ensure the right
  overlays are read
- Create a controller in sysui to dispatch mode change to prevent callers
  from calling with the wrong user's context
- Clean up the quickstep contract to prevent launcher from calling methods
  using the baked in fw resource ids

Bug: 130185871
Test: Switch to secondary user, ensure the mode is read correctly
Change-Id: I00d9276185777e340b3e758345a00d2e9b3e3e64
2019-04-24 16:51:26 -07:00
Julia Reynolds
154862c985 Merge "Update appearance of proxied notifications in guts" into qt-dev 2019-04-24 23:27:36 +00:00
TreeHugger Robot
389b4d9033 Merge "Exposing some accessibility methods and state to be used in Launcher" into qt-dev 2019-04-24 23:23:34 +00:00
TreeHugger Robot
5b1af7e1e3 Merge "Consistently log back gesture origin" into qt-dev 2019-04-24 23:04:29 +00:00
Matt Casey
09aa8a8713 Merge "Make StatusBarWindowController aware of assist session in progress." into qt-dev 2019-04-24 22:16:38 +00:00
Kevin Chyn
7aa5752bbe Merge "Do not re-show hint text if user is already authenticated" into qt-dev 2019-04-24 20:50:22 +00:00
Fabian Kozynski
f3db35c4c9 Fix intent for next alarm
Clicking on next alarm will send the user to the app that sets the
alarm, using their PendingIntent

Test: manual using default clock and 3rd party clock
Fixes: 130977970
Bug: 129350749
Change-Id: I4c1be9fe9ea60787ecb2b863e7463d827aef0075
2019-04-24 16:33:44 -04:00
Matt Casey
87610b4e1d Make StatusBarWindowController aware of assist session in progress.
Separate "assist is rendering something" from "assist session is in
progress". If an assist session is in progress, the status bar should be
focusable and back gestures should cause the session to be canceled.

This also intercepts touches outside of the status bar when a session is
in progress, but those touches will cancel (separate CL), so this
shouldn't be a problem.

Bug: 123413054
Test: Ensure in-progress assist sesion is canceled on back, ensure back
is not affected outside of a session.

Change-Id: Ife24b58a7851c5865ff75e66e00e32ae3293a0e8
2019-04-24 16:31:49 -04:00
Daniel Sandler
c74d6b563b Merge "Fix crash when launching assist from power button." into qt-dev 2019-04-24 19:45:17 +00:00
Kevin Chyn
e674e85497 Do not dismiss BiometricPrompt when "soft" errors are received
Some errors such as ERROR_TIMEOUT should not caues the BiometricPrompt
dialog to be dismissed. Updated plumbing to allow
onBiometricAuthenticated to pass a string indicating the failure reason

Fixes: 131240917

Test: BiometricPromptDemo
Change-Id: I63a6f1138a24fbc3736184efefc620dd5bb640dd
2019-04-24 12:44:35 -07:00
Josh Tsuji
d0f57d3683 Merge "Fix start position issues and related flyout flickering." into qt-dev 2019-04-24 19:17:21 +00:00
Robert Snoeberger
4cbd15965c Position "At a Glance" on custom clock below status bar.
Change summary:
 - Position below status bar on AOD, and account for burn in prevention
   movement.
 - Position below lock icon on lock screen.

Fixes: 130797849
Test: visual - checked position on AOD and lock screen
Test: visual - checked position with music playing
Change-Id: Iad088e8b1d301e19ec9a095462a420e1723aba00
2019-04-24 15:14:16 -04:00
Sunny Goyal
247eb895dc Exposing some accessibility methods and state to be used in Launcher
Bug: 130905838
Test: Verified the build with updated launcher
Change-Id: I09f77abc8c767fca8879610bc3fcef1f4da7f821
2019-04-24 12:10:27 -07:00
TreeHugger Robot
77a9a1c74a Merge "Remove config specific size for HeaderTileLayout" into qt-dev 2019-04-24 18:48:23 +00:00
Kevin Chyn
f5f1236add Do not re-show hint text if user is already authenticated
Fixes: 131237337

Test: manual
Change-Id: I1b96f9a7933e82fcb540c5aa4feb82d6fc22dd11
2019-04-24 11:47:38 -07:00
Julia Reynolds
25b27f521e Update appearance of proxied notifications in guts
Test: manual
Fixes: 131174114
Change-Id: I8725d34e7f2e43c17a1d16fba8ecbe20a0a3d3c9
2019-04-24 14:33:44 -04:00
Hyunyoung Song
10db7c7ee4 Consistently log back gesture origin
Bug: 127848641
Test: builds, manually verified

TL;DR;; the unhandled back gesture direction was opposite of handled
back gesture.

Change-Id: I828543bc86e6fbb24d1a6ee5d6b5b92118401323
2019-04-24 11:05:37 -07:00
Fabian Kozynski
0d89767b9e Merge "Add dumpable to QSTile. Dump QSTileHost, QSPanel, QuickQSPanel" into qt-dev 2019-04-24 18:05:15 +00:00
Salvador Martinez
7de8929c05 Update SysUI to use system cache for battery estimates
This should help prevent Settings and SysUI from getting
out of sync with each other.

Test: manual by adjusting battery levels with adb
Bug: 124030091
Change-Id: I8eaba920a10e045c4c983406873de66208c22fb7
2019-04-24 10:43:34 -07:00
Joshua Tsuji
19e22e424a Fix start position issues and related flyout flickering.
- Cancel animations when explicitly moving the stack to the start position, so that the new translation doesn't get animated away.
- Set the flyout to 0 alpha before posting the animation, so it's invisible from the start.
- Tell the stack if the drag finished with a dismiss intent, so we can reset the drag flags.

Bug: 130441552
Test: atest SystemUITests
Change-Id: I31d753a6fb76468c4e2b68563f9c5f06fbd782a1
2019-04-24 17:32:18 +00:00
Anthony Tripaldi
e0b95fbe37 Merge "Fix bug with blinking caption tooltip on rocker click. Also clean up some older code that flashed the dialog on screen initially and triggered dismiss too often." into qt-dev 2019-04-24 17:30:13 +00:00
Mady Mellor
60101c9f29 Make lifecycle events for bubble activity views report normally
There are some extra onPause / onResume events in ActivityView due to
SysUI calling startActivity in onActivityViewReady which happens a bit
before the display being turned on.

This CL posts the startActivity call which is enough to avoid the extra
lifecycle events.

This CL also adds new method on ActivityView to startActivity with your own
ActivityOptions (because posting causes activity transition to occur...)

Test: manual - have Bubbles test APK
             - create a new bubble
             - adb logcat | grep "BubbleActivity"
             - observe the logging to make sure lifecycle events behave
               normally
Bug: 130363466
Change-Id: Ia44d6033e5cff625222006632b7bdc4dc1e59e81
2019-04-24 10:21:34 -07:00
Josh Tsuji
d86369ae3e Merge "Update the stack bounds for IME changes even if we're expanded." into qt-dev 2019-04-24 16:34:20 +00:00
Fabian Kozynski
5b5c8f67b2 Merge "Notify FSC about app ops in main thread" into qt-dev 2019-04-24 16:01:10 +00:00
Riddle Hsu
7482626a2c Resolve size compatibility bounds by original display attributes
Previously, the rotation of bounds is simulated by swapping the width
and height, and also adjust the insets in app bounds. But it is still
not accurate enough because the decors can be moved or resized according
to rotation.

Now the activity bounds are computed as it is in a pseudo display that
provides the same size and insets information as the original display
where the activity launched.

This change also handles a special case for task level letterboxing.
The container bounds for activity is also calculated as the task,
so the activity can always best fit in the parent when the orientation
is changed.

Fixes: 130417317
Bug: 112288258
Test: atest ActivityRecordTests TaskRecordTests
Test: atest SizeCompatModeActivityControllerTest
Test: Enable fully gestural navigation and launch camera.
      The restart button should not show after rotating screen.

Change-Id: Ifbb31f9ee84723c85bd4cbc03abd8cdf70fee6af
2019-04-24 23:57:46 +08:00
Fabian Kozynski
7a4e3312fd Remove config specific size for HeaderTileLayout
HeaderTileLayout width should always be MATCH_PARENT. The width is
controlled at the QSContainerImpl level by making it the width of
notification panel and it's MATCH_PARENT all the way down.

Test: visual, using emulator on really high density screen and phone
Fixes: 128776927
Change-Id: I3d5dc679cb77fb50ccadd6c3cb86a022e5f02f70
2019-04-24 11:33:00 -04:00
Anthony Tripaldi
1bb7a3ce50 Fix bug with blinking caption tooltip on rocker click. Also clean up
some older code that flashed the dialog on screen initially and
triggered dismiss too often.

Bug: 131178834
Test: VolumeDialogImplTest still passes with atest
Change-Id: Ia8879aabe1d97fd2bb78620b962ad959bbbeaa25
2019-04-24 09:40:42 -04:00
Fabian Kozynski
7284e4f5b7 Notify FSC about app ops in main thread
Test: build
Bug: 131188506
Change-Id: I7c73344d65ac0322c32ad13e6f81ad52c7b629d7
2019-04-24 09:25:14 -04:00
Jackal Guo
efc894eeec Merge "Race condition while injecting ACTION_OUTSIDE" into qt-dev 2019-04-24 05:47:11 +00:00
TreeHugger Robot
993e5dacd7 Merge "Transition to bold when shrinking clock" into qt-dev 2019-04-24 01:34:32 +00:00
TreeHugger Robot
5acc240320 Merge "Initialize Global Actions Panel when one is available" into qt-dev 2019-04-24 00:51:06 +00:00
Lucas Dupin
15ee32b208 Merge "Fix click and long click lock behavior" into qt-dev 2019-04-24 00:41:45 +00:00
Steven Wu
991aff4191 Merge "Add logging for dozing on or off due to sensor wake up." into qt-dev 2019-04-23 23:46:43 +00:00
Dan Sandler
62bdce56b0 Fix crash when launching assist from power button.
Bug: 131183785
Test: adb shell settings put global power_button_long_press 5
      then longpress power button
Change-Id: I0d6c25f75efc1e0e7a04f44ba91f7603ab8f311b
2019-04-23 19:18:49 -04:00