Commit Graph

10770 Commits

Author SHA1 Message Date
Songchun Fan
c9257b802a Merge "[api] hide ACTION_PACKAGE_FULLY_LOADED as it is not used" into sc-dev am: ef9e6a7ce0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14161879

Change-Id: Ic796f7275836433ada398902ac7f96b02f122233
2021-04-13 23:25:42 +00:00
Songchun Fan
ef9e6a7ce0 Merge "[api] hide ACTION_PACKAGE_FULLY_LOADED as it is not used" into sc-dev 2021-04-13 23:20:39 +00:00
TreeHugger Robot
ed5484309a Merge "Fix an issue where the return value is null when retrieving shortcut" into sc-dev am: f049770c99
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14173062

Change-Id: I21a3606f0b7ca5063abe97f78481a9d152482ee9
2021-04-13 23:04:51 +00:00
TreeHugger Robot
f049770c99 Merge "Fix an issue where the return value is null when retrieving shortcut" into sc-dev 2021-04-13 23:03:51 +00:00
TreeHugger Robot
0cc0f140a9 Merge "Change getOwnersForDomain to SortedSet" into sc-dev am: d4e3953a8c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14161884

Change-Id: I1459fc0a2677aa959933c58d0a6d7bdcb5eb9329
2021-04-13 22:39:50 +00:00
TreeHugger Robot
d4e3953a8c Merge "Change getOwnersForDomain to SortedSet" into sc-dev 2021-04-13 21:54:12 +00:00
Pinyao Ting
b0a39a0b5c Fix an issue where the return value is null when retrieving shortcut
Some testing devices were flashed to a build which contains a previous
version of AppSearchShortcutInfo, the schema wasn't in use and should be
updated to the latest version directly.

Bug: 185186093
Test: manual
Change-Id: Ie9b8a0d59611498909b5c78eca65fe563a65004b
2021-04-13 10:33:59 -07:00
Corina Grigoras
4d9882b3d3 Merge "Rename createContentUriAsUser to createContentUriForUser" into sc-dev am: 5b4e1622b7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14161638

Change-Id: Ic2e124a54449bb7827e45538475a859d536c410a
2021-04-13 16:52:09 +00:00
Jeremy Joslin
ebf3cc00bb Merge "Update doc for FEATURE_SECURITY_MODEL_COMPATIBLE." into sc-dev am: 29744db0c4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14164285

Change-Id: Iec68694113daea242d556821581dddaeb484a79f
2021-04-13 16:50:25 +00:00
Corina Grigoras
5b4e1622b7 Merge "Rename createContentUriAsUser to createContentUriForUser" into sc-dev 2021-04-13 16:43:00 +00:00
Jeremy Joslin
29744db0c4 Merge "Update doc for FEATURE_SECURITY_MODEL_COMPATIBLE." into sc-dev 2021-04-13 16:18:12 +00:00
Alex Buynytskyy
b671da2409 Merge "API feedback with better documentation." into sc-dev am: 2a3eef7ab6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14162035

Change-Id: I5e882bf133600306be95c1f894d9bed6ea7ade9a
2021-04-13 16:04:24 +00:00
Alex Buynytskyy
2a3eef7ab6 Merge "API feedback with better documentation." into sc-dev 2021-04-13 15:53:20 +00:00
Winson
64ee7ff095 Change getOwnersForDomain to SortedSet
Kept the lowest to highest ordering priority, under the assumption
that less has to change in the UI/consumer if the highest priority
is popped, since it will just take it off the end without shifting
any elements. The ordering is documented.

Bug: 184891031

Test: atest DomainVerificationManagerApiTest

Change-Id: I6ea5908e356ee96aa440650f3d5025319c195266
2021-04-12 16:58:59 -07:00
Songchun Fan
b2fdd34a80 [api] hide ACTION_PACKAGE_FULLY_LOADED as it is not used
BUG: 171920377
Test: builds
Change-Id: I7b17bbe6624e5c96ceac55ca050ec0add0b05cb1
2021-04-12 23:49:57 +00:00
Pinyao Ting
b16020f6c3 Merge changes from topic "shortcut-app-search" into sc-dev am: 55c108fdb1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14094713

Change-Id: Iee46f39c9cdb4904a558bc5706f7156b81d7ed22
2021-04-12 23:46:36 +00:00
Pinyao Ting
55c108fdb1 Merge changes from topic "shortcut-app-search" into sc-dev
* changes:
  Shortcut integration with AppSearch (Part 10)
  Shortcut integration with AppSearch (Part 9)
  Shortcut integration with AppSearch (Part 8)
  Shortcut integration with AppSearch (Part 7)
  Shortcut integration with AppSearch (Part 5)
2021-04-12 23:29:34 +00:00
Jeremy Joslin
f6e8198fba Update doc for FEATURE_SECURITY_MODEL_COMPATIBLE.
Adding a link to the CDD.

Test: builds.
Bug: 183938071
Change-Id: I89ac710363e1c7003198804bdb0aa235c55ca47d
2021-04-12 15:20:33 -07:00
Corina
7c368531a4 Rename createContentUriAsUser to createContentUriForUser
Bug: 183395239
Test: atest ContentProviderTest
Change-Id: I13c382e7ad4f291de28a52025a8ec4e59d815409
2021-04-12 21:57:06 +00:00
Alex Buynytskyy
bdd6f7d521 API feedback with better documentation.
+revert the Incremental installation API to be SystemApi as the corresponding native API is not exposed in the NDK.

Bug: 184713911
Fixes: 184713911
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest
Change-Id: I466eb6d2f98aed75c22b92877d5e8cb3ddf839bc
2021-04-12 14:37:17 -07:00
Lais Andrade
ef40d628b5 Merge "Rename CombinedVibrationEffect to CombinedVibration" into sc-dev am: 8b2586c6ea
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14104345

Change-Id: I5b4d66ee7d5f284dcd55f0044bc249d3c6d46b9a
2021-04-12 20:09:30 +00:00
Lais Andrade
8b2586c6ea Merge "Rename CombinedVibrationEffect to CombinedVibration" into sc-dev 2021-04-12 20:08:41 +00:00
Lais Andrade
d8dc940fc0 Rename CombinedVibrationEffect to CombinedVibration
The change makes the distinction between VibrationEffect and
CombinedVibratio clearer. The later is a combination of the former with
the extra information about the vibrator ids, allowing effects to be
played in one or more vibrators in parallel or in sequence.

The methods create/start synced where also renamed to parallel (together
with respective builder classes), to indicate they perform one or more
effects in parallel on multiple vibrators. This is also a better match
to the sequential combinations.

This change also deprecates the Context.VIBRATOR_SERVICE in favour of
the new VIBRATOR_MANAGER_SERVICE. The default vibrator can be retrieved
from the manager system service.

Same deprecation applied to InputDevice.getVibrator method.

Fix: 184123900
Test: CombinedVibrationTest
Change-Id: I44d8b225098d35fbf7783254acaf6a78f9fb4505
2021-04-12 16:34:54 +00:00
Joanne Chung
312087f91f Merge "Remove translation service feature." into sc-dev am: 279a38e147
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14112447

Change-Id: I387a396331301693d4a6e584d187303f00ce2eef
2021-04-12 16:15:56 +00:00
Joanne Chung
279a38e147 Merge "Remove translation service feature." into sc-dev 2021-04-12 16:01:05 +00:00
Mady Mellor
0102e85755 Merge "API Update: extra_is_bubbled -> Activity#isLaunchedFromBubble" into sc-dev am: 02b75bb425
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13891125

Change-Id: Id00e94bfffbe480f56dfc35a73c3eb5e49541302
2021-04-12 15:10:47 +00:00
Mady Mellor
02b75bb425 Merge "API Update: extra_is_bubbled -> Activity#isLaunchedFromBubble" into sc-dev 2021-04-12 14:53:01 +00:00
Joanne Chung
57dc3874f6 Remove translation service feature.
Currently, the Translation uses feature to determine if we need to
start the translation system service. But our case is like the
content capture not the autofill, the autofill can have the feature
without any service defined and the user can install one later. But
translation isn't, we should need to check config instead of
feature.

The feature will not be used anymore, it's safe to delete it. If we
leave the removal to next OS, it is painful to delete it.

Bug: 183360041
Test: atest CtsTranslationTestCases

Change-Id: Ib6886a17965937abf064e526c36c67428af7398f
2021-04-12 16:03:44 +08:00
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
Pinyao Ting
f1f376fc45 Shortcut integration with AppSearch (Part 9)
1. Close AppSearchSession after use.

When the device is shutdown with open AppSearchSession, if the data is
not properly persisted to disk, it would lead to a recovery upon reboot,
which could hurt boot performance.

We cannot rely on shutdown signal to close existing session because the
broadcast is not guranteed. Since session creation is light-weight, it
is more performant to simply close the session everytime after use.

2. Refrain from calling setup schema on boot.

To improve the performance of device start up, we want to avoid calling
AppSearchSession#setSchema unnecessarily since it could hurt performance.
In this CL we saved the version of the schema in the xml file which can
serve as an indicator of whether schema setup is required.

Bug: 151359749
Test: atest ShortcutManagerTest1 ShortcutManagerTest2
    ShortcutManagerTest3 ShortcutManagerTest4 ShortcutManagerTest5
    ShortcutManagerTest6 ShortcutManagerTest7 ShortcutManagerTest8
    ShortcutManagerTest9 ShortcutManagerTest10 ShortcutManagerTest11
    ShortcutManagerTest12
Test: atest CtsShortcutManagerTestCases
Change-Id: I2d6b66cef0c152ad99611dec3dee32a473bef4a9
2021-04-09 13:35:08 -07:00
Pinyao Ting
ba25baccab Shortcut integration with AppSearch (Part 8)
Reduce search space in AppSearch with following changes:
1. Introduce inverted flag upon saving document.
2. Implement AppSearch queries for more general cases.

Bug: 151359749
Test: atest ShortcutManagerTest1 ShortcutManagerTest2
    ShortcutManagerTest3 ShortcutManagerTest4 ShortcutManagerTest5
    ShortcutManagerTest6 ShortcutManagerTest7 ShortcutManagerTest8
    ShortcutManagerTest9 ShortcutManagerTest10 ShortcutManagerTest11
    ShortcutManagerTest12
Test: atest CtsShortcutManagerTestCases
Change-Id: I94ec6a2b04c83ef3689c65d63741340b01c9ff50
2021-04-09 13:35:08 -07:00
Pinyao Ting
221060b20b Shortcut integration with AppSearch (Part 7)
Use optmized queries instead of iterating through every shortcuts where
possible.

Bug: 151359749
Test: atest ShortcutManagerTest1 ShortcutManagerTest2
    ShortcutManagerTest3 ShortcutManagerTest4 ShortcutManagerTest5
    ShortcutManagerTest6 ShortcutManagerTest7 ShortcutManagerTest8
    ShortcutManagerTest9 ShortcutManagerTest10 ShortcutManagerTest11

Change-Id: I85efac531162c2497ba5f84980c3e19e93f6e3bc
2021-04-09 13:35:08 -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