Commit Graph

813479 Commits

Author SHA1 Message Date
Massimo Carli
d190a310db Merge "Refine the naming about compatible scale" into tm-qpr-dev am: bdaa6f70aa
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20678629

Change-Id: Ie9bb53c5ff6345c358cf8337a779b998bd364992
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-09 17:32:32 +00:00
Edward Savage-Jones
a19956d62f Maintain the users current value for STATUS_BAR_SHOW_VIBRATE_ICON
Make sure not to overwrite any current user selection for
Secure.STATUS_BAR_SHOW_VIBRATE_ICON that the user may have
made.

Issue: 253992986
Test: Manual - see issue
Change-Id: I33155a27707e6d30ff56fb090c71b9670a98fc31
2022-12-09 12:31:48 -05:00
Thomas Nguyen
99f5d0a07d Merge "Make NETWORK_RELEASE_TIMEOUT_MILLIS configurable by carrier" 2022-12-09 17:26:18 +00:00
Evan Rosky
5aad6ff53d Merge "Replace direct AR.mVisibleRequested access with getter/setter" into tm-qpr-dev 2022-12-09 17:25:40 +00:00
Steven Moreland
06c4f5fda8 Merge "graphics.common V3 -> V4" 2022-12-09 17:21:59 +00:00
Fabian Kozynski
ec093cc3d1 Add flag to allow panels for all apps
Test: build
Fixes: 261990919
Change-Id: I94afebe846d114d06b9d7e5ceba668eea680947e
2022-12-09 12:08:19 -05:00
Massimo Carli
bdaa6f70aa Merge "Refine the naming about compatible scale" into tm-qpr-dev 2022-12-09 17:05:58 +00:00
Will Leshner
c5f6dc0604 Lock device on short power button press.
If a device is configured to dream on short power press, also make sure
it locks as well.

Also fixes an issue where the screen does not turn off when another
user (not user zero) presses the power button.

Bug: 260135090
Test: manually by configuring device to dream on short power press and
then making sure it is also locked after press.

Change-Id: I16ca4eab7a0e8a3f2ef42c090147bd7e62445c69
2022-12-09 08:45:07 -08:00
Will Leshner
a6000e21cb Don't allow dreaming for users that can't dream.
DreamManagerService#canStartDreaming should not return true if the
current user is not allowed to dream.

Bug: 261907079
Test: manually by switching to a user that can't dream and making
sure that the screen turns off on power press while docked.

Change-Id: Ia4a46dff5360d3565762b82fb4353e66f0b8f661
2022-12-09 08:43:22 -08:00
Fabian Kozynski
95df978891 Fix affordance in lockscreen and dream
If there is at least one panel (resolved), we should show the
affordance, even when we have no favorites.

Also, fix a bug in ControlsUiController.resolveActivity: anyPanels
should use `List.any`.

Test: atest DreamHomeControlsComplicationTest
Test: atest HomeControlsKeyguardQuickAffordanceConfigParameterizedTest
Test: atest ControlsUiControllerImplTest
Test: manual on lockscreen and dream
Test: launch device controls from tile for first time
Fixes: 261751925

Change-Id: I832473d243746015a1f20a7fa9b6d0e05d6c668c
2022-12-09 11:31:29 -05:00
Naomi Musgrave
e6a6a8d25a Merge "Update OWNERS files for MediaProjection & related classes" am: f43cf418cf am: 292a625ec0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2327580

Change-Id: I17242fea29712366c57ebdd1523950f84f3ec2ae
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-09 15:44:34 +00:00
Hawkwood Glazier
32c64cbd9c Disable NotificationPanelViewControllerTest.*_returnSpaceAvailable
These tests appear inconsistent now. It's not flaky, but it does
appear to change depending on the test environment.

Bug: 261472011
Test: atest NotificationPanelViewControllerTest
Change-Id: I6fc772d1ee85971072147e073b15f1feb8137107
2022-12-09 15:42:35 +00:00
Naomi Musgrave
292a625ec0 Merge "Update OWNERS files for MediaProjection & related classes" am: f43cf418cf
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2327580

Change-Id: Iac8e204f171324c6a8f79fc013cc56339df3b179
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-09 15:24:07 +00:00
Nicolo' Mazzucato
f1be8693bf Fix large screen QS header
The problem happened when going form the expanded clock layout (when QS are fully expanded), to the large screen transition layout.

This fix sets the header transition to start when on large screens.

Without doing this, the transition was staying at the latest progress in the previous constraintSet.

Bug: 261791489
Test: presubmits + tested locally
Change-Id: Ice698e169b1328c3a83189c268dbac820b564cf7
2022-12-09 15:23:56 +00:00
Miranda Kephart
f42e03e9e4 Fix bug where screenshot preview margins were too large
Also fixes clipboard overlay (which uses substantially the same layout)

Bug: 261557707
Fix: 261557707
Test: manual (visual change only)
Change-Id: Ic5f3d6b096378e61a8c5808326e1d8b5406a1e9d
2022-12-09 15:10:13 +00:00
Naomi Musgrave
f43cf418cf Merge "Update OWNERS files for MediaProjection & related classes" 2022-12-09 15:06:08 +00:00
Jamie Garside
0d1d8e91ad Merge "Enable stepped clock flag in Teamfood." into tm-qpr-dev am: 1f9eb48888
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20508288

Change-Id: I69406269bea0dacbae51f23203d959826b94b4c8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-09 14:59:02 +00:00
Govinda Wasserman
bf5bccf46d Creates flag for controling which Quick Tap framework is used
Test: None
BUG: 254030474
Change-Id: Id95221e1466d8cbd59d7a2dae7d5d905217c350f
2022-12-09 09:58:39 -05:00
Riddle Hsu
57bbf843f0 Merge "Keep rotation transform for exiting PiP with fixed rotation" into tm-qpr-dev am: 6ecaf45857
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20664788

Change-Id: Ic46a7427b06abd3ec65abf74fd15f46e689603d3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-09 14:58:20 +00:00
Jamie Garside
1f9eb48888 Merge "Enable stepped clock flag in Teamfood." into tm-qpr-dev 2022-12-09 14:57:35 +00:00
Riddle Hsu
04e8b10138 Merge "Only apply crop to task and task fragment in end transition" into tm-qpr-dev am: 0e8f4211ee
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20663229

Change-Id: I242fe2171e913c5531ea66f7a53486434731bff7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-09 14:56:46 +00:00
Riddle Hsu
6ecaf45857 Merge "Keep rotation transform for exiting PiP with fixed rotation" into tm-qpr-dev 2022-12-09 14:45:11 +00:00
Riddle Hsu
0e8f4211ee Merge "Only apply crop to task and task fragment in end transition" into tm-qpr-dev 2022-12-09 14:40:44 +00:00
Tiger
d95134d7c2 Refine the naming about compatible scale
There can be 2 reasons that we need to apply compatible scale to a
window:

1. The app doesn't support large screen. We would layout the window as
   if it is on a small display. And then we need to scale its window up
   to match the display.

2. We put a running app into a container that the size doesn't fit. We
   need to down-scale the app so that it can fit the container.

The scaling of case 2 is also known as size-compat-scale which is fully
controlled at the server side. The client shouldn't know about it. And
this CL refines the naming.

Fix: 258393096
Bug: 254187021
Test: presubmit
Change-Id: Ifbd2ca725bed231d9e6dd8190df3dc773d4402b7
(cherry picked from commit bcbd60c45c)
Merged-In: Ifbd2ca725bed231d9e6dd8190df3dc773d4402b7
2022-12-09 14:08:57 +00:00
Vladimir Komsiyski
b388d2fcbc Give ownership of VirtualDeviceManagerInternal to companion/virtual/OWNERS
Change-Id: I1d9b1f9d9f8a4653cb3916965b72a3ddf6f6e829
2022-12-09 13:45:59 +00:00
Jeff Chang
9eef8ebc44 Check lock-task mode if task_on_home is applied
d41841f469, always checks whether the home task is violated
with lock-task mode while moving the task to the front. That result in
the pinned toast was shown even applications don’t not request to have
task_on_home behavior.

This CL checks the home task violation with lock-task mode after the
task-on-home flag is applyed.

Bug: 261383209
Test: atest TaskTests#testReturnsToHomeRootTask
      atest ActivityVisibilityTests#testLaunchTaskOnHome
Change-Id: Iccc7e595b043a712c5959d28ba14f54825bcadd6
2022-12-09 18:57:03 +08:00
Vania Januar
b05028a9a0 Feature flag for stylus battery notifications.
Bug: 250908244
Test: is just a flag
Change-Id: I66d35bbeca73690d27ca3da619b7b88b5447d806
2022-12-09 10:15:42 +00:00
Shen Lin
c301e09c19 Introduce trimMemory to AppIconCacheManager
This CL adds a method to trim lrucache size dynamically based on the
level of onLowMemory to avoid calling evictAll to frequently, and to make cache resize more reasonable.

Bug: 259630755
Test: atest AppIconCacheManagerTest -c

Change-Id: I1b9692a0fad8c13722da4906cf844232707e74b2
2022-12-09 09:45:10 +00:00
Chris Li
7a67089554 Fix missing legacy change transition on display info changed
Before, we remove the changing window from transition onDisplayChanged
even if it is a display info change on the same display. Now, we only do
that when the window is moved from the old display.

Fix: 251001013
Test: atest WmTests:WindowContainerTests
Change-Id: Id3ab6db47dad8e2541a14b5529694c290e4d2b66
2022-12-09 08:52:17 +00:00
Arc Wang
6263a5528c Merge changes from topic "revert-20517233-Cloned User Storage Issue-tm-qpr-dev-XJICGTXJHD" into tm-qpr-dev am: b9feeee55b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20674384

Change-Id: I256d508ba46b5a497f155f27f88a90ef0403f045
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-09 08:28:02 +00:00
Martijn Coenen
cc57b70b4e Merge "Tell vold about users sharing storage with each other." am: 140a69e94f am: 16e3a6a180
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2189723

Change-Id: I0a25e5d08665ac1dac39147bc9efec311115253a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-09 08:24:46 +00:00
Chris Li
95cfcf7bbe Downgrade reported WM Extensions version in T_QPR2
Some features relying on API version 2 are not fully ready yet.

Bug: 261780650
Test: N/A
Merged-In: I0a4f2bfcddd7f20f53e702f2bc2144d2fd939a21
Change-Id: I0a4f2bfcddd7f20f53e702f2bc2144d2fd939a21
2022-12-09 08:15:24 +00:00
Martijn Coenen
16e3a6a180 Merge "Tell vold about users sharing storage with each other." am: 140a69e94f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2189723

Change-Id: I15dc262e49136c770f7415f15d9c9f7129bf1de1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-09 08:03:52 +00:00
Arc Wang
b9feeee55b Merge changes from topic "revert-20517233-Cloned User Storage Issue-tm-qpr-dev-XJICGTXJHD" into tm-qpr-dev
* changes:
  Revert "Fixing Storage Volume listing for Cloned User."
  Revert "Fixing Storage Volume(s) Retrieval."
2022-12-09 08:03:22 +00:00
David Zeuthen
55f62fc125 identity: Add support for ECDSA auth and don't require session encryption.
This adds a new method which allows applications to use mdoc ECDSA
authentication instead of mdoc MAC authentication. Additionally, also
relax requirements on SessionTranscript so the APIs can be used even
when mdoc session encryption isn't being used.

Bug: 241912421
Test: atest VtsHalIdentityTargetTest
Test: atest android.security.identity.cts

Change-Id: I25336f1352102208887531d066ec432a9ae3cd36
2022-12-09 02:59:23 -05:00
Nikolas Havrikov
9375c9ce61 Replace LinkedList by a more performant collection
This is a semi-automatic change.
See https://errorprone.info/bugpattern/JdkObsolete for the rationale.

Test: make
Bug: 221046110
Change-Id: I84591e3963b54e69570e77354e54027e17f17293
Merged-In: I84591e3963b54e69570e77354e54027e17f17293
2022-12-09 02:58:23 -05:00
Martijn Coenen
140a69e94f Merge "Tell vold about users sharing storage with each other." 2022-12-09 07:42:00 +00:00
Bill Yi
2e95535cfb Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iaf9e4d2e757166ae320b42ef9aac1001aa8ddc76
2022-12-09 05:07:49 +00:00
Louis Chang
1823479a4d Do not append NEW_TASK flag when caller activity is finishing
The caller activity and its task should be able to reuse. There's
no need to migrate the launching activity to another Task.

Bug: 233591548
Bug: 260978212
Test: wm presubmit
Change-Id: I2bd5f01ef9196010f1af1aa7cb9e6a45984e960d
(cherry picked from commit a7269cd7e1)
2022-12-09 03:25:29 +00:00
Ming-Shin Lu
974d2bc2ef Merge "[Shell-trantition] Fix keyguard exit animation may no-op at first boot" into tm-qpr-dev am: 99a763bf13
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20640907

Change-Id: Ia0d5b3cf9b54c52de8fbc64b5205c40df78ecdac
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-09 02:58:45 +00:00
William Xiao
b6b5286f39 Add configuration for default timeout to dock user
See other changes in the topic for context

Bug: 260123067
Test: verified on local device that timeout is 60s by default
Change-Id: I72b5fb35aef14e90f98fa9b281134a5af0f16813
2022-12-08 18:49:38 -08:00
Ming-Shin Lu
99a763bf13 Merge "[Shell-trantition] Fix keyguard exit animation may no-op at first boot" into tm-qpr-dev 2022-12-09 02:28:58 +00:00
Arc Wang
4736afef80 Revert "Fixing Storage Volume listing for Cloned User."
Revert submission 20517233-Cloned User Storage Issue-tm-qpr-dev

Reason for revert: “DroidMonitor: Potential culprit for Bug 261921307 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.”
Reverted Changes:
I6835cc4d2:Fixing Storage Volume(s) Retrieval.
I617bae9b2:Fixing Storage Volume listing for Cloned User.

Change-Id: I08722e8467fafa53ab914ec5de0380d2df62b55d
2022-12-09 02:12:08 +00:00
Arc Wang
2616b20e7a Revert "Fixing Storage Volume(s) Retrieval."
Revert submission 20517233-Cloned User Storage Issue-tm-qpr-dev

Reason for revert: “DroidMonitor: Potential culprit for Bug 261921307 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.”
Reverted Changes:
I6835cc4d2:Fixing Storage Volume(s) Retrieval.
I617bae9b2:Fixing Storage Volume listing for Cloned User.

Change-Id: Ia8b8b4f35bf9bdfe7eefa36372ae3525dc405e53
2022-12-09 02:12:08 +00:00
Ats Jenk
e29f11f831 Implement move to desktop and fullscreen
Add methods to move a task to fullscreen of freeform in proto2
controller.
Use these methods in window captions to move a task to desktop and back
to fullscreen.

Bug: 261234251
Test: atest DesktopTasksControllerTest
Change-Id: I9907038ad3882240b1f70b6f0c29c677cb4f4a51
2022-12-08 17:44:17 -08:00
Ats Jenk
99156bd05d Implement showDesktopApps
Copy logic over from proto1 to bring desktop apps to front.
There is one key difference from proto1 logic. In proto2, before desktop
tasks are shown, we ensure that the home task is brought to front. And then
place desktop tasks on top. This is due to proto2 having fullscreen and
freeform tasks running at the same time.

Bug: 260645044
Test: atest DesktopTasksControllerTest
Change-Id: Ic5de4d431b96893ef5d685a4dce28e08f17f6f97
2022-12-08 17:44:17 -08:00
Ats Jenk
e57c264131 Create controller for desktop prototype 2
Create the controller class, set up dagger.
Ensure controller is not initialized when flag is off.

Bug: 260645044
Test: atest DesktopTasksControllerTest
Change-Id: I0435e07a22e379f403ae5d1b23f39a67a12e8a6d
2022-12-08 17:43:17 -08:00
TreeHugger Robot
a24922394b Merge "Cleanup removal of taskbarSize from calculation" into tm-qpr-dev am: 5e43214256
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20623248

Change-Id: Ic45d758dec682169464f7bff205baae3fafa0608
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-09 00:55:25 +00:00
Ats Jenk
e4f6f17610 Merge "Enable common logic for proto 1 and proto 2" into tm-qpr-dev am: 4613b0f07d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20653236

Change-Id: Ie0c51e8cace60f9e56ab82016b3414d89016ef65
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-09 00:54:23 +00:00
TreeHugger Robot
5e43214256 Merge "Cleanup removal of taskbarSize from calculation" into tm-qpr-dev 2022-12-09 00:53:10 +00:00