Home
last modified time | relevance | path

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

/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowUsbManagerTest.java71 assertThat(usbManager.hasPermission(usbDevice1)).isFalse(); in hasPermission_device()
76 assertThat(usbManager.hasPermission(usbDevice1)).isFalse(); in hasPermission_device()
77 assertThat(usbManager.hasPermission(usbDevice2)).isFalse(); in hasPermission_device()
81 assertThat(usbManager.hasPermission(usbDevice1)).isTrue(); in hasPermission_device()
82 assertThat(usbManager.hasPermission(usbDevice2)).isFalse(); in hasPermission_device()
87 assertThat(usbManager.hasPermission(usbAccessory)).isFalse(); in hasPermission_accessory()
89 assertThat(usbManager.hasPermission(usbAccessory)).isFalse(); in hasPermission_accessory()
91 assertThat(usbManager.hasPermission(usbAccessory)).isTrue(); in hasPermission_accessory()
94 assertThat(usbManager.hasPermission(usbAccessory)).isFalse(); in hasPermission_accessory()
102 assertThat(usbManager.hasPermission(usbDevice1)).isTrue(); in grantPermission_selfPackage_shouldHavePermission()
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowBugreportManager.java24 private boolean hasPermission = true; field in ShadowBugreportManager
121 public void setHasPermission(boolean hasPermission) { in setHasPermission() argument
122 this.hasPermission = hasPermission; in setHasPermission()
126 if (!hasPermission) { in enforcePermission()
DShadowCrossProfileApps.java320 return hasPermission(permission.INTERACT_ACROSS_USERS_FULL) in canInteractAcrossProfiles()
321 || hasPermission(permission.INTERACT_ACROSS_PROFILES) in canInteractAcrossProfiles()
322 || hasPermission(permission.INTERACT_ACROSS_USERS) in canInteractAcrossProfiles()
384 private boolean hasPermission(String permission) { in hasPermission() method in ShadowCrossProfileApps
413 if (!hasPermission(permission.INTERACT_ACROSS_USERS) in setInteractAcrossProfilesAppOp()
414 || !hasPermission(permission.CONFIGURE_INTERACT_ACROSS_PROFILES)) { in setInteractAcrossProfilesAppOp()
DShadowUsbManager.java68 protected boolean hasPermission(UsbDevice device) { in hasPermission() method in ShadowUsbManager
80 protected boolean hasPermission(UsbAccessory accessory) { in hasPermission() method in ShadowUsbManager
170 public void addOrUpdateUsbDevice(UsbDevice usbDevice, boolean hasPermission) { in addOrUpdateUsbDevice() argument
174 if (hasPermission) { in addOrUpdateUsbDevice()
DShadowWifiManager.java471 public void setUpdateNetworkPermission(int networkId, boolean hasPermission) { in setUpdateNetworkPermission() argument
472 readOnlyNetworkIds.set(networkId, !hasPermission); in setUpdateNetworkPermission()
DShadowInstrumentation.java371 boolean hasPermission = hasPermissionFromManifest || hasPermissionForBackwardsCompatibility; in broadcastReceiverMatchesIntent()
380 return matchesIntentClass || (hasPermission && matchesAction && matchesDataAndType); in broadcastReceiverMatchesIntent()
/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.java59 protected boolean hasPermission(UsbDevice device) { in hasPermission() method in ShadowUsbManager
127 public void addOrUpdateUsbDevice(UsbDevice usbDevice, boolean hasPermission) { in addOrUpdateUsbDevice() argument
131 if (hasPermission) { in addOrUpdateUsbDevice()
/external/lottie/sample/src/main/kotlin/com/airbnb/lottie/samples/utils/
DTypeExtensions.kt42 fun String.hasPermission(context: Context): Boolean = in urlIntent() method
71 fun Context.hasPermission(permission: String): Boolean { in Float() method
/external/lottie/sample/src/main/kotlin/com/airbnb/lottie/samples/
DPreviewFragment.kt15 import com.airbnb.lottie.samples.utils.hasPermission in <lambda>()
35 if (requireContext().hasPermission(Manifest.permission.CAMERA)) { in <lambda>()
/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/webrtc/examples/androidjunit/src/org/appspot/apprtc/
DBluetoothManagerTest.java116 protected boolean hasPermission(Context context, String permission) { in setUp()
/external/ow2-asm/tools/retrofitter/src/main/resources/
Djdk1.5.0.12.txt.gz