Commit Graph

11540 Commits

Author SHA1 Message Date
Jeremy Meyer
85c6cf1646 Merge "Don't update cached ApplicationInfo with old information" 2021-12-10 18:41:07 +00:00
Songchun Fan
5e303008b4 Merge "[pm] new APIs for ApplictaionInfo/PackageInfo/ComponentInfo/ResolveInfo flags" 2021-12-10 16:08:09 +00:00
Leon Scroggins
f96aa9e82b Merge changes from topics "GL_screen_decor", "VK_screen_decor"
* changes:
  Plumb support for rendering A8 in Vulkan
  Plumb through A8 for GL/EGL
  Add COLOR_MODE_A8/ColorMode::A8
  Treat AHARDWAREBUFFER_FORMAT_R8_UNORM as kAlpha_8_SkAlphaType
2021-12-10 13:49:39 +00:00
Artur Satayev
8029969f57 Merge "Add apex-system-service tag to AndroidManifest." 2021-12-10 13:08:42 +00:00
Jeremy Meyer
99a2847acb Don't update cached ApplicationInfo with old information
This adds a created timestamp to ApplicationInfo so that when an
instance is passed in to getPackageInfo() we can determine whether or
not we should update the cached version

Bug: 188059515
Test: Installed locally to verify behavior and appropriate log messages
Change-Id: Ie87781a9272ee89c5333f56d28da8c1d88feb78b
2021-12-10 00:16:33 +00:00
Leon Scroggins III
cbdbb66d8f Add COLOR_MODE_A8/ColorMode::A8
Currently unused. This will allow rending into A8 with HWUI

Bug: 193170859
Test: TODO
Change-Id: Ic1e1cb94dfa3dc08cbb174f0a38345d724570372
2021-12-09 12:12:26 -05:00
Xiaowen Lei
a676d9b3df Add callback registration mechanism for listening to communal state changes.
Design: go/communal-manager-api.

Note: this CL also removed "_MANAGER" from the communal service
constant, and "_manager" from the communal service name. When these
became unhidden, ApiLint.kt suggested the changes.
  - http://cs/android/tools/metalava/src/main/java/com/android/tools/metalava/ApiLint.kt;l=2369-2386;rcl=0ef26a465a89c45fcfd24d648883208cd0161fd2

Ignore-AOSP-First: tied to launch of new upcoming hardware.

Test: atest CtsAppTestCases:CommunalManagerTest
Test: atest FrameworksMockingServicesTests:CommunalManagerServiceTest

Bug: 206054365
Change-Id: I6d225d6ddb482d9cffb16d1f9a25a98abd0cc382
2021-12-08 23:45:42 +00:00
Naomi Musgrave
07cad8890e Merge "Introduce WindowManagerState field for sandboxing" into sc-v2-dev am: f5284f89be am: f6340cbbf3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16340536

Change-Id: If930f6fd7eca64bd02109f7d57077ea5cd418b75
2021-12-08 23:18:37 +00:00
Naomi Musgrave
f6340cbbf3 Merge "Introduce WindowManagerState field for sandboxing" into sc-v2-dev am: f5284f89be
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16340536

Change-Id: I4b2fd3e47e9cbb2e873fa0db37eed74f6badb734
2021-12-08 23:00:26 +00:00
TreeHugger Robot
4109534bb3 Merge "Add feature android.hardware.felica to PM" 2021-12-08 21:58:18 +00:00
Naomi Musgrave
f5284f89be Merge "Introduce WindowManagerState field for sandboxing" into sc-v2-dev 2021-12-08 21:52:51 +00:00
Yandry Perez Clemente
9f36073504 Merge "Adds trace messages when goAsync and finish are called." 2021-12-08 19:12:06 +00:00
Naomi Musgrave
5acb031f31 Introduce WindowManagerState field for sandboxing
New field indicates if ActivityRecord#providesMaxBounds has
calculated that sandboxing of max bounds to match app bounds
should be applied.

Test: manual
Bug: 193514437
Change-Id: I91587ce1e1ded7435038e2d1a7d038be57ff0f2f
2021-12-08 17:36:03 +00:00
Gavin Corkery
ad5d4baecb Add apex-system-service tag to AndroidManifest.
This change introduces a new <apex-system-service> tag to the manifest.

A manifest may have multiple <apex-system-service> tags, with each tag
denoting one system service that lives in an apex. If the service is
not in SYSTEMSERVERCLASSPATH, the android:path attribute may be used to
indicate where the jar is located on the filesystem. The minSdkVersion
and maxSdkVersion attributes may be used to indicate which SDKs the
service should start on.

Test: atest PackageParserTest
Bug: 192880996
Change-Id: I28e595b397ed8db6c412f490f12c73537972efab
2021-12-08 16:00:26 +00:00
Tom Natan
fd716d1d9a Merge "Remove EnabledSince from OVERRIDE_MIN_ASPECT_RATIO_PORTRAIT_ONLY" into sc-v2-dev am: 56b6a1936d am: 1cb7dbffd1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16405083

Change-Id: If5f945462c89d0348d9031265e9bbccac83aced5
2021-12-08 10:55:25 +00:00
Tom Natan
1cb7dbffd1 Merge "Remove EnabledSince from OVERRIDE_MIN_ASPECT_RATIO_PORTRAIT_ONLY" into sc-v2-dev am: 56b6a1936d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16405083

Change-Id: I9672c89a744537b07ffe1d28b92bbd1d73fef6d5
2021-12-08 10:39:47 +00:00
Thiébaud Weksteen
b0caff1e6a Merge "Add @JavaOnlyStableParcelable to AttributionSource" am: 5f5ff75870 am: 7228115341 am: e371f9ace3 am: 6e8a545bff
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1908651

Change-Id: Ie60f20c4672c073d51a8843bddd2e97b0d3b635e
2021-12-08 05:10:56 +00:00
Thiébaud Weksteen
6e8a545bff Merge "Add @JavaOnlyStableParcelable to AttributionSource" am: 5f5ff75870 am: 7228115341 am: e371f9ace3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1908651

Change-Id: I70718406dd94c13d39e27984c5967e1f2647bc55
2021-12-08 04:55:07 +00:00
Thiébaud Weksteen
e371f9ace3 Merge "Add @JavaOnlyStableParcelable to AttributionSource" am: 5f5ff75870 am: 7228115341
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1908651

Change-Id: I24b6e309f896dfd9937f87739605c33d92c27cc6
2021-12-08 04:32:27 +00:00
Thiébaud Weksteen
7228115341 Merge "Add @JavaOnlyStableParcelable to AttributionSource" am: 5f5ff75870
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1908651

Change-Id: Ie151644aac4642ee16ee77a767bcc1c2f0e8306e
2021-12-08 04:16:08 +00:00
Thiébaud Weksteen
5f5ff75870 Merge "Add @JavaOnlyStableParcelable to AttributionSource" 2021-12-08 04:02:07 +00:00
Xiaoyu Jin
72beecddc1 Merge "Add conditional=true for @RequiresPermission" 2021-12-08 00:47:34 +00:00
Sally Yuen
beb5cef12f Merge "Bold StyleSpan further for auto-bold" 2021-12-07 22:40:10 +00:00
Xinyi Zhou
ba4c0a6476 Merge "Add Neary feature to PackageManager" 2021-12-07 19:07:47 +00:00
TreeHugger Robot
d00bbd1e6d Merge "Add equals() for Resources.Theme" 2021-12-07 17:48:05 +00:00
Xiaoyu Jin
a645deab92 Add conditional=true for @RequiresPermission
Bug: 206743591
Test: CtsContentTestCases
Change-Id: Iec1a4e773e6f625da9aac03cd7b71d47a251b84f
2021-12-07 08:38:03 +00:00
Yurii Zubrytskyi
35f44aab7c Add equals() for Resources.Theme
Bug: 155881035
Test: added a test case in cts
Change-Id: Icd0b3f4112f95ab2fc6ddfbd1b6ed7b2e85f1a3b
2021-12-06 20:28:05 -08:00
sallyyuen
0a674a8a44 Bold StyleSpan further for auto-bold
StyleSpan with Typeface.BOLD will only bold if the text doesn't already
have a BOLD style. But auto-bolded text needs to be further bolded.
If the Typeface style is BOLD, bold more for auto-bold.
(The fake bold works for Typefaces with weight < 700)

Test: manual - settings page, example StyleSpans,
atest StyleSpanTest TextViewTests
Bug: 175177807

Change-Id: Iec7db7eadd18ed6a2efc6ee39b49c1d6cb15d870
2021-12-06 15:46:27 -08:00
Nate Myren
0f021a16fe Merge "Open SensorPrivacy and WRITE_SECURE_SETTINGS to PC" 2021-12-06 22:43:19 +00:00
Shannon Chen
6a623af2fb Merge "Add the GameService skeleton and corresponding unit tests." 2021-12-06 16:45:42 +00:00
TreeHugger Robot
31bc274118 Merge "Add executor for the callback." 2021-12-06 16:45:11 +00:00
tomnatan
303e76b80e Remove EnabledSince from OVERRIDE_MIN_ASPECT_RATIO_PORTRAIT_ONLY
We want this change to be enabled regardless of the app's target sdk
version.

Fix: 202842551
Test: N/A
Change-Id: Ia08afdeff276d132d6a5c619427017de3e1fba22
2021-12-06 16:42:36 +00:00
shannonchen
13bfe79683 Add the GameService skeleton and corresponding unit tests.
This change defines a basic GameService SPI and hooks into the GameManagerService in order to drive the start/stop APIs.

Test: atest FramworksMockingServicesTests:GameServiceManagerTests and
manaul e2e testing
Bug: 204504879
Bug: 202414447
Bug: 202417255
CTS-Coverage-Bug: 206128693
Change-Id: Ibda56cb0c023a307f83eae4091c5f63b02be339f
2021-12-06 15:22:34 +00:00
Xiaoyu Jin
1c74441ca8 Merge "Change registerContentObserverForAllUsers to registerContentObserverAsUser" 2021-12-06 13:51:46 +00:00
Rhed Jao
1fe52c4ee9 Merge "Fix the typos on the java doc" am: 63fed23659 am: ae0939cf4a am: 828571b9c0 am: 1d688e7fcd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1909901

Change-Id: Ibd363225fbbe0d858aad27623d5522da4dec5291
2021-12-06 08:35:10 +00:00
Rhed Jao
1d688e7fcd Merge "Fix the typos on the java doc" am: 63fed23659 am: ae0939cf4a am: 828571b9c0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1909901

Change-Id: I5f176959b92da59ca489e75504b7ecfa49ec8604
2021-12-06 08:15:14 +00:00
Rhed Jao
828571b9c0 Merge "Fix the typos on the java doc" am: 63fed23659 am: ae0939cf4a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1909901

Change-Id: I7329e0d486e11d06f7df9325b3d53824bd5514e2
2021-12-06 08:04:59 +00:00
Rhed Jao
ae0939cf4a Merge "Fix the typos on the java doc" am: 63fed23659
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1909901

Change-Id: I9773daadb710c87c1b2df5d5931d563e01b83d47
2021-12-06 07:41:17 +00:00
Alex Buynytskyy
d8505029e8 Add executor for the callback.
This addresses the API review feedback.

Bug: 208423416
Fixes: 208423416
Test: atest ChecksumsTest
Change-Id: Ib10997ce29cacc6baf1158ce422f15201b36a8e8
2021-12-06 05:56:46 +00:00
TreeHugger Robot
b3b4df95f6 Merge "NetworkScoreManager deprecation: documentation fixes per API council request" 2021-12-04 03:32:35 +00:00
Rhed Jao
43509f3202 Fix the typos on the java doc
Correct "STMP" to "SMTP" in the java doc of the usesCleartextTraffic
attribute.

Bug: 181732244
Test: build
Change-Id: I7ffc81f3e201248f3b58dc5ee243a7cdd969fe23
2021-12-03 15:08:50 +08:00
Songchun Fan
cf3f673b48 [pm] new APIs for ApplictaionInfo/PackageInfo/ComponentInfo/ResolveInfo flags
We are running out of int flags for public API methods such as
PackageManager.getPackageInfo(String packageName, int flags). As a
solution, we will change the flags param to Flags objects. At the
same time, we deprecate the old methods that directly use int flags.

The new flags classes are: ApplicationInfoFlags, PackageInfoFlags,
ComponentInfoFlags and ResolveInfoFlags. Because there are already
annotations of the same names, we renamed the annotations to *FlagsBits.

Old API usage example:
getPackageInfo(pkgName, MATCH_UNINSTALLED_PACKAGES)

New API usage example:
getPackageInfo(pkgName, PackageInfoFlags.of(MATCH_UNINSTALLED_PACKAGES))

See b/204433742 for discussions.

CTS-Coverage-Bug: 206147270
BUG: 204432643
BUG: 204433659
Test: manual
Change-Id: I8ab2adad6907670c5879c043d170c950afefe46c
2021-12-02 15:35:51 -08:00
Alex Buynytskyy
a16137055f Revert "Revert "SDK libraries.""
This reverts commit a22b7e05d4.

Reason for revert: This is a roll forwards with the fix applied.

Fixes: 208710019

Change-Id: Id4e9029ebe5864ddcc5583ce525e8e70da79f82c
2021-12-02 19:39:09 +00:00
Rick Yiu
3a20ce8e21 Merge "Revert "SDK libraries."" 2021-12-02 09:07:36 +00:00
Yandry Perez Clemente
9b47623790 Adds trace messages when goAsync and finish are called.
These will be used to troubleshoot ANRs. In this case calling goAsync
and forgetting to call finish on the PendingResult could be the cause.
We have existing instrumentation to include these in Perfetto traces
and have used the "am" tag to avoid having to allowlist every single
app of interest in the Perfetto tracing configuration (the "am" tag is
allowlisted).

Test: Manual: captured a Perfetto trace and verified the counters are
present.
Bug: b/207823767

Change-Id: I96aadf4d6d891f3c7d140b9792e7f893243d9943
2021-12-02 08:14:19 +00:00
Rick Yiu
a22b7e05d4 Revert "SDK libraries."
This reverts commit 8d0ec8faa8.

Reason for revert: DroidMonitor: Potential culprit for Bug 208710019 - verifying through Forrest before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted

Change-Id: Ic1ff41e7648afc0fa50081de9b7d538a49c6468a
2021-12-02 04:23:16 +00:00
Thiébaud Weksteen
ae4bf7dda6 Add @JavaOnlyStableParcelable to AttributionSource
Annotate AttributionSource with @JavaOnlyStableParcelable as it is
already available as part of the SDK.

Bug: 197828948
Test: atest --host aidl_unittests
Change-Id: I3e9343030947404239c9a963a529d246c57a04a1
2021-12-02 13:14:21 +11:00
TreeHugger Robot
af9aa6d606 Merge "SDK libraries." 2021-12-01 16:12:42 +00:00
Xiaoyu Jin
6610524e4c Change registerContentObserverForAllUsers to registerContentObserverAsUser
Make the change based on API council's suggestion.

Bug: 206743591
Test: Manual testing to verify the
observer can get notifications for
all the users.

Change-Id: I725307f65c288c4fc8bc3acf923cd7092ccc2f97
2021-12-01 15:57:49 +00:00
Etan Cohen
2ef9ee0af2 NetworkScoreManager deprecation: documentation fixes per API council request
Bug: 208506915
Test: well, docs aren't generated for SystemAPI
Change-Id: I06ad99e7c0212024067b8f0ef95f3df6abe407b8
2021-12-01 07:27:07 +00:00