Commit Graph

18745 Commits

Author SHA1 Message Date
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
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
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
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
Eric Biggers
4d4ababae0 Merge changes Idc218e5f,I26c3fafc am: 7e3c5382cc am: fb4c1822a8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2052056

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

Change-Id: I92b1cfccfc0bb657d9d5e1958c5e3e2d4ffc3794
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-08 00:36:33 +00:00
Eric Biggers
7e3c5382cc Merge changes Idc218e5f,I26c3fafc
* changes:
  Remove more FDE methods from StorageManager
  Drop FDE status checks from DevicePolicyManagerService
2022-04-08 00:09:30 +00:00
Eric Biggers
bd13f84152 Remove more FDE methods from StorageManager
Now that these methods are no longer called, and none of them are a
public API or have @UnsupportedAppUsage, they can be removed.

inCryptKeeperBounce() actually had one known app user via reflection,
despite the method not having @UnsupportedAppUsage.  However, that user
only made the call if Build.VERSION.SDK_INT < VERSION_CODES.P, so it is
not being used anymore.

Bug: 208476087
Change-Id: Idc218e5f355bb61257b07cf5b5b6df5f4c6ece11
2022-04-07 16:38:36 +00:00
Mark Renouf
d0978dbb67 Fix potential StrictMode crash with miniresolver
configureMiniResolverContent incorrectly calls directly
into safelyStartActivityInternal, which bypasses calls to
StrictMode#disableDeathOnFileUriExposure.

Change-Id: I1c66f659b7d5276caf892b15b942bee5c6f7ead7
2022-04-07 15:00:51 +00:00
Yuri Lin
5abe07c37f Add strings & channel to be used for notification to review permissions.
Also changes the SYSTEM_CHANGES notification channel to be IMPORTANCE_DEFAULT (by deprecating the existing, unused one).

Bug: 225373531
Test: manual by forcing the notification to show

Change-Id: I9743fe08cccbd8b6a9e7b367e32fe3e597b81ec4
Merged-In: I9743fe08cccbd8b6a9e7b367e32fe3e597b81ec4
2022-04-07 14:53:52 +00:00
Chiachang Wang
f25f8b2f53 Merge "Ignore other IKE options if IkeTunnelConnectionParams is set" am: 48160f9b9b am: 3caa3cf399 am: 2194a62f15 am: 4319575deb am: ab94544825
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1978249

Change-Id: I6a60483698d733c2f55ca947b7b8039484ab2502
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-07 12:09:20 +00:00
Chiachang Wang
4319575deb Merge "Ignore other IKE options if IkeTunnelConnectionParams is set" am: 48160f9b9b am: 3caa3cf399 am: 2194a62f15
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1978249

Change-Id: I494bcbae0a8ba83d8950db060c8f0fb3447ed050
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-07 11:37:31 +00:00
Chiachang Wang
2194a62f15 Merge "Ignore other IKE options if IkeTunnelConnectionParams is set" am: 48160f9b9b am: 3caa3cf399
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1978249

Change-Id: I7d3a2631cd70a342e7f224fcd99ec8eb1e2c77d9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-07 11:13:54 +00:00
Chiachang Wang
3caa3cf399 Merge "Ignore other IKE options if IkeTunnelConnectionParams is set" am: 48160f9b9b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1978249

Change-Id: I3595e032cff0b18959150139d9f84cb817784fb2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-07 10:38:03 +00:00
Calvin Pan
1f4bb60335 Merge "Adding empty locale-config case" into tm-dev am: 1e5ed56a17 am: f6299b30db
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17607969

Change-Id: Ifa45eea3a0212371cad66dbe3076e7f25e4566de
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-07 06:43:11 +00:00
Calvin Pan
1e5ed56a17 Merge "Adding empty locale-config case" into tm-dev 2022-04-07 06:18:25 +00:00
TreeHugger Robot
182dd36b27 Merge "Show check icon on current locale preference" into tm-dev 2022-04-07 05:48:08 +00:00
TreeHugger Robot
31d7d856be Merge changes from topic "presubmit-am-5fd34e1f58044cf4a175d5b16b26a765"
* changes:
  [automerge] Show check icon on current locale preference 2p: 286d948ebf 2p: 9f1bfe569a
  [automerge] Show check icon on current locale preference 2p: 286d948ebf
  Show check icon on current locale preference
2022-04-07 05:48:07 +00:00
David Anderson
d786d68765 Merge changes from topic "presubmit-am-2355cba6040b4ac28f66e83feb674a33" into tm-mainline-prod am: 12670f2bca
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17546797

Change-Id: I18ebac21a0381c3e265b69ecfb48593de09973d6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-07 04:36:53 +00:00
David Anderson
0cd984fbad Merge "Optimize EROFS detection code." into tm-dev 2022-04-07 04:17:17 +00:00
David Anderson
12670f2bca Merge changes from topic "presubmit-am-2355cba6040b4ac28f66e83feb674a33" into tm-mainline-prod
* changes:
  [automerge] Optimize EROFS detection code. 2p: 135ac09990
  Optimize EROFS detection code.
2022-04-07 04:17:16 +00:00