Commit Graph

781408 Commits

Author SHA1 Message Date
Riddle Hsu
d62ad11b80 Merge "Skip immediate hiding from finishTransition" into tm-qpr-dev 2022-12-14 12:07:30 +00:00
Riddle Hsu
d8d22e9577 Inherit smallest width if TF is not multi-window without bounds override
So the embedded TaskFragment in fullscreen mode can have the same
configuration as in a normal fullscreen task. Such as the fullscreen
mode parent's smallestScreenWidthDp is calculated based on all
rotations, while the multi-window mode child calculates the value
by current size.

Bug: 256787005
Test: atest TaskFragmentTest#testOnConfigurationChanged
Change-Id: Ib79c6dc443cc0688b06035ddf64fe4dd766616a0
2022-12-14 12:02:22 +00:00
Tony Huang
99519718a9 Exit split if got request split when invisble
If split A/B then go home, and running A/B again or A/C as new
pair, it would be failed due to we could cover such case on current
implementation.

For fixing such cases, we still need to exit split first.

Fix: 262416120
Test: manual
Test: atest NexusLauncherTests:com.android.quickstep.TaplTestsTaskbar
Change-Id: I37a41ed5a87466652d7b052bc5e3b1c5627b973a
2022-12-14 19:44:56 +08:00
Zoey Chen
7b8021578a Merge "[Provider Model] Do not set mobile state repeatedly" into tm-qpr-dev 2022-12-14 11:38:55 +00:00
Johannes Gallmann
dc5743a413 Fix notification launch animation for groups
This fixes a problem where the z ordering is not correct during the launch animation of a child notification inside a notification group. The launched notification was rendered below other notifications in some cases.

Test: Manual, i.e. posting various types of notifications and analyzing the animations in screenrecordings.
Bug: 246932690
Change-Id: I658b4b3db75da5199b7b7cb416b7d7fabbc75520
2022-12-14 11:48:05 +01:00
Vali Calinescu
baa7f98f58 Merge "Refactor dispatching the focus event from handleWindowFocusChanged" into tm-qpr-dev 2022-12-14 09:57:07 +00:00
Tony Huang
adeedd3479 Make split screen have enter and exit animation
Remove MULTI_WINDOW mode block on loadAnimation to make transition
animation could show. And add some specific rule for split screen
because it should just like a full screen window but contain two
tasks.

Fix: 221117079
Test: manual
Test: pass existing tests
Change-Id: I6ccf0b5344d2bd11a2cd4eacba4df5cb9164e3e2
2022-12-14 14:59:13 +08:00
Xiaowen Lei
a668ed6134 Merge "Clean up resources for date, weather, and aqi complications." into tm-qpr-dev 2022-12-14 06:55:19 +00:00
Junyu Lai
a4b025f771 Do not crash when duplication found in merged imsi list
For some unknown reason, the merged imsi list might contain
duplicated items. Deduplication for better error handling.

Test: NetworkPolicyManagerServiceTest
Bug: 243015487
Fix: 261225039
Change-Id: I69d332ee0acde6cdd7582d1aa18c82576f7090f2
Merged-In: I69d332ee0acde6cdd7582d1aa18c82576f7090f2
  (cherry-picked from aosp/2198759)
2022-12-14 06:31:40 +00:00
TreeHugger Robot
6e8b02c25c Merge "Make touchXOutsideOfQs require split shade to be enabled" into tm-qpr-dev 2022-12-14 05:58:50 +00:00
Chris Li
3920ea3dd5 Merge "Downgrade reported WM Extensions version in T_QPR2" into tm-qpr-dev 2022-12-14 05:50:44 +00:00
TreeHugger Robot
0bf51d049c Merge "[SB Refactor] Implement tinting in the new wifi view." into tm-qpr-dev 2022-12-14 05:48:02 +00:00
Winson Chung
89c94f0abb Force update the disable flags following status bar registration
- CentralSurfacesImpl currently takes a long time to initialize, so in
  between registration and updating CommandQueue with the registered
  bar's disabled flags, the service may already have updated its
  disabled state.  This state would have already come into CommandQueue
  but would be clobbered by CSI in the post-init task.

  Since there are some legacy constraints in ordering of the
  initialization, we'll unblock the tests by forcing a disable flag
  update following the update to CommandQueue with the previous disabled
  flags.  We can later investigate applying the returned flags earlier
  in the cycle, or add a mechanism to skip apply the registered disable
  flags if they were updated mid-init.

Bug: 260615374
Test: atest WMShellFlickerTests:com.android.wm.shell.flicker.splitscreen.CopyContentInSplit
Change-Id: I98943292ecab5cdc693149f417e5c4e8af137d1d
2022-12-14 00:23:01 +00:00
Darrell Shi
c9dd637d64 Update dream IN transition.
- update blur to blur by radius
- update timing
- add y translation on all complications and status bar

Test: atest ComplicationLayoutParamsTest
Test: manually on device http://shortn/_wY7QNZ5HIB
Bug: 260637747
Change-Id: Ib378327d65e24013845d6b86ce83a72220276467
2022-12-13 23:37:40 +00:00
TreeHugger Robot
bd24d07497 Merge "Fix large screen QS header" into tm-qpr-dev 2022-12-13 23:17:35 +00:00
Garfield Tan
e88a3d3797 Use task layer constants for window decor z-order
Bug: 262403878
Test: Caption looks OK. Drag/resize work in desktop mode.
Change-Id: I04c235ac427853205675ef9f16fe5ad082b5db16
2022-12-13 14:20:11 -08:00
Behnam Heydarshahi
3c864beb5a Taller volume dialog slider on taller screens
Length of the vertical volume dialog slider (the one that pops up in response to volume button press) is now proportional to device height

Bug: b/220088292
Test: Manual. Press volume button up/down on a large screen device. Verify the slider is no longer short.

Change-Id: I70dcc2eb6748536f772aaeebd5a3a64be0050f56
2022-12-13 22:14:33 +00:00
Patrick Baumann
df9d2dc291 Merge "Fix for: NPE when intent.component set to ResolverActivity." into tm-qpr-dev 2022-12-13 22:03:42 +00:00
mattsziklay
e818b0e06e Add unit test for EventReceiver class in CaptionWindowDecorViewModel
Added a unit test to ensure that EventReceivers are correctly created
and destroyed on creation/destruction of WindowDecorations.

Bug: 258271539
Test: atest CaptionWindowDecorViewModelTests
Change-Id: I85ce32508174a17730f4a931d4c81616aedf92e0
2022-12-13 13:51:49 -08:00
Yuri Lin
d94b755f1c Merge "Send FSIs on ranking update when they are no longer suppressed by DND." into tm-qpr-dev 2022-12-13 21:46:38 +00:00
Justin Weir
0553824a9a Fix NPE
Apparently, this can cause an NPE when there are multiple displays.
Someone sent us
review.git.corp.google.com/c/platform/frameworks/base/+/2296938 and the problem will reoccur if we don't fix it in that code's new location.

Bug: 256539657
Test: presubmits
Change-Id: I2c08bb5606bc8af7f3da0f3034c58b5d57b1be0f
2022-12-13 21:19:47 +00:00
Govinda Wasserman
db19b3960f Merge "Add option to return a null Dagger graph" into tm-qpr-dev 2022-12-13 21:00:06 +00:00
Varun Shah
fb56e4ac6e Fix incorrect message being sent for all intents.
Only send the CHECK_PACKAGE_IDLE_STATE message for
ACTION_PACKAGE_CHANGED and not for ACTION_PACKAGE_ADDED.

Bug: 214580000
Test: atest UsageStatsDatabaseTest
Test: manually verify buckets are restored
Change-Id: Iac1433b9b7e3904eb7f753cd0617ac64ab6f7944
(cherry picked from commit 69f86a6475)
2022-12-13 20:25:39 +00:00
Selim Cinek
5bd31e0391 Merge "Don't re-lock if we're wake and unlocking." into tm-qpr-dev 2022-12-13 20:03:00 +00:00
TreeHugger Robot
e4eba0f961 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-12-13 19:49:16 +00:00
TreeHugger Robot
0e793d9d58 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-12-13 19:49:16 +00:00
TreeHugger Robot
d1993c1132 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-12-13 19:49:16 +00:00
TreeHugger Robot
ea391f346b Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-12-13 19:49:16 +00:00
Alex Stetson
e28a3b8fa2 Use consistent method to get current user
Depending on the timing of the switching actions, the
KeyguardUpdateMonitor and the user tracker may have different current
users. We should use a consistent method for getting the current user in
the KeyguardViewMediator

Bug: 250675259
Test: manual
Change-Id: I2b078ac21f0546d1b8de24f55e4225a754d53aea
2022-12-13 11:34:50 -08:00
Michael Mikhail
3d21096ff0 [Media TTT] Add @SystemApis for new states of receiver devices
Adds two new states that indicates if the transfer for receiver is
succeeded or failed. (ag/16730985) is a good reference.

Bug: 257301489
Test: atest MediaTttChipControllerReceiverTest
Change-Id: Ifb1d04c445235fde432b7fd3495114e61c41fd74
2022-12-13 19:24:28 +00:00
Miranda Kephart
12056830e5 Add log when clipboard smart actions shown
Refactors to pull the action classification into a separate class for
testing. Logic flow is unchanged.

Test: make statsd_testdrive && $ANDROID_HOST_OUT/bin/statsd_testdrive 90
Test: atest ClipboardOverlayControllerTest
Bug: 261201283
Change-Id: Ie931b2c11ef1a01c16147907d730d1dd6e5febe8
2022-12-13 19:20:35 +00:00
Vania Januar
b3dc6d163f Merge "Flag for USI low battery notifications." into tm-qpr-dev 2022-12-13 19:20:02 +00:00
Bryce Lee
ad91f3b29a Merge "Do not allow complications when dream overlay is not enabled." into tm-qpr-dev 2022-12-13 18:55:23 +00:00
Jeff DeCew
e845bc28c6 Merge "More exhaustive logs from NotificationWakeUpCoordinator" into tm-qpr-dev 2022-12-13 18:53:33 +00:00
Pat Manning
04cd657102 Merge "Prevent top app thumbnail cropping by taskbar in split overview." into tm-qpr-dev 2022-12-13 18:29:26 +00:00
Avichal Rakesh
375525ff41 Make ImageWriter thread safe
The various functions in ImageWriter were not protected by a lock, which
led to segfaults under certain race conditions.

This CL adds a mutex to prevent ImageWriter methods from executing while
ImageWriter is closing. This also prevent multiple calls to close from
executing simultaneously.

It also adds a simialar mutex to WriterImageSurface to prevent
simultaneous calls to close().

Bug: 244262872
Test: mediaframeworktest:com.android.mediaframeworktest.stress
Change-Id: I44976e5a36154ce98f64e2982865b2defcec7f5e
2022-12-13 10:17:59 -08:00
Michał Brzeziński
8d6cb6583f Merge "Optimistic fix for tile not getting redistributed in split shade" into tm-qpr-dev 2022-12-13 18:07:42 +00:00
Vali Calinescu
89f64b844f Refactor dispatching the focus event from handleWindowFocusChanged
Bug: 262216060
Test: N/A
Change-Id: Ic2814d9665b8f293249de5fe2158f83af72517da
Merged-In: Ic2814d9665b8f293249de5fe2158f83af72517da
2022-12-13 17:52:11 +00:00
Fan Zhang
ab68e38786 Increase threshold for ESOS power button press detection
If pressing power button 5 times is faster than 200ms, we will
not trigger the ESOS experience. This is unlikely to be done by human. The fastest recorded button press is 60ms so the whole esos gesture sequence should be 300ms or so. We are taking 200ms threshold to be conservative.

Fix: 261618088
Test: rebuild, PTS
Change-Id: Id3f1d92623d17b2921cc0fb90c1f19f896946881
2022-12-13 17:37:10 +00:00
Winson Chung
74125f848d Merge "Add missing device config permission" into tm-qpr-dev 2022-12-13 17:35:59 +00:00
Chet Haase
9ff21630f6 Merge "DO NOT MERGE Revert "Fix activity leak bug"" into tm-qpr-dev 2022-12-13 17:23:31 +00:00
Hawkwood Glazier
cd8590e5c6 Merge "Fix Positioning of large custom clocks within frame" into tm-qpr-dev 2022-12-13 16:52:35 +00:00
Tony Huang
8e315bb11d Merge changes Id75611af,I1ead6501 into tm-qpr-dev
* changes:
  Support back to split
  Support back gesture to split pair in background
2022-12-13 16:44:35 +00:00
Yuri Lin
4b48ec4489 Send FSIs on ranking update when they are no longer suppressed by DND.
This change allows notifications with full screen intents to show that FSI on a ranking update if they meet specific criteria (previously suppressed only by DND; not older than a few seconds; now no longer suppressed).

FSI on update only happens when the flag FSI_ON_DND_UPDATE is set to true.

Bug: 248325248
Test: HeadsUpCoordinatorTest, manual verifying the FSI actually shows up on update

Change-Id: I810ae951bc96908cc66a8831f88730021bdb64b6
2022-12-13 11:43:32 -05:00
Hawkwood Glazier
5c797b88e1 Merge "Correct Error reported to logcat when Plugin fails to load" into tm-qpr-dev 2022-12-13 16:39:57 +00:00
Beverly
6d611a1123 Always attempt AU w/ kg dismissal on fp failure
Test: atest KeyguardUpdateMonitorTest
Fixes: 262103001
Change-Id: Ic01e9eee57c0400c44324301468174f5c8cfe84d
2022-12-13 16:19:03 +00:00
Michael Mikhail
d23bb46ba2 Merge "Setting Flag for media falsing on" into tm-qpr-dev 2022-12-13 15:35:11 +00:00
Luca Zuccarini
39b9fc2a71 Make ActivityLaunchAnimator.Runner usable independently.
Bug: 250588519
Test: ran the suite and it still passed. No functional changes, only
reorganizing the code to make the Runner visible.

Change-Id: If36a132bbeb1eb75571b20582ba85e1067a5925b
2022-12-13 15:30:22 +00:00
Massimo Carli
de53131014 Fix Letterboxing for Transparent Activities
We want a not resizable transparent activity to inherits
the constraints from the activity below. This allows the
transparent activity to be letterboxed.
The specific logic for transparent activities is enabled
when the config_letterboxIsEnabledForTranslucentActivities
flag is true.

Fixes: 220703089
Test: Run `atest SizeCompatTests` with the following tests:
  testApplyStrategyToTranslucentActivities
  testTranslucentActivitiesDontGoInSizeCompactMode
  testNotApplyStrategyToTranslucentActivitiesWithDifferentUid
  testApplyStrategyToMultipleTranslucentActivities

Change-Id: I6b5e8517ae8286f7543c3f57c158276aab6cfbfc
2022-12-13 15:21:47 +00:00
Chandru S
06fe9de637 Add debug logs for haptics in NotificationPanelViewController.
Bug: 258138790
Test: manually, can see the logs in dump.
Change-Id: I84502e6837dbd935fa81f15d6a1a4f574ba83a0f
2022-12-13 15:19:51 +00:00