Commit Graph

813479 Commits

Author SHA1 Message Date
Evan Laird
4109042c18 [Sb refactor] Move WifiRepositoryImpl to prod/ package
Note that this CL modifies the ktfmt_includes so we can keep the
WifiRepositoryImplTest rename from running ktfmt, which would break the
blame history.

Test: existing tests
Bug: 238425913
Change-Id: I9c6b9ba3905728c31859cac1d6703be4d77f3db0
2022-12-22 09:56:48 -05:00
TreeHugger Robot
cad25ef52c Merge "[DO NOT MERGE] OCCLUDED->LOCKSCREEN transition" into tm-qpr-dev 2022-12-22 14:24:40 +00:00
Matt Pietal
766d1ecd56 Merge "Transitions - Add occlusion state" into tm-qpr-dev am: 49889126c4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20787426

Change-Id: I96a27ea8a60157fd558529714cdd28ffcc50f90d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-22 13:09:22 +00:00
Matt Pietal
c9edee967b [DO NOT MERGE] OCCLUDED->LOCKSCREEN transition
Follow the same path as DREAMING->LOCKSCREEN, do a subtle fade and y
translation upon unoccluding.

Allow coroutinecontext override for collectFlow, to optimize path for
transition steps.

Gated behind existing flag (223).

Test: atest OccludedToLockscreenTransitionViewModelTest
NotificationPanelViewControllerTest
Bug: 195430376

Change-Id: I3e031d7b2f72c43f5d9a93954e983c7ff6c34270
2022-12-22 12:40:29 +00:00
Matt Pietal
49889126c4 Merge "Transitions - Add occlusion state" into tm-qpr-dev 2022-12-22 12:39:36 +00:00
Massimo Carli
33cf8ca0bb [2/n] Makes EduAnimationController generic
Use generics to reuse EduAnimationController

Fixes: 263113045
Test: Manual

Change-Id: Ifdcf879f3c3f6050622bc893ad639ccbc05d7f23
2022-12-22 12:27:30 +00:00
Massimo Carli
75845880e9 [1/n] Create Configuration for CompatUX Enhancements
This flags allow to enable/disable some of the new compat ui
enhancements related to a confirmation dialog for restart button
and an education for letterbox reachability.

Fixes: 260909953
Test: Manual using `adb shell dumpsys activity service SystemUIService
WMShell compatui <command> <value>` where commands are `restartDialogEnabled`
and `reachabilityEducationEnabled` and the values `0, false, 1 or true`

Change-Id: I10a99cc73d97026e12d4c60b751d349281b1d1cf
2022-12-22 12:26:31 +00:00
Johannes Gallmann
35980bdb3e Merge "Reapply changes of inline reply CL" into tm-qpr-dev am: ccff5e1445
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20796550

Change-Id: I4007ad37b1ab70214a678bc68d77de0b4cf77574
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-22 11:58:12 +00:00
Johannes Gallmann
ccff5e1445 Merge "Reapply changes of inline reply CL" into tm-qpr-dev 2022-12-22 11:23:11 +00:00
Matt Pietal
f1e31f2918 Merge "Unfold transition - Apply based on state" into tm-qpr-dev am: 58bb1e866b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20787429

Change-Id: Idedf9ee698d9dad76072fd5234ff77c63ee41a5d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-22 11:10:23 +00:00
Matt Pietal
58bb1e866b Merge "Unfold transition - Apply based on state" into tm-qpr-dev 2022-12-22 10:34:49 +00:00
wilsonshih
265cdc3a68 [ShellTransit] Reset alpha in buildFinishTransaction
The alpha of a window container can be 0 after it play a fade-out app
transition, (e.g. start/finish activity with overridePendingTransition)
And since there doesn't have another animation layer like legacy
transition do, that window will stay invisible because of alpha=0,
unless somewhere trigger another animation with apply a new alpha on it.
Also it won't able to receive touch event since the alpha is 0.
To make it visible, always reset the alpha to 1 in
buildFinishTransaction.

Bug: 263439418
Test: manual, finish activity with an overridePendingTransition which
apply fade-out animation for the entering one, the activity should be
visible after animation finish.

Change-Id: I5be555e33b76aa799e1f96b3ea340d365bad4c66
2022-12-22 09:52:01 +00:00
Kwangkyu Park
15390d0a40 ImageUtils: Fix estimated bytes factor for P010
For P010, each pixel is a 16-bit and a 4:2:0 subsampled.
So, the estimated byte factor should be 3.

Bug: 263433055
Change-Id: I86cfa005f0769a65104cad6378f7ba1af759162a
2022-12-22 17:04:33 +09:00
Mariia Sandrikova
84c4ab69d9 Merge changes from topic "camera-compat-force-rotation" into tm-qpr-dev am: 13459ada3a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19694267

Change-Id: I5640e4afc438a51b81919d5ed0b649fb35ce73b8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-22 05:17:38 +00:00
Mariia Sandrikova
6d10df6860 [2/n] Camera Compat: Add DeviceConfig flag am: da4c552378
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19694266

Change-Id: Ice8fccdb136b1b24420125d26a1887bbab2608b8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-22 05:17:14 +00:00
Mariia Sandrikova
a1b8de2317 [1/n] Camera Compat: Force rotate activities am: 83c300c0f9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19601374

Change-Id: I296969c53769862c6d25cd9d299c86dc7c964cf2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-22 05:16:53 +00:00
Mariia Sandrikova
13459ada3a Merge changes from topic "camera-compat-force-rotation" into tm-qpr-dev
* changes:
  [3/n] Camera Compat: Refresh activity
  [2/n] Camera Compat: Add DeviceConfig flag
  [1/n] Camera Compat: Force rotate activities
2022-12-22 04:39:22 +00:00
Alejandro Nijamkin
667c495238 Quick affordance gesture polish and haptics.
- UX polish for quick affordance long press failure: updated string to
  match specified copy from writer and delay the shake animation until
  after the cancel animation is complete
- Adds haptic feedback to activating on, deactivating, and to long press
  failure based on spec sent by scottj@

Fix: 263293154, 262776614
Test: manually verified all four scenarios: no haptic feedback for quick
affordances that don't support activation mode, activation,
deactivation, and shake animation when clicking or holding for too short
a time.

Change-Id: Iada8441892c3db328489f798f59128ee6531560b
2022-12-21 17:28:15 -08:00
Miguel Aranda
077372e2e4 Merge "Add conscrypt updatable certificates." am: 0b62dccbbc am: cd3609306d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2323439

Change-Id: I6113f57c111d1fa56120fd5ae2e0e8938ab5c05c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-22 00:33:15 +00:00
Android Build Coastguard Worker
53d06f246f Snap for 9428515 from d287d1d6bb to tm-qpr2-release
Change-Id: If9ba15f5f63266ce58f32edc1e1bedeffd6865ca
2022-12-22 00:20:41 +00:00
Miguel Aranda
cd3609306d Merge "Add conscrypt updatable certificates." am: 0b62dccbbc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2323439

Change-Id: I4b5a5162437711aca86431cafd4f99e6ad0f6e81
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-21 23:58:15 +00:00
Hongwei Wang
b576702e30 Do not reset surface when entering PiP
When UnfoldAnimationController is present and entering PiP from a Task
with multiple activities, the resetTask within UnfoldAnimationController
could conflict with the PiP animation and cause flicker.

Fixed this by ignoring restTask in UnfoldAnimationController if there is
no state change going on.

Bug: 261996076
Test: Enter PiP from Task with multi-Activity on foldables
Change-Id: I7f13e86d030d427383e65a37efde13ec94dea2a8
2022-12-21 15:32:41 -08:00
Miguel Aranda
0b62dccbbc Merge "Add conscrypt updatable certificates." 2022-12-21 23:20:38 +00:00
Caitlin Shkuratov
90b7ecf16b [SB Refactor] Add docs for OEMs about the new status bar pipeline.
Bug: 238425913
Test: N/A
Change-Id: I0a223a92f0d56566ae4120db27d80a3bb19249fb
2022-12-21 23:17:51 +00:00
Matt Casey
bb9f4937fd Merge "Remove unnecessary view ID" into tm-qpr-dev am: 6680d5cdaa
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20787276

Change-Id: I05c81caa101d728a1bca2e9bd6ecb20d59426793
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-21 22:32:29 +00:00
Matt Casey
6680d5cdaa Merge "Remove unnecessary view ID" into tm-qpr-dev 2022-12-21 21:40:04 +00:00
Lucas Silva
70cea03113 Add new flag for enabling lowlight in direct boot
Bug: 230499241
Test: atest DirectBootConditionTest (in linked change in same topic)
Change-Id: Ie4a61f0bd9ad684716b97d8fa51513b28eef7ef8
2022-12-21 16:29:52 -05:00
Mariia Sandrikova
ad26f036f8 [3/n] Camera Compat: Refresh activity
Introduce RefreshCallbackItem that allows to "refresh" activity by going through "stopped -> resumed" or "paused -> resumed" cycle. This allows to clear cached values in apps (e.g. display or camera rotation) that influence camera preview and can lead to sideways or stretching issues persisting even after force rotation in DisplayRotationCompatPolicy.

Using "stop -> resumed" cycle by default due to higher success rate confirmed with app compatibility testing. But introduce ADB commands that allow trying both.

Bug: 218352945
Test: atest WmTests:DisplayRotationCompatPolicyTests
Change-Id: Iaca54b197937147f93d52297543b106fd5b97322
2022-12-21 20:29:45 +00:00
Evan Laird
2775b3b39e [Sb refactor] Add a demo command flow method
This CL mainly just adds a single method to DemoModeController,
`demoFlowForCommand(String)`. The rest of the diff is from a combination
of ktlint formatting and writing a test for the flow, which required
some restructuring of the class.

Test: DemoModeControllerTest
Bug: 238425913
Change-Id: I40dd0b42a881d0776e9b19b282496e850a67a981
2022-12-21 15:19:21 -05:00
Evan Laird
a3cef0ce4f [Sb refactor] Wifi demo mode
Test: WifiRepositorySwitcherTest
Bug: 238425913
Change-Id: Iea3d94f6543cd599f667b297edf9d5019e841067
2022-12-21 15:19:21 -05:00
Evan Laird
81799a75f7 [Sb refactor] Mobile icon view model logging
Add logging to the mobile icon view models. In order to keep the logs
from duplicating, this CL also adds:

1. The reuse of a single instance of the MobileIconsViewModel
   (top-level), which
2. Caches the individual MobileIconViewModel common implementations on a
   per-subscription basis. There is now a 1-1 correspondence of the
   common mobile icon view model implementations and the number of
   subscriptions.

Also updated the MobileIconViewModelTest and
LocationBasedMobileIconViewModelTest classes to use the TestScope method
of running tests.

Test: adb logcat | grep SbConnectivity
Test: tests in tests/src/com/android/systemui/statusbar/pipeline/mobile/*
Bug: 238425913
Change-Id: I5157cdcfb054d4629db0f9b11da8b583760ce471
2022-12-21 15:19:18 -05:00
Michael Mikhail
abd81830d4 Merge "[Media TTT] Apply ripple effect for new states" into tm-qpr-dev am: d287d1d6bb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20668089

Change-Id: Ib89a4f05a80937b6c82e7bb3575892f6827371d4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-21 20:17:43 +00:00
T.J. Mercier
bcd5cf6f13 Merge "Rename: ReadDmaBufs -> ReadProcfsDmaBufs" am: ac92461dbe am: 2092245ab7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2362224

Change-Id: Ia84c7120a80a087929de5aa367ace15172dd0622
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-21 20:17:12 +00:00
Fabien Sanglard
173e9e200c Merge "Remove 1.3s "Waiting for Debugger" delay" am: e5527c234e am: 7f45627502
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2305923

Change-Id: I148078dd054ed8efa38e8aff06ffdd40216a9882
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-21 20:13:54 +00:00
Michael Mikhail
d287d1d6bb Merge "[Media TTT] Apply ripple effect for new states" into tm-qpr-dev 2022-12-21 19:50:30 +00:00
T.J. Mercier
2092245ab7 Merge "Rename: ReadDmaBufs -> ReadProcfsDmaBufs" am: ac92461dbe
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2362224

Change-Id: I9f4fbe5d964acce1e46963148e12399d8d0fccd2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-21 19:39:43 +00:00
Fabien Sanglard
7f45627502 Merge "Remove 1.3s "Waiting for Debugger" delay" am: e5527c234e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2305923

Change-Id: Idc0ff929155cdd977d430b90f2317efc64c54123
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-21 19:36:25 +00:00
Pinyao Ting
293469e45e Merge "Revert "Implement a global maximum on number of shortcuts an app can publish"" into tm-dev am: fb4be8c37d am: 8a0fe06579 am: 42153dae5a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20750338

Change-Id: I3cc7b9ef0814fc3184da6a2022590c50f10f1b08
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-21 19:35:30 +00:00
Mariia Sandrikova
da4c552378 [2/n] Camera Compat: Add DeviceConfig flag
Also, refactor boolean setters to reduce code duplication in WindowManagerShellCommand.

Test: manual with adb shell device_config put window_manager enable_camera_compat_treatment true
Bug: 218352945
Change-Id: Ieb01afa8a1941d9a5a5979139d886592122fcd7a
2022-12-21 19:35:06 +00:00
Matt Pietal
3356efe60d Merge "[DO NOT MERGE] DREAMING->LOCKSCREEN, lockscreen updates" into tm-qpr-dev am: 0b0d8d8088
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20762087

Change-Id: I3dbe06709175c2fb08bd98bf929998972e7ab79c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-21 19:34:47 +00:00
Mariia Sandrikova
83c300c0f9 [1/n] Camera Compat: Force rotate activities
Camera compatibility treatment that handles orientation mismatch between camera buffers and an app window that can lead to camera issues like sideways or stretched viewfinder.

The treatment is enabled for internal displays that have ignoreOrientationRequest display setting enabled and when a flag config_windowManagerCameraCompatTreatmentEnabled is true. It's only applied to activities that have fixed orientation and are in fullscreen.

Main parts of the solution:
- Listen for the camera changes in DisplayRotationCompatPolicy to trigger orientation update when necessary
- Incorporate DisplayRotationCompatPolicy#getOrientation in orientation resolution logic in DisplayContent
- Don't trigger orientation updates too quickly to avoid orientation flickering during the camera flip or fold-unfold for foldable devices

Bug: 218352945
Test: atest WmTests:DisplayRotationCompatPolicyTests
Change-Id: Iaa3a3efa4e0fa89fbb58c7dbc59c125600972224
2022-12-21 19:34:19 +00:00
Matt Pietal
d2e99dcac3 [DO NOT MERGE] DREAMING->LOCKSCREEN, lockscreen updates am: 9b898b8f1a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20762087

Change-Id: Ic3639965f952f8d6ccf7e8b95518b2d1c7b6a11f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-21 19:34:15 +00:00
Android Build Coastguard Worker
c98a09ff00 [coastguard skipped] Merge sparse cherrypicks from sparse-9410919-L42800000957877743 into tm-qpr2-release.
Change-Id: I5374518e0da2e461709f68f8a195b73fa9e4727c
2022-12-21 19:18:14 +00:00
T.J. Mercier
ac92461dbe Merge "Rename: ReadDmaBufs -> ReadProcfsDmaBufs" 2022-12-21 19:12:39 +00:00
Android Build Coastguard Worker
b760d72046 Merge cherrypicks of ['ag/20750338'] into sparse-9410919-L42800000957877743.
Change-Id: I3da13a6b59ad96d9228c0d29f715a3b450adf141
2022-12-21 19:12:33 +00:00
Pinyao Ting
4b104cf0f6 Revert "Implement a global maximum on number of shortcuts an app can publish"
This reverts commit fa4b2dc6d8.

Reason for revert: bugs related to conversation shortcuts can lead to system retaining shortcuts exceeding this number, causing crashes in chat apps such as whatsapp, messages ... e.t.c

Change-Id: If485dc29e4f906d2ce5ec6836b3c4c47b5f21e23
(cherry picked from commit 6ed5fbe8c6)
Merged-In: If485dc29e4f906d2ce5ec6836b3c4c47b5f21e23
2022-12-21 19:12:23 +00:00
Yixiao Luo
9e620f65af Support TvInputInfo#getHdmiDeviceInfo() for HDMI physical inputs
create HdmiDeviceInfo by TvInputHardwareInfo in TvInputInfo.Builder#build() when TvInputHardwareInfo#getType() == TV_INPUT_TYPE_HDMI && HdmiDeviceInfo == null.

Test: mmm
Bug: 244143511
Change-Id: Ic42c7584ae31f763e81dab1e0c8ba56ade484889
2022-12-21 19:01:05 +00:00
Matt Pietal
d6ae48eae2 Transitions - Add occlusion state
Add specific OCCLUDED state, and manage transitions between states.

Refactor all transition interactors to focus around the From starting
states.

Add dream overlay-specific callback, in addition to dreaming
information, as the overlay can control exactly when the dream exits.

Test: atest KeyguardRepositoryImplTest DreamOverlayCallbackControllerTest
DreamOverlayServiceTest KeyguardTransitionScenariosTest
DreamingToLockscreenTransitionViewModelTest
Bug: 195430376

Change-Id: I096a174729574964cc54fcf5a01522360491693c
2022-12-21 18:56:21 +00:00
Pinyao Ting
42153dae5a Merge "Revert "Implement a global maximum on number of shortcuts an app can publish"" into tm-dev am: fb4be8c37d am: 8a0fe06579
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20750338

Change-Id: I707d37e7f592e50ea1fd89ad016187e5a20565cd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-21 18:49:16 +00:00
Matt Pietal
0b0d8d8088 Merge "[DO NOT MERGE] DREAMING->LOCKSCREEN, lockscreen updates" into tm-qpr-dev 2022-12-21 18:46:07 +00:00