Searched refs:defaultDeviceContext (Results 1 – 3 of 3) sorted by relevance
67 private val defaultDeviceContext = instrumentation.targetContext in <lambda>() constant in android.permissionmultidevice.cts.DeviceAwarePermissionGrantTest77 assumeFalse(PermissionUtils.isAutomotive(defaultDeviceContext)) in <lambda>()78 assumeFalse(PermissionUtils.isTv(defaultDeviceContext)) in <lambda>()79 assumeFalse(PermissionUtils.isWatch(defaultDeviceContext)) in <lambda>()83 defaultDeviceContext.getSystemService(VirtualDeviceManager::class.java)!! in <lambda>()246 defaultDeviceContext in <lambda>()260 intent.setPackage(defaultDeviceContext.packageManager.getPermissionControllerPackageName()) in <lambda>()261 return intent.resolveActivity(defaultDeviceContext.packageManager) in <lambda>()
57 private val defaultDeviceContext = instrumentation.targetContext constant73 defaultDeviceContext.getSystemService(PermissionManager::class.java)!!80 assumeFalse(PermissionUtils.isAutomotive(defaultDeviceContext)) in setup()81 assumeFalse(PermissionUtils.isTv(defaultDeviceContext)) in setup()82 assumeFalse(PermissionUtils.isWatch(defaultDeviceContext)) in setup()88 defaultDeviceContext.getSystemService(VirtualDeviceManager::class.java)!! in setup()388 defaultDeviceContext.startActivity( in openAppPermissionsScreen()
64 private val defaultDeviceContext = instrumentation.targetContext constant in android.permission.cts.DevicePermissionsTest90 defaultDeviceContext.getSystemService(VirtualDeviceManager::class.java) in setup()97 virtualDeviceContext = defaultDeviceContext.createDeviceContext(virtualDevice.deviceId) in setup()121 grantPermissionAndAssertGranted(Manifest.permission.CAMERA, defaultDeviceContext) in testDeviceAwareRuntimePermissionGrantIsInherited()128 grantPermissionAndAssertGranted(NON_DEVICE_AWARE_PERMISSION, defaultDeviceContext) in testNonDeviceAwareRuntimePermissionGrantIsInherited()146 grantPermissionAndAssertGranted(NON_DEVICE_AWARE_PERMISSION, defaultDeviceContext) in testNonDeviceAwareRuntimePermissionIsRevokedForDefaultDevice()150 assertPermission(NON_DEVICE_AWARE_PERMISSION, PERMISSION_DENIED, defaultDeviceContext) in testNonDeviceAwareRuntimePermissionIsRevokedForDefaultDevice()