Commit Graph

813479 Commits

Author SHA1 Message Date
Aaron Liu
1cd9826aa0 Merge "[Bouncer] Add bouncer log buffer." into tm-qpr-dev 2022-12-13 00:07:56 +00:00
Hawkwood Glazier
ea38a49f47 Correct Error reported to logcat when Plugin fails to load
Test: N/A
Bug: 260864389
Change-Id: I723afce7e1afaf9219cfc75e46e4e37d5d95f784
2022-12-12 23:48:57 +00:00
Ats Jenk
b1a74f75e5 Merge changes I9907038a,Ic5de4d43,I0435e07a into tm-qpr-dev am: 6213522d86
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20653722

Change-Id: I37ecd1e85c21e4fac8851ad28dcc49679e5768f5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-12 23:44:12 +00:00
Treehugger Robot
ac3a9ce8bb Merge changes from topic "ic-android14" am: d65b6dc230 am: d493e34a4d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2302299

Change-Id: Ib4b0585cd06296ebcf543566435bbb69db01b6c9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-12 23:42:50 +00:00
David Zeuthen
e58c217540 identity: Add support for ECDSA auth and don't require session encryption. am: 55f62fc125 am: 6b8617ce9c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2241164

Change-Id: Iec4121daaaa0ac9eaeb16d44ebc6f0dba2dcb505
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-12 23:42:33 +00:00
Nikolas Havrikov
0da518ac39 Replace LinkedList by a more performant collection am: 9375c9ce61 am: ad76a152b9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2302441

Change-Id: I322f2102f633174a24b573c08b5b89a97487b9cc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-12 23:42:20 +00:00
Yein Jo
eace956e67 Add another flag to control turbulence noise in UMO.
To better control ripple and turbulence noise, a new flag is added.

Bug: 249536060
Test: MediaControlPanelTest
Change-Id: I95c3cc2121b1c7f4bd6ca106bd4f6304cbbb01e1
2022-12-12 23:24:40 +00:00
Ats Jenk
6213522d86 Merge changes I9907038a,Ic5de4d43,I0435e07a into tm-qpr-dev
* changes:
  Implement move to desktop and fullscreen
  Implement showDesktopApps
  Create controller for desktop prototype 2
2022-12-12 23:20:04 +00:00
Treehugger Robot
d493e34a4d Merge changes from topic "ic-android14" am: d65b6dc230
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2302299

Change-Id: I52ce78c4cf31347b026d233d2c8ea76e22f9edad
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-12 23:14:51 +00:00
David Zeuthen
6b8617ce9c identity: Add support for ECDSA auth and don't require session encryption. am: 55f62fc125
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2241164

Change-Id: I535cc54ea30a8d027c3bd34c93c2f8874c5c5594
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-12 23:14:41 +00:00
Nikolas Havrikov
ad76a152b9 Replace LinkedList by a more performant collection am: 9375c9ce61
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2302441

Change-Id: I92052606d6a4ab867b73b90064915b17ccdfbaa9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-12 23:14:27 +00:00
Treehugger Robot
d65b6dc230 Merge changes from topic "ic-android14"
* changes:
  identity: Add support for setting minimum validity period for AuthKey.
  identity: Add support for ECDSA auth and don't require session encryption.
  Replace LinkedList by a more performant collection
2022-12-12 23:06:06 +00:00
Muralidhar Reddy Mule
d12e6dc3bf Merge "isSimPortAvailable API should return true if the calling app can activate a new profile on the selected port without any user consent or deactivate dialog." into tm-qpr-dev am: af2ba65d08
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20647615

Change-Id: I19d84ca1bec934828768e62135083eafcd7f10fb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-12 23:05:09 +00:00
Treehugger Robot
8b6c7807b7 Merge "IStats HAL: Stable AIDL interface update to version 2" am: 1ea232297a am: e676f14453
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2339284

Change-Id: I9d1d27f9666a5daa5c6c5272fe00b360d03441f4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-12 23:02:29 +00:00
Cutter Coryell
30f12a3042 Do not load/release back gesture ML model after every device fold/unfold.
Previously, the model's state was being updated every time mIsEnabled changed, causing either a resource load or resource release depending on the direction of the change. However, mIsEnabled changes every time EdgeBackGestureHandler attaches or detaches, which happens every time a foldable folds or unfolds. Releasing and reloading the model's resources every fold/unfold is needless and wasteful.

Now, the model resources only load when the process starts or when the user enables Gesture Navigation mode. The model resources only get released when the user disabled Gesture Navigation mode.

This change is safe because no new behavior is added.

There is also an additional safety check added: now, if the model is currently loading, it will not be asked to predict.

Fix: 214938229
Test: manual

Change-Id: I6127b4a5acfa57e9faa0966d021bd951cf2d7bee
2022-12-12 22:39:00 +00:00
Aaron Liu
49584e3fe6 [Bouncer] Have initial message id for sim pin.
Seems like we can get into a state where the sim pin view does not have
an initial message and is getting an exception because 0 is not a valid
resource id. Moving the getInitialMessageResId to the parent of the sim
pin view controller.

Fixes: 261941458
Test: Add unit test. Open sim pin view.
Change-Id: Ia2782c7c8acd0775bd2fb1cf9774f477264cf899
2022-12-12 14:37:25 -08:00
Treehugger Robot
e676f14453 Merge "IStats HAL: Stable AIDL interface update to version 2" am: 1ea232297a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2339284

Change-Id: I52ad1030afb6c2d29c3a7633c4601f2b3647acde
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-12 22:33:54 +00:00
Muralidhar Reddy Mule
af2ba65d08 Merge "isSimPortAvailable API should return true if the calling app can activate a new profile on the selected port without any user consent or deactivate dialog." into tm-qpr-dev 2022-12-12 22:31:15 +00:00
Treehugger Robot
1ea232297a Merge "IStats HAL: Stable AIDL interface update to version 2" 2022-12-12 22:09:55 +00:00
Alejandro Nijamkin
f2add476cc Long-press gesture for lock screen affordances.
If the flag for customizable lock screen quick affordances is
enabled, the required geture to activate a lock screen quick affordance
is now a standard long press instead of a click.

Fix: 254857466
Test: long-pressing the button causes it to scale-animate and then
activate. A "tap" sound plays when it activates. Moving the finger too
far off the touch target while holding down cancels the gesture.
Releasing the finger too quickly causes the view to shake-animate and a
corrective message to appear in the indication area.

Change-Id: I130169d6dcdb6779bb914b0a3c0d3b0fc522567d
2022-12-12 13:53:35 -08:00
Yein Jo
3f7a9f81c0 Merge "Fix RippleFinished being called on first draw." into tm-qpr-dev am: 801a4b98a3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20665370

Change-Id: I0060473b414220502aebdac97522fb19c1a4d8ce
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-12 21:53:34 +00:00
Alejandro Nijamkin
832d609613 Lock screen preview.
Adds code on the system UI side that renders a preview of the lock
screen. This is done through the content provider, which receives a
handle to a SurfaceView from wallpaper picker, where the UI is actually
shown to the user.

There are several changes here, following the path of the code, they
are:
1. KeyguardQuickAffordanceProvider can handle the "call" from wallpaper
   picker and delegates the rendering to the preview system
2. The preview system starts with KeyguardRemotePreviewManager which is
   responsible for driving the lifecycle of the rendering as the
   connection to the remote SurfaceView is established or torn down
3. The preview system continues with the KeyguardPreviewRenderer which
   builds the view hierarchy and hooks up each view to its appropriate
   view-binder or view-controller
4. For quick affordances, we are making a couple of minor changes to the
   view-binder, view-model, and interactor to allow for them to run in
   "preview" mode where different rules apply: no clicks allowed, the
   affordances are ever-visible (as opposed to only when the lock screen
   is shown), etc.

Bug: 261362750
Test: unit tests created/updated, manually verified in the shortcuts
settings screen

Change-Id: I5d1c51dacbedf0a7a1fb3ec742244141a2fe8a32
2022-12-12 13:53:34 -08:00
Jeff DeCew
94da479b08 More exhaustive logs from NotificationWakeUpCoordinator
Test: Extensive manual testing with logcat while attempting to repro
Bug: 250946719
Change-Id: I96b3783c716d35eadd3627baafcbf263aafc6f1e
2022-12-12 21:50:46 +00:00
Aaron Liu
a4392c2510 [Bouncer] Add more padding top for bouncer.
Some padding was removed in ag/20643913 so the bouncer seems to be
offset a little bit and looks strange. Adding this padding back.

Fixes: 260477609
Test: Open bouncer.
Change-Id: Ib93188b6e87ac1324d59869b06a155c9e445f963
2022-12-12 13:09:30 -08:00
Yein Jo
801a4b98a3 Merge "Fix RippleFinished being called on first draw." into tm-qpr-dev 2022-12-12 21:04:23 +00:00
Yan Yan
0838c8fb53 Expose APIs to configure transports to be restricted by VCN
This commit exposes APIs to allow caller to configure transports that
willl be marked as restricted by VCN.

This API allows carriers to restrict the access to the carrier owned
networks and thus prevent apps from circumventing the VCN.

Bug: 239104955
Test: make update-api
CTS-Coverage-Bug: 262263040
Change-Id: I21aaab57e3d51f4f206c613c94c95ee02150b929
2022-12-12 21:03:05 +00:00
Michael Mikhail
bfc8557f2e Setting Flag for media falsing on
It sets the flag on for increasing the penalty on media falsing

Bug: 259445895
Test: manual - tests are in ag/20455102
Change-Id: I443a366acc7bc110f1e2baf5e6bd742898743378
2022-12-12 20:46:07 +00:00
Alejandro Nijamkin
ebe46d7f8a Attaches source for camera launch when unlocked.
If the double tap power button gesture is detected while the device is
unlocked, we are using a different code path to start the camera app. In
this code path, we were not actually attaching the source to identify
ourselves as the double tap power button System UI gesture.

This CL updates that path to include the source.

Bug: 262193771
Test: manually verified that we are attaching the extra (though it
doesn't fix the camera bug)

Change-Id: If5844a2ceb165303240265f0c0955f94fc8076a0
2022-12-12 12:44:32 -08:00
Miranda Kephart
af53725191 Merge "Fix bug where screenshot preview margins were too large" into tm-qpr-dev am: 55d9c878f2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20670528

Change-Id: I32141108d690664b499c8812d2ada336e7760be5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-12 20:41:05 +00:00
TreeHugger Robot
2928c4b525 Merge "Add z-order regions for task child layers" into tm-qpr-dev am: 5d98a2db73
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20177549

Change-Id: I40822509d65875ef747b52c27309b3d7736d0481
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-12 20:40:29 +00:00
Miranda Kephart
55d9c878f2 Merge "Fix bug where screenshot preview margins were too large" into tm-qpr-dev 2022-12-12 20:31:03 +00:00
Bill Yi
227eeabb5a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I0442505831142fdd1440a1b510e0c16c0486e526
2022-12-12 12:15:40 -08:00
Yan Yan
9d9de6ecab Add restrictions on underlying networks with VcnConfig
This commit allows VCN callers to configure underlying networks
that need to be restricted via VcnConfig.

This commit also makes sure that VCN will notify policy listners
when the VcnConfig gets updated.

Bug: 239104955
Test: atest FrameworksVcnTests(new tests)
Test: atest CtsVcnTestCases
Change-Id: Ie174f7ec27ba115939c4f5d88d9bb00c6d348ea9
2022-12-12 20:12:59 +00:00
Govinda Wasserman
19e63a79e5 Add option to return a null Dagger graph
This allows processes that do not utilize the SysUI Dagger graph to
avoid having to subclass and instantiate it.

This change also makes the Screenshot cross-profile service take
advantage of this change.

Test: Turn on "Enable RequestProcessor" and "Enable Work Profile
Screenshots Policy" SysUI flags
Test: Take a screenshot of a work profile app
Test: Observe successful work profile screenshot
BUG: 259469497

Change-Id: I1a8c62ba079d90e575cab2a0e14b3f1466e1952c
2022-12-12 20:01:56 +00:00
TreeHugger Robot
5d98a2db73 Merge "Add z-order regions for task child layers" into tm-qpr-dev 2022-12-12 19:58:40 +00:00
Bill Yi
69bed7cedf Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I34238a997e48e4387d8a87c8d51541ddf5089dc9
2022-12-12 11:00:46 -08:00
Fiona Campbell
1e27edce2e Merge "Allow No Sensor to be Specified in DDC" into tm-qpr-dev am: 55d73f2ed4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20580521

Change-Id: I5fd161bb61588a3c4c704d05b8fc18a294de7f1f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-12 18:53:53 +00:00
Fiona Campbell
55d73f2ed4 Merge "Allow No Sensor to be Specified in DDC" into tm-qpr-dev 2022-12-12 18:25:41 +00:00
Bill Yi
883c7f2676 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ide4b557da8c9b540ea5eabf7dd2da3604bd2a072
2022-12-12 10:17:22 -08:00
Beverly
eabef8f33c Replace KeyguardListenQueue with DumpsysTableLogger
Test: manually check dumpsys & bugreport
Fixes: 261993577
Change-Id: Ic12b64925982c0bc0af7f988ccbbf31a51a76850
2022-12-12 18:13:51 +00:00
Yuri Lin
3596a98379 Merge "Add an enum for decisions about whether to launch FSI." into tm-qpr-dev am: a5ad61f2bf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20496406

Change-Id: I3fba9e22807e7ed4083e20156c27b9e6c95b27c9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-12 17:44:21 +00:00
Matt Pietal
58b61ea191 Merge "Disable light reveal migration in teamfood; it is not and was not ready." into tm-qpr-dev am: 89965d1c75
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20646523

Change-Id: Iec5b845a6f57931ee58211f3779d7bebb399c5a6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-12 17:43:33 +00:00
Shawn Lee
9002fa2254 Merge "Added logging for setting mMotionAborted in NPVC" into tm-qpr-dev am: 3d50899537
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20657982

Change-Id: I6c45d078166e85bfda06d44148490955991ace43
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-12 17:42:59 +00:00
Alex Florescu
0e46350fb7 Merge "Revert "[Bouncer] refine entry for bouncer user switcher."" into tm-qpr-dev am: e8fdf35124
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20707506

Change-Id: If01382a8a4bd489feebd5473a443e4ff5a1fcc86
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-12 17:42:28 +00:00
Jorge Gil
18a7c2ba17 Merge "Let DesktopModeController reorder tasks on TO_FRONT transitions" into tm-qpr-dev am: 33b9c7f1e0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20613054

Change-Id: Icad650bc5131e921b5b65dd687514619eed05774
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-12 17:41:00 +00:00
Michal Brzezinski
d7fee325b7 Removing logs for b/237743330
The bug is about keyguard status bar and status bar being visible at the same time.
Bug doesn't have any new reports in the last 6-7 weeks so these bug-specific logs are no longer needed.

Bug: 237743330
Test: just removing logs
Change-Id: Ic25bbf46d23b154ba56b121dd0306c3cb83da032
2022-12-12 17:40:54 +00:00
Yuri Lin
471ffcfc10 Merge "Add UiEvents for cancellation reasons previously not covered" into tm-qpr-dev am: af6ed7e4d9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20609451

Change-Id: I95281002cd171d51c5ec94ca47450b9d5e2a6c11
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-12 17:40:20 +00:00
Chris Poultney
0a847149aa Fix a minor javadoc issue
Bug: 253481667
Test: n/a, documentation only
Change-Id: Iadbd3a1a9f065bc1222ebc9af8ee4ddb5371d23f
2022-12-12 17:36:27 +00:00
Yuri Lin
a5ad61f2bf Merge "Add an enum for decisions about whether to launch FSI." into tm-qpr-dev 2022-12-12 17:34:42 +00:00
Jiaming Liu
c737b91918 Support ContextWrapper by replacing instanceof checks with token checks
Test: all tests pass

Bug: 258065175

Change-Id: I3dd08929c0ba420d5fa71f0e0fdbc8ca7cc8abb5
2022-12-12 17:32:03 +00:00