| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
Bug: 418773283
Test: cts
Flag: EXEMPT bugfix
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:cdb53aa29b4b0fcebbdabb183d4909009f93140e)
Merged-In: I29e050c498e813e291af213ce4ddc590559c8b7d
Change-Id: I29e050c498e813e291af213ce4ddc590559c8b7d
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This cl fixes the problem that CDM calls RoleManager.removeRoleHolderAsUser()
will kill the application's process that lead to the poor user
experience.
In order to fix the problem:
1. Introduce a new OnUidImportanceListener which watches the
importance of the packages. In this class, we only interested in
the importance of the running process is greater than
IMPORTANCE_VISIBLE.
2. Introduce a new field in AssociationInfo class: 'mRevoked' to
indicate the associaiton has been reovked and pending for
role holder removal. So that the revoked association can store
in the same place as the active associaiton -> easy maintenance.
3. Finally remove the role holder for the packages are not visible to
the users.
Bug: 189250370
Test: atest CtsCompanionDeviceManagerCoreTestCases
atest CtsCompanionDeviceManagerUiAutomationTestCases
atest CtsOsTestCases:CompanionDeviceManagerTest
Change-Id: Ib7fb08b0d800c62a9ee708ddd52cd174de1829d9
Merged-In: Ib7fb08b0d800c62a9ee708ddd52cd174de1829d9
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When creating a VirtualDisplay for a VirtualDevice, we need to do some
extra work like setting up for input injection, creating a
DisplayWindowPolicyController, and grabbing a wakelock to keep the
display awake. Some parts of this extra work end up calling back into
the DisplayManagerService from another thread, but since we're already
holding the mSyncRoot lock we sometimes get into situations where
those threads get blocked trying to acquire mSyncRoot, while holding a
lock that another thread ends up needing like the global window
manager one, so we get deadlock.
The fix in this CL is to break up the extra work the
VirtualDeviceManagerService needs to do into two parts: one part that
happens before the VirtualDisplay is created, and one part
after. Neither of these needs mSyncRoot to be held.
Fixes: 230544802
Test: atest CreateVirtualDisplayTest
Change-Id: I6a6e03f816567579510b3f1ef0705375549a3c88
|
| |
|
|
|
| |
Test: presubmit
Change-Id: I4a8a2b45835b7838ab41ae6867dc230471eb5952
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Instead of separate onLaunchSuccess and onLaunchFailure methods, combine
them into onLaunchComplete(int status), which can either be SUCCESS or
indicate the reason for failure.
Bug: 219985243
Test: atest CtsVirtualDevicesTestCases
Change-Id: I822c189b4bfc49ce936f072ff6e06f504c8eb80d
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When calling VirtualDeviceManager#createVirtualAudioDevice(), if the
caller pass null AudioConfigurationChangeCallback parameter, it means
the caller doesn't care the audio playback/recording change in virtual
display, and we should not register it with AudioManager for
optimization.
Bug: 218528439
Test: atest CtsVirtualDevicesTestCases
Change-Id: I00120f2506f593100ef8c523a4f6addffe46597b
|
| | |
| |
| |
| |
| |
| |
| |
| | |
The topActivity defined in ActivityListener#onTopActivityChanged is @NonNull, so GenericWindowPolicyController should not send the callback when topActivity is null.
Bug: 222771130
Test: manual testing
Change-Id: I227d1d83e0e191975ab45b110909938022bb1d0c
|
| |\ \
| |/
|/|
| | |
task" into tm-dev
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This changes the API to allow virtual device owners to configure allow
and deny lists of components to navigate to new tasks while being
streamed.
The change is only in VirtualDeviceParams, a recent API addition with
low touch. Base case has the new lists set to an empty set preventing
any change to current behavior.
Bug: 223915401
Test: Tests added in ag/17235857
Change-Id: Icb44163acb23736e562ffb4b08f4eb93c8b01990
|
| |/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. Add the new association request failure codes
RESULT_USER_REJECTED, RESULT_DISCOVERY_TIMEOUT
RESULT_INTERNAL_ERROR
2. Add the new association failure reason:
REASON_CANCELED, REASON_DISCOVERY_TIMEOUT,
REASON_USER_REJECTED
The change helps to identify user's action that
the association request explicitly declined by the user
Test: atest CtsCompanionDeviceManagerCoreTestCases
atest CtsCompanionDeviceManagerUiAutomationTestCases
atest CtsOsTestCases:CompanionDeviceManagerTest
Bug: 223706865
Fix: 224559263
Change-Id: I50fe40780a977c5bbe0aac5b67e1925ea75058bb
|
| |\ |
|
| | |
| |
| |
| |
| | |
Test: unit tests
Change-Id: I8768fd5264297e4a1938563ffc6b3bad67e13269
|
| |\ \ |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Add #close() but keep it and the constructor as package-private because we want caller to call VirtualAudioDevice#close().
Add #getFormat() and the audio format will be owned by
AudioCapture/AudioInjection, not VirtualAudioSession.
Add all #read() and #write() overloads method, so that the caller can
replace the call to AudioRecord/AudioTrack easily.
Bug: 218542209
CTS-Coverage-Bug: 218528439
Test: atest FrameworksCoreTests:android.companion.virtual
Change-Id: Iccfd497e6aaeacc60a57d28ae730fdc0cce46a25
|
| |\ \ \
| |/ /
|/| | |
|
| | |/
| |
| |
| |
| |
| |
| |
| |
| | |
- Removed overload of addActivityListener that doesn't have executor
- Moved executor to be before the listener
Bug: 219985243
Test: atest CtsVirtualDevicesTestCases
Change-Id: I0681aeabeeefde5ce2c3ff4da3f50acc7f22ca07
|
| |/
|
|
|
|
|
|
| |
This IntDef specifies the supported key codes.
Bug: 216554655
Test: builds
Change-Id: Idde1ab17148294bd7348fdf72eb3b1fa65f777c1
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Instead of using null values to indicate whether to use the allow list
or deny list for activity launching, add an intdef value to specify that
explicitly.
Bug: 219985243
Test: atest CtsVirtualDevicesTestCases
Change-Id: Ie6039262c95270f8886da7146999f30844f69a3c
|
| |/
|
|
|
|
| |
Fixes: 218717272
Test: Existing tests pass
Change-Id: I0e4b73d8e9c3bf80e7d7d33213fd1c43d8ed207d
|
| |
|
|
|
|
|
|
|
|
| |
Limits only one VirtualAudioDevice can be created per VirtualDevice.
When VirtualDevice is closed, the associated VirtualAudioDevice and VirtualAudioController will be closed as well.
Bug: 218751752
Test: atest FrameworksServicesTests:com.android.server.companion.virtual
Change-Id: I6aa8b8af8b526fb52bbb4b23305f28182012803d
|
| |
|
|
|
|
|
|
|
|
| |
Expand javadocs and change return value to NonNull for
VirtualDeviceManager.createVirtualDevice.
Also removed the redundant @TestApi on the virtual display flag.
Bug: 217742182
Test: Existing tests pass
Change-Id: I381039e6ebe4f5f5046a35e9a3e266ff7f46c369
|
| |
|
|
|
|
|
|
| |
Also changed the Handler parameter to Executor
Bug: 217742182
Test: atest CtsVirtualDevicesTestCases
Change-Id: I3321927b36361168655f4886825955a642fb6c79
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Meta-data will increase the system server ram consumption.
So we decide to use property instead of meta-data to
indicate the primary cdm service.
Test: atest CtsCompanionDeviceManagerCoreTestCases:SelfPresenceReportingTest
Fix: 217953124
Change-Id: I91ebe374bba392d14d693d3c6a36433b5af7cf2a
|
| |\ \ |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- Add additional javadoc for vendor and product ids
- Enumerate full allowed key code set for VirtualKeyEvent
- On cloud devices, CTS fails with 'bad address' for VirtualTouchscreen.
Pass by address rather than by value to solve.
Bug: 216554655
Test: atest CtsHardwareTestCases:android.hardware.input.cts.tests
Change-Id: Ifb233d2b6c4eee1ffdcba218ed17312e67bac6f6
|
| |\ \ \
| | |/
| |/| |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Use CompanionDevicePresenceMonitor and CompanionApplicationController in
CompanionDeviceManagerService.
Remove CompanionDevicePresenceController.
Bug: 211398735
Test: atest CtsCompanionDeviceManagerCoreTestCases
Test: atest CtsCompanionDeviceManagerUiAutomationTestCases
Test: atest CtsOsTestCases:CompanionDeviceManagerTest
Change-Id: I542c6d8157b51fc9c0a2e55055792b6951f292d9
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Listens to User Restrictions change of DISALLOW_UNMUTE_MICROPHONE to suspend or resume audio injection.
Bug: 195654431
Test: manual testing by go/testdpc pass
Change-Id: Ifedb89172edb0dc6474e078dea0c96f1c7038c4c
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Add createVirtualAudioDevice() API in VirtualDevice to return a VirtualAudioDevice object for the caller to capture audio and inject microphone to applications running on the specified virtual display.
The VirtualAudioController in service side will responsible for listening virtual display running applications change, playback and recording config change, then notify the VirtualAudioSession to update AudioRecord/AudioTrack inside the AudioCapture/AudioInjection class internally.
Bug: 201558304
CTS-Coverage-Bug: 218528439
Test: atest FrameworksCoreTests:android.companion.virtual, atest FrameworksServicesTests:com.android.server.companion.virtual, manual testing with Exo by ag/16575248
Change-Id: I74f3da67b76aaa909943fbfc8418bf22d637ca39
|
| |\ \ \ |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Also update the documentation to more accurately represent what the
flag actually does.
Bug: 217273933
Test: existing tests should pass
Change-Id: I28c9798d7974e58cfcd6ab59e7ee50f9a6c43985
|
| |\ \ \ \
| |_|_|/
|/| | | |
|
| | | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Replace "would prefer" with stronger language - "requires" - in the
javadoc to AssociationRequest.Builder.setForceConfirmation(boolean) and
AssociationRequest.isForceConfirmation().
Bug: 217366132
Test: m
Change-Id: I7d94598d71a39fc022927634975706ccffeac406
|
| | |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
If the permission is not already held by the caller through other means,
this causes unregistration failures, since the unique id disassociation
requires a signature permission. Clear the binding identity if the
permission is found, allowing use of the permisson. This is especially
important for CTS tests, and for access by non-signature apps.
Bug: 217275682
Test: atest CtsHardwareTestCases:android.hardware.input.cts.tests
Change-Id: Ide5232e5b5b5b1b3ca96e5cbfb997e4a1001a583
|
| |/
|
|
|
|
|
| |
Bug: 216244627
Test: atest FrameworksServicesTests:com.android.server.companion.virtual
CTS-Coverage-Bug: 208247880
Change-Id: Ie1a2bc526a705f2f9788898afbff87f5a9448f85
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Add CtsCompanionDeviceManagerCoreTestCases and
CtsCompanionDeviceManagerUiAutomationTestCases to the "presubmit"
TEST_MAPPING group.
Bug: 208213276
Bug: 212535524
Test: atest --test-mapping frameworks/base/core/java/android/companion:presubmit
Test: atest --test-mapping frameworks/base/services/companion:presubmit
Change-Id: I50fd495f3fc455932fd915461a7c3b8559ef0e6e
|
| | |
| |
| |
| |
| |
| |
| | |
Bug: 194949534
Test: ag/15781910
CTS-Coverage-Bug: 204606917
Change-Id: I77b68bc04a7e5fd3b6d2ca3f84e5d772d6e680b2
|
| |\ \ |
|
| | | |
| | |
| | |
| | |
| | |
| | | |
Bug: 216213933
Test: atest CtsCompanionDeviceManagerCoreTestCases:DeviceProfilesTest
Change-Id: I2cd6cfc5e2b9df3708fae3e4db8164e36fc9717a
|
| |\ \ \ |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Due to permission sync feature has been punted to U, the data transfer
APIs need to be hidden.
Bug: 199427116
Fix: 203822629
Test: m and flash
Change-Id: Ibb642827cd9f1708a557af7a8a996826ceec3eb9
|
| |\ \ \ \ |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
For virtual displays that are created through VDM, allow
FLAG_OWN_DISPLAY_GROUP to be added. This applies to every display
created through VDM, because VDM adds this flag on behalf of the caller
by default.
Bug: 194949534
Test: atest DisplayManagerServiceTest.java
Change-Id: I1826dbd0cb7f4c4a76abbf25741b9862c5ff7355
|
| |\ \ \ \ \ |
|
| | |/ / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Unhiding VDM activity listener and launchPendingIntent APIs.
Bug: 194949534
Test: ag/15781910
CTS-Coverage-Bug: 204606917
Change-Id: I7c8b80cf8ed99d1c2931084840b5cd4428c5b285
|
| |/ / / /
| | | |
| | | |
| | | |
| | | |
| | | | |
Bug: 216200887
Test: Error logs no longer show on logcat
Change-Id: I4c945ef78be9277b2c2570538138f9b8b955d7c1
|