Searched refs:hasPermission (Results 1 – 8 of 8) sorted by relevance
67 public void hasPermission() { in hasPermission() method in ShadowUsbManagerTest68 assertThat(usbManager.hasPermission(usbDevice1)).isFalse(); in hasPermission()73 assertThat(usbManager.hasPermission(usbDevice1)).isFalse(); in hasPermission()74 assertThat(usbManager.hasPermission(usbDevice2)).isFalse(); in hasPermission()78 assertThat(usbManager.hasPermission(usbDevice1)).isTrue(); in hasPermission()79 assertThat(usbManager.hasPermission(usbDevice2)).isFalse(); in hasPermission()87 assertThat(usbManager.hasPermission(usbDevice1)).isTrue(); in grantPermission_selfPackage_shouldHavePermission()
14 final boolean hasPermission = res == PackageManager.PERMISSION_GRANTED; in build()15 if (hasPermission) { in build()
58 protected boolean hasPermission(UsbDevice device) { in hasPermission() method in ShadowUsbManager126 public void addOrUpdateUsbDevice(UsbDevice usbDevice, boolean hasPermission) { in addOrUpdateUsbDevice() argument130 if (hasPermission) { in addOrUpdateUsbDevice()
81 if (hasPermission()) { in onCreate()286 private boolean hasPermission() { in hasPermission() method in CameraActivity
81 if (hasPermission()) { in onCreate()284 private boolean hasPermission() { in hasPermission() method in CameraActivity
196 public static boolean hasPermission(Context context, String permission) { in hasPermission() method in WebRtcAudioUtils
156 if (!WebRtcAudioUtils.hasPermission( in initRecording()
2439 boolean hasPermission = (ContextCompat.checkSelfPermission(this, in hasRecordAudioPermission()2442 log("Has RECORD_AUDIO permission? " + hasPermission); in hasRecordAudioPermission()2443 return hasPermission; in hasRecordAudioPermission()2490 boolean hasPermission = (ContextCompat.checkSelfPermission(this, in hasWriteFilePermission()2493 log("Has WRITE_EXTERNAL_STORAGE? " + hasPermission); in hasWriteFilePermission()2494 return hasPermission; in hasWriteFilePermission()