Searched refs:virtualDevice (Results 1 – 5 of 5) sorted by relevance
128 VirtualDeviceManager.VirtualDevice virtualDevice = in testVirtualDeviceGrantPermissionNotifyListener() local132 Context deviceContext = mDefaultContext.createDeviceContext(virtualDevice.getDeviceId()); in testVirtualDeviceGrantPermissionNotifyListener()133 testGrantPermissionNotifyListener(deviceContext, virtualDevice.getPersistentDeviceId()); in testVirtualDeviceGrantPermissionNotifyListener()172 VirtualDeviceManager.VirtualDevice virtualDevice = in testVirtualDeviceRevokePermissionNotifyListener() local176 Context deviceContext = mDefaultContext.createDeviceContext(virtualDevice.getDeviceId()); in testVirtualDeviceRevokePermissionNotifyListener()178 deviceContext, virtualDevice.getPersistentDeviceId()); in testVirtualDeviceRevokePermissionNotifyListener()212 VirtualDeviceManager.VirtualDevice virtualDevice = in testVirtualDeviceUpdatePermissionFlagsNotifyListener() local216 Context deviceContext = mDefaultContext.createDeviceContext(virtualDevice.getDeviceId()); in testVirtualDeviceUpdatePermissionFlagsNotifyListener()218 deviceContext, virtualDevice.getPersistentDeviceId()); in testVirtualDeviceUpdatePermissionFlagsNotifyListener()
66 private lateinit var virtualDevice: VirtualDevice variable in android.permission.cts.DevicePermissionsTest92 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()
69 private lateinit var virtualDevice: VirtualDeviceManager.VirtualDevice in <lambda>() variable in android.permissionmultidevice.cts.DeviceAwarePermissionGrantTest84 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>()
89 val virtualDevice = in setup() constant97 virtualDeviceManager.getVirtualDevice(virtualDevice.deviceId)!!.displayName.toString() in setup()99 persistentDeviceId = virtualDevice.persistentDeviceId!! in setup()
77 val virtualDevice = vdm.getVirtualDevice(deviceId) ?: return false in <lambda>() constant80 Manifest.permission.CAMERA -> virtualDevice.hasCustomCameraSupport() in <lambda>()81 Manifest.permission.RECORD_AUDIO -> virtualDevice.hasCustomAudioInputSupport() in <lambda>()95 val virtualDevice = vdm.getVirtualDevice(deviceId) in <lambda>() constant96 if (virtualDevice != null) { in <lambda>()97 return if (virtualDevice.displayName != null) virtualDevice.displayName.toString() in <lambda>()