Commit Graph

25919 Commits

Author SHA1 Message Date
Brad Ebinger
18206aecea Merge "Re-deprecating Capabilities in ImsFeature" am: f4cd3de77a am: 36d3aa0e02 am: 86d97445cf
am: 384b50304f

Change-Id: Ib8d2e1d1184a168dee79ac3e31b6a46f4c0b3ac5
2019-09-06 16:09:32 -07:00
Brad Ebinger
86d97445cf Merge "Re-deprecating Capabilities in ImsFeature" am: f4cd3de77a
am: 36d3aa0e02

Change-Id: Id9ea164e537b6f12b2af02f2833b0f95d3391e1c
2019-09-06 14:33:57 -07:00
Brad Ebinger
f4cd3de77a Merge "Re-deprecating Capabilities in ImsFeature" 2019-09-06 18:55:17 +00:00
Evan Rosky
4c67d2678e Merge changes from topic "unify_window_resize_1"
* changes:
  Unify Window resize (1/N)
  Remove TaskRecord.updateOverrideConfig
2019-09-05 22:28:52 +00:00
Brad Ebinger
98c0e000eb Re-deprecating Capabilities in ImsFeature
Readding the @deprecated javadoc to Capabilities as it is valid
to @hide a superclass of a @SystemApi.

Bug: 138990145
Test: manual
Change-Id: I1749aa3f09b7782fd0d665238be4c288a33536ea
2019-09-05 11:18:37 -07:00
Julia Reynolds
5cb8d5a6c3 Address API review feedback
Make methods fully public, add documentation, swap what method is public

Test: make
Fixes: 139833596
Bug: 138589409
Change-Id: If39d6423efedcf8578dc2942274f6fbb341d164a
2019-09-05 16:22:29 +00:00
TreeHugger Robot
d8c549a0e9 Merge "Add ability to get soundtrigger props from dsp" 2019-09-04 23:59:05 +00:00
Patrick Huang
d1c89a2e35 Merge "Add TelephonyManager APIs to take physical slotIndex - getSimCardState - getSimApplicationState" 2019-09-04 22:27:50 +00:00
Patrick Huang
f7f87dd1c9 Add TelephonyManager APIs to take physical slotIndex
- getSimCardState
- getSimApplicationState

Bug: 134627366
Test: Manual test on device
Change-Id: I72612afb9f8ff3d898db99afaaee0c0d3654f754
2019-09-04 13:14:41 -07:00
TreeHugger Robot
fcc598d1e7 Merge "Remove isAutofillDisabledLocked from test api." 2019-09-04 12:52:54 +00:00
Jordan Liu
0beff21dae Merge "Change CellBroadcast APIs to SystemApi" am: 82454e029f am: d41a61df80
am: 6b79955db4

Change-Id: I1a40ce3f449b474b1d6c9d9ba5f1bedd276b4efb
2019-09-03 14:28:34 -07:00
Jordan Liu
6b79955db4 Merge "Change CellBroadcast APIs to SystemApi" am: 82454e029f
am: d41a61df80

Change-Id: I18a2935b4ab131032160313844d1955d7f92ae4f
2019-09-03 14:12:40 -07:00
Jordan Liu
d41a61df80 Merge "Change CellBroadcast APIs to SystemApi"
am: 82454e029f

Change-Id: Ic39446ab84f910b0f5225ad42f061e2a525ec868
2019-09-03 13:52:14 -07:00
Jordan Liu
e4141f0e8b Change CellBroadcast APIs to SystemApi
Bug: 135956699
Test: atest SmsManagerPermissionTest
Change-Id: Ibbb22505a80567d1c08cffe9b7a7fdbd10890abe
Merged-In: Ibbb22505a80567d1c08cffe9b7a7fdbd10890abe
2019-09-03 11:32:58 -07:00
Jordan Liu
9cdab3bf86 Merge "Change CellBroadcast APIs to SystemApi" 2019-08-31 04:56:14 +00:00
Yin-Chia Yeh
3eb79d6357 Camera: camera service implementation of camera audio restriction API
Changed the binder call return value to the resulting
audio restriction mode.
Also added audio restriction API support for legacy shim
path.

Test: new CTS tests
Bug: 135676184
Change-Id: I412e8f53705f2401995ff828bfdc9a8598dc305a
2019-08-30 14:44:56 -07:00
Yin-Chia Yeh
51d8516b7a Camera: add camera audio restriction API
Test: new CTS tests
Bug: 135676184
Change-Id: I4f28d28972b9ced0fee0afe996ef1c4f68d0d2c9
2019-08-30 14:44:46 -07:00
Jordan Liu
657ef5a7e8 Change CellBroadcast APIs to SystemApi
Bug: 135956699
Test: atest SmsManagerPermissionTest
Change-Id: Ibbb22505a80567d1c08cffe9b7a7fdbd10890abe
2019-08-30 14:27:39 -07:00
Evan Rosky
dbe2ce5e82 Unify Window resize (1/N)
This decouples the Split and Pinned stack resize flows. The
current goal is to prepare for a leashed resize implementation
for split-screen. For this to work, it needs to be clear
what actual logic belongs to the various docked resizing modes
vs what is for general stack resize or pinned resize. This
also enables PiP and Split to be worked-on in parallel.

As can be seen, general stack resize is actually not required
because freeform and fullscreen modes use task resize.

Bug: 119687367
Test: go/wm-smoke + related CTS
Change-Id: I9cca1910a18b87dda618235e89f2bdc582086f34
2019-08-30 13:56:09 -07:00
TreeHugger Robot
8e6a69c3a2 Merge "Allow apps to collect which appops were noted" 2019-08-30 18:53:22 +00:00
Mady Mellor
8c209679f5 Merge "qt-r1-bubbles-dev @ build 5835883" 2019-08-30 18:11:37 +00:00
Nicholas Ambur
1aa4b4b779 Add ability to get soundtrigger props from dsp
exposes sound trigger module properties to privileged
system apps with MANAGE_SOUND_TRIGGER permission

Bug: 139071862
Test: GTS test confirmed API accessible and providing valid data
Change-Id: Iec7ba6fc59912f44341fbe8d7f99193b9ead52f0
2019-08-30 10:10:18 -07:00
Aurimas Liutikas
de0ebb082e Merge "Add missing nullability annotations." into stage-aosp-master am: 85c0a5a2be
am: ed5beec21b

Change-Id: I202951d51820be47b9195734601830553215bdd7
2019-08-30 08:43:01 -07:00
Aurimas Liutikas
ed5beec21b Merge "Add missing nullability annotations." into stage-aosp-master
am: 85c0a5a2be

Change-Id: Ic9ea2b9840fbb678bbb6ab77038415581feba918
2019-08-30 08:35:52 -07:00
Philip P. Moltmann
2b08aafc14 Allow apps to collect which appops were noted
If private user data is send to an app the data provider should note an
app-op. This change adds a new API AppOpsManager#setNotedAppOpsCollector
that allows an app to get notified every time such an private data access
happens.

This will allow apps to monitor their own private data usage. Esp. with
big, old apps, distributed teams or 3rd party libraries it might not always
be clear what subsystems access private data.

There are three different situations how private data can be accessed and
an app op is noted:

1. Private data access inside a two-way binder call.
E.g. LocationManager#getLastKnownLocation. When we start a two way
binder transaction, we remember the calling uid via
AppOpsManager#collectNotedAppOps. Then when the data providing code
calls AppOpsManager#noteOp->AppOpsManager#markAppOpNoted the noted
app-op is remembered in
AppOpsManager#sAppOpsNotedInThisBinderTransaction. Then when returning
from the binder call, we add the list of noted app-ops to the
reply-parcel via AppOpsManager#prefixParcelWithAppOpsIfNeeded. On the
calling side we check if there were any app-ops noted in
AppOpsManager#readAndLogNotedAppops and then call the collector while
still in the binder code. This allows the collector e.g. collect a stack
trace which can be used to figure out what app code caused the
private data access.

2. Very complex apps might do permissions checks internal to themself.
I.e. an app notes an op for itself. We detect this case in
AppOpsManager#markAppOpNoted and immediately call the collector similar
to case (1).

3. Sometimes private data is accessed outside of a two-way binder call.
E.g. if an app registers a LocationListener an app-op is noted each time
a new location is send to the app. In this case it is not clear to the
framework which app-action triggered this app-op-note. Hence the data
provider has to describe in a AsyncNotedAppOp object when an why the
access happened. These objects are then send to the system server via
IAppOpsService#noteAsyncOp and then the collector in the app. There are
rare cases where a private data access happens before the app is running
(e.g. when a geo-fence is triggered). In this case we cache a small
amount of AsyncNotedAppOps (in AppOpsService#mUnforwardedAsyncNotedOps)
and deliver them when the app is ready for these events (in
AppOpsManager#setNotedAppOpsCollector).

Test: atest CtsAppOpsTestCases (includes new tests covering this
                                functionality)
Bug: 136505050
Change-Id: I96ded4a8d8d9bcb37a4555d9b1281cb57945ffa9
2019-08-30 08:18:50 -07:00
Aurimas Liutikas
34c56bcf4a Merge "Add missing nullability annotations." 2019-08-30 15:14:37 +00:00
Mady Mellor
06b770cf14 qt-r1-bubbles-dev @ build 5835883
Test: presubmit setup on source branch

Bug: 126945401
Bug: 128932906
Bug: 129158983
Bug: 130237686
Bug: 130250809
Bug: 130442248
Bug: 131267438
Bug: 131609280
Bug: 131692350
Bug: 131849856
Bug: 133444037
Bug: 134064116
Bug: 134064858
Bug: 134070807
Bug: 134077101
Bug: 134090085
Bug: 134155107
Bug: 134423445
Bug: 134512898
Bug: 134514210
Bug: 134514227
Bug: 134734945
Bug: 134960381
Bug: 134989736
Bug: 135214687
Bug: 135280077
Bug: 135472021
Bug: 135475155
Bug: 135487618
Bug: 135488406
Bug: 135518045
Bug: 135633218
Bug: 136034310
Bug: 136150954
Bug: 136199542
Bug: 136538998
Bug: 137201711
Bug: 137213469
Bug: 137214359
Bug: 137214536
Bug: 137233453
Bug: 137876221
Bug: 138301618
Bug: 138445026
Bug: 138659213
Bug: 138749133
Bug: 138799651
Bug: 138801505
Bug: 138941969
Bug: 139002444
Bug: 139025304
Bug: 139816141
Change-Id: Ic271a6a0f0803941dd5a84124dabf4d8c5fcc755
2019-08-29 20:24:52 -07:00
TreeHugger Robot
7ce605ebe9 Merge "Updated onSharedPreferenceChanged listener behavior." 2019-08-30 03:10:08 +00:00
Aurimas Liutikas
1da3bde08d Add missing nullability annotations.
To prepare for enabling MissingNullability Metalava check this CL
works on adding missing nullability issues that metalava flags if
we tell it to flag new things since API 29.

This is not a complete CL, mostly addresses public api and
toString/equals for @SystemApi

Exempt-From-Owner-Approval: Large scale nullability clean up
Bug: 124515653
Test: make -j checkapi
Merged-In: I109260842cfc25f06e40694997fcbb4afa02c867
Change-Id: I109260842cfc25f06e40694997fcbb4afa02c867
2019-08-30 00:16:24 +00:00
Aurimas Liutikas
4d1699da48 Add missing nullability annotations.
To prepare for enabling MissingNullability Metalava check this CL
works on adding missing nullability issues that metalava flags if
we tell it to flag new things since API 29.

This is not a complete CL, mostly addresses public api and
toString/equals for @SystemApi

Exempt-From-Owner-Approval: Large scale nullability clean up
Bug: 124515653
Test: make -j checkapi
Change-Id: I109260842cfc25f06e40694997fcbb4afa02c867
2019-08-29 17:15:44 -07:00
Aurimas Liutikas
00be951a08 Add missing nullability annotations.
To prepare for enabling MissingNullability Metalava check this CL
works on adding missing nullability issues that metalava flags if
we tell it to flag new things since API 29.

This is not a complete CL, mostly addresses public api and
toString/equals for @SystemApi

Exempt-From-Owner-Approval: Large scale nullability clean up
Bug: 124515653
Test: make -j checkapi
Merged-In: I109260842cfc25f06e40694997fcbb4afa02c867
Change-Id: I109260842cfc25f06e40694997fcbb4afa02c867
2019-08-30 00:14:44 +00:00
TreeHugger Robot
0ac25af13a Merge "Removing @Deprecated && @removed method from KeyguardManager." 2019-08-29 20:32:46 +00:00
George Mount
44846f0c70 Merge "Add test API to change the exit transition timeout." 2019-08-28 21:05:52 +00:00
Treehugger Robot
1953ea490f Merge "SDK API doesSwitchModemConfigTriggerReboot" 2019-08-28 17:51:50 +00:00
TreeHugger Robot
47114169b7 Merge "Add RoleControllerManager.isApplicationVisibleForRole()." 2019-08-28 11:19:50 +00:00
Tony Mak
33e979cc99 Merge "Add TYPE_LINKS_GENERATED and make ... TextClassificationSessionId.flattenToString() public" 2019-08-28 11:03:48 +00:00
George Mount
dccc068f09 Add test API to change the exit transition timeout.
Bug: 139458376

Allows tests to increace the exit transition timeout so that
cloud devices don't finish before the exit transition completes.

Test: ActivityTransitionTest
Change-Id: Ib94086f5ab06ff8172b80b26260e41158d428b0c
2019-08-27 10:47:23 -07:00
Tony Mak
a2ffa37d38 Add TYPE_LINKS_GENERATED and make ...
TextClassificationSessionId.flattenToString() public

TextClassificationSessionId.flattenToString() is public, so that
text classifiers can log the session ID as a string.

Also, fix toString() method in TextClassifierEvent.

Bug: 124437773

Test: Added CTS for flattenToString().
Test: Checked toString output.

Change-Id: If615703a0bdb3762b05da504b3883f85daf17afe
2019-08-27 15:23:08 +00:00
TreeHugger Robot
f468327f9f Merge "Deprecated APIs related to ActivityGroup" 2019-08-27 13:53:38 +00:00
Charles Chen
c380f0279c Deprecated APIs related to ActivityGroup
Since ActivityGroup logic has been deprecated, it does not make sense to
maintain related APIs in Activity. Deprecate them and make developers
to use fragment APIs or APIs without fromChild suffix version.

Bug: 137825207
Test: build, flash and presubmit
Change-Id: Ia0b6e78079efd4734cacc52bf2c708f628ef323b
2019-08-27 16:43:02 +08:00
Varun Shah
5d2049f2f7 Updated onSharedPreferenceChanged listener behavior.
The onSharedPreferenceChanged listener will now also be called on
Editor#clear with a null key.
This change is gated behind a flag using the new app compat framework.

Removed the OnSharedPreferencesClear listener interface.

Bug: 119147584
Bug: 138293946
Test: atest android.content.cts.SharedPreferencesTest
Change-Id: Ieea168eb40afb8f1b5830f1541be20d93d6f94b5
2019-08-26 15:26:24 -07:00
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
Long Ling
ba9b991d1e Merge "DeviceConfig: Add Name space and keys for Display Manager" 2019-08-26 21:59:22 +00:00
TreeHugger Robot
254ebf6127 Merge "AttestedKeyPair: Address API review comments" 2019-08-24 10:31:29 +00:00
Nagaraja
49ba074773 Merge "Added Part & Addr Constants." am: f5d5de8a0f am: 633db92447 am: 40efe816dd am: e83d4f6c7d
am: f7db1c403e

Change-Id: I2acd0021601741c9a7975f900d5d8ea36c4124cf
2019-08-24 01:44:24 -07:00
TreeHugger Robot
4b7b1af6b1 Merge "Make TextClock.refresh() a public API" 2019-08-24 06:06:55 +00:00
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
Eran Messeri
e7a65b65e5 AttestedKeyPair: Address API review comments
Make AttestedKeyPair c'tor accept a List<Certificate> rather than
Certificate[] to match the getter method on this class.

To make it easier to use this class from other framework code I've
re-instantiated the c'tor with a certificate array which will
convert the array to a list.

Bug: 139092002
Test: cts-tradefed run commandAndExit cts-dev -m CtsDevicePolicyManagerTestCases -t  com.android.cts.devicepolicy.MixedDeviceOwnerTest#testKeyManagement
Change-Id: Ie80dcb28f112efa89d3cc6fdceb1b9e5e26c58b1
2019-08-23 15:33:16 +01:00
Nagaraja
e83d4f6c7d Merge "Added Part & Addr Constants." am: f5d5de8a0f am: 633db92447
am: 40efe816dd

Change-Id: I533c0f7c3315bc5094ce4324f907c93b5b16b9a4
2019-08-23 03:18:47 -07:00