Home
last modified time | relevance | path

Searched refs:hasPermission (Results 1 – 6 of 6) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DStepSensorPermissionTestActivity.java118 if (hasPermission(Manifest.permission.ACTIVITY_RECOGNITION) != permissionGranted) { in runTest()
149 private boolean hasPermission(String permission) { in hasPermission() method in StepSensorPermissionTestActivity
155 if (expected && !hasPermission(permission)) { in checkPermission()
157 } else if (!expected && hasPermission(permission)) { in checkPermission()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/mtp/
DMtpHostTestActivity.java250 if (!mUsbManager.hasPermission(mUsbDevice)) {
267 assertTrue(mUsbManager.hasPermission(mUsbDevice));
/cts/tests/tests/telecom/src/android/telecom/cts/
DThirdPartyCallScreeningServiceTest.java611 private void verifyPermission(boolean hasPermission) { in verifyPermission() argument
612 assertEquals(hasPermission, in verifyPermission()
/cts/apps/CtsVerifierUSBCompanion/src/com/android/cts/verifierusbcompanion/
DAccessoryTestCompanion.java73 if (mUsbManager.hasPermission(device)) { in runTest()
/cts/tests/tests/appenumeration/app/source/
DAndroid.bp182 manifest: "AndroidManifest-queriesNothing-hasPermission.xml",
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DUsageStatsTest.java1725 private void verifyLocusIdEventVisibility(UsageEvents events, boolean hasPermission) { in verifyLocusIdEventVisibility() argument
1737 if (hasPermission) { in verifyLocusIdEventVisibility()