Commit Graph

10738 Commits

Author SHA1 Message Date
Jimmy Shiu
afe79043a8 ADPF: PerformanceHintManager API implementation am: 4c6e5036b7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13699259

Change-Id: I4a1a0b654d38beba814ca968276675358c8d9331
2021-04-11 00:49:06 +00:00
Jimmy Shiu
4c6e5036b7 ADPF: PerformanceHintManager API implementation
Test: Manual test, run bouncy ball
Test: atest FrameworksCoreTests:android.os.PerformanceHintManagerTest
Bug: 158791282
Change-Id: Ia0bf2b06675b8cf57cdf1668ee90e98026416439
Signed-off-by: Wei Wang <wvw@google.com>
2021-04-10 10:21:17 -07:00
Gavin Corkery
9a44643b7c Merge "Move REBOOT_READY broadcast into android.scheduling" into sc-dev am: 072ef5624b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14033669

Change-Id: Ib2998532abea61b2c290d60cb558fb9397b67ea9
2021-04-09 17:49:49 +00:00
Gavin Corkery
072ef5624b Merge "Move REBOOT_READY broadcast into android.scheduling" into sc-dev 2021-04-09 17:17:38 +00:00
Winson Chiu
0736b13392 Merge changes I2cf2e739,I9e4bd242,Ic8b93a8c,Ibccde458,I04942e14, ... into sc-dev am: d08ba27a5f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14058687

Change-Id: I52c9daba100a76025d96485ba803be653f47c25c
2021-04-09 17:13:03 +00:00
Winson Chiu
d08ba27a5f Merge changes I2cf2e739,I9e4bd242,Ic8b93a8c,Ibccde458,I04942e14, ... into sc-dev
* changes:
  Fix domain verify restore and add signature check
  Support serializing package signatures for domain verification state
  Add domain verification CTS to TEST_MAPPING
  Fix DomainVerificationService deadlock
  Check installed and enabled state for package domain approval
  Revoke domain user selection when approved through shell
2021-04-09 17:05:50 +00:00
Svetoslav Ganov
d096e0e112 Merge "Add AR intent to ingest exempt attribution tags" into sc-dev am: ae4d48ebec
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14128312

Change-Id: Ie914b0c20790149ed3abbb6a4ecf25cb123d6b09
2021-04-09 15:40:54 +00:00
Svetoslav Ganov
ae4d48ebec Merge "Add AR intent to ingest exempt attribution tags" into sc-dev 2021-04-09 15:31:00 +00:00
Svet Ganov
0d6d9f972e Add AR intent to ingest exempt attribution tags
bug: 179069158

Test: atest CtsActivityRecognitionTestCases

Change-Id: I3fa454351a586cc5d408217a2c1382048e6031e4
2021-04-09 15:29:18 +00:00
Bernardo Rufino
9d7baa0b87 Merge "Allow accessibility services to send Intent.ACSD" into sc-dev am: 9e9669ea8d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14104348

Change-Id: I205a5219743b5bd4ec64aa4b4cef64e7e7543d9e
2021-04-09 15:20:42 +00:00
Bernardo Rufino
9e9669ea8d Merge "Allow accessibility services to send Intent.ACSD" into sc-dev 2021-04-09 15:13:17 +00:00
Charles Chen
8926087107 Merge "Allow config context to inflate views" into sc-dev am: c22aff4e4d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13482649

Change-Id: Idc103720792c36b1a1e3331a5d2bea72e87e8efa
2021-04-09 07:17:18 +00:00
Charles Chen
c22aff4e4d Merge "Allow config context to inflate views" into sc-dev 2021-04-09 06:56:16 +00:00
TreeHugger Robot
bdda2fc1de Merge "Deprecate unuses installer auto revoke whitelist api" into sc-dev am: 44763d1b5b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14116345

Change-Id: Iae26a28956d8e54de3c9a789bfefcad943350ad3
2021-04-08 21:30:24 +00:00
TreeHugger Robot
44763d1b5b Merge "Deprecate unuses installer auto revoke whitelist api" into sc-dev 2021-04-08 21:14:38 +00:00
Sahana Rao
12ce47e97b Merge "Rename requestOptimizedExternalStorageAccess to more precise name" into sc-dev am: 1e98cff664
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13984187

Change-Id: Ib91e871f2d9be4a9f2abe97868323ebc4ae59c23
2021-04-08 15:49:16 +00:00
Sahana Rao
1e98cff664 Merge "Rename requestOptimizedExternalStorageAccess to more precise name" into sc-dev 2021-04-08 15:42:12 +00:00
Oli Lan
fe0329c7ca Merge "Use a DeviceConfig property for the default value of the clipboard notification setting." into sc-dev am: 4d736b92f3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13877107

Change-Id: I310e00b3fc90c9897b26444f1d7a514bed54a4ab
2021-04-08 12:05:18 +00:00
Oli Lan
4d736b92f3 Merge "Use a DeviceConfig property for the default value of the clipboard notification setting." into sc-dev 2021-04-08 11:31:12 +00:00
Jackal Guo
18119e69cd Merge "Refactor PackageParser (6/n)" 2021-04-08 09:28:21 +00:00
Paul Hu
a66403324e Merge "Move ACTION_CLEAR_DNS_CACHE to ConnectivityManager" am: ed4117ff40 am: d40e17099f am: 52b8921820 am: 3347a6c3db
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1667080

Change-Id: Ie6565e36d8fc3ea3b7df4a2f5301198849e2f836
2021-04-08 08:03:49 +00:00
Paul Hu
3347a6c3db Merge "Move ACTION_CLEAR_DNS_CACHE to ConnectivityManager" am: ed4117ff40 am: d40e17099f am: 52b8921820
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1667080

Change-Id: I5fd350d67065211b84dbea769d258daff9780276
2021-04-08 07:48:14 +00:00
TreeHugger Robot
32a597ea43 Merge "Updating Java doc for FLAG_ACTIVITY_RESET_TASK_IF_NEEDED" into sc-dev am: 46d03f1574
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13773758

Change-Id: Ib5b2c4f725038d4f29cccfb622b06706c4e7caa2
2021-04-08 05:52:25 +00:00
TreeHugger Robot
46d03f1574 Merge "Updating Java doc for FLAG_ACTIVITY_RESET_TASK_IF_NEEDED" into sc-dev 2021-04-08 05:10:35 +00:00
Eugene Susla
ef3dc74a53 Deprecate unuses installer auto revoke whitelist api
Bug: 181344542
Test: presubmit

Change-Id: Ie5032e09cfe426a7611534afc4c7b4fac531018b
2021-04-07 12:45:09 -07:00
Svetoslav Ganov
4e32f8314c Merge "Add fallback for datasource without UPDATE_APP_OP_STATS" into sc-dev am: 640b18bd38
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14102619

Change-Id: Iff0704c39cea8e2900d713cfaff0ec8d225d31cc
2021-04-07 16:57:22 +00:00
Svetoslav Ganov
640b18bd38 Merge "Add fallback for datasource without UPDATE_APP_OP_STATS" into sc-dev 2021-04-07 16:38:25 +00:00
TreeHugger Robot
cd8013621f Merge "Remove annotations from generated class until tests updated" into sc-dev am: 402eb6529d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14108878

Change-Id: Ib17c8606eb724f85958fc185af8674f8f2be8048
2021-04-07 16:36:33 +00:00
TreeHugger Robot
402eb6529d Merge "Remove annotations from generated class until tests updated" into sc-dev 2021-04-07 16:20:32 +00:00
Bernardo Rufino
19a613c3da Allow accessibility services to send Intent.ACSD
For targetSdk < S. For S, they can use the new
GLOBAL_ACTION_DISMISS_NOTIFICATION_SHADE action to dismiss the
notification shade.

Bug: 159334261
Test: Send Intent.ACSD from an a11y service and verify shade is
      collapsed when targetSdk < S, and exception thrown when targetSdk
      S+.
Change-Id: I0e4be3faef8efa53a0b8a08263e842e0c4b1553e
2021-04-07 15:26:05 +01:00
Charles Chen
d12be75275 Allow config context to inflate views
Besides UI contexts, the context created via
Context#createConfigurationContext with a proper configuration
should be allowed to inflate views or obtain ViewConfiguration.
An example is that a wear device inflate views into bitmap and pass
the bitmap to the Wear OS Companion app on the phone.

Bug: 177847640
Test: atest StrictModeTest

Change-Id: Iab232a80a973f54bf0484262d45af3e4c2f0e5dc
2021-04-07 21:58:42 +08:00
paulhu
b4e9b2b3d8 Move ACTION_CLEAR_DNS_CACHE to ConnectivityManager
- As API review feedback, move ACTION_CLEAR_DNS_CACHE form Intent
  to ConnectivityManager.

- Rename to "android.net.action.CLEAR_DNS_CACHE" because of lint
  suggestion.
frameworks/base/packages/Connectivity/framework/src/android/net/
ConnectivityManager.java:449: error: Inconsistent action value;
expected `android.net.action.CLEAR_DNS_CACHE`, was
`android.intent.action.CLEAR_DNS_CACHE` [ActionValue]

Bug: 183937999
Test: atest FrameworksNetTests
Test: atest ActivityTaskManagerServiceTests
Test: atest android.permission2.cts.PermissionPolicyTest
Test: atest CtsNetTestCases
Change-Id: Iae8aa0ba10dfc7581f0cfaab82643edbee789e2f
2021-04-07 19:40:47 +08:00
Svet Ganov
79db6e5807 Remove annotations from generated class until tests updated
Codegen is a tool that generates parcelable classes from
field declarations. Hence, the @SystemApi annotations are
placed on the field and the tool propagetes them to the
generated APIs. We need to update the AnnotationTest to
either ingore these generated classes or ignore private
fields annotated with @SystemApi as they are not API in
practice. This CL removes the annotations to fix the test.

bug: 184086213

Test: atest android.signature.cts.api.AnnotationTest

Change-Id: Ibe9059f20d95d4cda4eb402704e3c4c002ff0e47
2021-04-07 09:06:20 +00:00
Automerger Merge Worker
4ae155ea82 Merge "Merge "Add more OWNERS coverage" am: a40fbcd94c am: 018eaf4357 am: 19840369e1" into sc-dev am: d2793a6c03
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1531866

Change-Id: Ib0ed71103143c4c71633e5ce181689af6dd643c0
2021-04-07 08:55:17 +00:00
Rhed Jao
19531b91ad Merge "Support launching apps by package name without visibility" 2021-04-07 08:26:20 +00:00
Jeff Chang
84b8ab7302 Merge "Add more OWNERS coverage" am: a40fbcd94c am: 018eaf4357 am: 19840369e1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1531866

Change-Id: I0475257e967bf380f3e12cca62eaf4e094442204
2021-04-07 08:16:09 +00:00
Jeff Chang
a40fbcd94c Merge "Add more OWNERS coverage" 2021-04-07 05:57:30 +00:00
Svet Ganov
773862fda5 Add fallback for datasource without UPDATE_APP_OP_STATS
If the datasource is not in a trusted platform component then in would not
have UPDATE_APP_OPS_STATS. The problem is that an app is exposing runtime
permission protected data but cannot blame others in a trusted way which
would not properly show in permission usage UIs. As a fallback we are
adding a proxy op handling blaming the datasource and the caller.

bug: 183960997

Test: Assustant on auto projection works

Change-Id: I8a341a6c46c75eff86bac7a79c4219ebb7991071
2021-04-07 01:52:14 +00:00
TreeHugger Robot
8efb53f838 Merge "Revert "Revert "Avoid running RegisteredServicesCache tasks on main thread""" into sc-dev am: 72a949ba80
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14103078

Change-Id: Ic9e9950bb935eee29dc3ad075cf8004bd8bc49ee
2021-04-06 20:33:27 +00:00
TreeHugger Robot
72a949ba80 Merge "Revert "Revert "Avoid running RegisteredServicesCache tasks on main thread""" into sc-dev 2021-04-06 19:56:31 +00:00
Sahana Rao
d40f9b61a5 Rename requestOptimizedExternalStorageAccess to more precise name
When apps use requestOptimizedExternalStorageAccess flag, they get
additional performance benefit by bypassing database operations. They
still have to scan the file to update MediaStore collection otherwise
MediaStore collection can go inconsistent with lower file system.
Current flag name could lead to apps making wrong assumptions hence
changing the name to more precise name.

Bug: 178209446
Test: atest packages/providers/MediaProvider
Change-Id: I00747da9ea53566cbcdd8aa8b2195e536b397b67
2021-04-06 16:04:50 +01:00
Todd Kennedy
b9f3d0c9fb Revert "Revert "Avoid running RegisteredServicesCache tasks on main thread""
This reverts commit 968b2db0f4.

Reason for revert: Not cause of b/184141588

Change-Id: I9f886e3912dce8c68fee9376f010cd251889b97b
2021-04-06 14:18:21 +00:00
TreeHugger Robot
1fe874c10f Merge "Remove a module-lib API" into sc-dev am: 20d6212568
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14049946

Change-Id: I69e6ab1e2dbd4cf779ae8d4acfa3b5b398c6ece2
2021-04-06 10:39:34 +00:00
TreeHugger Robot
20d6212568 Merge "Remove a module-lib API" into sc-dev 2021-04-06 10:09:50 +00:00
Aaron Huang
46d99ea11f Expose Context#PAC_PROXY_SERVICE as module lib API
(cherry-picked from ag/14097767)
Bug: 183938000
Test: make update-api
Merged-In: I4341e177b61df0311f0a3234f8814a0ae2cf9a1b
Change-Id: I4341e177b61df0311f0a3234f8814a0ae2cf9a1b
2021-04-06 17:06:03 +08:00
Rhed Jao
6dc1bd358d Support launching apps by package name without visibility
PackageManager#getLaunchIntentForPackage returns null if the caller
is not allowed to query the package. This cl adds a new api using
the same implementation with the #getLaunchIntentForPackage. Instead
of returning the Intent, it returns the IntentSender which is not
restricted by package visibility.

Bug: 175336608
Test: atest android.content.pm.cts.PackageManagerTest
Change-Id: I43524f26b27b2278417dae1a75bcdeb0447b8273
2021-04-06 16:26:11 +08:00
Aaron Huang
94b4c46e05 Merge "Expose Context#PAC_PROXY_SERVICE as module lib API" into sc-dev am: 6b759b7c04
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14097767

Change-Id: Ie387d1fab39e3a6ca778eb41bbf0bd56fda50ed4
2021-04-06 07:50:45 +00:00
Aaron Huang
6b759b7c04 Merge "Expose Context#PAC_PROXY_SERVICE as module lib API" into sc-dev 2021-04-06 07:26:01 +00:00
Aaron Huang
62718c2bbf Expose Context#PAC_PROXY_SERVICE as module lib API
Bug: 183938000
Test: make update-api
Change-Id: I4341e177b61df0311f0a3234f8814a0ae2cf9a1b
2021-04-06 11:50:21 +08:00
Todd Kennedy
98a0276231 Merge "Use the correct method to unparcel the property map" into sc-dev am: 25cca35d93
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13437708

Change-Id: Iee20786f6f22a923f0673a285827cc64b5a82d3c
2021-04-05 21:36:48 +00:00