Commit Graph

757544 Commits

Author SHA1 Message Date
Bill Yi
697718c98d Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I7a9b5d0c03b15ed94240baf066e1afd5d6b62b1c
2022-04-17 06:38:01 +00:00
Hui Yu
525fad6cb2 Merge "Deferred BOOT_COMPLETED broadcast does not mean queue is not idle." into tm-dev 2022-04-16 21:33:45 +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
Hui Yu
7800278203 Deferred BOOT_COMPLETED broadcast does not mean queue is not idle.
"adb shell am wait-for-broadcast-idle" calls BroadcastDispatcher's isEmpty() method, which return false if there is any deferred BOOT_COMPLETED broadcast. This is wrong because deferred BOOT_COMPLETED is deferred until first time the uid's process is started, this can be indefinitely.

The fix is to create a BroadcastDispatcher.isIdle() method which does not count deferred BOOT_COMPLETED broadcast.

Bug: 229426300
Test: restart device, unlock screen, issue "adb shell am wait-for-broadcast-idle"
Change-Id: Ic660982e0d6daa0728b9eabfd4808f137677e037
2022-04-15 20:03:23 -07:00
Jay Sullivan
27817f0b54 Merge "Add media perms to DefaultPermissionGrantPolicy" into tm-dev 2022-04-16 02:23:21 +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
TreeHugger Robot
e16244c3cd Merge "Make BackEvent#getTouchX and BackEvent#getTouchY floats." into tm-dev 2022-04-16 01:51:10 +00:00
Lyn Han
022f4485d6 Merge "Restore notification stack updates during lockscreen-to-shade" into tm-dev 2022-04-16 01:51:00 +00:00
Lyn Han
aed82fe299 Merge "Fix clipped notifications in sensitive mode" into tm-dev 2022-04-16 01:49:33 +00:00
Hongwei Wang
4384a4b74c Merge "Reset PiP shadow radius in onTaskVanished" into tm-dev 2022-04-16 00:07:37 +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
Joshua Mccloskey
73a728edfd Merge "Added TouchProvider" into tm-dev 2022-04-15 21:40:00 +00:00
Lyn Han
2846fabef3 Fix clipped notifications in sensitive mode
Remove unneeded return when mPublicLayout does not have children

Fixes: 228112945
Test: toggle between show all/sensitive/show none
      press power button twice to go to lockscreen
      => correct lockscreen notification layouts shown
Change-Id: I24147461875d7e2322f790b57889c75f1aee5016
2022-04-15 17:29:39 -04:00
Hongwei Wang
e4f4f107f3 Reset PiP shadow radius in onTaskVanished
This is a follow-up of ag/17527240 in which we do not cover the case
that a Task in pinned mode is directly removed via Task#moveTaskToBack

Video: http://recall/-/aaaaaabFQoRHlzixHdtY/cMG5Uh1kLC7EyAs2EbDVkM
Bug: 228793904
Test: follow the reproduce step in bug, see video
Test: atest WMShellUnitTests:PipTaskOrganizerTest
Change-Id: Ib7472908a81d56d34216ca272afbd9f1a2668b89
2022-04-15 13:51:30 -07:00
TreeHugger Robot
8e157c498c Merge "Let A11yIME use its own method name for systrace" into tm-dev 2022-04-15 17:46:58 +00:00
Varun Shah
e30911a69a Merge "Update logging of AppBackgroundRestrictionsInfo atom." into tm-dev 2022-04-15 17:32:47 +00:00
TreeHugger Robot
0943028db7 Merge "[Media] Simplify how we get the background color for the media player." into tm-dev 2022-04-15 17:27:15 +00:00
Caitlin Cassidy
22dc6e9eb2 Merge "[Media Recs] Add titles and subtitles to the expanded layout." into tm-dev 2022-04-15 17:27:07 +00:00
TreeHugger Robot
a944926829 Merge "Add onClickListener to "show all" button on the QAW empty state view." into tm-dev 2022-04-15 16:51:04 +00:00
Mady Mellor
4008e21f0a Merge "Skip onTaskMovedToFront if the bubble selection is animating" into tm-dev 2022-04-15 16:25:02 +00:00
Hawkwood Glazier
564264ddea Squiggle progress smoothly transitions when seek is disabled
Test: Manual
Fixes: 226986904
Change-Id: I46c35e7b8f7a8741cb6d0363330cc84f8998989d
2022-04-15 16:23:14 +00:00
Jing Ji
8caeb7d061 Merge "Add a config to control if show the prompt on abusive apps" into tm-dev 2022-04-15 16:01:01 +00:00
Rob Carr
f84837ffe8 Merge "SurfaceView: Ensure position update listener sets at least once" into tm-dev 2022-04-15 15:48:02 +00:00
Lyn Han
8c3bde8da5 Restore notification stack updates during lockscreen-to-shade
Set onLockscreen false during transition to shade
so that #computeHeight
- uses the intrinsic height (increases with swipe open)
- instead of min height (which kept stack height the same)

Fixes: 228511165
Test: NotificationStackSizeCalculatorTest
Test: swipe down on lockscreen notification
	=> notification expands during lockscreen-to-shade transition
Change-Id: I9cb065727cbb82c1dd70999f91f88d6eec132c91
2022-04-15 11:01:36 -04:00
TreeHugger Robot
715b58c274 Merge "Lock ComponentResolver when taking snapshot" into tm-dev 2022-04-15 14:24:59 +00:00
Caitlin Cassidy
f9c2af711f [Media] Simplify how we get the background color for the media player.
The color was being passed down all the way from MediaDataManager to
ColorSchemeTransition when it doesn't need to be. This moves the
background color fetch to ColorSchemeTransition, which groups it with
all the other color fetching.

Bug: 228960370
Test: atest SystemUITests
Test: manual: verify media player still looks good
Change-Id: I0a542fd68847b942c3cb1e3c4576344068a06a07
2022-04-15 13:53:15 +00:00
Caitlin Cassidy
f6453bc32f [Media Recs] Add titles and subtitles to the expanded layout.
Bug: 223603970
Test: manual (see bug for screenshot)
Test: atest MediaControlPanelTest
Change-Id: Iba43aee9405a60d78d00c8945860547713adf274
2022-04-15 13:53:15 +00:00
Julia Reynolds
d6090a038a Make notification getParcelable usages safer
Test: SystemUITests, CtsAppTestCases
Fixes: 198825327
Change-Id: I7a4868a56bc2c9a69d2fb1eae5d53faa3c9dede0
2022-04-15 12:38:27 +00:00
Wu Ahan
2f056bb150 Merge "DO NOT MERGE: Don't do heavy operation while in the synchronized block" into tm-dev 2022-04-15 10:49:21 +00:00
Jason Chang
0c5df6883b Merge "Migrate USB audio device permission warning dialog for both Direct USB Access and AoC Offload feature" into tm-dev 2022-04-15 09:14:31 +00:00
Jing Ji
12e6a218d6 Merge "Add the flag "clear top" when launching battery settings view" into tm-dev 2022-04-15 08:46:02 +00:00
Shaowei Shen
e48d495821 Merge "DO NOT MERGE: Downbranch merge conflict [Output Switcher] fix checkbox not show" into tm-dev 2022-04-15 06:15:53 +00:00
TreeHugger Robot
b1c3543491 Merge "Do not run hint animation during aod=>ls transition" into tm-dev 2022-04-15 06:15:20 +00:00
TreeHugger Robot
7efac6c6e9 Merge "transparency: update OWNERS file" into tm-dev 2022-04-15 05:07:54 +00:00
TreeHugger Robot
3d69ea8e74 Merge "Fix bubble expanded view jumping to the left when switching bubbles" into tm-dev 2022-04-15 04:41:57 +00:00
TreeHugger Robot
915970e486 Merge "Make unfold timeout configurable in resources" into tm-dev 2022-04-15 04:24:02 +00:00
Zoey Chen
fdfa0593f3 Merge "[LeAudio] New Broadcast dialog UI" into tm-dev 2022-04-15 04:22:49 +00:00
TreeHugger Robot
74b14fada0 Merge "Revert "Change version checks to use SdkLevel.isAtLeast*"" into tm-dev 2022-04-15 04:09:57 +00:00
Yohei Yukawa
df7d192d9b Merge "Do not expose fallback InputConnection to A11y IME" into tm-dev 2022-04-15 03:10:42 +00:00
shaoweishen
9a671ee3aa DO NOT MERGE: Downbranch merge conflict [Output Switcher] fix checkbox
not show

Bug: N/A
Test: Verified on device
Change-Id: Ib505321c98a33cccbe46239431ea86b50a261ab3
2022-04-15 02:51:35 +00:00
Wei Sheng Shih
2aac68104f Merge "Clear the system bars color when removing the splash screen window." into tm-dev 2022-04-15 02:18:23 +00:00
Winson
09d24aba05 Lock ComponentResolver when taking snapshot
Otherwise it's possible to hit a concurrent modification exception
when the data structures are edited while a snapshot is being taken.

Bug: 229326910

Test: presubmit

Change-Id: Ib15551a5096c47f5a238863466af08a4a88f82b9
2022-04-14 18:47:06 -07:00
TreeHugger Robot
62f6770a60 Merge "Toggle schedule_exact_alarm to be denied by default" into tm-dev 2022-04-15 00:59:46 +00:00
Jing Ji
0d97203901 Add a config to control if show the prompt on abusive apps
And turn it OFF by default, will turn it ON in teamfood now.

Also move the alert threshold to 4% again.

Bug: 203105544
Test: atest FrameworksMockingServicesTests:BackgroundRestrictionTest
Change-Id: Iff485b1795c9cf4e5ade847a8dac6a223c3bfd65
2022-04-14 17:14:49 -07:00
Shaowei Shen
0c05d9a948 Merge "DO NOT MERGE: Downbranch merge conflict [Output Switcher] Update volume control behavior" into tm-dev 2022-04-14 23:59:03 +00:00
Rob Carr
c31a17dc54 Merge "WindowManager: Gate pending-transaction behind sync" into tm-dev 2022-04-14 23:58:29 +00:00
TreeHugger Robot
e8d0d4fd90 Merge "Fix Filter callback race condition" into tm-dev 2022-04-14 23:58:16 +00:00
Mady Mellor
6827e13a2d Skip onTaskMovedToFront if the bubble selection is animating
When a bubble gets dismissed while the stack is expanded, we should
select the next available bubble. Instead, we are collapsing.
This is because we get an onTaskMovedToFront event for the app
behind bubbles moving to the front, which causes the stack to
collapse. To fix this I add a check to see if the switch animation
is running, and if so we skip the collapse in onTaskMovedToFront.

Bug: 208648025
Test: manual - have multiple bubbles, expand the stack, visit each
               bubble
             - dismiss each bubble by dragging to dismiss target
             => observe that after dismissing each bubble, the next
                bubble is selected (if available)
Change-Id: If82c004ecd1ec8920e934dbae2107b4c37853cb5
2022-04-14 23:54:28 +00:00
Lyn Han
009bdec30a Do not run hint animation during aod=>ls transition
Also add additional tests for when hint animation should run.

Fixes: 228420035
Test: NotificationPanelViewControllerTest
Test: tap empty space on lockscreen during aod=ls transition
	=> notification unfurl completes with no hint animation
      tap again after unfurl has completed
	=> hint animation runs fine

Change-Id: I1e34d17f692a88b708b0233f02229acbb5270fae
2022-04-14 19:52:36 -04:00
Lucas Dupin
16d2613662 Merge "Invalidate empty pages at the start of wallpaper" into tm-dev 2022-04-14 23:29:00 +00:00