Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/connectivity/
DPermissionMonitor.java152 private boolean hasPermission(PackageInfo app, String permission) { in hasPermission() method in PermissionMonitor
164 return hasPermission(app, CHANGE_NETWORK_STATE); in hasNetworkPermission()
172 return hasPermission(app, CONNECTIVITY_INTERNAL); in hasSystemPermission()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsService.java378 private boolean hasPermission(String callingPackage) { in hasPermission() method in UsageStatsService.BinderService
397 if (!hasPermission(callingPackage)) { in queryUsageStats()
418 if (!hasPermission(callingPackage)) { in queryConfigurationStats()
439 if (!hasPermission(callingPackage)) { in queryEvents()
/frameworks/base/core/java/android/hardware/usb/
DUsbManager.java324 public boolean hasPermission(UsbDevice device) { in hasPermission() method in UsbManager
342 public boolean hasPermission(UsbAccessory accessory) { in hasPermission() method in UsbManager
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbService.java201 return getSettingsForUser(userId).hasPermission(device); in hasDevicePermission()
207 return getSettingsForUser(userId).hasPermission(accessory); in hasAccessoryPermission()
DUsbSettingsManager.java983 public boolean hasPermission(UsbDevice device) { in hasPermission() method in UsbSettingsManager
997 public boolean hasPermission(UsbAccessory accessory) { in hasPermission() method in UsbSettingsManager
1012 if (!hasPermission(device)) { in checkPermission()
1018 if (!hasPermission(accessory)) { in checkPermission()
1057 if (hasPermission(device)) { in requestPermission()
1077 if (hasPermission(accessory)) { in requestPermission()
/frameworks/base/services/core/java/com/android/server/media/projection/
DMediaProjectionManagerService.java215 boolean hasPermission = false; in hasProjectionPermission()
217 hasPermission |= checkPermission(packageName, in hasProjectionPermission()
225 return hasPermission; in hasProjectionPermission()
/frameworks/base/libs/usb/src/com/android/future/usb/
DUsbManager.java150 public boolean hasPermission(UsbAccessory accessory) { in hasPermission() method in UsbManager
/frameworks/base/libs/usb/tests/AccessoryChat/src/com/android/accessorychat/
DAccessoryChat.java105 if (mUsbManager.hasPermission(accessory)) { in onResume()
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/
DSourceActivity.java142 if (!mUsbManager.hasPermission(accessory)) { in connect()
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
DMtpClient.java173 if (!mUsbManager.hasPermission(usbDevice)) { in openDeviceLocked()
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/
DSinkActivity.java165 if (!mUsbManager.hasPermission(device)) { in connect()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityManagerService.java3607 if (!hasPermission(Manifest.permission.INTERACT_ACROSS_USERS) in resolveCallingUserIdEnforcingPermissionsLocked()
3608 && !hasPermission(Manifest.permission.INTERACT_ACROSS_USERS_FULL)) { in resolveCallingUserIdEnforcingPermissionsLocked()
3657 if (!hasPermission(permission)) { in enforceCallingPermission()
3664 private boolean hasPermission(String permission) { in hasPermission() method in AccessibilityManagerService.SecurityPolicy
/frameworks/base/docs/html/tools/adk/
Dadk2.jd564 if (!mUSBManager.hasPermission(acc)) return;
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerService.java6940 private static boolean hasPermission(PackageParser.Package pkgInfo, String perm) { in hasPermission() method in PackageManagerService
6969 if (pkgInfo == null || !hasPermission(pkgInfo, bp.name)) { in updatePermissionsLPw()
7009 if (pkgInfo == null || !hasPermission(pkgInfo, bp.name)) { in updatePermissionsLPw()
/frameworks/base/api/
Dsystem-current.txt14089 method public boolean hasPermission(android.hardware.usb.UsbDevice);
14090 method public boolean hasPermission(android.hardware.usb.UsbAccessory);
Dcurrent.txt13369 method public boolean hasPermission(android.hardware.usb.UsbDevice);
13370 method public boolean hasPermission(android.hardware.usb.UsbAccessory);