Commit Graph

15130 Commits

Author SHA1 Message Date
TreeHugger Robot
d6f7187db3 Merge "Annotate Notification.Action.Builder building methods with @NonNull." 2019-03-05 19:51:41 +00:00
Yueming Wang
707b4655d1 Merge "Improve javadoc for cross-profile calendar." 2019-03-05 19:29:54 +00:00
Kevin Chyn
81ebf42e2e Merge "Update BiometricPrompt API naming" 2019-03-05 18:25:27 +00:00
Julien Desprez
8b19677c30 Fix test mapping conflit of class vs. package
Temporarily fix the test mapping conflict of class vs
package due to two differents modules including different
types of filters.

Test: none
Bug: 127470443
Change-Id: I3dbf0012177b858655c0c29f52404eb51a9364b2
2019-03-05 10:15:29 -08:00
TreeHugger Robot
c4b4aaab27 Merge "Add temporary packageName-based whitelist for allowing background activity launches" 2019-03-05 17:06:05 +00:00
yuemingw
9be5a694fe Improve javadoc for cross-profile calendar.
Bug: 120860474
Bug: 123625889
Test: manual
Change-Id: I81215a8f20a49cbcb48536456ddda611f8928fd9
2019-03-05 16:29:33 +00:00
Leland Miller
e4099d58ae Merge "Mark manage holder flag as test API" 2019-03-05 15:41:59 +00:00
Michal Karpinski
666631b28e Add temporary packageName-based whitelist for allowing
background activity launches

Necessary for early stages of enabling the feature in
enforcing mode - we'll need to temporarily whitelist
apps like Duo, so dogfooders can still use them.

Bug: 123354556
Test: atest WmTests:ActivityStarterTests
Test: adb shell settings put global background_activity_starts_package_names_whitelist com.ejc.bbc:com.whatever.dude
Change-Id: I2515b8ba334e87e7f201569ba5a6bb1b79395354
2019-03-05 14:30:43 +00:00
Nicolas Geoffray
5735cc7a11 Remove calls to VMRuntime methods that are no-ops.
Test: m
Change-Id: Ibe849f56f5fe8af1415dc6c85b484d0edca518ec
2019-03-05 09:26:43 +00:00
TreeHugger Robot
1cfb214c96 Merge "Add annotations to new APIs" 2019-03-05 09:08:40 +00:00
Kevin Chyn
e64d74ecaf Update BiometricPrompt API naming
Fixes: 126190552

Test: make -j56 update-api
Test: make -j56
Change-Id: I1c0700106e46b8dbfb825df341a8196a33f8bc83
2019-03-04 22:34:07 -08:00
Leland Miller
2293da2467 Mark manage holder flag as test API
RoleManager methods that use this flag are marked as test APIs, this
marks the flag that they can accept as well.

Bug: 122852169
Test: Test package using test_current sdk using this flag builds
Change-Id: I6b5219d851b83f3392d668aa560b7fec5152f496
2019-03-04 15:08:00 -08:00
TreeHugger Robot
5ee812a499 Merge "Update #registerAppUsageLimitObserver to accept time remaining." 2019-03-04 23:00:22 +00:00
Beverly
b0989653b6 Add annotations to new APIs
Test: atest ZenPolicyTest
Test: atest AutomaticZenRuleTest
Fixes: 126698794
Fixes: 126700812
Change-Id: Ifed34452faed6de3330663cec8ef19ea002b90ff
2019-03-04 14:41:17 -05:00
Zak Cohen
28bfe37108 Merge "ContentSuggestions - mark request builder returns as NonNull." 2019-03-04 19:33:09 +00:00
Zak Cohen
5749c76b11 Merge "ContentSuggestions - make extras in request @NonNull." 2019-03-04 19:33:03 +00:00
TreeHugger Robot
b1b4a4fc14 Merge "Improve documentation of secure lock screen feature." 2019-03-04 19:08:56 +00:00
Varun Shah
9f58b7c007 Update #registerAppUsageLimitObserver to accept time remaining.
UsageStatsManager#registerAppUsageLimitObserver now accepts the time
remaining in addition to the total time limit.

The API now also uses java.time.Duration instead of long+TimeUnit for
the total time and remaining time.

Bug: 124272203
Test: atest FrameworksServicesTests:AppTimeLimitControllerTests
Test: atest android.app.usage.cts.UsageStatsTest#testObserveUsagePermissionForRegisterObserver
Test: atest android.app.usage.cts.UsageStatsTest#testObserveUsagePermissionForUnregisterObserver
Test: manual (mmma frameworks/base/tests/UsageStatsTest/)
Change-Id: I6f85ca9295cad46e10a30035b67e6210ae5c1886
2019-03-04 19:06:32 +00:00
Svetoslav Ganov
2a980300bc Merge "Slice and dice app ops - framework" 2019-03-04 17:22:20 +00:00
Andrei-Valentin Onea
52f7220a06 Merge "Add @UnsupportedAppUsage annotations" 2019-03-04 12:42:01 +00:00
Julia Reynolds
10b6c6d10e Merge "Add @Nullable and @NonNull to new Notification API" 2019-03-03 21:07:47 +00:00
Svet Ganov
af189e3371 Slice and dice app ops - framework
Appops can be peformed by an app on its behalf and also on
behalf of another app, i.e. an app can perform a proxy op
and blame the work on another app. The proxy mechanims is
for apps doing work on behalf of other apps where GCore is
one example since the app doing the work needs to check if
the caller has access to the functionality - specifically
the app op backing a runtime permission in case the calling
app does not support runtime permissions.

Apps being able to blame work on other apps is a problem now
that we would be using historical op data to show permission
usage in the UI as apps can start blaming each other to gain
a competitive advantage.

To address the issue we are adding APIs for querying portions
of the app op data - last and historical. One can now get
the ops for work the app did for itself, work the app blamed
on other apps if the app is trusted, work the app blamed on
other apps if the app is not trusted, work other trusted apps
blamed on the app, work other untrusted apps blamed on the app.
A trusted app is one holding the permisison to update app op
stats which is privileged.

The data slicing API allow us to show in the UI only the trusted
poriton of the data which is work the app did for itself, work
trusted apps balmed on the app, and work the app if untrusted
blamed on other apps.

Test: atest CtsAppOpsTestCases

bug:111061782

Change-Id: I9a2bcaea272cb06f38ba742cf601a6dc3b287d5e
2019-03-01 21:12:16 -08:00
Philip P. Moltmann
7821931e53 Make noteProxyOpNoThrow(String,String,int) public
This is needed for proxing while not inside of a IPC.

Test: m -j update-api
Fixes: 126434248
Change-Id: I8dde23824b91acfae57ed86ef6871d82c8617193
2019-03-01 17:04:19 -08:00
Zak Cohen
c0fe567e6e ContentSuggestions - make extras in request @NonNull.
Bug: 124506692
Test: build, annotation change
Change-Id: Ieae1c8a141bf3ab92f85a0fd3c58044da3ae18f0
2019-03-01 22:13:12 +00:00
Zak Cohen
d61093e381 ContentSuggestions - mark request builder returns as NonNull.
Test: Built, doc change only
Bug: 126701487
Bug: 126701195
Bug: 126699096
Change-Id: I0daea121e4442d3f2a8ef027e5bef27235ee7118
2019-03-01 22:09:35 +00:00
TreeHugger Robot
abc2a7d55c Merge "Mark role related APIs as test API." 2019-03-01 18:23:06 +00:00
Jeff Sharkey
9e8f83db6d All Parcelable CREATOR fields are @NonNull.
If they were null, then the Parcelable would fail to work.

Bug: 126726802
Test: manual
Change-Id: I7929ffa2f20e5de1c8e68e8263cca99496e9d014
Exempt-From-Owner-Approval: Trivial API annotations
2019-02-28 23:29:04 -07:00
Jeff Sharkey
416d46234c Intercept unlink(), remove(), and rename().
Handles cases where apps try deleting paths returned in "_data"
columns, and where they try renaming across bind mounts.

Bug: 124349250
Test: atest android.appsecurity.cts.ExternalStorageHostTest#testExternalStorageRename
Change-Id: I7f4461bcacada80398eb95d051a0d29456f63499
2019-03-01 06:25:24 +00:00
TreeHugger Robot
a88d34bfa7 Merge "Fixed PASSWORD_COMPLEXITY_HIGH javadoc to require complex PIN of length at least 8" 2019-03-01 02:55:04 +00:00
Andrii Kulian
2ea06cd77a Merge "Report top resumed state only after previous activity lost it" 2019-03-01 02:01:38 +00:00
Chavi Weingarten
59f3a3d882 Merge "Change Instrumentation to call injectInputAfterTransactionApplied" 2019-03-01 01:19:28 +00:00
Sudheer Shanka
279b81849d Merge "Mark COLUMN_MEDIASTORE_URI as @TestApi." 2019-03-01 01:04:11 +00:00
TreeHugger Robot
a0a47c4426 Merge "Add @RequiresPermission and fix API naming" 2019-03-01 01:00:43 +00:00
TreeHugger Robot
6966b8e739 Merge "Annotate Notification.Builder methods with @NonNull." 2019-02-28 23:59:24 +00:00
TreeHugger Robot
432c55a613 Merge "Change trace message to reflect the show/hide state" 2019-02-28 23:28:28 +00:00
Michael Wachenschwanz
17c7c791f5 Merge "Promote apps in the NEVER bucket on sync scheduled" 2019-02-28 22:52:02 +00:00
Evan Laird
ab196596fc Add @RequiresPermission and fix API naming
StatusBarManager#setDisabledForSetup() requires
android.Manifest.permission.STATUS_BAR, and is now documented that way.

Also rename areNoComponentsDisabled to areAllComponentsEnabled so it
reads better

Bug: 126376147
Test: atest GtsStatusBarHostTestCases
Change-Id: I59b113a2568463541dfbd46f505489aa94aac9d9
2019-02-28 17:32:30 -05:00
Sudheer Shanka
957954b67b Mark COLUMN_MEDIASTORE_URI as @TestApi.
Bug: 126395605
Test: atest cts/tests/app/src/android/app/cts/DownloadManagerTest.java
Change-Id: I727555d7b2a5812b2a802ea447c2d9b9d26c9572
2019-02-28 13:33:39 -08:00
TreeHugger Robot
8ecdef276f Merge "Add nullability to StatusBarManager#getDisableInfo" 2019-02-28 20:27:28 +00:00
Fabian Kozynski
867550ead5 Add @Nullable and @NonNull to new Notification API
Test: build
Fixes: 126699221
Fixes: 126700928
Fixes: 126701530
Change-Id: Ia06731cae10f5dbdf57d9557a797ccfe6aa460d7
2019-02-28 14:48:33 -05:00
Gustav Sennton
625bcab95f Annotate Notification.Builder methods with @NonNull.
To support Kotlin developers we here annotate all (non-deprecated)
public Notification.Builder methods with the @NonNull annotation.

Bug: 126699778
Test: N/A
Change-Id: I7ba56430bf2af8112d9be1bcbdd3601fb577543f
2019-02-28 19:19:23 +00:00
Gustav Sennton
44a231368d Annotate Notification.Action.Builder building methods with @NonNull.
Annotate all Builder methods returning the Build objects as @NonNull,
this is to support Kotlin developers.

Bug: 126698549
Test: N/A
Change-Id: I147a61d73f7d819571dfe97f1b55d4c79cffbf52
2019-02-28 19:05:36 +00:00
Evan Laird
2c4d0cfa93 Add nullability to StatusBarManager#getDisableInfo
Test: Builds
Fixes: 126701201
Change-Id: I9b6e92efbfd2fd8a191349d54d9b99a84e2ad675
2019-02-28 12:33:01 -05:00
Jeff Chang
ba7ad27960 Merge "Signal a rerouted callback if display was set to SingleTaskInstance" 2019-02-28 17:04:09 +00:00
Bernard Chau
e4bab18190 Fixed PASSWORD_COMPLEXITY_HIGH javadoc to require complex PIN of length at least 8
Bug: 111173457
Test: N/A. Just updating javadoc.

Change-Id: I4125d6ce511105a68db03fb3b51d68c914bcfdd6
2019-02-28 17:03:05 +00:00
Lenka Trochtova
cef704e172 Improve documentation of secure lock screen feature.
Add more a specific description of what methods do when the
secure lock screen feature is not supported by the device.

Bug: 123270501
Test: make

Change-Id: Ib6c16f421cf3dc60b0f0cb0c6335c6dc35ac7ece
2019-02-28 12:00:05 +01:00
TreeHugger Robot
79c8d6623b Merge "Add API Service.getForegroundServiceType()" 2019-02-28 01:48:02 +00:00
Ralston Da Silva
5bbfa09a94 Merge "Removing usage of unsupportedApi AutoCompleteTextView.ensureImeVisible from SearchDialog Bug: 124452405 Test: No CTS test because SearchDialog is not exposed externally." 2019-02-28 00:45:07 +00:00
Jeff Sharkey
4020f8c038 Merge "Translate SecurityException into EACCES." 2019-02-28 00:19:05 +00:00
chaviw
9f4bc55faf Change Instrumentation to call injectInputAfterTransactionApplied
Instrumentation.sendPointerSync currently calls direclty into
InputManager to inject input. Instead have it call
injectInputAfterTransactionApplied to ensure it waits for animations
to complete and input windows to get set.

Additionally, changed injectInputAfterTransactionApplied to call
InputManagerInternal instead of InputManager to prevent the calling pid
from changing. This ensures the permission check remains tied to the client
that injected the input.

Bug: 123616343
Bug: 120920331
Test: atest HoverTest
Change-Id: I8c893e47fea9bd38e92da0ffa668ebca066f1080
2019-02-27 15:54:24 -08:00