Commit Graph

11968 Commits

Author SHA1 Message Date
Shawn Lin
88ed5ca17a Merge "Support scaled cutout & roundedcorners when resolution is overridden" into tm-dev 2022-04-20 16:56:28 +00:00
Lucas Silva
b6918681db Merge "Cleanup dream preview complication." into tm-dev 2022-04-20 16:17:50 +00:00
Vinit Nayak
17cea8407a Merge "Revert "Remove Dep.get(CommandQueue.class) from NavBarView"" into tm-dev 2022-04-20 14:30:41 +00:00
Beth Thibodeau
db41a61d63 Merge "Add debug logging for media view events" into tm-dev 2022-04-20 14:23:40 +00:00
Caitlin Cassidy
94d8a42399 Merge "[Media] Ensure that we update the seekbar visibility whenever its enabled status changes." into tm-dev 2022-04-20 14:01:08 +00:00
Menghan Li
fc5c5e9a3f Merge "Check target is empty before showing it in AccessibilityFloatingMenu" into tm-dev 2022-04-20 06:15:01 +00:00
Beth Thibodeau
f1ea23510a Add debug logging for media view events
Test: manual; verify present in bugreport
Bug: 198319256
Change-Id: I416d532758cc280a6ea05f45bccdb3dcd81abe34
2022-04-20 02:50:52 +00:00
Daniel Hsieh
8fbc44fb78 Merge "Fixes flaky tests" into tm-dev 2022-04-20 02:46:33 +00:00
shawnlin
bcea9fd89e Support scaled cutout & roundedcorners when resolution is overridden
In current desgin, the confgis for cutout and rounded corner are based
on the original display size. If the display resolution is overridden,
cutous and rounded corners will be drawn in incorrect places with
incorrect size.

We should load the cutout & rounded corners with the orignal display
size and then scale the results with the display ratio which is
calculated by dividing current size with original size.

Bug: 209592558
Test: manual:
      1. Go Settings-> Display-> Screen Resolution
      2. Switch between FHD+ and QHD+
      3. Check if the cutout and rounded corner looks the same as they
	 are in the original display size.
Test: manual:
      1. adb shell wm size 1080x2340
      2. Check if the cutout and rounded corner looks the same as they
         are in the original display size.
Test: atest DisplayCutoutTest LocalDisplayAdapterTest
          ScreenDecorationsTest RoundedCornerResDelegateTest
Change-Id: Iea42b73c0276b82983c1ddbce9455355afdc164d
2022-04-20 10:03:19 +08:00
Vinit Nayak
f18c6b3cf6 Revert "Remove Dep.get(CommandQueue.class) from NavBarView"
This reverts commit ef7b6b681e.

Reason for revert: b/229413744

Change-Id: I4d75b1a6eb224a37007c034554af4b0698fbb79a
2022-04-19 18:37:29 +00:00
Caitlin Cassidy
53eee19b60 [Media] Ensure that we update the seekbar visibility whenever its
enabled status changes.

See b/228414210#comment4 for an in-depth explanation.

Fixes: 228414210
Test: manual: Start a media session then update the display size
or font size; verify that the seekbar still shows up.
Test: MediaControlPanelTest

Change-Id: I37ec1149ce24b81ca7f545ee524df68173b3c943
2022-04-19 18:31:12 +00:00
Nick Chameyev
6da0c2fce2 Merge "Finish unfold transition when screen turns on after half-folded" into tm-dev 2022-04-19 17:10:27 +00:00
Mady Mellor
ef1cc8850f Merge "Collapse bubbles when drag and drop is initiated" into tm-dev 2022-04-19 17:08:36 +00:00
TreeHugger Robot
a9b6e8c3a0 Merge "Remove co-ex logic for blocking face help msgs" into tm-dev 2022-04-19 15:56:31 +00:00
Milton Wu
b9a2502abd Merge "Passing info to RoundedCornerResDelegate directly" into tm-dev 2022-04-19 15:26:42 +00:00
Aaron Liu
f08f61e9f9 Merge "[User Switcher] Finish activity when switch user" into tm-dev 2022-04-19 14:41:30 +00:00
Aaron Liu
a20c177e33 Merge "[Scrim] Remove notif scrim flicker on unlock" into tm-dev 2022-04-19 14:41:17 +00:00
Milton Wu
890c7579ae Merge "Redraw ScreenDecorations only if rotation changed" into tm-dev 2022-04-19 14:36:20 +00:00
TreeHugger Robot
b15f71e273 Merge "Respect disable flag in LargeScreenHeader" into tm-dev 2022-04-19 13:46:28 +00:00
Christian Göllner
9bfd60ab82 Disable depth effect during split-shade expansion
According to the motion spec for split-shade, there should be no depth effect.

Fixes: 228022043
Test: Manually + NotificationShadeDepthControllerTest.kt
Change-Id: I1b908e17b3084f94578973d53993b47d9ad22ebb
2022-04-19 11:18:14 +02:00
Milton Wu
cc79f24c49 Redraw ScreenDecorations only if rotation changed
In ScreenDecorations.onConfigurationChanged(), only redraw OverlayWindow
views when rotation is changed

Bug: 229549809
Test: atest ScreenDecorationsTest
Change-Id: Ic596c065ac9f962de94277be858fdb2ab96bc833
2022-04-19 17:16:10 +08:00
Daniel Hsieh
dfff81e489 Fixes flaky tests
The CountDownLatch should be put at the last line to avoid making
CountDownLatch#await passed without updating values.

Bug: 224717753
Test: atest WindowMagnificationControllerTest
Change-Id: I29530a02780291d684a30e31b4811f2b95fe0faf
2022-04-19 06:55:16 +00:00
Milton Wu
e9440ab1a0 Passing info to RoundedCornerResDelegate directly
1. Move rounded corners tint color into RoundedCornerResDelegate, and
   RoundedCornerDecorProviderImpl uses it to draw image.
2. After display changed, pass display unique id to
   RoundedCornerResDelegate directly.
3. Cache tuning size inside RoundedCornerResDelegate

Bug: 229234279
Bug: 218951516
Test: atest ScreenDecorationsTest PrivacyDotDecorProviderFactoryTest \
      RoundedCornerDecorProviderFactoryTest RoundedCornerResDelegateTest
Change-Id: I7edd16db06f6023a3c3dfd10b430a5002b9ee942
2022-04-19 06:41:01 +00:00
TreeHugger Robot
5fe49a6827 Merge changes I3d1952ae,I42f5d4b1 into tm-dev
* changes:
  [Media] Add logging for NearbyMediaDevicesManager.
  [Media] Add logging to MediaMuteAwaitConnectionManager.
2022-04-19 03:26:54 +00:00
TreeHugger Robot
76fa901bb9 Merge "Phase out config_roundedCornerMultipleRadius" into tm-dev 2022-04-19 03:12:10 +00:00
Mady Mellor
528db439de Collapse bubbles when drag and drop is initiated
Dragging a notification into split screen would fail if bubbles
were expanded while performing this action. I think it makes sense
to collapse the stack if its open when drag and drop for an app
starts.

Bug: 223909931
Test: atest DragAndDropControllerTest
Test: manual - have bubbles expanded
             - swipe down the shade, long press on a notification
               and drag it
             => bubbles are collapsed and the notif is able to be
                put into split screen.
Change-Id: Ib5160b3d772452f1cdd704926887bd38a5fd1ef1
2022-04-18 22:52:59 +00:00
Aaron Liu
99b958d581 [Scrim] Remove notif scrim flicker on unlock
We just keep notif scrim alpha to 0 when we are on keyguard and we are
not transitioning to full shade. This will prevent the notification
shade from showing when tracking on the lockscreen.

Bug: 201040592
Test: Manual on devices of multiple form factors:
	Launch notif from LS - portrait and landscape
	Launch UserSwitcher From LS - portrait and landscape
	Show pin bouncer in LS
	Swipe to unlock - portrait and landscape

Change-Id: I0cfa7cd40b69c5c9ea7eeb708f1a073f307918cb
2022-04-18 20:14:56 +00:00
Fabian Kozynski
45697cf9c9 Respect disable flag in LargeScreenHeader
LargeScreenHeader should respect the disable flag and not show its
contents when QS is disabled.

Test: manual in landscape and split shade.
Fixes: 218873788
Change-Id: I085f36a30dd654cd49a35b3b3f3dfd71745226cb
2022-04-18 16:08:40 -04:00
TreeHugger Robot
d248c68122 Merge "Don't reset brightness when going into AOD_PAUSED" into tm-dev 2022-04-18 19:46:53 +00:00
Beverly Tai
05e028e179 Merge "Fade out LS UDFPS affordance on QS expansion" into tm-dev 2022-04-18 17:52:51 +00:00
Caitlin Cassidy
1f94d22ad8 [Media] Add logging for NearbyMediaDevicesManager.
Fixes: 219767651
Test: atest NearbyMediaDevicesManagerTest
Change-Id: I3d1952ae30e5d4c3fa0f234f00883dc4b9bc233a
2022-04-18 16:45:29 +00:00
Aaron Liu
9e7e2b5c32 Merge "[Bouncer] Add min margin bottom for window inset." into tm-dev 2022-04-18 16:37:27 +00:00
William Leshner
10afa70623 Merge "Hide dream status bar when system status bar showing." into tm-dev 2022-04-18 16:11:26 +00:00
Caitlin Cassidy
61aa866570 [Media] Add logging to MediaMuteAwaitConnectionManager.
Fixes: 219768211
Test: MediaMuteAwaitConnectionManagerTest
Test: manually dumped log
Change-Id: I42f5d4b1005f9b81d309b1fe03ee9c568b389c21
2022-04-18 15:24:27 +00:00
Beverly Tai
5778a88d45 Merge "Update bouncer visibility on altAuthBouncer changes" into tm-dev 2022-04-18 15:17:58 +00:00
Beverly
3bf7ee6b8d Fade out LS UDFPS affordance on QS expansion
Use the QS expansion amount to fade out the UDFPS
affordance instead of blinking out when qs starts
being expanded.

Also, don't immediately hide the lock icon affordance
when qs is expanded. Instead, we rely on the alpha
set by NotificationPanelViewController. It's the same
alpha used to fade out the keyguard bottom area.

Tidy up the UdfpsKeyguardView alpha updating.

Fixes: 228897571
Test: atest LockIconViewControllerTest UdfpsKeyguardViewControllerTest
Change-Id: I23e716261d2d8881fab3b4b420e2080ff5a4cb28
2022-04-18 14:56:56 +00:00
Beverly
72bdcf6eee Don't reset brightness when going into AOD_PAUSED
We don't want the brightness to change right before
the display goes off

Fixes: 228285716
Test: manually cover proximity sensor and wait
Test: atest DozeScreenBrightnessTest
for the display to turn off

Change-Id: I0980f223e7ae86afcc0d3a3a8c93e57d8883e281
2022-04-18 14:53:40 +00:00
Dave Mankoff
24310743eb Merge "Remove contents of DependencyProvider." into tm-dev 2022-04-18 14:48:20 +00:00
Beverly
689ec01c89 Remove co-ex logic for blocking face help msgs
Instead, allow the face-auth help messages to be shown
to the user.

Test: manual, atest KeyguardIndicationControllerTest
Bug: 227545287
Change-Id: I3cfd99af941053e9da28ac4454c022f255e3eac4
2022-04-18 14:28:19 +00:00
Caitlin Cassidy
7d25065596 Merge "[Media Rec] Update the background to be colorSurface." into tm-dev 2022-04-18 13:24:38 +00:00
jasonwshsu
8c09ef0f2f Check target is empty before showing it in AccessibilityFloatingMenu
Root Cause: From ag/17686873, we remove the protect mechanism that
AccessibilityManagerService might not ready to retrieve information when
the phone get booted without keyguard lock, but it will still happen if
the sequence of the object created got change, just like b/184272107 in android sc-dev.

Solution: Change to check target is empty first before showing it, this
way, we can show a11y FAB both in onUserUnlocked() and
onKeyguardVisibilityChanged(false) stage without showing empty content
a11y FAB.

Bug: 192635136
Fix: 184272107
Test: atest AccessibilityFloatingMenuTest
Change-Id: Icca1c2bbae3f0bf6cad4fb28c53b5a9e6cd9b271
2022-04-18 09:12:33 +00:00
Weng Su
3a3beb2eb9 Merge "Restrict Wi-Fi toggle in Internet Panel" into tm-dev 2022-04-17 18:13:02 +00:00
Weng Su
6b9407780e Restrict Wi-Fi toggle in Internet Panel
- Disable Wi-Fi toggle when user is not allowed to change Wi-Fi state.

- Show restriction message in Wi-Fi toggle summary.

Bug: 203168097
Test: manual test
atest -c InternetDialogTest

Change-Id: I9e637a1f782997de1486921f5eb0093f59ecb02f
2022-04-17 18:10:57 +00:00
Robin Lee
db778eeed0 Merge "Make CentralSurfaces optional" into tm-dev 2022-04-17 13:19:34 +00:00
Lyn Han
ccdd4e74b2 Merge "Reduce notification section gap on lockscreen; increase gap when going to shade" into tm-dev 2022-04-16 21:31:12 +00:00
Lyn Han
e590c3982f Reduce notification section gap on lockscreen; increase gap when going to shade
Move fractionToShade to AmbientState so it's accessible from both
StackScrollAlgorithm and NotificationShelf.

Fixes: 229112693
Test: StackScrollAlgorithmTest
Test: swipe down on lockscreen to go to shade
	=> section gap widens smoothly
Change-Id: I860d250986fd77643e67947e4b642e5bccf1dc29
2022-04-15 22:17:41 -04:00
Lyn Han
022f4485d6 Merge "Restore notification stack updates during lockscreen-to-shade" into tm-dev 2022-04-16 01:51:00 +00:00
TreeHugger Robot
22c046e137 Merge "Squiggle progress smoothly transitions when seek is disabled" into tm-dev 2022-04-15 22:56:26 +00:00
Will
54e9796cde Hide dream status bar when system status bar showing.
This avoids showing double status bars when the system status bar
appears in certain situations.

Test: atest DreamOverlayStatusBarControllerTest
Bug: 223641960, 224775246
Change-Id: Id7e23fe8d763f931c39bd5c2866a310fdaf785fa
2022-04-15 15:55:55 -07:00
Joshua Mccloskey
73a728edfd Merge "Added TouchProvider" into tm-dev 2022-04-15 21:40:00 +00:00