Commit Graph

10593 Commits

Author SHA1 Message Date
Kholoud Mohamed
3846f7b552 Merge "Expose setInstallFlagAllowTest testAPI" into sc-dev 2021-04-21 11:07:50 +00:00
TreeHugger Robot
18ecd98109 Merge "[pm] remove incremental startable/unstartable code" into sc-dev 2021-04-20 22:03:22 +00:00
Hall Liu
379a3f5ae2 Merge "Add docs clarifying permissions of setSystemAppState" into sc-dev 2021-04-20 16:23:43 +00:00
kholoud mohamed
dbaaacd5ad Expose setInstallFlagAllowTest testAPI
Exposed a testAPIs to set INSTALL_ALLOW_TEST install flag,
and allowed it to holders of INSTALL_TEST_ONLY_PACKAGE
permission.

Bug: 183716601
Test: N/A
Change-Id: Ie045f43c5224ed75e0ba8db91a3b77aa4d66a5d6
2021-04-20 15:37:25 +00:00
Naomi Musgrave
692496d964 Merge "Introduce config for sandboxing" into sc-dev 2021-04-20 15:36:32 +00:00
TreeHugger Robot
214a24ac6a Merge "Add reference for privacy hub API timestamps" into sc-dev 2021-04-19 22:51:30 +00:00
Hall Liu
db950993f2 Add docs clarifying permissions of setSystemAppState
Fixes: 184568177
Test: NA, docs only
Change-Id: Ie5c9b8b4ba5ff4b5d206b7c64b3d29c0fc5bbffa
2021-04-19 13:48:09 -07:00
TreeHugger Robot
efede1755e Merge "Suppress AutoBoxing issue for hasRequestRawExternalStorageAccess" into sc-dev 2021-04-19 16:50:35 +00:00
Alex Buynytskyy
910f855fe0 Merge "API feedback: make DataLoader API System." into sc-dev 2021-04-19 03:40:44 +00:00
Alex Buynytskyy
e7339d98df API feedback: make DataLoader API System.
Bug: 184713911
Fixes: 184713911
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest
Change-Id: I00107102eb2e98004ed0a5db2a318a052ab60220
2021-04-18 15:48:21 +00:00
Erik Wolsheimer
e7df558396 Revert "Revert "Increase MAX_ATTRIBUTIONS to 10000""
This reverts commit ac9d5cd7ec.

Reason for revert: Fixed test

Change-Id: I01efe527b6e9c2adf3bec354faf9e9dde586cc17
2021-04-16 18:57:35 +00:00
Naomi Musgrave
cbdd8bdb9f Introduce config for sandboxing
Bug: 184838306
Bug: 185004937
Test: atest WmTests:SizeCompatTests
Change-Id: I031463f4bf8c8d87a829f1f03603e376bd44c082
2021-04-16 13:21:27 +01:00
Joanne Chung
fa1aa404ee Merge "[FW] Change the fake translation name to formal name." into sc-dev 2021-04-16 07:16:25 +00:00
Songchun Fan
5ada1508c2 [pm] remove incremental startable/unstartable code
Also remove streaming health status reporting which could cause
startable state change because it is also not needed any more.

BUG: 171920377
Test: builds
Change-Id: I7284e7a63df79da7dbf3d16ff64302b3d1ce1348
2021-04-16 02:29:24 +00:00
Aurimas Liutikas
2a815a678b Suppress AutoBoxing issue for hasRequestRawExternalStorageAccess
Metalava now prevents adding Boolean returns, see r.android.com/1677187

Test: None
Bug: 185484823
Change-Id: I4580908165fb00372297b476a6755385afb44446
2021-04-15 22:41:04 +00:00
Todd Kennedy
5889bd1f7f @IntDef incorrectly marked as containing flags
Change-Id: I0bde93fde412b4770a84124a9e323e4ac003d587
Bug: 174238856
Fixes: 174238856
Test: None. Doc only change.
2021-04-15 21:51:13 +00:00
Erik Wolsheimer
404920ea6b Merge "Revert "Increase MAX_ATTRIBUTIONS to 10000"" into sc-dev 2021-04-15 21:20:25 +00:00
Jorge Moreira Broche
ac9d5cd7ec Revert "Increase MAX_ATTRIBUTIONS to 10000"
This reverts commit f9933b7d18.

Reason for revert: b/185482967

Change-Id: If0700210ce79b42cf8e80946a6c23b82ea99469e
2021-04-15 19:47:43 +00:00
Jeff Sharkey
dfe5f0c26f Merge "Temporary stop-gap for Chrome target SDK issue." into sc-dev 2021-04-15 19:04:57 +00:00
Jeff Sharkey
c6be9fe470 Temporary stop-gap for Chrome target SDK issue.
The Chrome team was planning to provide a new prebuilt SDK last week
which returned to targeting the official R SDK level, but other
challenges prevented them from doing so.

They still intend to land an updated prebuilt which targets R, but
to unblock testing this change makes that change on their behalf;
when we see a very specific Chrome version code we force the target
SDK back to R.  This code will safely become a no-op during their
next prebuilt, which should have a different version code.

Bug: 183905675
Test: manual
Change-Id: I211e7550f489294f90d8729b518ec9a70a37ec96
2021-04-15 13:03:25 -06:00
Guojing Yuan
dfcbefcc50 Add reference for privacy hub API timestamps
Fix: 184890546

Test: N/A
Change-Id: I5a9787e8667268557d60ef97db581b172015ea3e
2021-04-15 17:56:31 +00:00
Winson Chiu
062dde5e2b Merge "Fix overlay reference app visibility" into sc-dev 2021-04-15 15:40:05 +00:00
TreeHugger Robot
bc54308859 Merge "Update getOwnersForDomain docs and enforce non-null" into sc-dev 2021-04-15 05:19:01 +00:00
Erik Wolsheimer
f9933b7d18 Increase MAX_ATTRIBUTIONS to 10000
Bug: 180906577
Test: Build and run sargo-userdebug
Change-Id: I2e0d21d114cacc9fb9a6d4e1c46ec2e00e3654cb
2021-04-14 23:15:49 +00:00
Ashwini Oruganti
8b71ad9ab4 Merge "Add an excludedPermission arg to filter the set of apps that a broadcast gets sent to" into sc-dev 2021-04-14 20:30:06 +00:00
Winson
186c182cb9 Fix overlay reference app visibility
Change get -> valueAt and get the actual base.apk ApkAssets for the
package. Also fixes overlay reference visibilty, which was broken with
the AppsFilter cache.

Bug: 184834206

Test: atest OverlayReferenceMapperTests
Test: atest OverlayActorVisibilityTest
Test: atest AppsFilterTest

Change-Id: I01e6a39b36a0e03c2cb9d48e705fe02c1a63c169
2021-04-14 13:02:35 -07:00
Winson
76d81231f4 Update getOwnersForDomain docs and enforce non-null
Forgot the docs update part of the feedback. Also enforces the param
non-nullablility.

Bug: 184891031

Test: atest DomainVerificationManagerApiTest

Change-Id: I4c90f69bc38c9760a76555ee8c8ad121cac997b6
2021-04-14 12:37:37 -07:00
Joanne Chung
ad099e9f2b [FW] Change the fake translation name to formal name.
We use a fake name to prevent feature leak, we should change it back
before API freeze.

Bug: 181179744
Test: build pass and can run service correctly
Test: atest CtsTranslationTestCases

Change-Id: I9c5752e4ce37ff4af8175b6d7527b8a8117588d3
2021-04-14 22:49:46 +08: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
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
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
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
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
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
Ashwini Oruganti
a919259285 Add an excludedPermission arg to filter the set of apps that a broadcast
gets sent to

This adds an API to allow sending a broadcast to an app that has permission FOO but not permission BAR.
Earlier, a lack of this option was causing a double send problem for broadcasts, which should now be resolved.

Test: manual
Bug: 183537857
Change-Id: I13287d63e039164694be4daa832bb23709990054
2021-04-12 21:58:51 +00: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
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
279a38e147 Merge "Remove translation service feature." into sc-dev 2021-04-12 16:01:05 +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
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