Searched refs:hasPermission (Results 1 – 6 of 6) sorted by relevance
118 if (hasPermission(Manifest.permission.ACTIVITY_RECOGNITION) != permissionGranted) { in runTest()149 private boolean hasPermission(String permission) { in hasPermission() method in StepSensorPermissionTestActivity155 if (expected && !hasPermission(permission)) { in checkPermission()157 } else if (!expected && hasPermission(permission)) { in checkPermission()
250 if (!mUsbManager.hasPermission(mUsbDevice)) {267 assertTrue(mUsbManager.hasPermission(mUsbDevice));
611 private void verifyPermission(boolean hasPermission) { in verifyPermission() argument612 assertEquals(hasPermission, in verifyPermission()
73 if (mUsbManager.hasPermission(device)) { in runTest()
182 manifest: "AndroidManifest-queriesNothing-hasPermission.xml",
1725 private void verifyLocusIdEventVisibility(UsageEvents events, boolean hasPermission) { in verifyLocusIdEventVisibility() argument1737 if (hasPermission) { in verifyLocusIdEventVisibility()