Searched refs:hasPermission (Results 1 – 4 of 4) 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));
608 private void verifyPermission(boolean hasPermission) { in verifyPermission() argument609 assertEquals(hasPermission, in verifyPermission()
73 if (mUsbManager.hasPermission(device)) { in runTest()