/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareClientState.java | 225 boolean hasPermission = mWifiPermissionsUtil.checkCallersLocationPermission( in onInterfaceAddressChange() 227 if (VDBG) Log.v(TAG, "hasPermission=" + hasPermission); in onInterfaceAddressChange() 228 mCallback.onIdentityChanged(hasPermission ? mac : ALL_ZERO_MAC); in onInterfaceAddressChange() 260 boolean hasPermission = mWifiPermissionsUtil.checkCallersLocationPermission( in onClusterChange() 262 if (VDBG) Log.v(TAG, "hasPermission=" + hasPermission); in onClusterChange() 264 hasPermission ? currentDiscoveryInterfaceMac : ALL_ZERO_MAC); in onClusterChange()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | PermissionMonitorTest.java | 209 assertFalse(mPermissionMonitor.hasPermission(app, CHANGE_NETWORK_STATE)); in testHasPermission() 210 assertFalse(mPermissionMonitor.hasPermission(app, NETWORK_STACK)); in testHasPermission() 211 assertFalse(mPermissionMonitor.hasPermission(app, CONNECTIVITY_USE_RESTRICTED_NETWORKS)); in testHasPermission() 212 assertFalse(mPermissionMonitor.hasPermission(app, CONNECTIVITY_INTERNAL)); in testHasPermission() 215 assertTrue(mPermissionMonitor.hasPermission(app, CHANGE_NETWORK_STATE)); in testHasPermission() 216 assertTrue(mPermissionMonitor.hasPermission(app, NETWORK_STACK)); in testHasPermission() 217 assertFalse(mPermissionMonitor.hasPermission(app, CONNECTIVITY_USE_RESTRICTED_NETWORKS)); in testHasPermission() 218 assertFalse(mPermissionMonitor.hasPermission(app, CONNECTIVITY_INTERNAL)); in testHasPermission() 222 assertFalse(mPermissionMonitor.hasPermission(app, CHANGE_NETWORK_STATE)); in testHasPermission() 223 assertFalse(mPermissionMonitor.hasPermission(app, NETWORK_STACK)); in testHasPermission() [all …]
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbUserSettingsManager.java | 160 public boolean hasPermission(UsbDevice device, String packageName, int uid) { in hasPermission() method in UsbUserSettingsManager 167 return mUsbPermissionManager.hasPermission(device, uid); in hasPermission() 170 public boolean hasPermission(UsbAccessory accessory, int uid) { in hasPermission() method in UsbUserSettingsManager 171 return mUsbPermissionManager.hasPermission(accessory, uid); in hasPermission() 175 if (!hasPermission(device, packageName, uid)) { in checkPermission() 182 if (!hasPermission(accessory, uid)) { in checkPermission() 213 if (hasPermission(device, packageName, uid)) { in requestPermission() 243 if (hasPermission(accessory, uid)) { in requestPermission()
|
D | UsbPermissionManager.java | 134 boolean hasPermission(@NonNull UsbDevice device, int uid) { in hasPermission() method in UsbPermissionManager 154 boolean hasPermission(@NonNull UsbAccessory accessory, int uid) { in hasPermission() method in UsbPermissionManager
|
/frameworks/base/tests/net/java/com/android/server/net/ |
D | NetworkStatsAccessTest.java | 179 private void setHasAppOpsPermission(int appOpsMode, boolean hasPermission) { in setHasAppOpsPermission() argument 183 hasPermission ? PackageManager.PERMISSION_GRANTED in setHasAppOpsPermission() 187 private void setHasReadHistoryPermission(boolean hasPermission) { in setHasReadHistoryPermission() argument 189 .thenReturn(hasPermission ? PackageManager.PERMISSION_GRANTED in setHasReadHistoryPermission()
|
/frameworks/base/services/core/java/com/android/server/slice/ |
D | PinnedSliceState.java | 214 private boolean hasPermission; field in PinnedSliceState.ListenerInfo 218 public ListenerInfo(IBinder token, String pkg, boolean hasPermission, in ListenerInfo() argument 222 this.hasPermission = hasPermission; in ListenerInfo()
|
D | SliceClientPermissions.java | 102 public synchronized boolean hasPermission(Uri uri, int userId) { in hasPermission() method in SliceClientPermissions 105 return authority != null && authority.hasPermission(uri.getPathSegments()); in hasPermission() 255 public boolean hasPermission(List<String> path) { in hasPermission() method in SliceClientPermissions.SliceAuthority
|
D | SlicePermissionManager.java | 151 public boolean hasPermission(String pkg, int userId, Uri uri) { in hasPermission() method in SlicePermissionManager 156 || client.hasPermission(ContentProvider.getUriWithoutUserId(uri), providerUserId); in hasPermission()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | GnssStatusListenerHelper.java | 76 if (!hasPermission(mContext, callerIdentity)) { in onSvStatusChanged() 88 if (!hasPermission(mContext, callerIdentity)) { in onNmeaReceived()
|
D | GnssMeasurementsProvider.java | 98 if (!hasPermission(mContext, callerIdentity)) { in onMeasurementsAvailable()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/ |
D | SlicePermissionManagerTest.java | 66 assertTrue(permissions.hasPermission("my.pkg", 0, uri)); in testGrant() 106 assertTrue(permissions.hasPermission("com.android.otherpkg", 0, in testBackup() 109 assertFalse(permissions.hasPermission("com.android.otherpkg", 0, in testBackup()
|
D | SliceClientPermissionsTest.java | 73 assertFalse(client.hasPermission(base.buildUpon() in testRemoveBasic() 104 assertFalse(client.hasPermission(base.buildUpon() in testRemoveSubtrees() 131 assertTrue(client.hasPermission(base.buildUpon() in testAddConsolidate_addFirst() 158 assertTrue(client.hasPermission(base.buildUpon() in testAddConsolidate_addSecond()
|
/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | PermissionsState.java | 256 return !hasInstallPermission(name) && hasPermission(name, userId); in hasRuntimePermission() 266 return hasPermission(name, UserHandle.USER_ALL); in hasInstallPermission() 277 public boolean hasPermission(String name, int userId) { in hasPermission() method in PermissionsState 525 if (!hasPermission(permission, userId)) { in computeGids() 609 if (hasPermission(permission.getName(), userId)) { in grantPermission() 634 if (!hasPermission(permName, userId)) { in revokePermission()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | PermissionMonitor.java | 227 boolean hasPermission(@NonNull final PackageInfo app, @NonNull final String permission) { in hasPermission() method in PermissionMonitor 238 return hasPermission(app, CHANGE_NETWORK_STATE); in hasNetworkPermission() 257 return hasPermission(app, CONNECTIVITY_INTERNAL) in hasRestrictedNetworkPermission() 258 || hasPermission(app, NETWORK_STACK) in hasRestrictedNetworkPermission() 259 || hasPermission(app, CONNECTIVITY_USE_RESTRICTED_NETWORKS); in hasRestrictedNetworkPermission()
|
/frameworks/base/libs/usb/api/ |
D | current.txt | 17 method public boolean hasPermission(com.android.future.usb.UsbAccessory);
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsService.java | 920 private boolean hasPermission(String callingPackage) { in hasPermission() method in UsageStatsService.BinderService 992 if (!hasPermission(callingPackage)) { in queryUsageStats() 1016 if (!hasPermission(callingPackage)) { in queryConfigurationStats() 1038 if (!hasPermission(callingPackage)) { in queryEventStats() 1059 if (!hasPermission(callingPackage)) { in queryEvents() 1083 final boolean includeTaskRoot = hasPermission(callingPackage); in queryEventsForPackage() 1097 if (!hasPermission(callingPackage)) { in queryEventsForUser() 1122 if (!hasPermission(callingPackage)) { in queryEventsForPackageForUser() 1196 if (!hasPermission(callingPackage)) { in getAppStandbyBucket() 1271 if (!hasPermission(callingPackageName)) { in getAppStandbyBuckets()
|
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
D | MtpManager.java | 87 if (!mManager.hasPermission(rawDevice)) { in openDevice() 89 if (!mManager.hasPermission(rawDevice)) { in openDevice()
|
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/ |
D | TestUtil.java | 94 if (usbManager.hasPermission(device)) { in findMtpDevice()
|
/frameworks/base/libs/usb/src/com/android/future/usb/ |
D | UsbManager.java | 150 public boolean hasPermission(UsbAccessory accessory) { in hasPermission() method in UsbManager
|
/frameworks/base/services/core/java/com/android/server/media/projection/ |
D | MediaProjectionManagerService.java | 260 boolean hasPermission = false; in hasProjectionPermission() 262 hasPermission |= checkPermission(packageName, in hasProjectionPermission() 270 return hasPermission; in hasProjectionPermission()
|
/frameworks/base/services/net/java/android/net/ |
D | NetworkStackClient.java | 332 final int hasPermission = in checkNetworkStackPermission() local 334 if (hasPermission != PERMISSION_GRANTED) { in checkNetworkStackPermission()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/euicc/ |
D | EuiccConnectorTest.java | 355 boolean hasPermission, boolean requiresBindPermission, boolean hasPriority) { in prepareEuiccApp() argument 358 .thenReturn(hasPermission in prepareEuiccApp()
|
/frameworks/base/core/java/android/hardware/usb/ |
D | UsbManager.java | 519 public boolean hasPermission(UsbDevice device) { in hasPermission() method in UsbManager 540 public boolean hasPermission(UsbAccessory accessory) { in hasPermission() method in UsbManager
|
/frameworks/base/tests/UsbHostExternalManagmentTest/AoapTestDevice/src/com/android/hardware/usb/aoapdevicetest/ |
D | UsbAoapDeviceTestActivity.java | 97 if (!mUsbManager.hasPermission(accessory)) { in onAccessoryAttached()
|
/frameworks/base/libs/usb/tests/AccessoryChat/src/com/android/accessorychat/ |
D | AccessoryChat.java | 105 if (mUsbManager.hasPermission(accessory)) { in onResume()
|