summaryrefslogtreecommitdiff
path: root/core/api
AgeCommit message (Collapse)Author
2022-04-14Merge s-mpr-2022-04Eric Arseneau
Change-Id: I2325ba5c76e7dba314bdcd5b53fdc36b5e90fb31
2022-03-15Merge SP2A.220305.013Haamed Gheibi
Bug: 220074017 Change-Id: Idfdd94e902f656ac65a2a75dfdd199f6f85ba472
2022-02-14Validate pid can be trustedGanesh Olekar
Bug: 200288596 Test: Manual Test: atest android.security.cts.AttributionSourceTest#testPidCheck Change-Id: I07f86ba220bedb1393f4d7ed23175e92d4576601 (cherry picked from commit f29223746d9009a592b0ee7ee5a92398589c5b53) Merged-In:I07f86ba220bedb1393f4d7ed23175e92d4576601
2021-12-02Move adjacent tasks forward together to ensure occluding stateJerry Chang
In multi-window split, if one of the adjacent task are moved to front, we need to move another one forward to ensure all the other tasks will be occluded by these adjacent tasks as expectedly. Add a flag to distinguish whether to move the adjacent tasks together when setting adjacent tasks. Fix: 204130085 Test: atest TaskTests Test: atest WMShellUnitTests Change-Id: I34ccd2633b23425a978bd3df4acc50f17323de21
2021-11-19Remove TaskFragmentAppearedInfoChris Li
We don't really have any use case to manipulate TaskFragment leash, and removing it can reduce chance for related security issue. Fix: 207061678 Test: pass existing Change-Id: I24617228991f030335ba74ce7c2ee48b9c33b9d6
2021-11-11Fixed permisssions on setStopBackgroundUsersOnSwitch().Felipe Leme
It was requiring INTERACT_ACROSS_USERS_FULL (instead of INTERACT_ACROSS_USERS), which cannot be granted by Shell (and hence cannot be used by CtsVerifier). Test: m update-api Test: manual verification Bug: 203752848 Change-Id: Ie84311e6500cefa055548e309ee6d629c62fb10d
2021-11-11Merge "Introduce an OVERRIDE_MIN_ASPECT_RATIO_PORTRAIT_ONLY change ID" into ↵Tom Natan
sc-v2-dev
2021-11-08Renamed setStopBackgroundUsersOnSwitch to setStopUserOnSwitch()Felipe Leme
Test: atest NeneTest:UsersTest Test: m update-api CtsVerifier Test: adb shell cmd activity set-stop-user-on-switch false Test: adb shell cmd activity set-stop-user-on-switch Test: adb shell dumpsys activity users|grep OnSwitch Bug: 203752848 Merged-In: Iea03164319768abf159bf8ae2ccc539620cb30fe Change-Id: Iea03164319768abf159bf8ae2ccc539620cb30fe
2021-11-08Introduce an OVERRIDE_MIN_ASPECT_RATIO_PORTRAIT_ONLY change IDtomnatan
This change ID will determine whether the OVERRIDE_MIN_ASPECT_RATIO override will be applied for portrait only activities (if enabled), and for all orientations (if disable). Note that this change is enabled by default because it will need to be enabled for most use cases. Fix: 203647190 Test: atest WmTests:SizeCompatTests Change-Id: I0fccbdc22ff387d33695fbf432cf96cd517de095
2021-11-04New TestAPIs on ActivityManager to not stop bg users on switch.Felipe Leme
Test: atest NeneTest:UsersTest Test: m update-api Test: adb shell cmd activity set-stop-user-on-switch false Test: adb shell cmd activity set-stop-user-on-switch Test: adb shell dumpsys activity users|grep OnSwitch Bug: 203752848 Change-Id: Ib57989aff323dc1f7d98720d01215e4f7c79ba3a
2021-10-28Merge "Add constant for SC V2." into sc-v2-devMichael Wright
2021-10-27Merge changes I507f8573,I6d9efe2e into sc-v2-devYurii Zubrytskyi
* changes: [res] Finalize resources in SC-v2 RESTRICT AUTOMERGE [aapt2] Fix finalized resources removal
2021-10-27Add constant for SC V2.Michael Wright
Bug: 204295952 Test: N/A Merged-In: Ieecebfccf9366815c93d620b70aeabc1abcd3ebd Change-Id: Ieecebfccf9366815c93d620b70aeabc1abcd3ebd
2021-10-26MediaFormat: fix key value for KEY_MAX_OUTPUT_CHANNEL_COUNTJean-Michel Trivi
Fix type that used "_" instead of "-" Bug: 198197610 Test: TBA on new decoder Change-Id: Ief5ae1f708b27347bf5a700abfd51f9c53e2c888
2021-10-21[res] Finalize resources in SC-v2 RESTRICT AUTOMERGEYurii Zubrytskyi
+ modify the finalization script to support new mode - staging-public-group + support removed items Bug: 203782582 Test: manual, aapt2 dump on the generated resources Change-Id: I507f85737d0ba5bf074dd8d98633087ff33c8382
2021-10-21Make ActivityOptions#setLaunchTaskId a system APItomnatan
This is needed for digital wellbeing, see go/dwb-dialog-multi-window-dd for more information. Bug: 199825187 Test: N/A Change-Id: Ic0acbb034f326d0e8bc0e63d8c1a7b3f35a0e931
2021-10-19Merge "Improve scalability of Settings deep link API" into sc-v2-devArc Wang
2021-10-16Merge "MediaFormat: codec-agnostic key for max number of output channels" ↵TreeHugger Robot
into sc-v2-dev
2021-10-15MediaFormat: codec-agnostic key for max number of output channelsJean-Michel Trivi
New key behaving like KEY_AAC_MAX_OUTPUT_CHANNEL_COUNT but not AAC specific. Bug: 198197610 Test: TBA on new decoder Change-Id: If4d5f4580cba4ababbe4f18e19efbd070ec8f65c
2021-10-15Merge "Make isVisible member in TaskInfo public for digital wellbeing" into ↵Tom Natan
sc-v2-dev
2021-10-14Make isVisible member in TaskInfo public for digital wellbeingtomnatan
Bug: 199825187 Test: N/A Change-Id: If2e8ff32e865591ea8b2de68e5cb1e8b05e06f35
2021-10-13Merge "Camera: Rename DeviceStateOrientationMap" into sc-v2-devEmilian Peev
2021-10-12Camera: Rename DeviceStateOrientationMapEmilian Peev
Use "DeviceStateSensorOrientationMap" to avoid possible association with other common orientation states such as Portrait and Landscape. Bug: 202832229 Test: atest -c cts/tests/camera/src/android/hardware/camera2/cts/ExtendedCameraCharacteristicsTest.java#testDeviceStateSensorOrientationMapCharacteristics Change-Id: I6fc9d452f0bb4099389e30d0404e1c6c20dff8ff Change-Id: Icde1a8eb25b15b237812f583de8f7a46b6576772
2021-10-12Spatializer: add API for monitoring output changesJean-Michel Trivi
Add privileged API for monitoring audio output stream changes for the output used by the spatializer effect. Bug: 202723925 Test: atest SpatializerTest Change-Id: Ie35ff41e2bec8448997873ca4cf1e229080d2f6a
2021-10-12Merge "Rename getSurfaceTransformHint API and switch to using NDK transform ↵TreeHugger Robot
constants" into sc-v2-dev
2021-10-11Rename getSurfaceTransformHint API and switch to using NDK transform constantsVishnu Nair
NDK exposes ANativeWindowTransform/NATIVE_WINDOW_TRANSFORM_*. These constants are aligned with HAL definitions and are used internally to specify buffer transforms. Native consumers of the transform hint are expected to generate ANativeWindowTransform from the hint. Aligning the SDK and the NDK transform values will make the API less confusing. Bug: 196167822 Test: atest AttachedSurfaceControlTest Change-Id: Ib20be045f6c8c6d7befef93a839a27098da55ffa
2021-10-08Merge "Rename shouldUseDefaultDisplayStateChangeTransition attribute" into ↵Nick Chameyev
sc-v2-dev
2021-10-07Merge "Camera: Keep sensor orientation consistent with device fold state" ↵Emilian Peev
into sc-v2-dev
2021-10-07Camera: Keep sensor orientation consistent with device fold stateEmilian Peev
Allow foldable devices to advertise the mapping between device fold state and sensor orientation. Additionally return the current sensor orientation based on the specific device fold state. Bug: 201005727 Test: Manual using AOSP Camera2 application, Camera CTS Change-Id: Idc76903da22567d29cc55d991b41df7e19490aa3
2021-10-07Rename shouldUseDefaultDisplayStateChangeTransition attributeNick Chameyev
Renames the shouldUseDefaultDeviceStateChangeTransition attribute name to shouldUseDefaultUnfoldTransition to make it less generic. Test: manual Fixes: 200730817 Change-Id: Icc7f25f20758162c318e0b0896fb9a7bb2de5911
2021-10-05Fix snapshot starting window stuck if the task never gain focuswilsonshih
The tasksnapshot starting window could stuck on task if the task never gain focus, this could happen when launch multiple tasks to front, e.g. split screen, or add snapshot starting window to a pip task. As using task focus to judge the task snapshot removal may error-prone. (i.e. unexpected window focus in/lost, non-focusable task window..) To ensure the tasksnapshot removal works stable, extanding MAX_DELAY_REMOVAL_TIME_IME_VISIBLE timeout from 450ms to 600ms and also reference mayImeShowOnLaunchingActivity to know whether IME showing on this activity. Bug: 199377815 Bug: 201264769 Bug: 200778734 Test: atest ActivityRecordTests StartingSurfaceDrawerTests SplashscreenTests Test: manual launch apps with IME from Recents. Test: enter pip, power on/off, verify starting window is removed. Test: manual enter split screen, verify starting window is removed. Change-Id: I81b048a655124923a5f19e7f236511502bbf4c91 (cherry picked from commit a4f760bee7d86d8d68d155dc256f984f1b3d7478)
2021-10-05Improve scalability of Settings deep link APIArc Wang
Avoid using 'two pane' and 'large screen' because they are implementation details exposure. Bug: 201662312 Test: build pass Change-Id: I67e4b07ab957285ac0410f307030c491b3f6e95d
2021-10-04Merge "Rename shouldUseDefaultDeviceStateChangeTransition attribute" into ↵Nick Chameyev
sc-v2-dev
2021-10-01Merge "Added a DevicePolicyManager.setDeviceOwnerOnly() method." into sc-v2-devTreeHugger Robot
2021-09-30Rename shouldUseDefaultDeviceStateChangeTransition attributeNick Chameyev
Renames the shouldUseDefaultDeviceStateChangeTransition attribute name to shouldUseDefaultDisplayStateChangeTransition to make it less generic. Test: manual Fixes: 200698833 Change-Id: Ib6f90bcba2e75485e954bdbc1833fd67728e51c6
2021-09-29Added a DevicePolicyManager.setDeviceOwnerOnly() method.Felipe Leme
It will be used by the test infra to just set the device owner, without setting the profile owner on current user on systems using headless system user. Test: atest com.android.cts.devicepolicy.DeviceOwnerTest#testDeviceOwnerSetup Test: adb shell dpm set-device-owner --user 0 --device-owner-only com.afwsamples.testdpc/.DeviceAdminReceiver Test: m update-api Fixes: 201313785 Bug: 192395248 Change-Id: I41c2cf187c1eceebe7c6ef30f9cff693b9dcbc15
2021-09-28Merge "[NGA v2] Reliable Visible Activity Lookup" into sc-v2-devTreeHugger Robot
2021-09-28Merge "Rename shouldUseDefaultUnfoldTransition attribute and update docs" ↵Nick Chameyev
into sc-v2-dev
2021-09-28[NGA v2] Reliable Visible Activity Lookuplpeter
To enable more voice-oriented in-app user journeys, Google Assistant needs to access more information regarding the visible activities via the Voice Interaction Session. Thus, we provide the APIs to receive the changed visible activities in Voice Interaction Session. Bug: 178244510 Test: atest CtsVoiceInteractionTestCases Test: atest CtsVoiceInteractionTestCases --instant Change-Id: I019d09fee8105ae1eadbc76803f46fd8b1948f6b
2021-09-24Rename shouldUseDefaultUnfoldTransition attribute and update docsNick Chameyev
Renames the shouldUseDefaultUnfoldTransition attribute name to use more generic shouldUseDefaultDeviceStateChangeTransition name as the transition could be used on different form factors depending on the OEMs. Test: manual Fixes: 200730817 Fixes: 200698833 Change-Id: I1c5d755f76f455475471fc893d4748c6adf51b8c
2021-09-24Remove Settings#EXTRA_SETTINGS_LARGE_SCREEN_DEEP_LINK_PENDING_INTENTArc Wang
For the Intent ACTION_SETTINGS_LARGE_SCREEN_DEEP_LINK, EXTRA_SETTINGS_LARGE_SCREEN_DEEP_LINK_PENDING_INTENT is for partner apps to tell target Activity the private Activity to start. However, developers feedback that customization extra data are preferred, so a later CL supports customized extra data for ACTION_SETTINGS_LARGE_SCREEN_DEEP_LINK. Developers will not need EXTRA_SETTINGS_LARGE_SCREEN_DEEP_LINK_PENDING_INTENT to specify a private Activity. Bug: 197048599 Test: build pass Change-Id: Icc949b897ff36755004cc34b31caf5b06974bfae
2021-09-22Merge "Expose getSurfaceTransformHint API" into sc-v2-devTreeHugger Robot
2021-09-22Merge "Content Capture change to send window token on creating session." ↵Adam He
into sc-v2-dev
2021-09-22Content Capture change to send window token on creating session.Adam He
Bug: 189477723 Test: atest CtsContentCaptureTestCases Change-Id: I70a0be583faae1a18c61e70c72a3d2a8e9e46438
2021-09-21Add Content Capture event TYPE_WINDOW_BOUNDS_CHANGED to notify windowAdam He
bounds. Bug: 189477723 CTS-Coverage-Bug: 189477723 Test: manual verification Change-Id: I38cfdde21aed1827744f8db4eb61f62cc2413e78
2021-09-21Expose getSurfaceTransformHint APIVishnu Nair
The transform hint can be used by a buffer producer to pre-rotate the rendering such that the final transformation in the system composer is identity. This can be very useful when used in conjunction with the h/w composer HAL in situations where it cannot handle rotations or handle them with an additional power cost. Bug: 196167822 Test: atest AttachedSurfaceControlTest Change-Id: Idb7fcf58ecbcc22cd43c226ee4faad958c265e72
2021-09-21Merge "Add should use default unfold transition attribute to wallpaper" into ↵Nick Chameyev
sc-v2-dev
2021-09-20Spatializer: support for effect parametersJean-Michel Trivi
Add set/get API for implementatation-specific parameters Bug: 191404931 Test: atest SpatializerSystemTest Change-Id: Ibc49e05670c7bc473dad2421808b4a60970f16c9
2021-09-20Add should use default unfold transition attribute to wallpaperNick Chameyev
Adds new attribute to wallpaper XML declaration to indicate whether a wallpaper should receive default zooming transition updates when folding or unfolding. This attribute allows to opt-out from the default behaviour during this transition and implement custom behaviour. Bug: 196933493 Test: atest android.app.cts.WallpaperInfoTest Change-Id: I7cb104bf7dfbbe92de72e505ec31d866a59bae4a
2021-09-16Immersive audio APIs for headtrackingJean-Michel Trivi
Headtracking: - setter / getter and listener for headtracking mode - listener for head pose - global transform - recentering Bug: 191404931 Test: atest SpatializerHeadTrackingTest Change-Id: I15cea62365584f84ae5a9149719902c671944f28