Commit Graph

813479 Commits

Author SHA1 Message Date
Alejandro Nijamkin
20e55efa61 Defines default quick affordances.
As per product, we will go with Home Controls and Wallet on the left and
the right, respectively.

Fix: 262161691
Test: Manually verified that, after clearing app cache, system UI
displays home and wallet properly.

Change-Id: I6dc2c92f1da7c2d4adc3e6ed6218cfe1352bf1b7
2022-12-14 13:28:07 -08:00
Garfield Tan
a6160ee015 Merge "Use task layer constants for window decor z-order" into tm-qpr-dev 2022-12-14 21:18:55 +00:00
Ale Nijamkin
554101125f Merge changes from topic "lock-screen-preview-in-wpp" into tm-qpr-dev
* changes:
  Long-press gesture for lock screen affordances.
  Lock screen preview.
2022-12-14 21:15:39 +00:00
Brad Hinegardner
4e0cbfbb1e Prevent crash when on UserSwitcherActivity rotate
Bug: 251347416
Test: manual verification following steps in bug
Change-Id: I8770300f1bbd269dfdb8e9a7c7f29103216509d7
2022-12-14 16:07:48 -05:00
Treehugger Robot
5e7eb1606b Merge changes from topic "c2aidl" am: ddfaa610f5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2333067

Change-Id: I6e883071fe98ee2c993959e7d3b40ba0b3e751ae
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-14 21:02:23 +00:00
John Reck
84d92f6df8 HardwareBuffer API cleanups am: 8d49e953eb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2333066

Change-Id: Ia53d6944fd17274d74d2e70fa3b10289aea36e5d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-14 21:01:50 +00:00
Jared Duke
3027b4d017 Refine keep rules for Java classes w/ native methods
The global keep rule for native methods allows stripping of such methods
if they're unreferenced in Java. However, because system_server
explicitly registers these methods from native code, stripping them in
Java can cause runtime issues. As such, conservatively keep all such
methods in system_server subpackages as long as the containing class is
also kept or referenced.

In practice, the difference is minimal, but this makes it easier to
integrate optional debug pathways that have JNI interop.

Bug: 246800015
Test: m services + inspect delta in services.jar
Change-Id: Id1f9ab707edff9b1911cdde6bdd4bc24ebff7e49
2022-12-14 12:31:14 -08:00
Bill Yi
934679eb8a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I23b080c3d0c02b14129131f40c48eba7045b406a
2022-12-14 12:28:11 -08:00
Treehugger Robot
ddfaa610f5 Merge changes from topic "c2aidl"
* changes:
  HardwareBuffer.aidl now for everyone!
  HardwareBuffer API cleanups
2022-12-14 20:24:15 +00:00
Caitlin Shkuratov
7bdb93e63d Merge "[Chipbar] Enable chipbar to handle chipbars with different priorities." into tm-qpr-dev am: 1970e1b92f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20670527

Change-Id: Idf4f5707380c533b0efda6068a76e908693e4fae
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-14 20:12:52 +00:00
Yan Yan
7fac084c9c Merge changes If8097d58,Ic8ec4587,If37b26fa am: fbd9f328ab am: 44e3093a8b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2347143

Change-Id: I4f5f3786fc92a16caddb648574b3fa35df40ca60
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-14 20:07:52 +00:00
Caitlin Shkuratov
7e7dc9faa1 [Chipbar] Only request a11y focus if the chipbar has a button.
Any time the chipbar's content description updates, there will be an
a11y announcement, but the view won't get focus.

Fixes: 260941580
Test: display active unlock chip -> verify chip text is announced but
view isn't focused
Test: display ttt chip that isn't succeeded -> verify chip text is
announced but view isn't focused
Test: display ttt success chip -> verify chip view gets focus (and is
announces)
Test: atest ChipbarCoordinatorTest

Change-Id: I28a29966868611d98d40edbd3d59b1073856e0b4
2022-12-14 19:59:45 +00:00
Caitlin Shkuratov
1970e1b92f Merge "[Chipbar] Enable chipbar to handle chipbars with different priorities." into tm-qpr-dev 2022-12-14 19:48:49 +00:00
Yan Yan
44e3093a8b Merge changes If8097d58,Ic8ec4587,If37b26fa am: fbd9f328ab
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2347143

Change-Id: Iaae6438c1ce5e98501c25d3ca9eb4caf6b885dac
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-14 19:35:41 +00:00
Sewook Seo
56704440a9 Support QoS Filter protocol
Provide getter for protocol ID included in QoS Filter from network

Bug: 246227644
Test: android build, atest FrameworksTelephonyTests
Change-Id: I2b5813eef1ae19bea757fb781032dd0bac68fb56
Merged-In: I2b5813eef1ae19bea757fb781032dd0bac68fb56
2022-12-14 19:31:55 +00:00
Michael Wright
d7367c39c4 Sleep softly on device close.
Add a new flag GO_TO_SLEEP_FLAG_SOFT_SLEEP. When set, this sleeps the
device only if its user activity keeping it awake. If its otherwise
staying awake because an application is holding a wakelock, then the
device continues to stay awake.

Bug: 260705307
Test: atest PowerManagerServiceTest
Test: manual
Change-Id: I08b6dacf418d927b4f86816b1b6d19965e68556a
2022-12-14 19:22:59 +00:00
Venkatarama Avadhani
de4825dd33 HDMI: Rename Hdmi HAL to HdmiConnection
Test: atest hal_implementation_test
 vts_treble_vintf_framework_test vts_treble_vintf_vendor_test
Bug: 261729059
Change-Id: Iba887d57304cf71f3387a69cba4cbc6d0c2c948b
2022-12-15 00:46:58 +05:30
Matt Gilbride
e42079730e Merge "InputManagerService - call PermissionEnforcer helper on methods annotated with @EnforcePermission" into tm-qpr-dev-plus-aosp 2022-12-14 19:07:07 +00:00
Devin Moore
702d860381 Add comment for thrown exception in waitForDeclaredService
Test: none
Bug: none
Change-Id: Ic62297e86fe961a643b1e180334a3a309e0f7b28
2022-12-14 19:05:02 +00:00
Mark Punzalan
8aa9612d0d Merge changes from topic "audio_egress_metric" into tm-qpr-dev am: 4ee9f703bb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20586786

Change-Id: Ic3b6ff0cf0eca5b5d74796c26629115afe94bcb0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-14 19:04:13 +00:00
Mark Punzalan
7da11bed7e Rename HotwordAudioStreamManager and add Javadoc am: 714691fc46
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20618388

Change-Id: I6ee17b3ef97947efc674eeca38bb69550c2fa64a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-14 19:03:26 +00:00
Mark Punzalan
bb61adcc30 Remove dependency on Identity in HotwordAudioStreamManager am: 53007b4d5b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20617675

Change-Id: I7c2dae67231809902fd4e280ee2e85e52208475d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-14 19:03:11 +00:00
Mark Punzalan
d96af08933 Allow setting buffer length for HotwordAudioStreamManager am: 27c97de8ae
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20613323

Change-Id: Ia3dfd9da8fe5e356d0015d150d910955dd9d0e94
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-14 19:02:43 +00:00
Fabian Kozynski
968a6e14b9 Fix extra constant value
Test: no test
Bug: 261990872
Change-Id: If047bc351d031a7c098846e0235ae5f35a44aa52
2022-12-14 13:54:20 -05:00
Yining Liu
d0c440701b Merge "Remove obsolete shadow logic from StackScrollAlgorithm updateChildZValue" into tm-qpr-dev am: be2f4b96ab
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20583231

Change-Id: I05240e9aac87beda26480b7c1abf3a9009f86176
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-14 18:53:57 +00:00
Yan Yan
fbd9f328ab Merge changes If8097d58,Ic8ec4587,If37b26fa
* changes:
  APIs to enable data stall handling in VCN
  Perform MOBIKE when data stall is suspected on VCN network
  Add VCN gateway option to enable data stall handling
2022-12-14 18:52:31 +00:00
Treehugger Robot
cb27089420 Merge "Fix API feedback on AuthenticatedKeyMetadata" am: 506f1e6ea7 am: c21d08a9d7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2350224

Change-Id: Ic450dd17afb1b69e69ab05ce34cb4a21bf4c233a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-14 18:50:43 +00:00
Yan Yan
6cc63c4968 Fix a typo and use ArraySet in VCN
This is a cleanup commit to fix typos and switch to use ArraySet
instead of HashSet for better performance.

Bug: 261499808
Test: atest FrameworksVcnTests, CtsVcnTestCases
Change-Id: Ie4a83ab22aa2b3682856776b762b4356b13b4745
2022-12-14 18:42:55 +00:00
Mark Punzalan
4ee9f703bb Merge changes from topic "audio_egress_metric" into tm-qpr-dev
* changes:
  Hotword: Add metrics for Audio Egress
  Rename HotwordAudioStreamManager and add Javadoc
  Remove dependency on Identity in HotwordAudioStreamManager
  Allow setting buffer length for HotwordAudioStreamManager
2022-12-14 18:23:24 +00:00
Treehugger Robot
c21d08a9d7 Merge "Fix API feedback on AuthenticatedKeyMetadata" am: 506f1e6ea7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2350224

Change-Id: Id8ff930a74c6a17dbc262973845dbdd8df77c01f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-14 18:17:19 +00:00
Aaron Liu
4dd9900361 [Bouncer] Do not send message if face auth...
Succeeded.

When we authenticate the face, the KeyguardIndicationController checks
to see if the bouncer is showing and will set message to "Swipe up and
try again." if so. Ensure that we only show "Swipe up and try again." when face auth
fails.

Also ensure that message is removed when bouncer no longer becomes
visible.

Fixes: 259007288
Test: Enroll in FP and face. Open bouncer and auth via face. Turn off
and on and open bouncer again to view initial message.
Test: Unit Test

Change-Id: I8ee56d27ff60f32e696ac100a64d0553ce3c77e0
2022-12-14 10:16:29 -08:00
Chet Haase
b9ed093976 Revert "DO NOT MERGE Revert "Fix activity leak bug""
DO NOT MERGE Revert submission 20674641-revert-20610032-cherrypick-AnimatorLeak fixes-4lh72bu61o-BQALTBEXMY

Reason for revert: Temporary revert deemed unnecessary - this revert will re-submit the original changes.

Reverted changes: /q/submissionid:20674641-revert-20610032-cherrypick-AnimatorLeak+fixes-4lh72bu61o-BQALTBEXMY

Bug: 261518932
Bug: 258616235
Change-Id: I539c771a6897a9d635613a17138343a7a9feddb9
Test: Presubmit tests. Also, forrest runs with these changes showed no regression
2022-12-14 18:12:29 +00:00
Vania Januar
37e6f1968b Merge "Add owners file for /systemui/stylus." am: d639c46b67 am: 96bf325bdf
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2355562

Change-Id: Ibed27e4faaa7ee75052842d8a76de6b09a09beae
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-14 18:10:56 +00:00
Yining Liu
be2f4b96ab Merge "Remove obsolete shadow logic from StackScrollAlgorithm updateChildZValue" into tm-qpr-dev 2022-12-14 18:01:09 +00:00
Nick Chameyev
0d289f642f [Unfold transition] Fully manage the vignette on the background thread
Updates onScreenTurningOn/device state callbacks
in the unfold overlay class to be executed on
the background thread.

This allows to draw the first black frame even
if SystemUI's main thread is busy at the moment,
so it will be less likely to have flicker because
of that.

Also this CL adds a separate thread to render
the vignette to avoid conflicting with the other
operations made on the shared background thread.

Bug: 262381044
Bug: 262518402
Bug: 233045200
Test: manual fold/unfolds with/without AOD enabled
Test: add artifical delay to SystemUI configChanged
 that exceeds WM keyguard drawn timeout
 => test that there is a flicker without changes
    test that there is no flicker with the changes
Test: atest com.android.keyguard.mediator.ScreenOnCoordinatorTest
Change-Id: Ic5a61839500dbbf63e9c5422bfc0085827526d92
2022-12-14 17:54:11 +00:00
Treehugger Robot
506f1e6ea7 Merge "Fix API feedback on AuthenticatedKeyMetadata" 2022-12-14 17:47:19 +00:00
TreeHugger Robot
d11d52c8f2 Merge "Forcing closing QS when going from SHADE_LOCKED to KEYGUARD" into tm-qpr-dev am: 0933f38b45
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20708866

Change-Id: I919efdae38470966dec5b518c9f54153967d88f3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-14 17:40:58 +00:00
Matt Pietal
7dc1742cab Transitions - Listen for bouncer show & hide
Was only listening for hide() previously. Add support for show().

Also make sure bouncer is not reported while occluded.

Also, use ::Pair, ::toTriple to reduce code clutter for common
operations

Test: atest KeyguardRepositoryImplTest
KeyguardTransitionRepositoryTest
Test: manual, better integration tests pending for transitions
Bug: 195430376

Change-Id: Ic9cd5a7309bdc26c016e33c4221eb8b7c442c2fa
2022-12-14 17:39:58 +00:00
Ale Nijamkin
924cd25b13 Merge "Attaches source for camera launch when unlocked." into tm-qpr-dev am: 4b452106b0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20712456

Change-Id: Iea6a24ad934df429f752fc2f257c385a7255e8a0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-14 17:39:51 +00:00
Vania Januar
96bf325bdf Merge "Add owners file for /systemui/stylus." am: d639c46b67
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2355562

Change-Id: I98eb3f16b76ceb38d3c3ed8240180489488cafb8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-14 17:39:11 +00:00
TreeHugger Robot
0933f38b45 Merge "Forcing closing QS when going from SHADE_LOCKED to KEYGUARD" into tm-qpr-dev 2022-12-14 17:38:31 +00:00
Matt Sziklay
f5ac31a93f Merge "Add unit test for EventReceiver class in CaptionWindowDecorViewModel" into tm-qpr-dev am: 544e44f249
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20693841

Change-Id: I6986107feaeedd3e912ad4b7bc7b2bc641155ea7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-14 17:38:30 +00:00
Ale Nijamkin
4b452106b0 Merge "Attaches source for camera launch when unlocked." into tm-qpr-dev 2022-12-14 17:21:26 +00:00
Matt Sziklay
544e44f249 Merge "Add unit test for EventReceiver class in CaptionWindowDecorViewModel" into tm-qpr-dev 2022-12-14 17:12:31 +00:00
Tony Huang
3caa620a41 Merge "Exit split if got request split when invisble" into tm-qpr-dev am: 1c34df1da0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20730966

Change-Id: Id2e2a64ad684f45761c58708e9a22e421201cc02
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-14 17:10:24 +00:00
Aaron Liu
e7e1911620 Merge "[Bouncer] Add more padding top for bouncer." into tm-qpr-dev am: 6aaf6e649a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20712457

Change-Id: Ie673b1746debb262187eeee814d5c9d604175869
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-14 17:08:10 +00:00
Aaron Liu
ba79c79ca3 Merge changes Id3aaa354,Ia2782c7c into tm-qpr-dev am: 159d7482e8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20711390

Change-Id: I5a4fa07b0b69d092abe621911de434e0d1e92516
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-14 17:05:55 +00:00
mattgilbride
5bd625a261 InputManagerService - call PermissionEnforcer helper on methods annotated with @EnforcePermission
All java methods annotated with @EnforcePermission
must call super.<methodName>_enforcePermission
method provided by PermissionEnforcer.

This method exists in U (currently aosp).

Bug: 262456703
Test: TH
Merged-In: I39a8583c4732b3d01de47b78955c3b8cff853f82
Change-Id: I09fcc610988452b5e23b5d2e910d241e41a73879
2022-12-14 17:04:42 +00:00
Vania Januar
d639c46b67 Merge "Add owners file for /systemui/stylus." 2022-12-14 16:47:59 +00:00
Tony Huang
1c34df1da0 Merge "Exit split if got request split when invisble" into tm-qpr-dev 2022-12-14 16:47:10 +00:00