Home
last modified time | relevance | path

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

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowUsbManagerTest.java67 public void hasPermission() { in hasPermission() method in ShadowUsbManagerTest
68 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()
/external/glide/library/src/main/java/com/bumptech/glide/manager/
DConnectivityMonitorFactory.java14 final boolean hasPermission = res == PackageManager.PERMISSION_GRANTED; in build()
15 if (hasPermission) { in build()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowUsbManager.java58 protected boolean hasPermission(UsbDevice device) { in hasPermission() method in ShadowUsbManager
126 public void addOrUpdateUsbDevice(UsbDevice usbDevice, boolean hasPermission) { in addOrUpdateUsbDevice() argument
130 if (hasPermission) { in addOrUpdateUsbDevice()
/external/tensorflow/tensorflow/examples/android/src/org/tensorflow/demo/
DCameraActivity.java81 if (hasPermission()) { in onCreate()
286 private boolean hasPermission() { in hasPermission() method in CameraActivity
/external/tensorflow/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/
DCameraActivity.java81 if (hasPermission()) { in onCreate()
284 private boolean hasPermission() { in hasPermission() method in CameraActivity
/external/webrtc/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/
DWebRtcAudioUtils.java196 public static boolean hasPermission(Context context, String permission) { in hasPermission() method in WebRtcAudioUtils
DWebRtcAudioRecord.java156 if (!WebRtcAudioUtils.hasPermission( in initRecording()
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
DLoopbackActivity.java2439 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()