Commit Graph

18616 Commits

Author SHA1 Message Date
TreeHugger Robot
e21f2f3e5a Merge "By default, only eng builds allow latency-test broadcasts" into tm-dev am: 447af5dee2 am: 856890ad76
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17574383

Change-Id: I2a345bad06248725ca5794020a3e2f1ff8c78005
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-14 17:55:32 +00:00
TreeHugger Robot
447af5dee2 Merge "By default, only eng builds allow latency-test broadcasts" into tm-dev 2022-04-14 17:30:13 +00:00
Tiger Huang
6b6ec0dee9 Merge "Fix InsetsState#calculateVisibleInsets" into tm-dev am: d8a7e13af9 am: 0e5bb93498
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17742606

Change-Id: I896070176ceb70d25a5cdace70e5defa5f061684
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-13 19:33:35 +00:00
Jeff Sharkey
9e0b65bd5f Merge "Update VerityUtils OWNERS to a more common file" am: 8f45aff50e am: 33c225a967 am: e48d920898 am: 382a44e4b5 am: 88ae26bfea
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1977508

Change-Id: I304d782c8045482bdc6bf5735d1ea1f763b68e6a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-13 18:52:19 +00:00
Tiger Huang
d8a7e13af9 Merge "Fix InsetsState#calculateVisibleInsets" into tm-dev 2022-04-13 18:40:39 +00:00
Jeff Sharkey
382a44e4b5 Merge "Update VerityUtils OWNERS to a more common file" am: 8f45aff50e am: 33c225a967 am: e48d920898
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1977508

Change-Id: Ia4558b8e5d4b003bab5863375e9944bf1d3d716d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-13 18:01:42 +00:00
Jeff Sharkey
e48d920898 Merge "Update VerityUtils OWNERS to a more common file" am: 8f45aff50e am: 33c225a967
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1977508

Change-Id: I15da247838cbe8e8a3883aba63c013a2ccc480e4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-13 17:12:03 +00:00
Jeff Sharkey
33c225a967 Merge "Update VerityUtils OWNERS to a more common file" am: 8f45aff50e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1977508

Change-Id: I97f8dccc06fac1e9a0e96c4fa63dfdf42c07c8da
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-13 16:51:09 +00:00
TreeHugger Robot
8829d1d372 Merge "Remove subtitle of system default" into tm-dev am: 107ce2cd75 am: 0d213534d9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17741627

Change-Id: I23da0423e8d5fc49eed520ee0174a2009a5c19ff
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-13 15:53:19 +00:00
TreeHugger Robot
107ce2cd75 Merge "Remove subtitle of system default" into tm-dev 2022-04-13 15:43:38 +00:00
Victor Hsieh
e3f86c0534 Update VerityUtils OWNERS to a more common file
Bug: None
Test: N/A
Change-Id: I4d4b9dd0832a6c1ff32e3205014660acd1eb19d4
2022-04-13 15:17:03 +00:00
TreeHugger Robot
db054a58b6 Merge "Only add system language on locale page" into tm-dev am: 66070d7c8a am: 6eebdb9f5f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17739084

Change-Id: I137b65d2edac6fc58a37b162f12e0d6ff04f52d1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-13 11:31:16 +00:00
TreeHugger Robot
66070d7c8a Merge "Only add system language on locale page" into tm-dev 2022-04-13 10:18:37 +00:00
Tiger Huang
e467b6e722 Fix InsetsState#calculateVisibleInsets
Before the new insets system, a window wouldn't receive visible insets
if it:
 - has FLAG_LAYOUT_NO_LIMITS,
 - is not TYPE_WALLPAPER or TYPE_SYSTEM_ERROR, and
 - is not in multi-window mode.

This CL makes the visible insets compatible with the legacy insets
system.

Fix: 223536648
Test: atest InsetsStateTest
Change-Id: Ia73142cfae701d0532a9a397366c50aeef82abb2
2022-04-13 18:13:52 +08:00
Calvin Pan
ccc952306e Remove subtitle of system default
Bug: 226894987
Test: manual
Change-Id: Ib2018378c851b408cf3c324009e03b35979c1616
2022-04-13 10:12:19 +00:00
Calvin Pan
4c41490cb3 Only add system language on locale page
Bug: 229044305
Test: manual
Change-Id: Ia61aadbfe38969e54861dcbeb7ac4addc5f8d3be
2022-04-13 06:10:20 +00:00
Mark Renouf
c067508ba2 Merge changes from topic "presubmit-am-5f71c0c2e4404f4483b93bae95744fe7" into tm-mainline-prod am: 41dbbcc906
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17621331

Change-Id: I29266921f5e30e828cb16361f83e016db0285184
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-12 15:39:27 +00:00
Mark Renouf
41dbbcc906 Merge changes from topic "presubmit-am-5f71c0c2e4404f4483b93bae95744fe7" into tm-mainline-prod
* changes:
  [automerge] Fix potential StrictMode crash with miniresolver 2p: d0978dbb67
  Fix potential StrictMode crash with miniresolver
2022-04-12 14:53:55 +00:00
Mark Renouf
05709ae494 Merge "Fix potential StrictMode crash with miniresolver" into tm-dev 2022-04-12 14:53:55 +00:00
Calvin Pan
895a7b661e Merge "Add current system language into suggestion list" into tm-dev 2022-04-12 13:55:29 +00:00
Presubmit Automerger Backend
2a2054df58 [automerge] Add current system language into suggestion list 2p: 729a22a2cc 2p: f1930d24eb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17700590

Bug: 228905883
Change-Id: Ifcdabdd25646dc0be66bd6345fda3c93cca439df
2022-04-12 07:45:22 +00:00
Presubmit Automerger Backend
f1930d24eb [automerge] Add current system language into suggestion list 2p: 729a22a2cc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17700590

Bug: 228905883
Change-Id: I67a9ea739116526bf7a732a7c412b1af283a0c27
2022-04-12 07:45:12 +00:00
Calvin Pan
729a22a2cc Add current system language into suggestion list
Bug: 228905883
Test: Add system language and change app language

Change-Id: I7b1f78bb13902dc50f3e8ce8e1c62590ac623b9c
2022-04-12 07:37:13 +00:00
Shawn Lin
0c61c8498c Merge changes from topic "tm-sbH"
* changes:
  [automerge] Fixed status bar glitch for apps that access internal res 2p: 71eaca7ede 2p: acf060e065
  [automerge] Fixed status bar glitch for apps that access internal res 2p: 71eaca7ede
  Fixed status bar glitch for apps that access internal res
2022-04-12 02:15:58 +00:00
Shawn Lin
ca1832916f Merge changes from topic "tm-sbH" into tm-mainline-prod
* changes:
  [automerge] Fixed status bar glitch for apps that access internal res 2p: 71eaca7ede
  Fixed status bar glitch for apps that access internal res
2022-04-12 02:15:58 +00:00
Shawn Lin
455e78d8f4 Merge "Fixed status bar glitch for apps that access internal res" into tm-dev 2022-04-12 02:15:58 +00:00
Joshua Trask
21a6d9b784 Merge "Clean up ResolverListAdapter::rebuildList()." 2022-04-11 21:22:01 +00:00
Beverly
dfd1568e21 By default, only eng builds allow latency-test broadcasts
Otherwise, the latency_tracker must be manually
enabled via a SystemConfig (and the device must
minimally be debuggable).

Test: manual
  adb shell device_config put latency_tracker enabled true
  adb shell am broadcast -a com.android.systemui.latency.ACTION_FINGERPRINT_WAKE
Fixes: 227491682
Change-Id: Ia5a7f2f9eec619c26583bcac6b00b8445abdcbf1
2022-04-11 18:08:21 +00:00
shawnlin
1f5b53c8c4 [automerge] [DO NOT MERGE] Update to use new res status bar height dimen 2p: 47fb15fe8c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17686875

Bug: 216782082
Change-Id: Ia9c43342665872f3a76742c301f8532a20bdc0f7
2022-04-11 07:10:32 +00:00
shawnlin
47fb15fe8c [DO NOT MERGE] Update to use new res status bar height dimen
Use new status_bar_height_default for
SystemBarUtils.getStatsusBarHeightForRotation().

Bug: 216782082
Test: make
Change-Id: I6376169bfeb470de5dc820b9c3633c64981079f0
2022-04-11 15:00:55 +08:00
Presubmit Automerger Backend
1b496e9b0f [automerge] Fixed status bar glitch for apps that access internal res 2p: 71eaca7ede 2p: acf060e065
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17534146

Bug: 216782082
Change-Id: I63b3f627ae09ecec8d274df7d9abfee12a9ae920
2022-04-11 07:00:35 +00:00
Presubmit Automerger Backend
acf060e065 [automerge] Fixed status bar glitch for apps that access internal res 2p: 71eaca7ede
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17534146

Bug: 216782082
Change-Id: Iaa97c08a3913dc3fe68d9f4c4473197875dadfff
2022-04-11 07:00:27 +00:00
shawnlin
71eaca7ede Fixed status bar glitch for apps that access internal res
In 12L, to support mulit-display devices, we changed the way to get the
status bar height by adding an API to calculate instead of directly
reading the resource of status_bar_height.

However, some apps still using Resources.getIdentify() to get this
internal resources dimen as status bar height to layout their UI which
cause status bar glitch in their app.

For compatibility purpose:
1. Create a new dimen res status_bar_height_default which will be used
   by framework to determine the status bar heigth
2. For status_bar_height
   - Set the value to the size which already consider the cutout size
     for defualt display as before so that it won't breaking existing
     app.
   - It is only used for apps using Resources.getIdentifier()

Bug: 216782082
Test: verified on the apps with such issue.
Change-Id: I306efa187ffa69223c06fd248cfe57d183f96c59
2022-04-11 07:00:17 +00:00
Pinyao Ting
ac20d1e64f [automerge] Implement extra persistence layer for widget provider info 2p: 09ddda9fda 2p: 24a370756c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17355277

Bug: 202356231
Change-Id: I36041c257e9fbee9fcf320244439400b3c35da95
2022-04-09 01:02:00 +00:00
Pinyao Ting
09ddda9fda Implement extra persistence layer for widget provider info
Currently widget provider info are loaded from the manifests of
respective packages, which is not performant since loading the
resources from various apps could take a while.

This CL does the following:
1. Instead of persisting only the providers that are bound to the
   workspace, we persists all providers.
2. In addition to providers, we also persists the provider info to avoid
   loading them from app's resource during a reboot.

Bug: 202356231
Test: atest AppWidgetServiceImplTest
Change-Id: I91fead0b61b0cb84d876dd05781a585805a01400
2022-04-09 01:01:47 +00:00
Bill Yi
bbe0c62d66 Merge "Merge SP2A.220405.004 to aosp-master - DO NOT MERGE" 2022-04-08 18:08:24 +00:00
Joshua Trask
908caf8330 Merge "Create ResolverComparatorModel interface." 2022-04-08 17:31:01 +00:00
Joshua Trask
1e42cad19b Clean up ResolverListAdapter::rebuildList().
Behaviorally, this is *almost* a pure refactoring. It does make
one very minor logic change(*) that could hypothetically fix a
race condition, although no particular bugs have ever been
observed as a result (nor do they seem especially probable), and
it's unknown what the severity would be if they ever were to occur.

Additionally, this change clarifies existing comments and adds
more inline documentation to help understand the rebuildList()
flow. Code cleanup identifies a few areas where the current design
seems a little clumsy, noted with new "TODO" comments in the code.
There's room for more improvement, but this function plays an
important role in preparing Sharesheet targets, so it's good to
bring attention to these thorny requirements.

For justifications of behavioral equivalence and other metacognitive
notes, see comments in the code review.

(*) The one behavior change is called out in code review comments;
    briefly, the line of code that sends a synchronous "results
    pending" event used to follow the line that started the async
    flow that would result in a "results complete" event. This
    could hypothetically race if the async work finished and sent
    "results complete" before we got to the "results pending" line.

Bug: 227486788
Test: `atest ChooserActivityTest` (no behavior changes expected)
Change-Id: I2e74d68579be8b34716ba2202ac2a08361008400
2022-04-08 17:08:56 +00:00
Cliff Wu
b3ee2d7df2 Merge "Update the strings on app unavailable alert dialog" into tm-dev am: bd29171215 am: fe10554c1d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17473284

Change-Id: I666c0f19b8f3172e4d06cfab75bd12e998b12f1d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-08 15:52:30 +00:00
Cliff Wu
bd29171215 Merge "Update the strings on app unavailable alert dialog" into tm-dev 2022-04-08 15:48:52 +00:00
Joshua Trask
8b5d279d90 Create ResolverComparatorModel interface.
Define the API for interacting with comparator model data;
provide implementations for our two current model types; and
(as a first step) re-write our legacy ResolverComparators
to be implemented internally in terms of their new model types.

This is the first CL in a multi-part cleanup of the
AbstractResolverComparator design. This demonstrates that the
role of an AbstractResolverComparator sub-class amounts to
(i.e., Ctrl+F "@Override") some amount of work to prepare model
data; some cleanup; and a set query methods against data that
*really should be* immutable (separated in this CL as the new
ResolverComparatorModel interace). Any remaining responsibilities
of the abstract base class would be better handled (in a subsequent
CL) by an external controller operating on a ResolverComparatorModel
(i.e., preferring composition to inheritance). The async
model-preparation steps should also be separated and cleaned
up (in a later CL).

I believe this to be a pure refactoring with no observable side
effects. While the new design aids in implementing the correct
"immutable snapshot" style, for now I've written the new
ResolverComparatorModel implementations to preserve any possible
quirks in the legacy implementations. Nevertheless, if some
inadvertant behavior change is introduced as a result of this CL,
it's most likely to be a bug-fix where we previously would've mixed
in stale data. A later CL will intentionally pursue those fixes.

Test: atest ResolverActivityTest ChooserActivityTest
Bug: 227486788
Change-Id: If88bf7a5a6394d81c021782d5d9bce7955f1c0e6
2022-04-08 13:27:11 +00:00
Josh Hou
16b3ddf421 Merge "[Panlingual] Screen title is displayed incorrectly" into tm-dev 2022-04-08 11:32:21 +00:00
Josh Hou
af31cada97 Merge changes from topic "screen_title"
* changes:
  [automerge] [Panlingual] Screen title is displayed incorrectly 2p: db37825c6f 2p: c120acc049
  [automerge] [Panlingual] Screen title is displayed incorrectly 2p: db37825c6f
  [Panlingual] Screen title is displayed incorrectly
2022-04-08 11:32:21 +00:00
Eric Biggers
53c5aead70 Merge changes Idc218e5f,I26c3fafc am: 7e3c5382cc am: fb4c1822a8 am: 4d4ababae0 am: 256a0b563f am: 81a31082a1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2052056

Change-Id: I1d699ad1e3be192c95f974bab2a582656b67d8c1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-08 02:21:46 +00:00
Ryan Lin
564f909a60 Merge "Disable volume-key-accessibility shortcut upon exiting setup wizard" into tm-dev am: 6fcd7dd723 am: 571c9e2d1a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17463205

Change-Id: I4b2ea8ce0fa8dd58ff39d70b6a6e7937a80586d1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-08 02:20:27 +00:00
Eric Biggers
256a0b563f Merge changes Idc218e5f,I26c3fafc am: 7e3c5382cc am: fb4c1822a8 am: 4d4ababae0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2052056

Change-Id: I6c0ee77edf164ecf5a285afe4dff7cec85e9d668
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-08 02:11:26 +00:00
Ryan Lin
6fcd7dd723 Merge "Disable volume-key-accessibility shortcut upon exiting setup wizard" into tm-dev 2022-04-08 01:58:45 +00:00
Josh Hou
917b270e99 [automerge] [Panlingual] Screen title is displayed incorrectly 2p: db37825c6f 2p: c120acc049
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17630328

Bug: 227285277
Change-Id: I3a8d8a97cc0810502fc515fb10450fd9020c151f
2022-04-08 01:53:55 +00:00
Presubmit Automerger Backend
c120acc049 [automerge] [Panlingual] Screen title is displayed incorrectly 2p: db37825c6f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17630328

Bug: 227285277
Change-Id: I82c944a9e827d56612bab48c612a043076a98528
2022-04-08 01:53:46 +00:00
Josh Hou
db37825c6f [Panlingual] Screen title is displayed incorrectly
Fix the issue that the screen title name of the app language page is
displayed incorrectly

Bug: 227285277
Test: Verify the issue by testing between the system language and app
language page

Change-Id: I229b9ff2defb68d70248a95886d8600e1bc464ea
2022-04-08 09:52:56 +08:00