Commit Graph

25856 Commits

Author SHA1 Message Date
Sasha Smundak
1863f3edaf Merge "Android.bp file to convert current.api to XML format." into qt-dev-plus-aosp am: 73c6f3caa3 am: ce8fa14129
am: f650335abe

Change-Id: Idebb5f45147707cb0cd22be98f5321b84d280239
2019-08-23 22:04:00 -07:00
TreeHugger Robot
903102c430 Merge "Don't refer to DeviceIdle from SystemServiceRegistry" 2019-08-23 15:38:42 +00:00
Sasha Smundak
ce8fa14129 Merge "Android.bp file to convert current.api to XML format." into qt-dev-plus-aosp
am: 73c6f3caa3

Change-Id: Ibc8a4fa50987c1aa29143be2d82d294cb233b796
2019-08-22 16:08:20 -07:00
TreeHugger Robot
73c6f3caa3 Merge "Android.bp file to convert current.api to XML format." into qt-dev-plus-aosp 2019-08-22 22:54:57 +00:00
Jeff Sharkey
ec19e9b107 Public APIs for ID-specific Uris, misc items.
We have getContentUri() for entire collections of items, but we
only have ID-specific overloads for some of the MediaStore classes;
let's get them all added for consistency.

Remove primary/secondary directory logic, which was replaced by
new RELATIVE_PATH column before Q launched.

Bug: 137890034
Test: atest --test-mapping packages/providers/MediaProvider
Exempt-From-Owner-Approval: trivial API refactoring
Change-Id: Iae4e7fe57adff071c35af459e31223a1fd05fef2
2019-08-22 14:43:24 -06:00
Jeff Sharkey
0be6fcd0d9 Merge changes from topic "activez"
* changes:
  Public API to check and note media operations.
  Public API to watch for "active" operations.
2019-08-22 17:17:22 +00:00
Jeff Sharkey
5997cc8516 Public API to check and note media operations.
These operations are used by MediaProvider when checking and noting
interactions with specific media types on the device.

Bug: 137890034
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: Id452ad121bd8a0b7c1c337a2b7fe030135a9d776
2019-08-22 11:12:57 -06:00
Jeff Sharkey
7095ab9f52 Public API to watch for "active" operations.
We already have startOp() and finishOp() to provide a mechanism to
mark an operation as being "active".  This change publishes a set of
APIs to check the status of these active operations, matching the
naming of similar existing APIs on the same class.

Bug: 139128842
Test: atest com.android.server.appop.AppOpsActiveWatcherTest
Test: atest android.media.cts.AudioRecordAppOpTest
Exempt-From-Owner-Approval: trivial API refactoring
Change-Id: I9fb381d748ff23ff24dd363ed5b117bd661793ab
2019-08-22 11:12:45 -06:00
Jayant Chowdhary
70809a1847 Merge "Add SYSTEM_CAMERA capability to camera2 and define @SystemApi SYSTEM_CAMERA permissions." 2019-08-21 19:53:16 +00:00
Raman Tenneti
120715a56b Merge "Wait until any background events are processed." into stage-aosp-master am: 0589325300
am: 8cf1cab8c4

Change-Id: I7648fba978a44d421021e4a7e4a821ebf3ef4b38
2019-08-21 12:31:17 -07:00
Raman Tenneti
8cf1cab8c4 Merge "Wait until any background events are processed." into stage-aosp-master
am: 0589325300

Change-Id: I198e5863a5f4f3e8b7dec0e5ae13be2548719285
2019-08-21 12:09:54 -07:00
Julia Reynolds
9ef59c953d Merge "Make some APIs used by ExtService module @SystemApi" 2019-08-21 13:05:11 +00:00
Zimuzo Ezeozue
74c76a2c59 Merge "Add ExternalStorageService API" 2019-08-21 10:30:54 +00:00
Zim
e1c49ce35d Add ExternalStorageService API
The ExternalStorageService implementation will live in android.process.media
It will orchestrate filesystem IO from apps coming from an upper filesystem
to a lower filesystem

Test: m
Bug: 135341433
Change-Id: I9b132ce7e5e5985ef3307c75ce7db50affc65a8e
2019-08-21 08:02:47 +01:00
Joanne Chung
14275a9388 Merge "Move disable autofill from AutofillManagerService to AutofillOptions." 2019-08-21 06:29:18 +00:00
Jayant Chowdhary
393ad6e0ad Add SYSTEM_CAMERA capability to camera2 and define @SystemApi SYSTEM_CAMERA permissions.
In order to access system-only cameras client processes need
SYSTEM_CAMERA permissions in addition to CAMERA permissions. A
permission was preferred over other mechanisms such as having private
connections would need to hard-code the package name(s) of clients using
system only camera devices. A system | signature permission on the other hand,
would make this more flexible and would be better for security.

Bug: 133508924

Test: cts CameraManagerTest, CameraDeviceTest
Test: Give cts test SYSTEM_CAMERA permissions by using
      adoptShellPermissions and run some camera tests.

Change-Id: Ibcd6ccdb231dcca949ed4fb14712d033a5801d36
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2019-08-20 15:24:28 -07:00
Joshua Imbriani
b0ae1fd1e5 Merge "Adding a new overloaded API for synthesizeToFile taking a FileDescriptor instead of a File object" 2019-08-20 15:36:57 +00:00
Shafik Nassar
bb021e3b1b Merge "Add API to create GestureLibrary from FileDescriptor" 2019-08-20 15:21:03 +00:00
shafik
69bbb72be8 Add API to create GestureLibrary from FileDescriptor
GestureLibraries#fromFile takes a file path and returns a
GestureLibrary object. This change adds an equivalent API
GestureLibrary#fromFd that takes a FileDescriptor.

Test: GestureBuilder.apk still works properly
Bug: 139182427
Change-Id: Ie50f3a624703cf128d6ee34bb450bbe971ad1730
2019-08-20 11:43:17 +01:00
Jeff Sharkey
9f6f8bedbc Wait until any background events are processed.
Some MediaProvider events (such as thumbnail invalidation) are
handled on a background thread.  To reduce flaky tests, wait until
all background events have been processed, which is more robust
than sleep.

Bug: 134879702
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: Ia032b19c1b0e5c0096c55bf3d46a5153525e89fa
(cherry picked from commit efad242f35)
2019-08-19 22:15:51 +00:00
Julia Reynolds
a10437f460 Make some APIs used by ExtService module @SystemApi
These are all pieces of data apps could get anyway;
these are code nice-to-haves to reduce code replication

Test: make
Bug: 122138479
Bug: 138589409
Change-Id: Ie8ffacb6c28840f779c68f7aa95f1405e70f5ce5
2019-08-19 11:32:12 -04:00
vichang
433bd93946 Merge "API updated for ICU4J 64.2" am: 4c322503bb am: 5cff30ded7 am: fbc11d88e1 am: 6b3ae3de80
am: 132d20c3f3

Change-Id: I9caaa083c363cabe8d942c3e71d82c8d96d98bad
2019-08-16 04:49:07 -07:00
vichang
6b3ae3de80 Merge "API updated for ICU4J 64.2" am: 4c322503bb am: 5cff30ded7
am: fbc11d88e1

Change-Id: I17fe5a8ab6cf0b10807a1a5e8bbd73eb7a6dc19e
2019-08-16 04:25:50 -07:00
vichang
fbc11d88e1 Merge "API updated for ICU4J 64.2" am: 4c322503bb
am: 5cff30ded7

Change-Id: I212e16bc49edf03c3d07f8c064582f98bfb4d38f
2019-08-16 04:16:57 -07:00
vichang
5cff30ded7 Merge "API updated for ICU4J 64.2"
am: 4c322503bb

Change-Id: Ifc90aefe3f13a82c6b484362216ecc2d82099082
2019-08-16 04:01:41 -07:00
Eran Messeri
756326e708 Merge "DPM key grant: Address API review" 2019-08-16 04:48:31 +00:00
Sasha Smundak
02cbff4425 Android.bp file to convert current.api to XML format.
Fixes: 139281092
Test: atest CtsDevicePolicyManagerTestCases
Change-Id: Iffec912af4ee9dd3de2090a31bd475abc5016854
2019-08-15 09:43:47 -07:00
Eran Messeri
aad7ad4669 DPM key grant: Address API review
Split the single method for granting/revoking key access into two
methods.

Bug: 139091816
Test: cts-tradefed run commandAndExit cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.MixedDeviceOwnerTest#testSetKeyGrant

Change-Id: I495f35419a5dd1c12e18703f11dd4216a310430d
2019-08-15 04:10:50 +01:00
Xin Li
80860803a4 DO NOT MERGE - Merge qt-dev-plus-aosp-without-vendor (5713463) into stage-aosp-master
Bug: 134405016
Change-Id: I303c0268e8e454b0f0f460eb286812a50c9add88
2019-08-14 12:04:06 -07:00
Makoto Onuki
7d6d9ca359 Don't refer to DeviceIdle from SystemServiceRegistry
In preparation of mainline.

Test: atest cts/tests/tests/batterysaving/src/android/os/cts/deviceidle/DeviceIdleTest.java
Bug: 137763703

Change-Id: Id3088ba65682722ff4c2808bdc86a0ade18a4ab5
2019-08-13 13:28:27 -07:00
Nikita Iashchenko
1e9a1c8c20 API updated for ICU4J 64.2
Expose new stable APIs from ICU 64

Bug: 125283072
Test: m api-stubs-docs-update-current-api droid
Change-Id: Id689aab0d4387725929ee41d80f3e8a26c0810fa
2019-08-13 18:36:46 +01:00
Minche Li
5f69c2ed0d Merge "Support A11y button on multi-display" 2019-08-13 01:14:31 +00:00
Narayan Kamath
bb748c592b Merge "AutofillFieldClassificationService: Mark constructor as @SystemApi" 2019-08-12 12:34:12 +00:00
Joanne Chung
9e247b1564 Move disable autofill from AutofillManagerService to AutofillOptions.
Bug: 125007037
Test: atest CtsAutoFillServiceTestCases
Change-Id: Ib139cffaced15f5a458cb07e8b6cc1502492c9a5
2019-08-12 19:04:52 +08:00
Josh Imbriani
21ddc7a696 Adding a new overloaded API for synthesizeToFile taking a FileDescriptor
instead of a File object

Bug: 131276728
Test: "run cts -m CtsSpeechTestCases" Added new CTS Test case ag/7932820
Change-Id: I4fb23150d17aa8a96f57389c28205df9af45fc20
2019-08-09 15:38:24 -07:00
Jeff Sharkey
c08da86cb7 Merge "Wait until any background events are processed." 2019-08-09 22:13:33 +00:00
Jeff Sharkey
7c2a8686c6 Merge changes from topic "callz"
* changes:
  Expand ContentProviderOperation to support call().
  Add nullability annotations for current behavior.
2019-08-09 16:01:23 +00:00
Narayan Kamath
51f3f610f9 AutofillFieldClassificationService: Mark constructor as @SystemApi
The class is abstract and marked as a SystemApi, but there's real
way to use it while compiling against the system_sdk unless the
constructor is also public.

Test: make update-api
Test: make
Bug: 138589409
Change-Id: Id1fe158ec55b299325bfbc16ab1ea33cd53fc123
2019-08-09 15:17:26 +01:00
Jeff Sharkey
7d6fd4b82a Expand ContentProviderOperation to support call().
ContentProviderOperation has long supported basic operations like
insert(), update(), and delete(), but it was never extended to
support the general-purpose call() method.

This change adds support for call(), including configuration of the
extras Bundle using back-references to other operations.  In
addition, the output Bundle from call() can be used for
back-references from other operations.

Clean up how back-references are handled internally; we now store
either a literal value in each slot, or an explicit BackReference
instance which we can "instanceof" check to resolve when needed.

Also add withExceptionAllowed() capability, which can be used to
catch and report the failure of a single operation while allowing
any subsequent operations to proceed.  Adds various nullability
annotations to reflect the behavior of all existing logic.

Bug: 131598520
Test: atest android.content.cts.ContentProviderOperationTest
Test: atest android.content.cts.ContentProviderResultTest
Change-Id: I1744bf8fc1ad048aa96460d487c2867c4c81d7b3
2019-08-08 14:40:29 -06:00
Jeff Sharkey
6304d7b894 Add nullability annotations for current behavior.
No behavior changes.  This paves the way for a future CL that is
will be adding a handful of new APIs.

Bug: 131598520
Test: atest android.content.cts.ContentProviderOperationTest
Test: atest android.content.cts.ContentProviderResultTest
Change-Id: I1a6f53e79009ba88b13844a6c8ca8c09e33ee5b2
2019-08-08 14:27:38 -06:00
TreeHugger Robot
07c31f00ca Merge changes Ie6c38a4c,I436609d9
* changes:
  Makes settings provider queryable by all
  Makes forceQueryable public
2019-08-08 20:12:28 +00:00
Patrick Baumann
f1d326e205 Makes forceQueryable public
Bug: 136675067
Test: Builds successfully
Change-Id: I436609d9d6ffee3823ee88a178b0ac65c4bd489d
2019-08-08 10:35:27 -07:00
Abhijeet Kaur
57fb463e01 Merge "Make USE_BUGREPORT_API more widely available." 2019-08-08 10:53:31 +00:00
Abhijeet Kaur
943c64b25f Make USE_BUGREPORT_API more widely available.
Previously this flag was in FeatureFlag for Settings, as only Settings
was using this flag. Now, we also need to use this feature flag while
migrating bugreports(from other callers such as Power buttons) to use the API.

In order to avoid flag duplication, adding it here, as Settings can
still access this feature flag.

Bug: 136548292
Test: Settings can still access this feature flag as before
Test: Builds and bugreports generated from Settings use the API flow
when the flag is turned on

Change-Id: Ia7409fc821e1438382e9b59c523ab72de519e861
2019-08-07 16:49:56 +01:00
vichang
68dd1b1995 Merge "API updated for ICU4J 64.2" am: 0473b08b6b am: 7adad11ea2 am: 10bba25eb0 am: e5582d92d6
am: e2575b08bf

Change-Id: Ib9f9141aea6773f7979bb87d72921a54f371d3ff
2019-08-07 05:12:54 -07:00
vichang
e5582d92d6 Merge "API updated for ICU4J 64.2" am: 0473b08b6b am: 7adad11ea2
am: 10bba25eb0

Change-Id: I9e1fb40afb8ee4671debe3aadeb904040eb10bed
2019-08-07 04:34:43 -07:00
vichang
10bba25eb0 Merge "API updated for ICU4J 64.2" am: 0473b08b6b
am: 7adad11ea2

Change-Id: I20f3e678fd71bb1472b8aff4f7c9a5e927fb5e01
2019-08-07 04:24:03 -07:00
vichang
7adad11ea2 Merge "API updated for ICU4J 64.2"
am: 0473b08b6b

Change-Id: Ic7b3702100d989abdc387a91f19c9017f35948e9
2019-08-07 04:13:35 -07:00
vichang
0473b08b6b Merge "API updated for ICU4J 64.2" 2019-08-07 10:38:20 +00:00
Aurimas Liutikas
573465352b Merge "Update API signature file to reflect the correct logp nullability" am: e6024b34ed am: 3b7ee21b3d am: 1b9305b712 am: c82b4d3f2b
am: 904bba5e1e

Change-Id: Ie65e22fb770864346df527c144b52f700b228502
2019-08-06 17:16:10 -07:00