/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkStatsAccessTest.java | 165 private void setHasAppOpsPermission(int appOpsMode, boolean hasPermission) { in setHasAppOpsPermission() argument 169 hasPermission ? PackageManager.PERMISSION_GRANTED in setHasAppOpsPermission() 173 private void setHasReadHistoryPermission(boolean hasPermission) { in setHasReadHistoryPermission() argument 175 .thenReturn(hasPermission ? PackageManager.PERMISSION_GRANTED in setHasReadHistoryPermission()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | PermissionMonitor.java | 153 private boolean hasPermission(PackageInfo app, String permission) { in hasPermission() method in PermissionMonitor 165 return hasPermission(app, CHANGE_NETWORK_STATE); in hasNetworkPermission() 173 return hasPermission(app, CONNECTIVITY_INTERNAL) in hasRestrictedNetworkPermission() 174 || hasPermission(app, CONNECTIVITY_USE_RESTRICTED_NETWORKS); in hasRestrictedNetworkPermission()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PermissionsState.java | 215 return !hasInstallPermission(name) && hasPermission(name, userId); in hasRuntimePermission() 225 return hasPermission(name, UserHandle.USER_ALL); in hasInstallPermission() 236 public boolean hasPermission(String name, int userId) { in hasPermission() method in PermissionsState 444 if (!hasPermission(permission, userId)) { in computeGids() 518 if (hasPermission(permission.name, userId)) { in grantPermission() 542 if (!hasPermission(permission.name, userId)) { in revokePermission()
|
D | PackageManagerService.java | 3727 if (permissionsState.hasPermission(permName, userId)) { 3732 .hasPermission(Manifest.permission.ACCESS_FINE_LOCATION, userId)) { 3754 if (permissionsState.hasPermission(permName, userId)) { 3759 .hasPermission(Manifest.permission.ACCESS_FINE_LOCATION, userId)) { 6234 if (permissionsState.hasPermission(permission, userId)) { in addPackageHoldingPermissions() 9825 private static boolean hasPermission(PackageParser.Package pkgInfo, String perm) { in hasPermission() method 9871 if (pkgInfo == null || !hasPermission(pkgInfo, bp.name)) { in updatePermissionsLPw() 9911 if (pkgInfo == null || !hasPermission(pkgInfo, bp.name)) { in updatePermissionsLPw()
|
/frameworks/base/core/java/android/hardware/usb/ |
D | UsbManager.java | 387 public boolean hasPermission(UsbDevice device) { in hasPermission() method in UsbManager 404 public boolean hasPermission(UsbAccessory accessory) { in hasPermission() method in UsbManager
|
/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/services/core/java/com/android/server/media/projection/ |
D | MediaProjectionManagerService.java | 208 boolean hasPermission = false; in hasProjectionPermission() 210 hasPermission |= checkPermission(packageName, in hasProjectionPermission() 218 return hasPermission; in hasProjectionPermission()
|
/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/usb/java/com/android/server/usb/ |
D | UsbSettingsManager.java | 1001 public boolean hasPermission(UsbDevice device) { in hasPermission() method in UsbSettingsManager 1015 public boolean hasPermission(UsbAccessory accessory) { in hasPermission() method in UsbSettingsManager 1030 if (!hasPermission(device)) { in checkPermission() 1036 if (!hasPermission(accessory)) { in checkPermission() 1075 if (hasPermission(device)) { in requestPermission() 1095 if (hasPermission(accessory)) { in requestPermission()
|
D | UsbService.java | 235 return getSettingsForUser(userId).hasPermission(device); in hasDevicePermission() 241 return getSettingsForUser(userId).hasPermission(accessory); in hasAccessoryPermission()
|
/frameworks/base/libs/usb/tests/AccessoryChat/src/com/android/accessorychat/ |
D | AccessoryChat.java | 105 if (mUsbManager.hasPermission(accessory)) { in onResume()
|
/frameworks/native/services/sensorservice/ |
D | SensorService.cpp | 1262 bool hasPermission = false; in canAccessSensor() local 1266 hasPermission = checkPermission(String16(requiredPermission), in canAccessSensor() 1269 hasPermission = PermissionCache::checkCallingPermission(String16(requiredPermission)); in canAccessSensor() 1272 if (!hasPermission) { in canAccessSensor()
|
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/ |
D | SourceActivity.java | 142 if (!mUsbManager.hasPermission(accessory)) { in connect()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsService.java | 1237 private boolean hasPermission(String callingPackage) { in hasPermission() method in UsageStatsService.BinderService 1256 if (!hasPermission(callingPackage)) { in queryUsageStats() 1277 if (!hasPermission(callingPackage)) { in queryConfigurationStats() 1298 if (!hasPermission(callingPackage)) { in queryEvents()
|
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/ |
D | MtpClient.java | 173 if (!mUsbManager.hasPermission(usbDevice)) { in openDeviceLocked()
|
/frameworks/base/services/core/java/com/android/server/fingerprint/ |
D | FingerprintService.java | 445 boolean hasPermission(String permission) { in hasPermission() method in FingerprintService 789 final boolean restricted = !hasPermission(MANAGE_FINGERPRINT); in isRestricted()
|
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/ |
D | SinkActivity.java | 165 if (!mUsbManager.hasPermission(device)) { in connect()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | AccessibilityManagerService.java | 4128 if (!hasPermission(Manifest.permission.INTERACT_ACROSS_USERS) in resolveCallingUserIdEnforcingPermissionsLocked() 4129 && !hasPermission(Manifest.permission.INTERACT_ACROSS_USERS_FULL)) { in resolveCallingUserIdEnforcingPermissionsLocked() 4178 if (!hasPermission(permission)) { in enforceCallingPermission() 4185 private boolean hasPermission(String permission) { in hasPermission() method in AccessibilityManagerService.SecurityPolicy
|
/frameworks/opt/setupwizard/tools/docs/ |
D | android-22.txt | 13367 method public boolean hasPermission(android.hardware.usb.UsbDevice); 13368 method public boolean hasPermission(android.hardware.usb.UsbAccessory);
|
/frameworks/base/api/ |
D | current.txt | 14758 method public boolean hasPermission(android.hardware.usb.UsbDevice); 14759 method public boolean hasPermission(android.hardware.usb.UsbAccessory);
|
D | system-current.txt | 15968 method public boolean hasPermission(android.hardware.usb.UsbDevice); 15969 method public boolean hasPermission(android.hardware.usb.UsbAccessory);
|
D | test-current.txt | 14776 method public boolean hasPermission(android.hardware.usb.UsbDevice); 14777 method public boolean hasPermission(android.hardware.usb.UsbAccessory);
|