Home
last modified time | relevance | path

Searched refs:hasPermission (Results 1 – 12 of 12) 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/lottie/LottieSample/src/main/kotlin/com/airbnb/lottie/samples/
DTypeExtensions.kt35 fun String.hasPermission(context: Context): Boolean = in urlIntent() method
64 fun Context.hasPermission(permission: String): Boolean { in Float() method
DFilmStripSnapshotActivity.kt53 private fun hasStoragePermission() = hasPermission(Manifest.permission.READ_EXTERNAL_STORAGE) in <lambda>()
55 …private fun hasPermission(permission: String) = ContextCompat.checkSelfPermission(this, permission… in <lambda>() method
DPreviewFragment.kt37 if (requireContext().hasPermission(Manifest.permission.CAMERA)) { in <lambda>()
/external/oboe/apps/OboeTester/app/src/main/java/com/google/sample/oboe/manualtest/
DTapToToneActivity.java308 boolean hasPermission = (checkSelfPermission( in hasRecordAudioPermission()
310 Log.i(TAG, "Has RECORD_AUDIO permission? " + hasPermission); in hasRecordAudioPermission()
311 return hasPermission; in hasRecordAudioPermission()
/external/libtextclassifier/java/src/com/android/textclassifier/common/intent/
DLabeledIntent.java119 if (!hasPermission(context, resolveInfo.activityInfo)) { in resolve()
234 private static boolean hasPermission(Context context, ActivityInfo info) { in hasPermission() method in LabeledIntent
/external/tensorflow/tensorflow/tools/android/test/src/org/tensorflow/demo/
DCameraActivity.java81 if (hasPermission()) { in onCreate()
286 private boolean hasPermission() { in hasPermission() method in CameraActivity
/external/webrtc/examples/androidapp/src/org/appspot/apprtc/
DAppRTCBluetoothManager.java237 if (!hasPermission(apprtcContext, android.Manifest.permission.BLUETOOTH)) { in start()
416 protected boolean hasPermission(Context context, String permission) { in hasPermission() method in AppRTCBluetoothManager
/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()
/external/webrtc/examples/androidjunit/src/org/appspot/apprtc/
DBluetoothManagerTest.java116 protected boolean hasPermission(Context context, String permission) { in setUp()