Commit Graph

848600 Commits

Author SHA1 Message Date
Ale Nijamkin
e34657499d [automerger skipped] Merge "Revert "Adds a few dependencies to the shared library."" into tm-qpr-dev am: 4133d50209 -s ours am: eab7d6a3c0 -s ours
am skip reason: Merged-In I4e41a911891ff3ba30ff82163be1005ef3974be3 with SHA-1 97860c2a0e is already in history. Merged-In was found from reverted change.

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20452163

Change-Id: I766f4a4739c340057c24e0c8b5b71ae923337460
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-11 21:52:39 +00:00
Ale Nijamkin
37d8a4b05c [automerger skipped] Revert "Adds a few dependencies to the shared library." am: f93309b2a5 -s ours am: 8a21bcf659 -s ours
am skip reason: Merged-In I4e41a911891ff3ba30ff82163be1005ef3974be3 with SHA-1 97860c2a0e is already in history. Merged-In was found from reverted change.

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20452163

Change-Id: I1a49bcae7c79d6b8450a75a87e286d47c30413c7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-11 21:52:03 +00:00
Fabian Kozynski
93535dc047 Prevent views from changing size in animation
This reduces the jank in animation by reducing the measure calls, as the
animating views do not change size. This means only using `wrap_content`
or fixed non-zero sizes.

Test: jank suite
Test: atest CombinedShadeHeaderConstraintsTest
Test: manual with different cutouts
Test: perfetto trace
Fixes: 258083936
Change-Id: Ia53411dd02f3fb0019d67a8ee3bc5111d13066f9
2022-11-11 16:22:13 -05:00
Ale Nijamkin
eab7d6a3c0 [automerger skipped] Merge "Revert "Adds a few dependencies to the shared library."" into tm-qpr-dev am: 4133d50209 -s ours
am skip reason: Merged-In I4e41a911891ff3ba30ff82163be1005ef3974be3 with SHA-1 97860c2a0e is already in history. Merged-In was found from reverted change.

Reverted change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20390690

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20452163

Change-Id: I76fbf63d16f470567d5befab9d1cace75666e77f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-11 21:20:58 +00:00
Ale Nijamkin
8a21bcf659 [automerger skipped] Revert "Adds a few dependencies to the shared library." am: f93309b2a5 -s ours
am skip reason: Merged-In I4e41a911891ff3ba30ff82163be1005ef3974be3 with SHA-1 97860c2a0e is already in history. Merged-In was found from reverted change.

Reverted change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20390690

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20452163

Change-Id: Ic47c2476329b5239d93aaccf722faade53facb81
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-11 21:20:36 +00:00
Weilin Xu
c58f580670 Add unit tests for HIDL broadcast radio service
Bug: 258034192
Test: atest com.android.server.broadcastradio
Change-Id: I76cd338d20be7fb5effb137ff9f0601927105056
2022-11-11 21:16:53 +00:00
Weilin Xu
65436d48fb Add unit tests for radio HIDL tuner and module
Unit tests for radio module and get/set methods in tuner session
of broadcast radio HIDL HAL client are added. Meanwhile, replace
deprecated Matchers package with ArgumentMatchers package.

Bug: 258034192
Test: atest TunerSessionHidlTest RadioTunerHidlTest
Change-Id: I5530c5b42cf3f4763df8d003871196d630ef06cd
2022-11-11 21:16:35 +00:00
Kunal Malhotra
f4c573cc63 Merge "Adding in new metrics for Jobs." 2022-11-11 21:14:54 +00:00
Nolan Scobie
892cac2025 Fix erroneous self deletion on SkImage creation failure
TL;DR: Skia should always call releaseProc, and maybe sooner than we thought.

There are multiple scenarios where SkImage:MakeFromTexture will fail,
returning a nullptr and calling releaseProc due to a RefCntedCallback
falling out of scope. Previously this could cause mUsageCount to fall to
0, resulting in the AutoBackendTextureRelease deleting itself even
though DeferredLayerUpdater owned a ref and expected it to still exist.

Also added logging for some reasons that could cause the later call to
MakeFromTexture to fail.

Bug: b/246831853
Test: hwui_unit_tests
Change-Id: I7fd2566b9a85fe286f72b0fc42eba5450cac69b0
Merged-In: I7fd2566b9a85fe286f72b0fc42eba5450cac69b0
2022-11-11 16:13:25 -05:00
Qinmei Du
df17e143d3 Update the intro screen after select on a more options row
screenshot: https://screenshot.googleplex.com/jCnd2ZamuTFDnNZ

Test: deployed locally

Bug: 253157211
Change-Id: Ie96bf43dea6a2380f123b084190c541c5c7fcc08
2022-11-11 21:10:08 +00:00
Qinmei Du
b78f3eed0e Add the Another device row in the more options screen
screencast: https://screencast.googleplex.com/cast/NTEwMDE0ODM2MDIxNjU3NnxmODFmOGRjMy0zMw

Test: deployed locally

Bug: 253157211
Change-Id: Ib0572d4b1b0e1f576b1cc748252782f382f8a4b1
2022-11-11 21:07:55 +00:00
Ale Nijamkin
4133d50209 Merge "Revert "Adds a few dependencies to the shared library."" into tm-qpr-dev 2022-11-11 20:56:23 +00:00
Bo Liu
23af702a13 Rename SC ndk jni API
Rename to ASurfaceControl_fromJava / ASurfaceTransaction_fromJava.

Test: Compiles
Bug: 258245761
Change-Id: Ic9cedd83bad3facb46947ecdac6324f4318d8db6
2022-11-11 15:01:01 -05:00
Hyunki Kim
e72f621e38 feat(magnification settings): Add Diagonal resize handles for Window magnification
Test: `atest SystemUITests:com.android.systemui.accessibility.WindowMagnificationControllerTest`

Bug: b/188136191

Change-Id: I270689671765f4287f91689e5acb82711bef4885
2022-11-11 12:00:44 -08:00
Kweku Adams
46038f2a1c Merge "Add data transfer JobService APIs." 2022-11-11 19:34:24 +00:00
Caitlin Shkuratov
c181e3d04c [Dock Defend] Cache the density in the drawable so we don't re-fetch it
constantly.

Bug: 255625888
Test: verified density got updated each time display size changed
Change-Id: I8cbb9ffe0e3ef18dc43fe13749b7584eb83640e1
2022-11-11 19:33:08 +00:00
Caitlin Shkuratov
aced6da687 [Dock Defend] Udpate the content description to account for dock defend
if needed.

Bug: 255625888
Test: manual: Verify battery content description in all states
Test: atest BatteryMeterViewTest

Change-Id: I497c14096da2693cc35bf01d76287c021ddc3bf8
2022-11-11 19:13:54 +00:00
Caitlin Shkuratov
29eb2d1276 [Battery] Ensure we always update the text and content description when
necessary.

When writing some tests for the new dock defend icon, I came across
some existing issues when we don't correctly update the text or content
description. This CL adds tests that would've been failing, and updates
BatteryMeterView to make them pass.

Bug: 255625888
Test: atest BatteryMeterViewTest
Change-Id: I3485a50c6471dd75dce64a3daf414208afa8d25e
2022-11-11 19:13:54 +00:00
Caitlin Shkuratov
7d779b689d [Dock Defend] Ensure the bottom of the battery icon is always aligned
with the bottom of the other icons, even if the shield is displayed.

Bug: 255625888
Test: manual: Verify battery icon bottom stays aligned with other icon
bottoms both with and without the shield. See video attached to bug.
Change-Id: Ib203e8ce27d515a177e8371958fa43ecf8b20e74

Change-Id: I1d8c53cc2beae90f6dca14cf339733bfb085a56e
2022-11-11 19:13:54 +00:00
Caitlin Shkuratov
1b65e52344 [Dock Defend] Add an optional shield to the status bar battery drawable.
The shield will be displayed when the battery is marked as overheated.

Bug: 255625888
Test: manual: issue `adb shell am broadcast -a com.android.systemui.demo
-e command battery -e overheated true` and verify the battery icon
displays a shield
Test: See bug for manual demo video
Test: statusbar.battery tests

Change-Id: I6b3036ae47ad7b5ae8dc78f83d019130935c9b50
2022-11-11 19:13:49 +00:00
Aaron Liu
5bf86ebc7a Merge "[Bouncer] Update bouncer view with display size." into tm-qpr-dev am: a40e956a6a am: 027a1dd6fb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20413391

Change-Id: Ib4f2837acdb9d64e14b72b513c4fbe0cbbdc59ea
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-11 19:11:59 +00:00
Aaron Liu
027a1dd6fb Merge "[Bouncer] Update bouncer view with display size." into tm-qpr-dev am: a40e956a6a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20413391

Change-Id: Iaffc0dc924f923191c0a988fe599055f77f77a8b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-11 18:39:58 +00:00
Iurii Makhno
a7ba6b6813 Do not validate localeConfig if it is referenced as external symbol.
Bug: b/258816606
Test: Link_test
Change-Id: I5dd4aa75c02ceebad26d025a99ba302ec673abf8
2022-11-11 18:32:13 +00:00
Matt Pietal
fff2212264 Power scrim reveal - adjust for rotation
For foldables, the power button can appear on three different sides
when rotating. Make sure power button reveal scrim comes from wherever
it is.

Apologies - the whole file was formatted but the only part that
changed was in PowerButtonReveal

Fixes: 204737218
Test: manual, use device power button and keep rotating
Change-Id: I1dbd1fd76456ef2c1a7de2847877e3c029176eba
2022-11-11 18:24:27 +00:00
Aaron Liu
a40e956a6a Merge "[Bouncer] Update bouncer view with display size." into tm-qpr-dev 2022-11-11 18:15:31 +00:00
Daniel Norman
32afd29346 Introduce A11yService#takeScreenshotOfWindow()
This enables accessibility services to take a screenshot of
a window without any overlay windows drawn on top, which is
beneficial for ML-based understanding of the visual content
in the window.

Bug: 249830826
Test: atest AccessibilityTakeScreenshotTest
Test: use in an a11y service, observe screenshots
      contain only content from the requested windows
      and no overlays
Change-Id: Ic886aeace9cb2984a472273858281b4f2c3a0e46
2022-11-11 18:07:10 +00:00
Matt Buckley
b091fb85de Merge "Add support for ADPF HintSession sendHint to JNI" 2022-11-11 17:54:42 +00:00
Gurpreet Singh
cf6cd188b7 Merge changes from topic "presubmit-am-0937382625b34fa3bd0171e756b4e2e9"
* changes:
  [automerged blank] Fix testUsesSdk test to use higher extension version. 2p: 587492489c
  Fix testUsesSdk test to use higher extension version.
2022-11-11 17:41:46 +00:00
Shaju Mathew
28a1770efe Merge "Revert "BroadcastQueue: more increasing delay knobs."" 2022-11-11 17:39:00 +00:00
Darrell Shi
4c5add5c98 Check home controls availability on overlay active.
The callback that home controls observes is only triggered when the
controls services update, which is one of the conditions for whether
home controls is available. When the user adds the first or removes the
last device control, the hasFavorites condition changes but does not
trigger an update.

So to address that, home controls should check availability when the
dream overlay becomes active, parallel to which on the lock screen.

Test: DreamHomeControlsComplicationTest
Test: reboot device with no favorited device controls > add favorite
device controls > start dreaming > see home controls chip
Test: similar to above but start with favorites and remove last
Bug: 257348199
Fix: 257348199

Change-Id: I537a240963e0523c8fc40008dee961c7a434094a
2022-11-11 17:14:16 +00:00
Kweku Adams
4b138af66a Actually persist network byte values.
These numbers are useful in adjusting JS policy, so we should persist
them so we can use them after the device reboots.

Bug: 258701271
Test: atest FrameworksServicesTests:JobStoreTest
Change-Id: Iee8fb699ea5b4c01446ce8fd8f806203effbe4ce
2022-11-11 17:13:30 +00:00
Billy Lau
0000111149 BinaryTransparencyService: change params to FrameworkStatsLog.write
Due to the extension of the definition of the ApexInfoGathered atom,
we are changing the params to `FrameworkStatsLog.write()` to match
the atom definition.

Bug: 245944675

Test: Manual.
Change-Id: If5a2df21ecb13d0bc34b70116cc133ef823a642a
2022-11-11 10:51:33 -06:00
Michael Groover
b27f82bcc1 Merge "Override registerReceiver methods in test Context to accept flags" am: 57ff4b4589 am: ebd19a22d8 am: 3023e08134
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2295653

Change-Id: Ib7daaf9b43c7756ea101ed15d8bfded2a22f660a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-11 16:46:47 +00:00
Michael Groover
3023e08134 Merge "Override registerReceiver methods in test Context to accept flags" am: 57ff4b4589 am: ebd19a22d8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2295653

Change-Id: Ieb23a1f4f61478e26789822cff404197e599d2f8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-11 16:43:10 +00:00
Ale Nijamkin
f93309b2a5 Revert "Adds a few dependencies to the shared library."
This reverts commit c752af5808.

Reason for revert: b/258424862

Change-Id: I2851fd0980b579015e34754a5b1c7db46ab56dea
2022-11-11 16:41:53 +00:00
Victor Chang
1fe78cf84e Revert "BroadcastQueue: more increasing delay knobs."
This reverts commit 2bd5b49f95.

Reason for revert: b/258718309

Change-Id: I7ccb4e8238066c6038364395d026f340a872a1b0
2022-11-11 16:33:18 +00:00
Florian Mayer
1162d79a78 Merge "Add constant for intent to open MemtagPage" 2022-11-11 16:33:13 +00:00
Yohei Yukawa
f341715288 Plumb IME subtype change from IMMS to IMS (again)
This CL introduces

  onInputMethodSubtypeChangedForKeyboardLayoutMapping()

to

  InputManagerInternal

in a way that is similar to our previous attempt [1].

The two major differences are

 A. It also provides InputMethodSubtypeHandle so that
    InputManagerService can use it as look up keys, and

 B. Subtypes that return false from
      isSuitableForPhysicalKeyboardLayoutMapping() [2]
    are mapped to null.

Other than those two differences, this CL is the same as our previous
CL [1].

See also another previous CL [3] about how this callback can be used.

 [1]: I58e71ffce9ac9131551a00dd35e24235dadfef87
      b097b8262b
 [2]: Ifc0247041a43ef64f8a76a23832da2ee058c6958
      6980a434cd
 [3]: Ie88ce1ab77dbfe03ab51d89c1dc9e0a7ddbb3216
      d5f7ed9fe9

Bug: 252816846
Test: manually verified
Change-Id: I087f02d06dc5575d2e657c25614d0361ef2ff443
2022-11-11 08:17:09 -08:00
Hawkwood Glazier
1f8915bc3f Remove proguard.flags from shared/
Bug: 257473381
Test: Presubmits
Change-Id: I23a16aaa9fdb3f22216e5bc048d1cdcdc4010667
2022-11-11 16:14:09 +00:00
Michael Groover
ebd19a22d8 Merge "Override registerReceiver methods in test Context to accept flags" am: 57ff4b4589
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2295653

Change-Id: I655a5a5fc3de312c9ea2c35a4dfc3465bb0687fd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-11 15:58:11 +00:00
Ying Xu
2b79a130f1 Add QSlog for the background color change of the Internet Tile
Bug: 250618218
Test: manual tests
Change-Id: I9a20393cc86c27fbf11beccee64c9746a94900a6
2022-11-11 07:54:55 -08:00
Michael Groover
57ff4b4589 Merge "Override registerReceiver methods in test Context to accept flags" 2022-11-11 15:32:07 +00:00
Matt Casey
9caeec5dd8 Merge "Fix long screenshots actions for work profile." into tm-qpr-dev am: a07000013b am: 1e5e9eeb8a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20225186

Change-Id: Ie5d9cf5ae6ee9bc887986d94d34bc9b6c89c8de2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-11 15:21:29 +00:00
TreeHugger Robot
5cf5a91bf5 Merge "QS in split shade should listen to changes earlier" into tm-qpr-dev am: ed19f58a1c am: 8985cfc6ed
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20388345

Change-Id: I6c4813f60249fa07a102da3d07e390c040eccb6d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-11 15:20:47 +00:00
Silvia Vinyes
ce3e3c43b6 [automerger skipped] Merge "Add logging for ambient light." into tm-qpr-dev am: fd8565ceb1 am: 146afdf91a -s ours
am skip reason: Merged-In I7b3a823f116b68a349d398b9cd2dab465e27ea9c with SHA-1 642112e475 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20300181

Change-Id: Iea91f77d47be8dd55f1c1b689a97290b0b10f5f4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-11 15:18:36 +00:00
Silvia Vinyes
e70fa8ab36 [automerger skipped] Merge "Ensure only internal display display interactions are logged." into tm-qpr-dev am: 6bb34e9b92 am: 793ddfa8d1 -s ours
am skip reason: Merged-In I473867eb37ae6d862759ab1f4fad95bb7bb96616 with SHA-1 fedad29a41 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20411902

Change-Id: I18d06efd9410bae10b9823f0492096242fc5ecff
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-11 15:17:03 +00:00
Matt Casey
1e5e9eeb8a Merge "Fix long screenshots actions for work profile." into tm-qpr-dev am: a07000013b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20225186

Change-Id: Ifed01d1baacfea444dee6f9fb0fe427e8c56bcbb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-11 15:16:22 +00:00
TreeHugger Robot
8985cfc6ed Merge "QS in split shade should listen to changes earlier" into tm-qpr-dev am: ed19f58a1c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20388345

Change-Id: I1c501f8dd1bbf0cb6a74e37a953c7b03f77833d7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-11 15:13:45 +00:00
Sarup Dalwani
dcb195594d Configuring Default CrossProfileIntentFilters for Clone profile
Bug: 243109287
Test: Manually tested cross profile call from/to clone profile based on
intent redirection use-cases

Change-Id: Ic5a1757922fd13a156154fa081dd8517bfdd47d9
2022-11-11 15:07:29 +00:00
Matt Casey
a07000013b Merge "Fix long screenshots actions for work profile." into tm-qpr-dev 2022-11-11 15:03:46 +00:00