Commit Graph

9498 Commits

Author SHA1 Message Date
Treehugger Robot
78a110c211 Merge "Replace Locale#adjustLanguageCode with its own implementation" am: 81546d66ad am: b03a4e6fff
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1531680

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9ca948bdb0c688b53f8808f7c948aa1b5363fbab
2020-12-17 11:10:57 +00:00
Treehugger Robot
ccd634ec0c Merge "Make a copy of libcore.util.ArraysUtils in framework" am: f35963cb77 am: acd5ae1807
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1531681

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0232dc3e89ca638cf5097888946f7f70b3f116d1
2020-12-17 11:10:44 +00:00
Treehugger Robot
81546d66ad Merge "Replace Locale#adjustLanguageCode with its own implementation" 2020-12-17 10:32:38 +00:00
Treehugger Robot
f35963cb77 Merge "Make a copy of libcore.util.ArraysUtils in framework" 2020-12-17 10:10:52 +00:00
Paul Hu
fd71d25ea5 Merge "Update some in-procss APIs to system APIs" am: a7f149d86d am: f0b1601c66
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1502511

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7c2cb79d321d3e5ae686cb9ba682e600df392be0
2020-12-17 03:06:57 +00:00
Victor Chang
33d2988812 Replace Locale#adjustLanguageCode with its own implementation
No known behavior change.

Bug: 154796679
Test: treehugger
Merged-In: I474ad621b84da9f7cc7961def6d6751925577d41
Change-Id: I474ad621b84da9f7cc7961def6d6751925577d41
2020-12-17 00:15:29 +00:00
Victor Chang
37c6b6deeb Make a copy of libcore.util.ArraysUtils in framework
It helps remove it from the @CorePlatformApi

Bug: 154796679
Test: ArrayUtilsTest
Merged-In: I0c8f194a74a16b2cc46f9eea4571d5fb674fbc28
Change-Id: I0c8f194a74a16b2cc46f9eea4571d5fb674fbc28
2020-12-17 00:07:23 +00:00
paulhu
32164bb807 Update some in-procss APIs to system APIs
In-process API only applies to code in frameworks/base/services
so that CS mainline can't use these APIs. Thus, update these
in-process APIs to system APIs to support CS mainline usage.

Bug: 170593746
Test: atest FrameworksNetTests
Change-Id: I4c7c1e71dcb6448aed0107768b4ba8eecd3e11f7
2020-12-16 19:21:14 +08:00
Mårten Kongstad
28b23286d5 idmap2: remove the 'scan' command am: 6532483950 am: 29e7a4394a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519907

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I04d797b558efe44e763b96b01dc4870e7cc4960b
2020-12-14 22:24:51 +00:00
Mårten Kongstad
29e7a4394a idmap2: remove the 'scan' command am: 6532483950
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519907

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If62d07750556e734686a0c1df2f2e533b83c1b1c
2020-12-14 21:20:53 +00:00
Ryan Mitchell
314863c132 Merge changes from topic "inc-hard-am"
* changes:
  Revert^2 "Cache resolved theme values"
  Set resource id correctly when resolve fails
  Revert^2 "libandroidfw hardening for IncFs"
  idmap2: remove call to obsolete 'idmap2 verify' from valgrind.sh
  idmap2: remove the 'scan' command
2020-12-14 20:42:03 +00:00
Wale Ogunwale
926aa8da2c Merge "Add more OWNERS coverages" am: 32ff0144bf am: 60f676c7d6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519794

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I32e5f8566ba916c892898f3f521a5a4309646142
2020-12-11 16:58:45 +00:00
Charles Chen
09f4e85ac2 Add more OWNERS coverages
Test: manual
Bug: 174932174
Change-Id: Ia798bdbce8516a3d675c55028ab637ad7f0695cf
2020-12-11 19:16:38 +08:00
Jeff Sharkey
e6d38e61cc Merge "configure owners for ShortcutInfo" am: 694df14654 am: 2948fb99c5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1520446

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I27c7ab6c7a1325b43857e1456e631c044ac0d3b5
2020-12-10 22:39:20 +00:00
Jeff Sharkey
694df14654 Merge "configure owners for ShortcutInfo" 2020-12-10 21:36:20 +00:00
Pinyao Ting
5df24bca42 configure owners for ShortcutInfo
Bug: 151359749
Test: manual
Change-Id: Ic3f338083402f2c189f36b8ec9db502e11e50a55
2020-12-10 13:13:26 -08:00
Chris Wailes
2a6f9b05a3 Adds an "install scenario" field to the appropriate datastructures am: d42204a865 am: e2c2f7ec15
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1465553

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ieb120d7fd34ab55c2d01978f01a6ab474d6a5664
2020-12-09 02:23:45 +00:00
Chris Wailes
e2c2f7ec15 Adds an "install scenario" field to the appropriate datastructures am: d42204a865
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1465553

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ifeb0c921ec079202dba5b0b50eb147b09ea3042e
2020-12-09 01:22:52 +00:00
Christian Wailes
21b065b610 Merge changes from topic "install-hints"
* changes:
  Modify dexopt invocation based on install scenario
  Adds an "install scenario" field to the appropriate datastructures
2020-12-09 00:00:26 +00:00
Mårten Kongstad
6532483950 idmap2: remove the 'scan' command
The 'scan' command has been replaced by 'create-multiple'. Remove the
unused code.

Also remove unused functions and #includes from FileUtils, and the
obsolete JNI plumbing.

Test: atest idmap2_tests OverlayDeviceTests OverlayHostTests
Change-Id: Iae073c13ce64b5db48f22f7e723bc8c0c5fcd2c9
Merged-In: Iae073c13ce64b5db48f22f7e723bc8c0c5fcd2c9
2020-12-08 16:54:51 +00:00
Jeff Sharkey
24d251403b Improve OWNERS coverage across frameworks/base/. am: fab0ab3c9c am: c7c4a74a78
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519383

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5120a3701af3564f363900b20bca75f3ad2a854c
2020-12-08 16:43:17 +00:00
Jeff Sharkey
c7c4a74a78 Improve OWNERS coverage across frameworks/base/. am: fab0ab3c9c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519383

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0211462ecbcd9ad66f66af87e31cf12e1582fc65
2020-12-08 16:01:16 +00:00
Jeff Sharkey
fab0ab3c9c Improve OWNERS coverage across frameworks/base/.
As general background, OWNERS files expedite code reviews by helping
code authors quickly find relevant reviewers, and they also ensure
that stakeholders are involved in code changes in their areas.

Some teams under frameworks/base/ have been using OWNERS files
successfully for many years, and we're ready to expand them to cover
more areas.  Here's the historical coverage statistics for the last
two years of changes before these new OWNERS changes land:

-- 56% of changes are fully covered by OWNERS
-- 17% of changes are partially covered by OWNERS
-- 25% of changes have no OWNERS coverage

Working closely with team leads, we've now identified clear OWNERS on
a per-package basis, and we're using "include" directives whenever
possible to to simplify future maintenance.  With this extensive
effort, we've now improved our coverage as follows:

-- 98% of changes are fully covered by OWNERS
-- 1% of changes are partially covered by OWNERS
-- 1% of changes have no OWNERS coverage

This specific change is automatically generated by a script from
detailed ownership information confirmed by team leads.

Bug: 174932174
Test: manual
Exempt-From-Owner-Approval: refactoring with team leads buy-in
Merged-In: I9789c97c1de8e5d962b48c29c57d82fe83729eba
Change-Id: I9789c97c1de8e5d962b48c29c57d82fe83729eba
2020-12-08 08:36:27 -07:00
Chris Wailes
d42204a865 Adds an "install scenario" field to the appropriate datastructures
This CL adds an "install scenario" field to several data structures used
by the Package Manager.  This value will be used by a following CL to
adjust the invocation of dexopt based on the indicated use case.

Bug: 173137187
Test: build
Merged-In: I1d0df8edf85a598905a5e7509f6c811df5c20e2e
Change-Id: I1d0df8edf85a598905a5e7509f6c811df5c20e2e
2020-12-07 15:05:54 -08:00
Brian Stack
c57e2123d4 Expose UwbManager through Context.getSystemService am: 3163bf0d35 am: 2557747c4d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1504101

Change-Id: I5213f04b2bf1f0db39a872ab7dd7f0d45fd60103
2020-12-04 18:00:40 +00:00
Brian Stack
2557747c4d Expose UwbManager through Context.getSystemService am: 3163bf0d35
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1504101

Change-Id: I14aa423224f37447024ddb4cc67cabe06d60a30a
2020-12-04 17:39:49 +00:00
TreeHugger Robot
73d6176569 Merge "Update CPA startActivity javadoc to refer to passing the result back" into rvc-qpr-dev am: e9fd7678bf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13144034

Change-Id: I8c8dc5cb9910c977169d220d5ece84a2403ccade
2020-12-04 14:05:18 +00:00
TreeHugger Robot
e9fd7678bf Merge "Update CPA startActivity javadoc to refer to passing the result back" into rvc-qpr-dev 2020-12-04 13:39:26 +00:00
Brian Stack
3163bf0d35 Expose UwbManager through Context.getSystemService
Bug: 170323306
Test: atest UwbManagerTests
Change-Id: I04c1263a191fcfeee5824be5d6d1944354819d02
Merged-In: I04c1263a191fcfeee5824be5d6d1944354819d02
2020-12-02 13:58:28 -08:00
Kevin Hufnagle
786e3d0906 Merge "docs: Mention app query filters on Android 11" into rvc-dev am: ace19f5537 am: 6030f5b0cb am: fe2da4e99b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13113598

Change-Id: I6455816bb0bdd5fc34b00a3bc8dd9974c1d3a718
2020-12-02 20:10:16 +00:00
Kevin Hufnagle
fe2da4e99b Merge "docs: Mention app query filters on Android 11" into rvc-dev am: ace19f5537 am: 6030f5b0cb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13113598

Change-Id: I14c6ed59a8dbf90170424abe2738a568c7fe672a
2020-12-02 19:00:53 +00:00
Kevin Hufnagle
6030f5b0cb Merge "docs: Mention app query filters on Android 11" into rvc-dev am: ace19f5537
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13113598

Change-Id: I810cb264829917cc07af833dc4a1486ec4943574
2020-12-02 18:31:08 +00:00
Alex Kershaw
fabbba0c8a Update CPA startActivity javadoc to refer to passing the result back
Update both versions of CrossProfileApps#startActivity to refer to
passing the result back to the passed in calling activity.

Bug: 174506563
Fixes: 171957840
Test: atest com.android.cts.devicepolicy.CrossProfileAppsHostSideTest#testStartActivityIntent_crossProfile_returnsResult
Change-Id: I14bf779d9307232b31300b828a1606c7411c7bb3
2020-12-02 10:51:44 +00:00
Xin Li
d31ee38811 Merge rvc-qpr-dev-plus-aosp-without-vendor@6881855
Bug: 172690556
Merged-In: I78222391b83a4add8e964340ec08bb8a1306e1c6
Change-Id: I28bbf40820674675ccf765c912aa8140d3f74ab2
2020-12-02 00:38:58 -08:00
Kevin Hufnagle
09478539ae docs: Mention app query filters on Android 11
For apps that target Android 11 and higher, the methods in this class
each return a filtered list by default, because of the new package
visibility behavior.

Test: m ds-docs-java

Bug: 173104139

Exempt-From-Owner-Approval: Docs-only change
Change-Id: Idd239a6a9b4e1764b8285f73a341adc024281be2
2020-12-01 19:02:29 -05:00
Treehugger Robot
4ca688adf8 Merge "Migrate THROW_SECURITY_EXCEPTIONS" am: 3724bc6c47 am: e0b1e5c604 am: 39a0624f7f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1492845

Change-Id: I2b4e2a38a596bfeb76e9a5af247b4bbb509db9ab
2020-11-18 09:57:57 +00:00
Treehugger Robot
3724bc6c47 Merge "Migrate THROW_SECURITY_EXCEPTIONS" 2020-11-18 09:19:11 +00:00
Aurimas Liutikas
ab35d18a7c Merge "Suppress all hidden abstract methods in constructable classes." am: bdd6c53abb am: c08c4d9b02 am: 65ed2cb534
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1495396

Change-Id: Icb989e4ac7190afbdb3b09552fa0055c2a742ceb
2020-11-13 03:49:22 +00:00
Aurimas Liutikas
bdd6c53abb Merge "Suppress all hidden abstract methods in constructable classes." 2020-11-13 02:56:37 +00:00
Aurimas Liutikas
d23189b998 Suppress all hidden abstract methods in constructable classes.
Having a hidden abstract method for a class that can be extended
means that public implementors cannot implement these hidden methods
posing a risk that custom implementations will not have required
abstract methods resulting in an exception.

Bug: 151134792
Test: make update-api
Change-Id: I758d12465fabc671be19bedeeceb16885de23c87
Merged-In: I758d12465fabc671be19bedeeceb16885de23c87
Exempt-From-Owner-Approval: large scale suppression of existing issues,
    no-op in terms of behavior
2020-11-13 02:56:20 +00:00
Andrei-Valentin Onea
056959a186 Merge "Migrate FILTER_APPLICATION_QUERY" am: 714960f745 am: 9aa009684b am: fe2b1a414c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1492847

Change-Id: I1d179c79948d987f4b0d51f642ddf81b99f28e2b
2020-11-12 15:05:02 +00:00
Andrei-Valentin Onea
714960f745 Merge "Migrate FILTER_APPLICATION_QUERY" 2020-11-12 13:09:53 +00:00
TreeHugger Robot
29208e8f64 Merge "Do not allow uninstalling while an app is pinned" into rvc-qpr-dev am: bca739053d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12940775

Change-Id: I0f93b91e6456c0aa72d81e0ac2e0d9df86860dd5
2020-11-11 21:42:19 +00:00
Paul Hu
483c7f78d5 Merge "Expose some ApplicationInfo#is* methods as in-process API" am: 5753a34e67 am: d573e85816 am: 2c2b8ff2c3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1490916

Change-Id: I54813df3a029add049ee622dcdcb2caeb32c1747
2020-11-11 06:14:55 +00:00
Paul Hu
5753a34e67 Merge "Expose some ApplicationInfo#is* methods as in-process API" 2020-11-11 05:23:56 +00:00
Andrei Onea
51f631383a Migrate FILTER_APPLICATION_QUERY
Use @EnabledSince instead of @EnabledAfter for FILTER_APPLICATION_QUERY.

Test: m
Bug: 172238506
Change-Id: Iedb82b9ec3ff503e6c7fa912470c21aa31032688
2020-11-09 21:34:19 +00:00
Andrei Onea
1af46efa1c Migrate THROW_SECURITY_EXCEPTIONS
Use @EnabledSince instead of @EnabledAfter for
THROW_SECURITY_EXCEPTIONS.

Test: m
Bug: 172238506
Change-Id: Idfc08b82493dfece24e838b74e2a4690459a146e
2020-11-09 21:23:20 +00:00
paulhu
cc8b163dba Expose some ApplicationInfo#is* methods as in-process API
Connectivity service is going to become a mainline module which
will not able to access hidden APIs. But PermissionMonitor needs
ApplicationInfo#is(Vendor|Oem|Product) APIs to know the package
partition. Thus, expose them as in-process API to support the
usage.

Bug: 170593746
Test: atest FrameworksNetTests
Change-Id: Ie4ffb2b47539786dd51b885ca93c8813d039c4da
2020-11-09 06:17:28 +00:00
Mathew Inwood
5d123b6775 Add maxTargetSdk restriction to unused APIs.
These are APIs that have @UnsupportedAppUsage but for which we don't
have any evidence of them currently being used, so should be safe to
remove from the unsupported list.

Bug: 170729553
Test: Treehugger
Merged-In: I626caf7c1fe46c5ab1f39c2895b42a34319f771a
Change-Id: I54e5ecd11e76ca1de3c5893e3a98b0108e735413
2020-11-04 09:45:53 +00:00
Treehugger Robot
bde98cf8d0 Merge "Deprecate PackageParser main class and add OWNERS" am: d40928888b am: abec6cf449 am: 43f102ed62
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1456036

Change-Id: I3812d550d8792d4e412c5b0e6fab56c69d4cb6d0
2020-11-03 01:58:36 +00:00