Commit Graph

898 Commits

Author SHA1 Message Date
Philip P. Moltmann
fece2436d4 Add attributionTag to audio-recordings
... by switching from packageName/uid/pid to the Identity class.

This allows up to track which parts of the app trigger audio-recordings.

Test: atest CtsAppOpsTestCases
            CtsNativeMediaAAudioTestCases
Fixes: 160150145
Change-Id: I0913a336a862e4a1cb38b9d967cfbdc490513ab0
2021-03-11 08:40:40 -08:00
Bernardo Rufino
11687fae2c Merge "Annotate obscuring opacity getter/setter w/ @FloatRange" into sc-dev 2021-03-09 14:18:28 +00:00
Bernardo Rufino
2ce8b611b1 Annotate obscuring opacity getter/setter w/ @FloatRange
And document accordingly.

Bug: 182215611
Test: Builds
Change-Id: I7727abfba0611e3b56d83d29927ba7052ecb9489
2021-03-09 11:26:59 +00:00
Zoey Chen
7de753143d Merge "[Telephony] Fix the unknown value of ARFCN from -1 to INT.MAX" am: 761614c85f am: 7d90db3c30 am: 8a7ec68660
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1618841

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I55946ad20d50360f3d7df8d2f09bfc6636c753bd
2021-03-09 08:51:19 +00:00
Louis Chang
9992fd7fc0 Merge "New activity launch mode - singleInstancePerTask" into sc-dev 2021-03-09 08:08:16 +00:00
Zoey Chen
761614c85f Merge "[Telephony] Fix the unknown value of ARFCN from -1 to INT.MAX" 2021-03-09 07:06:06 +00:00
Alex Buynytskyy
b92a4f2f37 Merge "API feedback: make Installer v2 API public." into sc-dev 2021-03-09 06:03:44 +00:00
TreeHugger Robot
14ff834581 Merge changes from topic "client_suggestions_fillrequest-sc-dev" into sc-dev
* changes:
  Implements Autofill fill request to support client suggestions
  Adds fill request APIs for the client suggestions
2021-03-09 04:55:55 +00:00
TreeHugger Robot
bc77f26761 Merge "Update TextServicesManager API." into sc-dev 2021-03-09 04:31:24 +00:00
Louis Chang
8846e4d089 New activity launch mode - singleInstancePerTask
Adding a new activity launch mode `singleInstancePerTask` which
is similar to singleTask that the activity is single instance and
can only be created in task root, but still allowed to be created
in multiple documents or tasks.

Also adding meta-data support of apps that targeting on previous SDK.

Bug: 175354896
Test: IntentTests

Change-Id: I4ba3b2ba6d619677f03e67d3b7da1b5d2a79907f
2021-03-09 11:46:07 +08:00
Alex Buynytskyy
0822dbb9b1 API feedback: make Installer v2 API public.
Now the API if finalized, we can make it fully public.

Bug: 181708338
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest
Change-Id: I2f8ec774ee8f19a1925414337e5fe8c875a6774e
2021-03-08 17:44:19 -08:00
Kohsuke Yatoh
f9fa524ff6 Update TextServicesManager API.
- Rename getCurrentSpellChecker to getCurrentSpellCheckerInfo.
- Rename getEnabledSpellCheckersList to getEnabledSpellCheckerInfos.
- Remove getCurrentSpellCheckerSubtype.

This CL is effectively rewriting I2bac96ddafe5e4ac583fc16bf155d67e3d45fc4f
to introduce the following two methods as official APIs.
- getCurrentSpellCheckerInfo()
- getEnabledSpellCheckerInfos()
This CL adds back @UnsupportedAppUsage that were removed in the commit
above.

Bug: 179804789
Test: atest CtsInputMethodTestCases:SpellCheckerTest
Change-Id: Ibf5fbf5fe6f58f999c4af40ae937d68e71def766
2021-03-09 00:21:21 +00:00
Alex Salo
20e43f73b3 Merge "Fix long press auto rotate implementation bug" into sc-dev 2021-03-09 00:15:43 +00:00
Mady Mellor
e15c6dd81a Merge changes from topic "mm_setSuppress" into sc-dev
* changes:
  SysUI changes for setSuppressBubble
  Track locusId visibility in ShellTaskOrganizer
  Add locus id to ActivityRecord / TaskInfo
  Bubble API: suppress bubble
2021-03-08 21:27:36 +00:00
Victoria Lestari
6d9979b671 Update attrs.xml and public.xml to allow a recognition service to be selected as default
Bug: 175429607

Tested: n/a
Change-Id: I35eeda1abdec91ebc756cc507ebfd69081f10a0c
2021-03-08 17:05:35 +00:00
TreeHugger Robot
b6d634df79 Merge "Add a way to set the View ID of the top-level view on a RemoteViews." into sc-dev 2021-03-08 08:53:12 +00:00
Eric Laurent
1fd211144b Merge "AudioManager: address API review comments" into sc-dev 2021-03-08 08:07:57 +00:00
TYM Tsai
dee5a2b902 Adds fill request APIs for the client suggestions
Bug: 172024354
Test: atest CtsAutoFillServiceTestCases
Change-Id: I9d60361afb853568f92b88c9c1929b28195df836
2021-03-08 15:38:03 +08:00
Jeff Sharkey
6595eabb43 Merge "Support for a Context to "renounce" permissions." into sc-dev 2021-03-07 19:05:26 +00:00
Robert Shih
5d1fad30ce Merge "MediaDrm: add ERROR_PROVISIONING_REQUEST_REJECTED" into sc-dev 2021-03-07 06:01:18 +00:00
TreeHugger Robot
10c0b8a7ae Merge "Pass InlineSuggestionsRequest via autofill auth intent extras" into sc-dev 2021-03-06 18:46:41 +00:00
Pavel Grafov
af9181a67d Merge changes from topics "wifi-dpm-grant", "wifi-keychain" into sc-dev
* changes:
  Allow WiFi module to request grants from KeyChain
  DPM API to grant keys to Wifi
2021-03-06 12:12:14 +00:00
Tim Van Patten
3c4b8d977b Merge "GameManager: Add Public API" into sc-dev 2021-03-06 07:17:14 +00:00
Tim Van Patten
7f2f873b59 GameManager: Add Public API
Add the public API to GameManager:
- getGameMode()

Bug: b/178860939
Test: atest CtsGameManagerTestCases
Test: atest GameManagerTests
Test: atest GameManagerServiceTests
Test: atest GameManagerServiceSettingsTests
Change-Id: Ie6030e4ec796c9ecf2c756f24f00e445572accda
2021-03-05 19:59:28 -07:00
Jeff Sharkey
ba2974c8a9 Support for a Context to "renounce" permissions.
Different logical components within an app may have no intention of
interacting with data or services that are protected by specific
permissions.

The new overload added in this change provides the initial mechanism
for a logical component to indicate a set of permissions that should
be treated as "renounced".  Interactions performed through the
returned Context will ideally be treated as if the renounced
permissions have not actually been granted to the application,
regardless of their actual grant status.

This is a low-risk change from a security standpoint, since it can
only reduce the set of permissions that might have been granted to
an app; it can never be used to expand the set of permissions.

Note that this change only provides an initial implementation which
only applies to local permission checks within the app; future
changes will begin wiring this up across process boundaries.

Bug: 181812281
Test: atest CtsContentTestCases:android.content.cts.ContextTest
Change-Id: I96439e5344c85300fb6a0f03e572746c3c96ee95
2021-03-05 18:51:20 -07:00
Svetoslav Ganov
e41ad67f66 Merge "Add APIs for creating an attribution context" into sc-dev 2021-03-06 00:37:44 +00:00
TreeHugger Robot
397e520f79 Merge "Shortcut integration with AppSearch (part 4)" into sc-dev 2021-03-05 23:31:59 +00:00
Pinyao Ting
945823240a Shortcut integration with AppSearch (part 4)
To prevent starving binder thread over synchrounous operation, following
changes were made in this CL:
1, Create oneway apis in aidl
2. Annotation to ensure existing api call are running in WorkerThread

Bug: 180558621
NoNonSdkCheck: ShortcutService is for internal use, not a public api.
It should have been put in block-list in the first place.
Test: no change in functionality, covered by existing unit/cts tests
Change-Id: I17ecbaa7f2da30babec9fd58af7f07d5c0594054
2021-03-05 23:31:25 +00:00
TreeHugger Robot
a807683a65 Merge "Add @RequiresPermission for CDM watch profile use" into sc-dev 2021-03-05 22:46:29 +00:00
TreeHugger Robot
a9171adcbe Merge "Correct API for new sizes in App Widgets." into sc-dev 2021-03-05 22:44:57 +00:00
Pierre Barbier de Reuille
a4f7b7b1d4 Add a way to set the View ID of the top-level view on a RemoteViews.
Bug: 181985606
Test: atest CtsWidgetTestCases:android.widget.cts.RemoteViewsTest
Change-Id: I2bcd16bef6cfa9a1461c519239dd6a31558eca64
2021-03-05 22:20:06 +00:00
Eugene Susla
2db826decf Add @RequiresPermission for CDM watch profile use
Bug: 165951651
Test: presubmit
Change-Id: Id1c3b2656875de07cfc3fd936d528d0410a62aee
2021-03-05 12:34:50 -08:00
Ahaan Ugale
ed0d866aa7 Merge "AF: Add a passwordsActivity attribute." into sc-dev 2021-03-05 20:16:53 +00:00
TreeHugger Robot
71ecb60a5a Merge "Camera: Add multi-resolution image reader and reprocessing support" into sc-dev 2021-03-05 20:14:08 +00:00
Svet Ganov
232636b32e Add APIs for creating an attribution context
Test: Follow up CL (tracked in the bug below)

bug:158792096

Change-Id: Iecc9e5e52ce130df0fedee18050e2779c4e5eef3
2021-03-05 20:11:32 +00:00
Abel Tesfaye
a643342375 Fix long press auto rotate implementation bug
Test: locally with flame

Bug: 181741815
Change-Id: Ie0a69ab7f8320ac688ee4182113d8396d541bf4c
2021-03-05 18:21:06 +00:00
Zoey Chen
10f6aef3b5 Merge "[PhoneStateListener] Redesign PhoneStateListener: Use TelephonyCallback" into sc-dev 2021-03-05 14:43:52 +00:00
Pavel Grafov
bf528538f1 DPM API to grant keys to Wifi
Bug: 160457441
Test: atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testKeyManagement
Test: atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testDelegatedCertInstallerDirectly
Change-Id: I3a8be9de738ffcc7732e8a640bf42220ab340501
2021-03-05 13:04:57 +00:00
SongFerng Wang
b332627a15 Merge "Improve AllowedNetworkTypesForReason and refactor PreferredNetworkType" 2021-03-05 01:59:53 +00:00
Pierre Barbier de Reuille
3e443e6b24 Correct API for new sizes in App Widgets.
This follow recommendations from the API council review.

Based on those recommendations: I updated the API and updated the
comments to make the function behavior clearer.

Bug: 181611658
Test: atest android.widget.cts.RemoteViewsSizeMapTest
Test: Local widget to check rendering
Change-Id: Ie9fcedbc7b18b83f6d1220f99240f264e53e3649
2021-03-04 23:27:08 +00:00
Chavi Weingarten
8803f688ab Merge "Added new error types for DisplayHashResultCallback" into sc-dev 2021-03-04 21:31:12 +00:00
Cody Kesting
229a7dbe28 Merge changes from topic "vcn-status-cb" am: dcaf81ebff am: e37cfaa9f1 am: e4b29c4f11
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1597023

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8a248225ce7c7f8090224c873767330b1202234d
2021-03-04 21:00:54 +00:00
Cody Kesting
dcaf81ebff Merge changes from topic "vcn-status-cb"
* changes:
  Call VcnStatusCallback#onVcnStatusChanged on register.
  Remove VcnStatusCallback#onEnteredSafemode().
  Expose APIs for VcnStatusCallback.
2021-03-04 18:09:40 +00:00
Winson Chiu
933bea0ee8 Merge changes I28bc7390,I2b248726,Ia7b7acff,Ia81866d2,I5b0deac6, ... into sc-dev
* changes:
  Rename to DomainVerificationUserState
  Rename to DomainVerificationInternalUserState
  Expose getDomainVerificationUserSelection as public API
  Fix setDomainVerificationLinkHandlingAllowed docs
  Rename get -> queryValidVerificationPackageNames
  Make DomainVerificationManager a final class
2021-03-04 16:57:00 +00:00
Zoey Chen
0aed75aa77 [Telephony] Fix the unknown value of ARFCN from -1 to INT.MAX
Bug: 181792548
Test: atest CellIdentityTest, atest CtsTelephonyTestCases:android.telephony.cts.PhysicalChannelConfigTest
Change-Id: Idb22afc743e81d2fe38f0be683aeb7ca3398aa50
2021-03-04 16:47:59 +08:00
SongFerngWang
e206456a16 Improve AllowedNetworkTypesForReason and refactor PreferredNetworkType
- Add more reasons of allowed network type
  - ALLOWED_NETWORK_TYPES_REASON_USER
  - ALLOWED_NETWORK_TYPES_REASON_CARRIER
- Add @systemApi for below
  - ALLOWED_NETWORK_TYPES_REASON_USER
  - ALLOWED_NETWORK_TYPES_REASON_POWER
  - ALLOWED_NETWORK_TYPES_REASON_CARRIER
  - setAllowedNetworkTypesForReason API
  - getAllowedNetworkTypesForReason API
  - getAllowedNetworkTypesBitmask API
- Add Public for below
  - CARRIER_NR_AVAILABILITY_NONE
  - CARRIER_NR_AVAILABILITY_NSA
  - CARRIER_NR_AVAILABILITY_SA
  - KEY_CARRIER_NR_AVAILABILITY_INT
- @Deprecated API
  - setPreferredNetworkTypeBitmask
  - getPreferredNetworkTypeBitmask
  - setAllowedNetworkType
  - getAllowedNetworkType
- Add a new way to notify allowedNetworkType at PhoneStateListener
- Replace KEY_NR_ENABLED_BOOL with KEY_CARRIER_NR_AVAILABILITY_INT

Bug: 161434786
Test: atest TelephonyManagerTest#testSetAllowedNetworkTypesForReason
(PASS)
atest TelephonyManagerTest#\
testSetAllowedNetworkTypesForReason_moreReason
(PASS)
atest PhoneStateListenerTest#\
testOnAllowedNetworkTypesChangedByRegisterPhoneStateListener
(PASS)

Change-Id: I3d0c119a0c2a30c56b0c127ba6525f8992b4e9dd
Merged-In: I3d0c119a0c2a30c56b0c127ba6525f8992b4e9dd
2021-03-04 14:58:54 +08:00
Curtis Belmonte
02a13d14d5 Merge "Add authenticator-aware string methods to BiometricManager" into sc-dev 2021-03-04 05:42:09 +00:00
Remi NGUYEN VAN
3c649ed684 Merge "Add Build.IS_DEBUGGABLE to public API" am: 9c16d8e25d am: 739f8a3fb1 am: 043099e934
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1397947

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie58769fe349a87152d0b3a23c6e59a9649b49e92
2021-03-04 05:10:15 +00:00
Remi NGUYEN VAN
9c16d8e25d Merge "Add Build.IS_DEBUGGABLE to public API" 2021-03-04 03:02:56 +00:00
Ryan Lin
880fdaf4cf Merge "Add new application category for accessibility" into sc-dev 2021-03-04 02:18:22 +00:00