Commit Graph

1997 Commits

Author SHA1 Message Date
Erik Wolsheimer
11d471fe33 Merge "Add application-level 'attributionsAreUserVisible' attribute" into sc-dev am: dba8fda0b3 am: e726e33c83 am: 6c705310a9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14591918

Change-Id: I56ed0f338b4ed074be961ac768f785ee3c51c241
2021-05-21 01:08:25 +00:00
Erik Wolsheimer
e726e33c83 Merge "Add application-level 'attributionsAreUserVisible' attribute" into sc-dev am: dba8fda0b3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14591918

Change-Id: I4743576d22ea946f8ab5ae582f330f340c9b84e1
2021-05-21 00:36:01 +00:00
Erik Wolsheimer
afbc4fee9d Add application-level 'attributionsAreUserVisible' attribute
Bug: 176902658
Test: Manual
Change-Id: I56dc9caa6d98b75bc6732bbca0e5adc67bb745e5
2021-05-20 21:07:14 +00:00
Anton Hansson
f763844831 Merge "Update API txt following a metalava fix" into sc-dev am: 0d41eef54b am: fdb544e392 am: f93781c371
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14640410

Change-Id: I142c7c8fb0428e63716b5806b5438485fdb2e0e4
2021-05-20 14:07:17 +00:00
Anton Hansson
fdb544e392 Merge "Update API txt following a metalava fix" into sc-dev am: 0d41eef54b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14640410

Change-Id: Ia50e9fcc76d65479b93d210659f65b2e68d07bc3
2021-05-20 13:58:29 +00:00
Anton Hansson
0d41eef54b Merge "Update API txt following a metalava fix" into sc-dev 2021-05-20 13:39:05 +00:00
Anton Hansson
eaf26d5a41 Update API txt following a metalava fix
The txt was previously referencing VcnGatewayConnectionConfig.MIN_MTU_V6
which isn't part of the API. The API txt should be complete on its own,
so inline the value instead.

Similar case for appsearch annotations referencing non-API values.

Bug: 188527836
Test: m checkapi
Change-Id: Ideb34ab78c9a8fc4d589e58e810316b6f36b7a43
2021-05-20 11:14:05 +01:00
Hai Zhang
4fa99b7824 Merge "Add user privacy sensitivity APIs." into sc-dev am: c06af26cc0 am: 6046b7c865 am: 9736946594
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14648047

Change-Id: Id0d61f0c3d77d34aa94198fa2c0b25fae4479432
2021-05-20 05:16:01 +00:00
Rubin Xu
a53a703b09 Merge "Add device admin restrictions for mic/cam toggles" into sc-dev am: e25a1b3d91 am: 819e5e93f5 am: 7057db019a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14254683

Change-Id: I6d9cdd544aafa173375bac99182319f4da971c20
2021-05-20 04:58:32 +00:00
TreeHugger Robot
32149cd242 Merge "Add a permission for CDM apps to start FGS from the background (2nd try)" into sc-dev am: c6850e0a9f am: cc99a51dd5 am: 8e9c496760
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14607397

Change-Id: Ic35fbe65605b73b5abde318e8de945e69609b910
2021-05-20 04:46:14 +00:00
Rahul Sabnis
1fda5f6890 Merge "Update BluetoothDevice#setAlias based on API council feedback: now accepts null input and returns an int (with error codes). Update CompanionDeviceManager#canPairWithoutPrompt to take a UserHandle instead of an int. Adds BluetoothStatusCodes class for all new Bluetooth error / success codes. Moved OOB and hci disconnect constants to the new BluetoothStatusCodes class." into sc-dev am: b8cfbebbec am: 423ee1c59f am: 133f9e4da4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14457502

Change-Id: I25073728ce8966671722951b265ee9a6132308d8
2021-05-20 04:21:25 +00:00
TreeHugger Robot
214e26eced Merge changes from topic "revert-13738532-client_suggestions_fillrequest-sc-dev-EQZRQWLQUO" into sc-dev
* changes:
  [DO NOT MERGE] Remove the Client Suggestions APIs
  [DO NOT MERGE] Remove Client suggestions implementations
2021-05-20 01:23:24 +00:00
Andrea Ambu
3e6019539b Merge "speech: Add #isOnDeviceRecognitionAvailable" into sc-dev am: cd145f1b9a am: f2b38b9599
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14530956

Change-Id: Ie3ae58c42ccebca5b60d4a282bd80459f31d6373
2021-05-20 00:20:57 +00:00
Adam He
366a43cc49 Merge "Change dictionary results to use a bundle instead since it is a structured result." into sc-dev am: c1b7cc6ab5 am: e28429ee52
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14536510

Change-Id: I8f30e546238833da431b7af49304b74e9f480fb4
2021-05-20 00:18:06 +00:00
TreeHugger Robot
8baba52f11 Merge "Quick change to add default to deprecated callback method so implementors can move to new api." into sc-dev am: 0b9af71d1e am: 7844e5d8dd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14535063

Change-Id: I8beed957f338fa500659ce6064a0ca82069a753e
2021-05-20 00:17:50 +00:00
Sudheer Shanka
c569e8f40e Merge "Revert "Add API to allow apps with location permission to access data blobs."" into sc-dev am: 252eef4aa9 am: c0d844908e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14536507

Change-Id: I141dbc0077deaf322201c72126a318de02be81bd
2021-05-19 23:25:43 +00:00
Jeff Sharkey
3e006db10d Merge changes from topic "may15" into sc-dev am: 63a1453832 am: b1b4de9ed7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14515460

Change-Id: I2d1036ca3b7876e5f07c267ae8b884368d60c599
2021-05-19 22:47:24 +00:00
Hai Zhang
56c0aa6573 Add user privacy sensitivity APIs.
Bug: 188435815
Test: presubmit
Change-Id: I5925beca072054bec5db86946fc0243ab8f9f17a
2021-05-19 20:39:40 +00:00
Rubin Xu
e25a1b3d91 Merge "Add device admin restrictions for mic/cam toggles" into sc-dev 2021-05-19 18:03:36 +00:00
TreeHugger Robot
c6850e0a9f Merge "Add a permission for CDM apps to start FGS from the background (2nd try)" into sc-dev 2021-05-19 16:27:04 +00:00
Rahul Sabnis
b8cfbebbec Merge "Update BluetoothDevice#setAlias based on API council feedback: now accepts null input and returns an int (with error codes). Update CompanionDeviceManager#canPairWithoutPrompt to take a UserHandle instead of an int. Adds BluetoothStatusCodes class for all new Bluetooth error / success codes. Moved OOB and hci disconnect constants to the new BluetoothStatusCodes class." into sc-dev 2021-05-19 16:00:04 +00:00
TYM Tsai
94a825887b [DO NOT MERGE] Remove the Client Suggestions APIs
Bug: 188618287
Test: atest CtsAutoFillServiceTestCases
Change-Id: I178e0443278383120d9e6e3321ec96be8e5705c1
2021-05-19 23:24:32 +08:00
TreeHugger Robot
30e3086bbf Merge "Revert "Add a permission for CDM apps to start FGS from the background"" into sc-dev am: d3a796c657 am: 16e9c6ab9b am: d89424c8b5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14555294

Change-Id: Ieee234706ac043917e23d718d48dab47655087a6
2021-05-19 02:57:49 +00:00
Evan Severson
6ab2d13922 Add device admin restrictions for mic/cam toggles
Introduces DISALLOW_CAMERA_TOGGLE and DISALLOW_MICROPHONE_TOGGLE
which are Device Owner restrictions to prevent the user from
turning off global camera & microphone access on a fully-managed
device.

Test: atest DeviceOwnerTest#testSensorToggleRestriction
Test: atest UserRestrictionsTest
Bug: 184927615
Change-Id: I500f1283689497812bd2df606e35abe6d9d91c61
2021-05-18 23:22:38 +01:00
Makoto Onuki
cf4185e20a Add a permission for CDM apps to start FGS from the background (2nd try)
Previously, any apps with a CDM association was allowed to start
foreground services from the background.

Now, only apps with
REQUEST_COMPANION_START_FOREGROUND_SERVICES_FROM_BACKGROUND
(or REQUEST_COMPANION_RUN_IN_BACKGROUND) are allowed to do so.

Bug: 186536261
Test: Manual test with a test app using CDM. With and without these
    permissions.
Test: atest android.permission2.cts.PermissionPolicyTest#platformPermissionPolicyIsUnaltered
Change-Id: Ia03e8af2f730e0a4564d454685ee5463fd36ac63
2021-05-18 12:07:58 -07:00
Andrea Ambu
40ef504bc8 speech: Add #isOnDeviceRecognitionAvailable
Bug: 188055926
Test: CtsVoiceRecognitionTestCases
Change-Id: I6ba1d083005782beedb28313077af041af2ae975
2021-05-18 19:04:46 +00:00
Adam He
c1b7cc6ab5 Merge "Change dictionary results to use a bundle instead since it is a structured result." into sc-dev 2021-05-18 18:49:03 +00:00
TreeHugger Robot
0b9af71d1e Merge "Quick change to add default to deprecated callback method so implementors can move to new api." into sc-dev 2021-05-18 18:46:31 +00:00
Rahul Sabnis
d6b43bb520 Update BluetoothDevice#setAlias based on API council feedback: now
accepts null input and returns an int (with error codes).
Update CompanionDeviceManager#canPairWithoutPrompt to take a
UserHandle instead of an int. Adds BluetoothStatusCodes class for all
new Bluetooth error / success codes. Moved OOB and hci disconnect
constants to the new BluetoothStatusCodes class.

Tag: #feature
Bug: 184714087
Test: atest BluetoothDeviceTest#test_setAlias_getAlias
Change-Id: Ife03506f2cf68800f5824cb5fa94fec8aa34a39c
2021-05-17 16:47:55 -07:00
Sudheer Shanka
252eef4aa9 Merge "Revert "Add API to allow apps with location permission to access data blobs."" into sc-dev 2021-05-17 22:31:53 +00:00
Sudheer Shanka
e9a38062dc Revert "Add API to allow apps with location permission to access data blobs."
This reverts commit e0237fa50b. Reverting
based on the feedback from Permissions and privacy team.

Bug: 158705914
Test: atest --test-mapping apex/blobstore
Change-Id: Id057e8c61dcf9d3d111ab20530a2074083052392
2021-05-17 22:31:09 +00:00
Jeff Sharkey
63a1453832 Merge changes from topic "may15" into sc-dev
* changes:
  Apply "attributionTags" to all component types.
  Apply AttributionSource during Intent delivery.
2021-05-16 17:54:40 +00:00
Jeff Sharkey
5014fbd644 Apply "attributionTags" to all component types.
Components within an application are often a good boundary for
developers to declare "attribution" information, such as an Activity
or Service used to offer a specific sub-feature.

This change expands the "android:attributionTags" manifest attribute
to apply to all component types, and it then automatically configures
the associated Context with Context.createAttributionContext() with
no additional developer action required.  Developers can still
manually use Context.createAttributionContext() to adjust the
attribution tag again if desired.

Bug: 187097694
Test: atest CtsAppOpsTestCases:AttributionTest
Test: atest CtsAppTestCases:android.app.cts.AttributionTagsTest
Change-Id: Ia16c66e7b63bcbfb8c0d7348e9b5d4adb2a1f45d
2021-05-15 12:11:03 -06:00
TreeHugger Robot
d3a796c657 Merge "Revert "Add a permission for CDM apps to start FGS from the background"" into sc-dev 2021-05-15 03:26:29 +00:00
Shubang Lu
8d959fd526 Revert "Add a permission for CDM apps to start FGS from the background"
This reverts commit dc4aa4b86e.

Reason for revert: cause of b/188239482

Change-Id: Iff8d07e48d3521c7b62f6bb64b01712611f886d7
2021-05-15 00:40:04 +00:00
Adam He
9cb16d9a4a Change dictionary results to use a bundle instead since it is a
structured result.

Bug: 187219452
Test: atest CtsTranslationTestCases
Change-Id: I61f62172d8089e1401e95177150ee23b1bee8e96
2021-05-14 17:11:28 -07:00
Ahaan Ugale
083a25ff5b Merge "Make InputMethodInfo#showInInputMethodPicker public." into sc-dev am: 6bf4cb6147
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14489960

Change-Id: I20d6c8e37d649c0438f74bf3650f0a00f461eb69
2021-05-14 16:22:01 +00:00
Ahaan Ugale
6bf4cb6147 Merge "Make InputMethodInfo#showInInputMethodPicker public." into sc-dev 2021-05-14 16:14:00 +00:00
Ahaan Ugale
76bf20fce7 Make InputMethodInfo#showInInputMethodPicker public.
Allows custom Input Method Pickers to exclude relevant IMEs, like the
system picker does now.

Fix: 184890628
Test: atest InputMethodInfoTest InputMethodManagerTest
Change-Id: I20033de2f6679ed8cd538de66e157f737792d847
2021-05-13 20:58:32 -07:00
Adam He
d9641ba9b7 Merge "Removed addValue from TranslationRequest because of potential bug in genrated builder code." into sc-dev am: 0a78fe6d5e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14471493

Change-Id: I91f0a66079e9b75df9f2dbb0cd5c26c89f0104ad
2021-05-13 22:07:00 +00:00
Adam He
0a78fe6d5e Merge "Removed addValue from TranslationRequest because of potential bug in genrated builder code." into sc-dev 2021-05-13 22:03:42 +00:00
Makoto Onuki
3e4eb4bd4a Merge "Add a permission for CDM apps to start FGS from the background" into sc-dev am: 85eb43208f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14531027

Change-Id: Idd7d1f272910034dcb2828ff3a98ed8a04e72b16
2021-05-13 21:26:03 +00:00
Makoto Onuki
85eb43208f Merge "Add a permission for CDM apps to start FGS from the background" into sc-dev 2021-05-13 21:17:44 +00:00
Adam He
f7f45e358d Merge "Make getText() nullable and return null." into sc-dev am: af6aa6ffb7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14444961

Change-Id: I6d54d25388e150fc78d38e5778311f422be64367
2021-05-13 20:55:37 +00:00
Adam He
c8421712cb Quick change to add default to deprecated callback method so
implementors can move to new api.

Bug: 186475868
Test: atest CtsTranslationTestCases
Change-Id: I3cfa2ec09bab37b7db110bf0f140754db4d2329a
2021-05-13 13:53:28 -07:00
Adam He
af6aa6ffb7 Merge "Make getText() nullable and return null." into sc-dev 2021-05-13 20:52:48 +00:00
Makoto Onuki
dc4aa4b86e Add a permission for CDM apps to start FGS from the background
Previously, any apps with a CDM association was allowed to start
foreground services from the background.

Now, only apps with
REQUEST_COMPANION_START_FOREGROUND_SERVICES_FROM_BACKGROUND
(or REQUEST_COMPANION_RUN_IN_BACKGROUND) are allowed to do so.

Bug: 186536261
Test: Manual test with a test app using CDM. With and without these
    permissions.
Change-Id: Ic00aa1c7cfefc37bf89ea3079ef0977aee12499b
2021-05-13 12:21:39 -07:00
TreeHugger Robot
ad5f4753a4 Merge "Un-hide passthrough flag" into sc-dev am: f1cacbbe3a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14512414

Change-Id: Ia5caa252db6370bf7a462da02a0a31c44786998f
2021-05-13 18:19:48 +00:00
Jeff Sharkey
5836d72022 Merge "Emergency workaround to patch over ID shuffling." into sc-dev am: 14f4fe4d01
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14531029

Change-Id: Ib589c7aff5e358a26c7e5ca1a09eb06fbcc30580
2021-05-13 18:12:33 +00:00
TreeHugger Robot
f1cacbbe3a Merge "Un-hide passthrough flag" into sc-dev 2021-05-13 18:11:27 +00:00