Home
last modified time | relevance | path

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

1234

/frameworks/av/services/camera/virtualcamera/util/
DPermissions.cc39 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/
DInstalledTilesComponentRepositoryImplTest.kt97 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/
DPrepareGetRequestSession.java81 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/
DOverlayActorEnforcerTests.kt154 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/
DPinnedSliceState.java214 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()
DSliceClientPermissions.java102 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/
DLocationPermissionsHelper.java101 if (!hasPermission(LocationPermissions.asPermission(permissionLevel), identity)) { in hasLocationPermissions()
108 protected abstract boolean hasPermission(String permission, CallerIdentity callerIdentity); in hasPermission() method in LocationPermissionsHelper
DSystemLocationPermissionsHelper.java56 protected boolean hasPermission(String permission, CallerIdentity callerIdentity) { in hasPermission() method in SystemLocationPermissionsHelper
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/
DSlicePermissionManagerTest.java66 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()
DSliceClientPermissionsTest.java73 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/
DCarDisplayCompatActivityInterceptor.java134 boolean hasPermission = (mContext.checkPermission( in onInterceptActivityLaunch()
137 if (isLaunchedFromHost && !hasPermission) { in onInterceptActivityLaunch()
150 if (!isLaunchedFromHost || (isLaunchedFromHost && !hasPermission)) { in onInterceptActivityLaunch()
DCarLaunchOnPrivateDisplayActivityInterceptor.java130 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/
DNoFilteringResolver.java68 && 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/
DPermissionUtils.java31 public static boolean hasPermission(Context context, String packageName, String permission) { in hasPermission() method in PermissionUtils
/frameworks/base/services/core/java/com/android/server/tracing/
DTracingServiceProxy.java177 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/
DUtils.kt116 val hasPermission = in isSystem() constant
119 return hasPermission && "android" == clientPackage in isSystem()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/
DFakeLocationPermissionsHelper.java49 protected boolean hasPermission(String permission, CallerIdentity identity) { in hasPermission() method in FakeLocationPermissionsHelper
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbUserPermissionManager.java199 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/
DAccessibilitySecurityPolicy.java492 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/
Dcurrent.txt17 method public boolean hasPermission(com.android.future.usb.UsbAccessory);
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/
DAuthServiceTest.java541 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/
DDevicePolicyManagerInternal.java311 public abstract boolean hasPermission(String callerPackage, String permission, in hasPermission() method in DevicePolicyManagerInternal
/frameworks/base/services/net/java/android/net/
DConnectivityModuleConnector.java288 final int hasPermission = in checkModuleServicePermission() local
290 if (hasPermission != PERMISSION_GRANTED) { in checkModuleServicePermission()
/frameworks/native/services/inputflinger/dispatcher/include/
DInputDispatcherInterface.h132 virtual bool setInTouchMode(bool inTouchMode, gui::Pid pid, gui::Uid uid, bool hasPermission,
/frameworks/base/libs/usb/src/com/android/future/usb/
DUsbManager.java150 public boolean hasPermission(UsbAccessory accessory) { in hasPermission() method in UsbManager

1234