Home
last modified time | relevance | path

Searched refs:virtualDevice (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DPermissionUpdateListenerTest.java128 VirtualDeviceManager.VirtualDevice virtualDevice = in testVirtualDeviceGrantPermissionNotifyListener() local
132 Context deviceContext = mDefaultContext.createDeviceContext(virtualDevice.getDeviceId()); in testVirtualDeviceGrantPermissionNotifyListener()
133 testGrantPermissionNotifyListener(deviceContext, virtualDevice.getPersistentDeviceId()); in testVirtualDeviceGrantPermissionNotifyListener()
172 VirtualDeviceManager.VirtualDevice virtualDevice = in testVirtualDeviceRevokePermissionNotifyListener() local
176 Context deviceContext = mDefaultContext.createDeviceContext(virtualDevice.getDeviceId()); in testVirtualDeviceRevokePermissionNotifyListener()
178 deviceContext, virtualDevice.getPersistentDeviceId()); in testVirtualDeviceRevokePermissionNotifyListener()
212 VirtualDeviceManager.VirtualDevice virtualDevice = in testVirtualDeviceUpdatePermissionFlagsNotifyListener() local
216 Context deviceContext = mDefaultContext.createDeviceContext(virtualDevice.getDeviceId()); in testVirtualDeviceUpdatePermissionFlagsNotifyListener()
218 deviceContext, virtualDevice.getPersistentDeviceId()); in testVirtualDeviceUpdatePermissionFlagsNotifyListener()
DDevicePermissionsTest.kt66 private lateinit var virtualDevice: VirtualDevice variable in android.permission.cts.DevicePermissionsTest
92 virtualDevice = in setup()
97 virtualDeviceContext = defaultDeviceContext.createDeviceContext(virtualDevice.deviceId) in setup()
99 persistentDeviceId = virtualDevice.persistentDeviceId!! in setup()
106 virtualDevice.close() in cleanup()
218 virtualDevice.persistentDeviceId!! in testGrantAndRevokeDeviceAwarePermissionByPersistentDeviceId()
243 virtualDevice.persistentDeviceId!! in testGrantAndRevokeDeviceAwarePermissionByPersistentDeviceId()
/packages/modules/Permission/tests/cts/permissionmultidevice/src/android/permissionmultidevice/cts/
DDeviceAwarePermissionGrantTest.kt69 private lateinit var virtualDevice: VirtualDeviceManager.VirtualDevice in <lambda>() variable in android.permissionmultidevice.cts.DeviceAwarePermissionGrantTest
84 virtualDevice = in <lambda>()
104 virtualDeviceRule.createManagedVirtualDisplay(virtualDevice, displayConfig)!! in <lambda>()
106 virtualDeviceManager.getVirtualDevice(virtualDevice.deviceId)!!.displayName.toString() in <lambda>()
138 virtualDevice.deviceId, in <lambda>()
166 virtualDevice.deviceId, in <lambda>()
184 assertAppHasPermissionForDevice(virtualDevice.deviceId, false) in <lambda>()
214 virtualDevice.deviceId, in <lambda>()
DAppPermissionsTest.kt89 val virtualDevice = in setup() constant
97 virtualDeviceManager.getVirtualDevice(virtualDevice.deviceId)!!.displayName.toString() in setup()
99 persistentDeviceId = virtualDevice.persistentDeviceId!! in setup()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/v35/
DMultiDeviceUtils.kt77 val virtualDevice = vdm.getVirtualDevice(deviceId) ?: return false in <lambda>() constant
80 Manifest.permission.CAMERA -> virtualDevice.hasCustomCameraSupport() in <lambda>()
81 Manifest.permission.RECORD_AUDIO -> virtualDevice.hasCustomAudioInputSupport() in <lambda>()
95 val virtualDevice = vdm.getVirtualDevice(deviceId) in <lambda>() constant
96 if (virtualDevice != null) { in <lambda>()
97 return if (virtualDevice.displayName != null) virtualDevice.displayName.toString() in <lambda>()