Commit Graph

25843 Commits

Author SHA1 Message Date
Jayant Chowdhary
70809a1847 Merge "Add SYSTEM_CAMERA capability to camera2 and define @SystemApi SYSTEM_CAMERA permissions." 2019-08-21 19:53:16 +00: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
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
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
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
Aurimas Liutikas
c82b4d3f2b Merge "Update API signature file to reflect the correct logp nullability" am: e6024b34ed am: 3b7ee21b3d
am: 1b9305b712

Change-Id: Ib162cc3ebfa5c8b1a3808a7dc8776d93aaa3b3e1
2019-08-06 16:02:56 -07:00
Aurimas Liutikas
1b9305b712 Merge "Update API signature file to reflect the correct logp nullability" am: e6024b34ed
am: 3b7ee21b3d

Change-Id: I90b48b634a67c1f9a4cd0be9303fd514e1c12bf6
2019-08-06 15:38:16 -07:00
TreeHugger Robot
115eead20a Merge "MediaSessionManager: Use Executor instead of Handler" 2019-08-06 22:17:19 +00:00
Aurimas Liutikas
3b7ee21b3d Merge "Update API signature file to reflect the correct logp nullability"
am: e6024b34ed

Change-Id: I2407c4c19d1552f456412f22ae13e9e6b036a190
2019-08-06 15:03:05 -07:00
TreeHugger Robot
c7ccc2cd5e Merge "Make AttestedKeyPair constructable" 2019-08-06 18:17:53 +00:00
Steven Liu
80161fc4cb Merge "change from @hide to @SystemApi for wifi in CarrierConfig" 2019-08-06 16:47:00 +00:00
Aurimas Liutikas
6adb1adfb2 Update API signature file to reflect the correct logp nullability
A matching patch to the fix in java.util.logging.Logging nullability.
See https://android-review.googlesource.com/c/platform/libcore/+/1096198/

Test: make -j update-api
Change-Id: I0b653de474b6162764cfa711eb967aada4c0ee50
2019-08-06 15:05:12 +00:00
Eran Messeri
390539d11b Make AttestedKeyPair constructable
Make the constructor for AttestedKeyPair public so instances of it can
be created for testing.

Bug: 138409426
Test: That it compiles
Change-Id: Iab8fbf1ad2293a91347701eb67631a8f3a3bd3fa
2019-08-06 15:55:17 +01:00
Taesu Lee
b89c2984bb Added the min match system config for loose phone numbers comparison
Specific min match is required for each country.

Test: atest PhoneNumberUtilsTest

Change-Id: I7f9e9ad824d44f2ebf8367beb6ec337e3eb3a8ad
Merged-In: I7f9e9ad824d44f2ebf8367beb6ec337e3eb3a8ad
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
Bug:134246556
(cherry picked from commit d65aafc748)
2019-08-05 23:45:37 +00:00
Hui Yu
483e6e3731 Merge "Added the min match system config for loose phone numbers comparison" 2019-08-05 21:41:56 +00:00
Taesu Lee
c180e46fe5 Added the min match system config for loose phone numbers comparison
Specific min match is required for each country.

Test: atest PhoneNumberUtilsTest

Change-Id: I7f9e9ad824d44f2ebf8367beb6ec337e3eb3a8ad
Merged-In: I7f9e9ad824d44f2ebf8367beb6ec337e3eb3a8ad
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
Bug:134246556
2019-08-05 21:27:36 +00:00
TreeHugger Robot
7682e5d196 Merge "DPM: Add API for granting apps access to keys" 2019-08-05 17:48:43 +00:00
Jaewan Kim
95c783e2d2 MediaSessionManager: Use Executor instead of Handler
Bug: 138648566
Test: Build
Change-Id: I89a612cb1408dfb2cc4f624c7e0f8c8a55e0a732
2019-08-05 16:56:49 +09:00