Home
last modified time | relevance | path

Searched refs:defaultDeviceContext (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Permission/tests/cts/permissionmultidevice/src/android/permissionmultidevice/cts/
DDeviceAwarePermissionGrantTest.kt67 private val defaultDeviceContext = instrumentation.targetContext in <lambda>() constant in android.permissionmultidevice.cts.DeviceAwarePermissionGrantTest
77 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>()
DAppPermissionsTest.kt57 private val defaultDeviceContext = instrumentation.targetContext constant
73 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()
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DDevicePermissionsTest.kt64 private val defaultDeviceContext = instrumentation.targetContext constant in android.permission.cts.DevicePermissionsTest
90 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()