Commit Graph

102688 Commits

Author SHA1 Message Date
Hall Liu
5ed337a06d Re-hide OPSTR_READ_DEVICE_IDENTIFIERS
Fixes: 151184555
Test: NA
Change-Id: I2d19869278530e2f8999284845bc128df6617faa
2020-03-13 00:02:25 +00:00
Shuo Qian
28ab493385 Merge "API Council Feedbacks" into rvc-dev 2020-03-12 21:54:42 +00:00
Evgenii Stepanov
91482ccc8a Merge "Add "enableGwpAsan" tag to android manifest." into rvc-dev 2020-03-12 21:13:25 +00:00
Jorim Jaggi
92fd77548a Merge "Use separate thread if app doesn't listen to animations" into rvc-dev 2020-03-12 20:49:07 +00:00
Patrick Baumann
987b12ddcf Merge "Do not set referrerUri on SessionInfo for non-owners" into rvc-dev 2020-03-12 19:16:40 +00:00
Rob Carr
83d02a976a Merge "WindowContainerTransaction: Support PIP Transition" into rvc-dev 2020-03-12 18:39:18 +00:00
Jaineel Mehta
1a18357853 Merge "Revert "WindowInsetsController: Address API feedback"" into rvc-dev 2020-03-12 18:23:14 +00:00
Alex Kershaw
6fa3741fdb Merge "Add overloaded API with activity options parameter" into rvc-dev 2020-03-12 17:47:59 +00:00
Jaineel Mehta
5e7097b21e Revert "WindowInsetsController: Address API feedback"
This reverts commit c549e19c5e.

Reason for revert: Droidcop: Potential culprit for Bug X - verifying through Forrest before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.

Change-Id: I2ab42d96d2599dfcc946fa48b3940e2bd92b22b0
2020-03-12 17:46:17 +00:00
Evgenii Stepanov
102d3d8669 Add "enableGwpAsan" tag to android manifest.
This tag can be used to enable and disable gwp-asan on applications and
their components. The default setting is disabled, except for the system
applications which are enabled with a small probability (approx. 1% of
processes).

Enabling gwp-asan can be used to crowd test an app.

This change includes a compat feature that overrides the default value
of enableGwpAsan for an app.

Bug: 149991821
Test: atest CtsGwpAsanTestCases
Exempt-From-Owner-Approval: cherrypick
Merged-In: I5eb647c517e5487b1d1eed6b9a43242490f19289
Change-Id: I5b4db666f38af846927f88702cc690f0916cadb1
2020-03-12 17:19:23 +00:00
Adrian Roos
3a4be4a7b1 Merge "WindowInsetsController: Address API feedback" into rvc-dev 2020-03-12 16:13:43 +00:00
Philip P. Moltmann
9f0ee82df5 Merge "Call Compatibility.isChangeEnabled in calling app" into rvc-dev 2020-03-12 15:40:38 +00:00
TreeHugger Robot
507be52dc7 Merge "Properly handle InlineSuggestionsRequest with 0 max suggestion count" into rvc-dev 2020-03-12 13:02:28 +00:00
Zoey Chen
f489f1994f Merge "Revert [Telephony mainline] Add SystemApi and NonNull annotation" into rvc-dev 2020-03-12 06:20:33 +00:00
Jacky Kao
ac337e7add Merge "Throw IllegalArgumentException for takeScreenshot()" into rvc-dev 2020-03-12 04:15:13 +00:00
Lucas Dupin
888edd6fdc Merge "Implement wallpaper zoom hooking it to the shade" into rvc-dev 2020-03-12 04:07:51 +00:00
Shuo Qian
e3efafddda API Council Feedbacks
1) Update doc of ACTION_UPDATE_EMERGENCY_NUMBER_DB
2) Add new APIs EXTRA_VERSION and EXTRA_REQUIRED_HASH
3) Rename isDataConnectionEnabled to IsDataConnectionAllowed
4) Format the API documentations with html format
5) Throw errors for shutdownAllRadios, isAnyRadioPoweredOn
6) Modify the doc of TelephonyManager.getEmergencyNumberDbVersion
7) Add UPDATE_CONFIG permission for ACTION_UPDATE_EMERGENCY_NUMBER_DB

Test: Treehugger; Manual made a call; make -j offline-sdk-docs
Bug: 147696692
Bug: 147805285
Bug: 148217670
Bug: 148218347
Change-Id: Idf3dee3de5ebf75ca8b8fbaaf879e69f7ae4b754
Merged-In: Idf3dee3de5ebf75ca8b8fbaaf879e69f7ae4b754
(cherry picked from commit dc86120fca)
2020-03-12 03:49:15 +00:00
TreeHugger Robot
c688e204e1 Merge "Remove misleading comments" into rvc-dev 2020-03-12 03:39:07 +00:00
zoey chen
7cb5ca8e7d Revert [Telephony mainline] Add SystemApi and NonNull annotation
Reason: Revisit and redesign in S

Bug: 147390517
Test: make
Change-Id: I0749492a5648dfa2fb83271f349a8370972f7032
Merged-In: I0749492a5648dfa2fb83271f349a8370972f7032
(cherry picked from commit 2d280f1bb4)
2020-03-12 03:22:48 +00:00
Alex Kershaw
a9f0052af5 Add overloaded API with activity options parameter
This is from calendar team's feedback. It allows them to
create a nice animation when launching the activity. This also mirrors
the implementation in the Activity class.

Fixes: 151150552
Test: atest com.android.cts.devicepolicy.CrossProfileAppsHostSideTest#testStartActivityIntent
Change-Id: Ie120896e50d8b2c033b9cb156357bd696eb033e0
2020-03-12 01:29:27 +00:00
TreeHugger Robot
592181386c Merge "Making time-zone an API constant" into rvc-dev 2020-03-12 01:23:28 +00:00
Feng Cao
44dc2bdcb2 Properly handle InlineSuggestionsRequest with 0 max suggestion count
Test: manual, atest InlineSuggestionsRequestTest
Bug: 150142709

Change-Id: Id0bba142526641964087d29bf515b7d7a817bae0
2020-03-11 18:11:52 -07:00
Jacky Kao
0ad1f82733 Throw IllegalArgumentException for takeScreenshot()
Throw IllegalArgumentException for non default display
since it’s unsupported

Bug: 150865445
Test: a11y CTS & unit tests
Change-Id: Iac0602e444d23b28ea05d29dd4605c7a821b641a
2020-03-12 07:56:57 +08:00
Pinyao Ting
021faf9d19 Remove misleading comments
The display order of the shortcuts is solely determined by launcher apps
implementation at their own discretion, the rank of the shortcut merely
serves as a guideline. Thus removing the misleading paragraph to prevent
confusions.

Bug: 150254995
Test: make
Change-Id: I4cdb9a5779edfdb5b56659e4787b3f13e7e3054e
2020-03-11 23:42:58 +00:00
TreeHugger Robot
76b221c84b Merge "WindowContext: Add @WindowType intdef" into rvc-dev 2020-03-11 22:02:27 +00:00
Jorim Jaggi
6d5c801c78 Use separate thread if app doesn't listen to animations
There is no need to introduce jank risk and run the inset
animations on the main thread if the app doesn't listen to
animation events. In that case, move the animations onto a
separate thread.

Bug: 118118435
Test: Inspect systrace
Change-Id: Ib6e4b4ce8e9dd8e27761ced6eb8d7700b6236a32
2020-03-11 22:58:59 +01:00
Jayachandran Chinnakkannu
dd3768ed8c Merge "Remove API getDefaultSimCountryIso() as per API council feedback" into rvc-dev 2020-03-11 21:53:08 +00:00
TreeHugger Robot
27c83fce04 Merge "add permission requirement for java writeData method" into rvc-dev 2020-03-11 21:49:27 +00:00
Philip P. Moltmann
7641cd0aa6 Call Compatibility.isChangeEnabled in calling app
As this checks the "change-enabled" state of the current app. Hence
calling this in the system server does not make sense.

This change sets a flag if we want to enable the old behavior.

Test: TH
Bug: 148180766
Change-Id: Ic17f8ff9ff7dcf984b55b978f582343286fa67c4
2020-03-11 14:47:43 -07:00
TreeHugger Robot
f5589a71e0 Merge "Temporary fix to disable augmented autofill requests coming from password fields." into rvc-dev 2020-03-11 21:43:58 +00:00
Kevin Chyn
5a563d2870 Merge "Update ACTION_BIOMETRIC_ENROLL documentation" into rvc-dev 2020-03-11 20:56:42 +00:00
TreeHugger Robot
eaf14b274a Merge "Clarify InstallSourceInfo javadoc." into rvc-dev 2020-03-11 19:34:21 +00:00
Patrick Baumann
6bc126b040 Do not set referrerUri on SessionInfo for non-owners
This change leaves the referrerUri field null when the caller leading to
its production is not the owner of the session.

Bug: 142125338
Test: atest SessionReferrerUriTest
Change-Id: I84679ea0636aa2097e25e23813c48134c9cc1d75
2020-03-11 11:47:05 -07:00
Nicholas Ambur
fa47464c2b Merge "lazy load enrollment application UID in VIMS" into rvc-dev 2020-03-11 17:47:56 +00:00
Julia Reynolds
34621b08e3 Merge "Increase test coverage for NotificationChannel" into rvc-dev 2020-03-11 17:14:42 +00:00
Adrian Roos
c549e19c5e WindowInsetsController: Address API feedback
Change CancellationSignal to parameter instead of return value.

Fixes: 150472709
Test: atest InsetsControllerTest
Change-Id: Id4cb53fddcecac17b7926068046760df5130dc39
2020-03-11 17:23:31 +01:00
Philip P. Moltmann
093ba7e506 Merge "Allow to exempt apps from restrictions to RECORD_AUDIO" into rvc-dev 2020-03-11 16:11:16 +00:00
Galia Peycheva
444bfa05ec Merge "Remove @UnsupportedAppUsage from DreamService.setWindowless" into rvc-dev 2020-03-11 16:05:36 +00:00
Galia Peycheva
a81d7de0a0 Remove @UnsupportedAppUsage from DreamService.setWindowless
setWindowless is a hidden API since 2014 and was marked
@UnsupportedAppUsage in 2018. It is not known to be used anywhere as
reported by go/nonsdk-dash. This CL removes the @UnsupportedAppUsage.

Bug: 151221085

Test: m

Change-Id: Ic95a2d9da4eb9f4abeba75a35ebe1f8921fb2416
2020-03-11 15:55:17 +00:00
Ruslan Tkhakokhov
d0effa2492 Merge "Enforce MODIFY_SETTINGS_OVERRIDEABLE_BY_RESTORE permission" into rvc-dev 2020-03-11 15:34:09 +00:00
Adrian Roos
9c17e537c7 WindowContext: Add @WindowType intdef
Fixes: 151156902
Test: make checkapi
Change-Id: I966f8cd305189a54a5de48b03e5b4bdd51700fdf
2020-03-11 16:08:16 +01:00
TreeHugger Robot
15725d999d Merge "Enter to touch mode by down or scroll event from any type of a device." into rvc-dev 2020-03-11 13:35:13 +00:00
Jorim Jaggi
8dc835316a Merge "Add OnControllableInsetsChangedListener" into rvc-dev 2020-03-11 13:33:33 +00:00
Ruslan Tkhakokhov
71888e5fa1 Enforce MODIFY_SETTINGS_OVERRIDEABLE_BY_RESTORE permission
Bug: 150877732
Test: 1. atest SettingsProviderTest
      2. atest PreservedSettingsRestoreHostSideTest (with
      MODIFY_SETTINGS_OVERRIDEABLE_BY_RESTORE granted to shell)
Change-Id: I5536233b2084a31161185235195e2a6b25b4c3d1
2020-03-11 10:59:31 +00:00
TreeHugger Robot
a9caa7d016 Merge "Rename LightsManager.setLights to requestLights" into rvc-dev 2020-03-11 09:06:01 +00:00
Jack Yu
fa75bf5bc7 Merge "Added todo work" into rvc-dev 2020-03-11 05:56:18 +00:00
TreeHugger Robot
f414c083dd Merge "Undo commit "Expose constants in Telephony.Carriers"" into rvc-dev 2020-03-11 05:39:55 +00:00
TreeHugger Robot
09654a2e7b Merge "AppWidgetManager option documentation" into rvc-dev 2020-03-11 02:39:20 +00:00
Winson Chung
cfdd34adab Merge "Always notify SystemUI when launching activity to existing task" into rvc-dev 2020-03-11 02:28:09 +00:00
Suprabh Shukla
2e7408eddb Making time-zone an API constant
This is already effectively an API the way it is documented.
Updating all the references of the hard-coded constant.

Test: make update-api && make

Bug: 151112929
Change-Id: Iadeb03c516215cfc51bc8604b67250348d5a4375
2020-03-10 18:05:02 -07:00