/frameworks/av/services/camera/virtualcamera/util/ |
D | Permissions.cc | 39 const bool hasPermission = PermissionCache::checkCallingPermission( in checkCallingPermission() local 43 permission.c_str(), pid, uid, hasPermission ? "granted" : "denied"); in checkCallingPermission() 44 return hasPermission; in checkCallingPermission()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/pipeline/data/repository/ |
D | InstalledTilesComponentRepositoryImplTest.kt | 97 ResolveInfo(TEST_COMPONENT, hasPermission = true, defaultEnabled = true) in <lambda>() 120 ResolveInfo(TEST_COMPONENT, hasPermission = true, defaultEnabled = true) in <lambda>() 148 ResolveInfo(TEST_COMPONENT, hasPermission = false, defaultEnabled = true) in <lambda>() 171 ResolveInfo(TEST_COMPONENT, hasPermission = true, defaultEnabled = false) in <lambda>() 210 ResolveInfo(TEST_COMPONENT, hasPermission = true, defaultEnabled = true) in <lambda>() 255 ResolveInfo(TEST_COMPONENT, hasPermission = true, defaultEnabled = true) in <lambda>() 294 hasPermission: Boolean, in <lambda>() 302 if (hasPermission) { in <lambda>()
|
/frameworks/base/services/credentials/java/com/android/server/credentials/ |
D | PrepareGetRequestSession.java | 81 boolean hasQueryCandidatePermission = PermissionUtils.hasPermission( in onProviderStatusChanged() 120 private void constructPendingResponseAndInvokeCallback(boolean hasPermission, in constructPendingResponseAndInvokeCallback() argument 126 hasPermission, in constructPendingResponseAndInvokeCallback() 194 PermissionUtils.hasPermission(mContext, mClientAppInfo.getPackageName(), in getUiIntent()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/om/ |
D | OverlayActorEnforcerTests.kt | 154 hasPermission = false in <lambda>() 156 allowed("hasPermission") { hasPermission = true } in <lambda>() 183 hasPermission = false in <lambda>() 187 hasPermission = false in <lambda>() 190 hasPermission = true in <lambda>() 363 var hasPermission: Boolean = false, in <lambda>() variable in com.android.server.om.OverlayActorEnforcerTests.TestState 413 if (!hasPermission) { in <lambda>()
|
/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() 261 public boolean hasPermission(List<String> path) { in hasPermission() method in SliceClientPermissions.SliceAuthority
|
/frameworks/base/services/core/java/com/android/server/location/injector/ |
D | LocationPermissionsHelper.java | 101 if (!hasPermission(LocationPermissions.asPermission(permissionLevel), identity)) { in hasLocationPermissions() 108 protected abstract boolean hasPermission(String permission, CallerIdentity callerIdentity); in hasPermission() method in LocationPermissionsHelper
|
D | SystemLocationPermissionsHelper.java | 56 protected boolean hasPermission(String permission, CallerIdentity callerIdentity) { in hasPermission() method in SystemLocationPermissionsHelper
|
/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/opt/car/services/updatableServices/src/com/android/server/wm/ |
D | CarDisplayCompatActivityInterceptor.java | 134 boolean hasPermission = (mContext.checkPermission( in onInterceptActivityLaunch() 137 if (isLaunchedFromHost && !hasPermission) { in onInterceptActivityLaunch() 150 if (!isLaunchedFromHost || (isLaunchedFromHost && !hasPermission)) { in onInterceptActivityLaunch()
|
D | CarLaunchOnPrivateDisplayActivityInterceptor.java | 130 boolean hasPermission = (mContext.checkPermission(PERMISSION_ACCESS_PRIVATE_DISPLAY_ID, in onInterceptActivityLaunch() 132 if (!hasPermission) { in onInterceptActivityLaunch()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | NoFilteringResolver.java | 68 && hasPermission(context, Manifest.permission.QUERY_CLONED_APPS))); in isIntentRedirectionAllowed() 142 private static boolean hasPermission(Context context, String permission) { in hasPermission() method in NoFilteringResolver
|
/frameworks/base/core/java/android/service/credentials/ |
D | PermissionUtils.java | 31 public static boolean hasPermission(Context context, String packageName, String permission) { in hasPermission() method in PermissionUtils
|
/frameworks/base/services/core/java/com/android/server/tracing/ |
D | TracingServiceProxy.java | 177 boolean hasDumpPermission = hasPermission(component, Manifest.permission.DUMP); in reportTrace() 178 boolean hasUsageStatsPermission = hasPermission(component, in reportTrace() 260 private boolean hasPermission(@NonNull ComponentName componentName, in hasPermission() method in TracingServiceProxy
|
/frameworks/base/packages/SystemUI/shared/biometrics/src/com/android/systemui/biometrics/ |
D | Utils.kt | 116 val hasPermission = in isSystem() constant 119 return hasPermission && "android" == clientPackage in isSystem()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/ |
D | FakeLocationPermissionsHelper.java | 49 protected boolean hasPermission(String permission, CallerIdentity identity) { in hasPermission() method in FakeLocationPermissionsHelper
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbUserPermissionManager.java | 199 boolean hasPermission(@NonNull UsbDevice device, @NonNull String packageName, int pid, in hasPermission() method in UsbUserPermissionManager 249 boolean hasPermission(@NonNull UsbAccessory accessory, int pid, int uid) { in hasPermission() method in UsbUserPermissionManager 676 if (!hasPermission(device, packageName, pid, uid)) { in checkPermission() 683 if (!hasPermission(accessory, pid, uid)) { in checkPermission() 721 if (hasPermission(device, packageName, pid, uid)) { in requestPermission() 754 if (hasPermission(accessory, pid, uid)) { in requestPermission()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | AccessibilitySecurityPolicy.java | 492 if (!hasPermission(Manifest.permission.INTERACT_ACROSS_USERS) in resolveCallingUserIdEnforcingPermissionsLocked() 493 && !hasPermission(Manifest.permission.INTERACT_ACROSS_USERS_FULL)) { in resolveCallingUserIdEnforcingPermissionsLocked() 577 if (!hasPermission(permission)) { in enforceCallingPermission() 590 public boolean hasPermission(@NonNull String permission) { in hasPermission() method in AccessibilitySecurityPolicy
|
/frameworks/base/libs/usb/api/ |
D | current.txt | 17 method public boolean hasPermission(com.android.future.usb.UsbAccessory);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/ |
D | AuthServiceTest.java | 541 Context context, boolean hasPermission) { in setInternalAndTestBiometricPermissions() argument 543 when(context.checkCallingPermission(eq(p))).thenReturn(hasPermission in setInternalAndTestBiometricPermissions() 545 when(context.checkCallingOrSelfPermission(eq(p))).thenReturn(hasPermission in setInternalAndTestBiometricPermissions() 548 hasPermission ? doNothing() : doThrow(SecurityException.class); in setInternalAndTestBiometricPermissions()
|
/frameworks/base/core/java/android/app/admin/ |
D | DevicePolicyManagerInternal.java | 311 public abstract boolean hasPermission(String callerPackage, String permission, in hasPermission() method in DevicePolicyManagerInternal
|
/frameworks/base/services/net/java/android/net/ |
D | ConnectivityModuleConnector.java | 288 final int hasPermission = in checkModuleServicePermission() local 290 if (hasPermission != PERMISSION_GRANTED) { in checkModuleServicePermission()
|
/frameworks/native/services/inputflinger/dispatcher/include/ |
D | InputDispatcherInterface.h | 132 virtual bool setInTouchMode(bool inTouchMode, gui::Pid pid, gui::Uid uid, bool hasPermission,
|
/frameworks/base/libs/usb/src/com/android/future/usb/ |
D | UsbManager.java | 150 public boolean hasPermission(UsbAccessory accessory) { in hasPermission() method in UsbManager
|