/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowUsbManagerTest.java | 67 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/ |
D | ConnectivityMonitorFactory.java | 14 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/ |
D | ShadowUsbManager.java | 58 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/ |
D | TypeExtensions.kt | 35 fun String.hasPermission(context: Context): Boolean = in urlIntent() method 64 fun Context.hasPermission(permission: String): Boolean { in Float() method
|
D | FilmStripSnapshotActivity.kt | 53 private fun hasStoragePermission() = hasPermission(Manifest.permission.READ_EXTERNAL_STORAGE) in <lambda>() 55 …private fun hasPermission(permission: String) = ContextCompat.checkSelfPermission(this, permission… in <lambda>() method in com.airbnb.lottie.samples.FilmStripSnapshotActivity
|
D | PreviewFragment.kt | 37 if (requireContext().hasPermission(Manifest.permission.CAMERA)) { in <lambda>()
|
/external/oboe/apps/OboeTester/app/src/main/java/com/google/sample/oboe/manualtest/ |
D | TapToToneActivity.java | 308 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/ |
D | LabeledIntent.java | 119 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/ |
D | CameraActivity.java | 81 if (hasPermission()) { in onCreate() 286 private boolean hasPermission() { in hasPermission() method in CameraActivity
|
/external/webrtc/examples/androidapp/src/org/appspot/apprtc/ |
D | AppRTCBluetoothManager.java | 237 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/ |
D | LoopbackActivity.java | 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()
|
/external/webrtc/examples/androidjunit/src/org/appspot/apprtc/ |
D | BluetoothManagerTest.java | 116 protected boolean hasPermission(Context context, String permission) { in setUp()
|