Commit Graph

3233 Commits

Author SHA1 Message Date
Arc Wang
6f7d870b56 Remove Settings#EXTRA_SETTINGS_LARGE_SCREEN_DEEP_LINK_PENDING_INTENT
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-24 13:50:16 +08:00
TreeHugger Robot
dedfe23d54 Merge "Expose getSurfaceTransformHint API" into sc-v2-dev 2021-09-22 23:55:07 +00:00
Adam He
b9eafd3c02 Merge "Content Capture change to send window token on creating session." into sc-v2-dev 2021-09-22 20:13:53 +00:00
Adam He
d9e69e2b50 Content Capture change to send window token on creating session.
Bug: 189477723
Test: atest CtsContentCaptureTestCases
Change-Id: I70a0be583faae1a18c61e70c72a3d2a8e9e46438
2021-09-22 17:06:50 +00:00
Adam He
19f65ec098 Add Content Capture event TYPE_WINDOW_BOUNDS_CHANGED to notify window
bounds.

Bug: 189477723
CTS-Coverage-Bug: 189477723
Test: manual verification

Change-Id: I38cfdde21aed1827744f8db4eb61f62cc2413e78
2021-09-21 21:54:52 +00:00
Vishnu Nair
1f19e1141e Expose getSurfaceTransformHint API
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-21 11:28:35 -07:00
Nick Chameyev
c87aa1a23e Merge "Add should use default unfold transition attribute to wallpaper" into sc-v2-dev 2021-09-21 16:09:41 +00:00
Jean-Michel Trivi
7966f9aa68 Spatializer: support for effect parameters
Add set/get API for implementatation-specific parameters

Bug: 191404931
Test: atest SpatializerSystemTest
Change-Id: Ibc49e05670c7bc473dad2421808b4a60970f16c9
2021-09-20 22:02:03 -07:00
Nick Chameyev
0a14f33198 Add should use default unfold transition attribute to wallpaper
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-20 09:55:02 +00:00
Jean-Michel Trivi
68bfa3b30a Immersive audio APIs for headtracking
Headtracking:
- setter / getter and listener for headtracking mode
- listener for head pose
- global transform
- recentering

Bug: 191404931
Test: atest SpatializerHeadTrackingTest
Change-Id: I15cea62365584f84ae5a9149719902c671944f28
2021-09-16 13:15:05 -07:00
Jean-Michel Trivi
c5f69571ef AudioManager.getSpatializer() never returns null
Spatializer instance returned by AudioManager.getSpatializer()
 is never null.
Instead of having this getter return null when the device
 doesn't support spatialization, the user can query the
 instance for it's level of support for the feature.
The level of support is independent of the state of the
 spatializer.

Bug: 191404931
Test: atest SpatializerTest
Change-Id: Id08670749b4d34230313d2cd829aa5ba414dae21
2021-09-14 13:11:58 -07:00
Jonathan Scott
54c399f81c Merge "Add TestApi to clear organization Id" into sc-v2-dev 2021-09-13 12:55:26 +00:00
Rubin Xu
0a1f866c4e Add TestApi to clear organization Id
Needed in CTS tests to reset the organization ID and
enrollment specific ID.

Bug: 197760250
Test: atest android.devicepolicy.cts.EnrollmentSpecificIdTest
Change-Id: Ice1123744957ab57636ec1d9b0ca60a16c5a93cf
Merged-In: Ice1123744957ab57636ec1d9b0ca60a16c5a93cf
2021-09-10 12:29:30 +00:00
Charles Chen
3d7ad43140 Promote #setAdjacentTaskFragment to TestApi
Also rename TaskFragmentAdjacentOptions to TaskFragmentAdjacentParams to
make metalava happy.

Test: build & run
Bug: 192442647

Change-Id: Iab256ce8c745635a51834f44e72493e204224f36
2021-09-10 17:52:56 +08:00
Sally Yuen
cd9481d29a Merge "Add API to inform the system a drag is initiated by an A11yAction#ACTION_DRAG_START." into sc-v2-dev 2021-09-09 15:57:38 +00:00
Louis Chang
c08fc30d0e Merge "Not removing primary TaskFragment when clear task" into sc-v2-dev 2021-09-09 13:32:57 +00:00
Louis Chang
c5024fc2b4 Not removing primary TaskFragment when clear task
Placeholder activity was finished while starting the
task root activity from launcher because the task
root activity was set as singleTask launch mode.
Meanwhile, the primary TaskFragment was also removed
because of the split-rule finishPrimaryWithSecondary.

Sending the information of whether the last activity
on the TaskFragment was finished due to launch other
activity to client. So that the organizer can decide
whether the primary TaskFragment should removed.

Bug: 196179714
Test: relaunch singleTask activity with placeholder

Change-Id: I9a0369285adfbdef1edc5a7f2af944ec5b434566
2021-09-09 15:09:17 +08:00
sallyyuen
5d00ad6e13 Add API to inform the system a drag is initiated by an
A11yAction#ACTION_DRAG_START.

This allows the system to run a11y-specific code
and still accept drags via touch events when a11y is
enabled.

Test: builds
Bug: 26871588
Change-Id: I40e8f1adf5b773c8fa02173cbd96aa5e9ed54a4d
2021-09-08 12:19:36 -07:00
Arc Wang
bf989b80c0 Merge "Add the permissions for Settings deep link" into sc-v2-dev 2021-09-08 02:24:01 +00:00
Arc Wang
2d9568eef1 Add ACTION_LARGE_SCREEN_DEEP_LINK for large screen deep link pages.
System or preinstalled apps can use the intent to show it's Activity
in split mode of Settings app for large screen devices.

Bug: 197048599
Test: build pass
Change-Id: Icb709f12a51687679b23ac7920e60873c537b8bb
2021-09-06 22:08:48 +08:00
Arc Wang
9f0119b752 Add the permissions for Settings deep link
android.permission.ALLOW_TWO_PANE_DEEP_LINK_IN_SETTINGS:

  The permission allows system or preinstalled APP to show
  its Activity in split mode of Settings app for large screen
  devices.

android.permission.START_ACTIVITY_IN_SETTINGS_TWO_PANE:

  The permission for Activity to controll only Settings app can
  start it if it's expected to deep link into Settings app and
  shown as 2-pane.

Bug: 197048599
Test: build pass
Change-Id: I018fc0e8447f795637f911445ab01afabdeb0b4c
2021-09-06 14:25:57 +08:00
Louis Chang
4abf39e6da Merge "Finish the primary container while secondary exited" into sc-v2-dev 2021-09-03 04:59:16 +00:00
Louis Chang
542af13cf5 Finish the primary container while secondary exited
When finishing a placeholder activity, the secondary container was
clean up, and the primary activity was also finished. However, the
primary container didn't remove and therefore was expanded to
fullscreen before the activity within completely being removed.

Which resulted in TRANSIT_OLD_TASK_FRAGMENT_CHANGE transition
after commit 118428b merged.

Bug: 198228078
Test: finishing placeholder activity and back to launcher
Change-Id: I3d55f0be8c7f6ab3970450d7b90dd95f3cfdd463
2021-09-01 15:05:32 +08:00
Jean-Michel Trivi
e9dd14e011 New APIs for immersive audio
- AudioManager: entry point for getting
 a Spatializer object, if supported
- Spatializer: entry point for spatializer
 capabilities, system APIs for configuration
 and compatibility with devices
- AudioAttributes: additions for behavior of
 a track for virtualization

Bug: 191404931
Test: atest AudioAttributesTest SpatializerTest
Change-Id: I06f8acdd979f8d4374042f8209082c79f49a1f75
2021-08-30 16:55:37 +00:00
Jean-Michel Trivi
c3537ee73a Merge "Revert "New APIs for immersive audio"" into sc-v2-dev 2021-08-26 15:12:10 +00:00
Jean-Michel Trivi
4b40a261e0 Revert "New APIs for immersive audio"
This reverts commit 50673d80be.

Reason for revert: non-existing bug number prevents API council tracking

Bug: 191404931
Change-Id: Iaccc698a1034e9387b7918eda826438dfe3a9485
2021-08-26 15:11:59 +00:00
Sally Yuen
0e08f81393 Merge "Add AccessibilityAction and AccessibilityEvent API for drag & drop" into sc-v2-dev 2021-08-24 12:21:46 +00:00
sallyyuen
a8e74160de Add AccessibilityAction and AccessibilityEvent API for drag & drop
go/a11yDragAndDrop

Drag & drop in the system has zero accessibility support.
Add actions to dragging, cancelingl, and dropingp
Add WINDOW_CONTENT_CHANGED subtype events for the start of a drag,
the cancellation of a drag, and a drop. Other changes, like
when a11y actions change, will be denoted by
CONTENT_CHANGE_TYPE_UNDEFINED

Test: builds
Bug: 26871588
Change-Id: Ie4eeb54dd612fd92c107a267e884498656c1fac8
2021-08-23 13:27:30 -07:00
Kenneth Ford
1f70abe98d Allow top focused activities to call requestState
Previously you could only modify the device state
if you held the CONTROL_DEVICE_STATE permission. This
change allows top focused activities to do the same

Bug: 192671754
Test: atest DeviceStateManagerTests
Change-Id: Iba0c1800a1fb17024020e657b76a54eec9c89348
2021-08-20 22:58:36 +00:00
Jean-Michel Trivi
da474d3b33 Merge "New APIs for immersive audio" into sc-v2-dev 2021-08-17 14:54:01 +00:00
Fiona Campbell
ec29aa264b Merge "Add display specific brightness configurations" into sc-v2-dev 2021-08-17 10:08:57 +00:00
Jean-Michel Trivi
50673d80be New APIs for immersive audio
- AudioManager: query of platform support for
 the whole feature
- Spatializer: entry point for spatializer
 capabilities, system APIs for configuration
 and compatibility with devices
- AudioAttributes: additions for behavior of
 a track for virtualization

Bug: 91404931
Test: atest AudioAttributesTest SpatializerTest
Change-Id: Ia81ae07a0e66497b0731209907ca62a524c0a515
2021-08-16 11:33:38 -07:00
Charles Chen
8bae39cab2 Allow WPS to create windows with multiple type
Before WindowProviderService, Service can add windows with several
window types. This is previously not allowed for WindowProviderService
because a context can only associate with a window container.
However, it may cause regressions because Service is used to add
windows with multiple types.
This CL allows WindowProviderService to do so, but WindowProviderService
can only associate with the window type returned by #getWindowType.
This CL also extracts some methods to WindowContext interface so that
WindowContext and WindowProviderService can reuse the same interface.

Test: atest WindowContextPolicyTests StrictModeTest
Test: atest ContextIsUiContextTest ContextGetDisplayTest
Test: atest WindowContextTest WindowContextTests
fixes: 191959013

Change-Id: Ie16916b370a4cbb8a17ccaec9870d47b4b089390
2021-08-11 23:43:01 +08:00
Vadim Caen
44823207a4 Merge "Do not draw icon background if it shouldn't be seen" into sc-dev am: ee08a68fd4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15175437

Change-Id: I99c182334636b3c9ce7bdc24b910d1b99bddb93a
2021-07-29 19:02:27 +00:00
Charles Chen
9dfcf46ab9 Promote TaskFragment APIs to TestAPi
... to verify their behaviors in CTS
Also wraps ITaskFragmentOrganizer to TaskFragmentOrganizerToken
because we cannot make .aidl a TestApi.

Test: presubmit
Bug: 192442647

Change-Id: I848a33340449189af7d9d66a6468a9e397a0f53a
2021-07-26 16:13:20 +08:00
Vadim Caen
496b4cbb86 Do not draw icon background if it shouldn't be seen
Test: atest CtsWindowManagerDeviceTestCases:SplashscreenTests
Bug: 193608336
Change-Id: I824137e67eaa0133337fcaf55c44fca46bac8010
2021-07-23 13:27:11 +02:00
Fiona Campbell
57b380f4ba Add display specific brightness configurations
Add brightness configuration to display state, within the persistentDataStore. The original brightness configurations remain under the name "mGlobalBrightnessConfigurations".
Expose methods to get and set brightness configurations specific to each display. Indexed by uniqueId of the physical display. Where necessary, the primary physical display device of the logical display is used when identifying this.

Bug: 181767734
Test: atest PersistentDataStoreTest BrightnessConfigurationTest BrightnessTest

Change-Id: Idaed53e8f4abe548784781c4fb610dbada46ab19
2021-07-20 19:04:04 +01:00
Kriti Dang
4559e5b9d5 Merge "Make AudioManager.getReportedSurroundFormats a TestApi" into sc-dev am: 0077afd88a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14840460

Change-Id: I9ae1460e47528ffb38d00ed85a259d9e2e5077b6
2021-07-16 08:15:41 +00:00
Chris Li
5849a2b5e3 Merge "Allow TaskFragmentOrganizer to apply WCT without permission" into sc-v2-dev 2021-07-16 06:50:53 +00:00
Chris Li
d5555da37a Allow TaskFragmentOrganizer to apply WCT without permission
TaskFragmentOrganizer will be used by regular apps without the
permission to manage Task. We are allow it to apply transactions if it
is operating on TaskFragment that is organized by itself.

Bug: 193191599
Test: atest WmTests:TaskFragmentOrganizerControllerTest
Change-Id: I82e5d49260680bd496ff184c6795ec817c65d858
2021-07-15 13:07:14 -07:00
Jean-Michel Trivi
dc38caf6db Merge "AudioFormat: new channel masks and more javadoc" into sc-v2-dev 2021-07-15 16:20:34 +00:00
Kriti Dang
00e49c1482 Make AudioManager.getReportedSurroundFormats a TestApi
Access to the API needed from a tunnel mode CTS test.
TestAPIs dont work in CTS test if they intrenally call AudioSystem.
Changing getSurroundFormats and getReportedSurroundFormats to call
AudioService instead of AudioSystem.

Bug: 189823767
Test: atest android.media.cts.DecoderTest#testTunneledAudioPTSGapsAc3
Change-Id: If6287743f57b77d0eb2639e4a2e9409c7d778f06
Merged-In: If6287743f57b77d0eb2639e4a2e9409c7d778f06
2021-07-14 17:25:25 +00:00
TreeHugger Robot
c4fe42e347 Merge "Optimize AttributionSource tokens - base" into sc-dev am: 2b90cc827b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15247205

Change-Id: I4b1d8d446ea18a308c4a523298682b3a7d217421
2021-07-10 02:27:03 +00:00
Svet Ganov
1babd5bf51 Optimize AttributionSource tokens - base
For cases where the attribution soruce doesn't need to be
registered as trusted we are now using a shares static
token since the only purpose of the token in these cases
is for watching the source process dying as opposed to that
and security for registered cases.

bug: 192415943

Test: CtsPermissionTestCases
      CtsPermission2TestCases
      CtsPermission3TestCases
      CtsPermission4TestCases
      CtsPermission5TestCases

Change-Id: I93fde9ca1cacada7929761533dcae11b2736ce1e
2021-07-10 00:24:30 +00:00
Songchun Fan
c4ab6f2069 Merge "Remove @TestApi and @Readable for NFC_PAYMENT_DEFAULT_COMPONENT" into sc-dev am: 3172fe263a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15235116

Change-Id: I3be6e986a5982dac227599e34a006c4046512036
2021-07-09 16:55:49 +00:00
Jean-Michel Trivi
408a8215f8 AudioFormat: new channel masks and more javadoc
Define new channel masks to support immersive audio apps.
Define new channel combinations commonly used for m-chan content.
Document existing and new masks.

Bug: 191404931
Test: atest AudioFormatTest
Change-Id: I59ff6770e9b4958659df8b93eaa649d299ea6922
2021-07-09 08:45:12 -07:00
George Chang
bf0d8be298 Remove @TestApi and @Readable for NFC_PAYMENT_DEFAULT_COMPONENT
Remove @Readable for security vulnerability.
Remove @TestApi since there's no exceptions in ReadSettingsFieldsTest

Bug: 191519696
Bug: 174151290
Test: atest CtsNfcTestCases
Test: atest android.appsecurity.cts.ReadableSettingsFieldsTest
Test: atest CtsQuickAccessWalletTestCases
Test: make RunSettingsRoboTests -j
Test: atest QuickAccessWalletTileTest
Merged-In: I13c038753d3acf3f3b651af3cd22ff55cd464cb1
Change-Id: I13c038753d3acf3f3b651af3cd22ff55cd464cb1
2021-07-09 09:46:29 +00:00
Andrea Ambu
5bbe9cfbfc Merge "speech: Add lenient SpeechRecognizer instantiation" into sc-dev am: cc204c7e2e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15107812

Change-Id: I94f28b043d3fb6d57f112e96c74ec09da22ec392
2021-07-08 17:55:18 +00:00
Andrea Ambu
cc204c7e2e Merge "speech: Add lenient SpeechRecognizer instantiation" into sc-dev 2021-07-08 17:40:10 +00:00
Andrea Ambu
6a630f8e00 speech: Add lenient SpeechRecognizer instantiation
This change allows to test on-device listening via a temporary
recognizer even in devices that do no support on device recognition.

It moves the failure from the static
SpeechRecognizer#createOnDeviceSpeechRecognizer to the instance #startListening.

fail-on-listening

Bug: 192586674
Test: atest CtsVoiceRecognitionTestCases with both config and no config
Change-Id: Id722f4e5167132b76b4fbd5ea0c2ef7d19f15909
2021-07-08 17:29:12 +00:00