Adds DEVICE_LOCK permission to Shell to support the
CarDevicePolicyManagerTest. This permission is needed to call
DevicePolicyManager#lockNow which locks the device.
Bug: 187199256
Test: atest CarDevicePolicyManagerTest
Merged-In: I3fa20b53b929c97a6760d65b432a74c3415d6a08
Change-Id: I3fa20b53b929c97a6760d65b432a74c3415d6a08
* changes:
Grant Shell CDM permissions
Check REQUEST_COMPANION_SELF_MANAGED permission in CDM
Fix usages of CDM APIs in NotificationManagerService(Test)
Refresh CompanionDeviceManager's API surface
Add explicit MAC address and display name fields
Add AudioManager system APIs to acquire call audio injection AudioTrack
and extraction AudioRecord.
Add AudioTrack and AudioRecord Builder system APIs to create different
variants of call redirection AudioTrack and AudioRecord:
- If the call is PSTN, only the AudioTrack or AudioRecord is created
with audio usage or capture preset corresponding to call audio uplink
injection or downlink capture.
- If the call is VoIP, a dynamic audio policy is installed for voice
communication interception and the AudioTrack or AudioRecord is obtained
from the audio policy.
Bug: 189472651
Test: make
Change-Id: I6d3ed3948c13253ceea4a0fab836a753b5ee9ad0
Granting Shell new permissions required for accessing
CompanionDeviceManager APIs (such as
REQUEST_COMPANION_PROFILE_APP_STREAMING,
REQUEST_COMPANION_SELF_MANAGED).
Permissions are needed for running CompanionDeviceManagerTest CTS test
(which utilizes adoptShellPermissionIdentity for accessing the API
protected by the said permissions).
Bug: 194301022
Test: atest CompanionDeviceManagerTest
Ignore-AOSP-First: new permissions (not yet in AOSP)
Change-Id: I2c8469661f3b6de4ee1e2aa37c919bc0ad25ef8f
Fixes: 207331094
Ignore-AOSP-First: Owners file aded for a new folder
which doesn't exist on AOSP
Test: adb shell dumpsys display | grep DensityMap
Change-Id: Ia46004fa8e41bb24b16a660f12873c9f9a93b6a4
WM delays to destroy window surface if the window is running an exit
animation, and clean it up after the animation finishes. In case the
clean up process was not triggered, we do it before starting an app
transition.
Note that this is a safe guard for potential bugs. The surface shall
be destroyed as soon as an animation finishes, so the clean up should
have been done before an app transition starts.
Bug: 205335975
Test: atest AppTransitionControllerTest
Change-Id: I9c37ab9ebc57ef48827df25ecc52bf09101ad419
Adds DEVICE_LOCK permission to Shell to support the
CarDevicePolicyManagerTest. This permission is needed to call
DevicePolicyManager#lockNow which locks the device.
Bug: 187199256
Test: atest CarDevicePolicyManagerTest
Change-Id: I3fa20b53b929c97a6760d65b432a74c3415d6a08
This permission is required to query AppPredictionService.
When the unbundled Chooser doesn't request this permission,
we get a SecurityException attempting to invoke
createPredictionSession(). When we request the permission
but don't add it to this allow-list, the device boot-loops.
With the permission added in both places (and some other
local changes), the unbundled Chooser is able to show the
full set of app predictions.
Test: Manual, as described above.
Bug: 206831012
Change-Id: I154d0555471f7f8820ac151b77a61cb8d9bf7603
Loosen the check on FLAG_RESUME_WHILE_PAUSING in
TaskFragment#startPausing for auto-enter-pip.
Fixed also the round corner radius calculation in WMShell component for
entering PiP transition.
Bug: 198227082
Bug: 202574512
Video: http://recall/-/aaaaaabFQoRHlzixHdtY/bEPWcJSn8iGbLLNg6cM0E3
Test: no auto-enter on quick switch and does on launching new Task,
see video for details
Test: atest PinnedStackTests#testAutoPipOnLaunchingAnotherActivity
Change-Id: I53e62a5f6e663b2d6df8cd0aaa858ff01ef073e8
Ensure the PermissionController can receiver the WRITE_SECURE_SETTINGS
permissions, to allow it to control location enable state. Open
SensorPrivacy APIs to @SystemApi. Also updates a SystemUI string
description to point to another string in PermissionController, which
should be kept in sync
Test: Build
Bug: 194816787
Change-Id: If4a45339449cc392eed28e33453c74a3b10988b4
These two permissions are required for the most basic
ChooserActivity flows (as determined by runtime exceptions
during prototyping). Without this allow-listing, the
unbundled chooser's intent resolvers fail to register at
startup, and the device boot-loops.
Among the privileges that might require allow-listing,
these two in particular were sufficient for showing a
basic Chooser UI and launching the user-selected target.
More complex Chooser flows may turn out to require
additional permissions later on.
Test: manual testing as described above, but requires
several local-only changes to exercise the flow, and
this CL has to be the first to go in (but has no
side-effects of its own).
Change-Id: I6a24a46a91199e8b3fb643f047a9b9412b19eb8d
Query the surface flinger property
ro.surface_flinger.primary_display_orientation to determine the
primary display's install orientation. If the window is on the
primary display, then update the transform hint passed on to the
client.
Bug: 196167822
Test: check initial buffer transforms on displays with a different
install orientation
Change-Id: Idf010cd6be73172ba708820f87046c3ba3cf8001
Merged-In: Idf010cd6be73172ba708820f87046c3ba3cf8001
This was added to temporarily achieve some backwards compatibility on
older TV remotes. It's breaking other devices that do not use their own
vendor id / product id information.
To fix those devices, we simply remove the idc and fallback to
Generic.kl
Bug: 204397586
Test: None
Change-Id: I6e4578271563169f6404588338995526e3b57f07
- This was missed during cherry-pick from master.
Bug: 187720593
Test: Manually verified by building and observing no bootloop.
Change-Id: Ib36186380ce6d786b0f0272b8866b5eab51920c2
The SharedFilter is used to share the Filter created by TIS to another
process. The TIS uses Filter.createSharedFilter() to create a token and
share it to another process. The new process will use
Tuner.openSharedFilter() to open that new token and create a
SharedFilter. The new process will be able to read the TIS owned
Filter's data with this new SharedFilter.
Bug: 196124225
Test: atest android.media.tv.tuner.cts on both AIDL and HIDL HAL.
Change-Id: Id93b30e4db242d35a3d1ae6023b967a90a78c448
Previously, WMS always associate TYPE_APPLICATION WindowContext with
the default TDA. This CL provides the capibility to select a TDA by
DisplayAreaPolicy.
Test: atest DisplayAreaPolicyBuilderTest
fixes: 185769955
Change-Id: Ie7cb686cd5d1da81ef618a3f1316dc3932a8272f
Change-Id: Ia25854feed3bb6b037d4510a6b5000d906d27313
Merged-In: Ia25854feed3bb6b037d4510a6b5000d906d27313
Bug: 198593156
Test: manual. capture winscope dump and see it.
PiP Shell Transitions needs to be more robust to pass CTS tests
reliably.
Some changes:
1. DELIVERED_TO_TOP intents don't create a transition since there is
no change to the WM hierarchy. This way the app-launch transition
won't conflict with activityRestartAttempt.
2. If PiP started an expand transition while an enter transition is
ongoing, cancel the enter transition.
a. Additionally, because PiP doesn't resize task until the enter
transition finishes, the expand transition will actually be
a no-op. If we see this pattern, also cancel the enter
transition.
3. When taskVanished, make sure to call any pending finishCallback
because it doesn't allow the running animator to properly finish.
Transition systems require the finish callback to function
properly.
4. Minimize the uses of finishTransition with a sync callback. We
probably need to phase this out because it can conflict with
subsequent startTransition calls (because only 1 sync is supported
at a time).
Bug: 183993924
Test: atest PinnedStackTests
Change-Id: Ieb573032839a2f31b0bb371410484fc93a1714fa
We don't want to allow the client to animate for wallpaper or any
non-app windows.
Bug: 201482129
Bug: 196173550
Test: atest WmTests:AppTransitionControllerTest
#testOverrideTaskFragmentAdapter_noOverrideWithWallpaper
Change-Id: Ic29db59fc9f9695df9c8ba3a6d812ad217cdd641