Commit Graph

25832 Commits

Author SHA1 Message Date
Hai Zhang
aedc3ab3cf Add RoleControllerManager.isApplicationVisibleForRole().
Settings doesn't actually need to know whether an application
qualifies for a role, but only whether the default app setting should
be visible for an application. Qualification and visibility differs in
cases such as FallbackHome inside Settings which is a qualifying home
activity but should never be shown in default apps UI.

Fixes: 138636320
Test: manual
Change-Id: I216195c64a7b106e2769b11c1a998741a77fdce2
2019-08-26 15:05:06 -07: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
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
Taesu Lee
3e0a0702fe Merge "Merge "Added the min match system config for loose phone numbers comparison" into qt-dev-plus-aosp am: 41f788ca29" into qt-r1-dev-plus-aosp am: 4c0e49b0b7
am: 37dc6c3c64

Change-Id: Ia827cfda98d708599e682485a32d6a5596406b22
2019-08-04 01:46:02 -07:00
Taesu Lee
7cd93b77d6 Merge "Added the min match system config for loose phone numbers comparison" into qt-dev-plus-aosp
am: 41f788ca29

Change-Id: I41506717c3b684b9ad81858ab9da13109a5a3504
2019-08-04 00:52:19 -07:00
TreeHugger Robot
41f788ca29 Merge "Added the min match system config for loose phone numbers comparison" into qt-dev-plus-aosp 2019-08-03 01:27:02 +00:00
Eran Messeri
49ed3232cf DPM: Add API for granting apps access to keys
Add a DevicePolicyManager method for granting (or revoking) access to a
key for a specific package.

This prevents apps from having to call KeyChain.choosePrivateKeyAlias to
get a grant for the alias.
The motivation for this change is that apps that run as a background
service do not have an Activity to pass into
KeyChain.choosePrivateKeyAlias any more as they are not allowed to
interact with users.
That creates a situation where even though the Device Policy Client
would silently grant the requesting app access to a KeyChain key, the
app still has to provide an Activity.

With this change, the DPC can pre-grant the app access to a key such
that the app does not need to call KeyChain.choosePrivateKeyAlias and
can instead just call KeyChain.getPrivateKey

BUG: 137921026
Test: atest CtsDevicePolicyManagerTestCases:com.android.cts.devicepolicy.MixedDeviceOwnerTest#testSetKeyGrant
Change-Id: I37a75e1f802e223740eb41f055224baba9aa3b3a
2019-08-02 10:52:41 +01:00
Dheeraj Shetty
2a3eab7dc8 CarrierConfig: get configs by prefix am: 1c446a22d4 am: 39bcf023a0
am: c47fb3bfd4

Change-Id: Ibced0935bff6b64011d797423a519f7ec0c4f2b3
2019-08-01 00:42:48 -07:00
Dheeraj Shetty
c47fb3bfd4 CarrierConfig: get configs by prefix am: 1c446a22d4
am: 39bcf023a0

Change-Id: I71f18e46c83734c73d0e180055bb00aac61f13cf
2019-08-01 00:31:58 -07:00
Dheeraj Shetty
39bcf023a0 CarrierConfig: get configs by prefix
am: 1c446a22d4

Change-Id: Ia39370cb55a8418f5ce600bf4e58a62a985a53ce
2019-07-31 21:57:26 -07:00
Treehugger Robot
a08cc8306f Merge changes from topic "ims_cc"
* changes:
  ims: API to update ims carreir configs
  CarrierConfig: get configs by prefix
  Add new carrier config for supporting WPS over IMS
2019-08-01 04:35:50 +00:00
Dheeraj Shetty
1c446a22d4 CarrierConfig: get configs by prefix
Get configs using the prefix of components like gps, wifi or ims.
Add a new ims class for configs related to ims stack.

Bug: 132286782
Test: Build

Change-Id: Ib20ac3b3c55156913284268439102fba7e96dad7
2019-08-01 00:20:06 +00:00
Brad Ebinger
c78744fd91 Merge "Add getSlotId API for ImsFeature and docs changes" am: 375c74a865 am: 7c50667bc6 am: 6dd4f55e66 am: f3e49bbf3a
am: f4eaabf871

Change-Id: Ic058c651c6d0fff21037d45b238bdd8e2f841640
2019-07-31 13:28:33 -07:00
TreeHugger Robot
422eb73fb7 Merge "[WifiManger] add API to get suggestion" 2019-07-31 20:23:27 +00:00