/frameworks/av/services/camera/libcameraservice/utils/ |
D | AttributionAndPermissionUtils.cpp | 107 bool AttributionAndPermissionUtils::checkPermissionForPreflight(const std::string &cameraId, in checkPermissionForPreflight() function in android::AttributionAndPermissionUtils 116 return permissionChecker.checkPermissionForPreflight( in checkPermissionForPreflight() 120 return mPermissionChecker->checkPermissionForPreflight( in checkPermissionForPreflight() 191 return checkPermissionForPreflight(cameraId, sCameraPermission, in hasPermissionsForCamera() 197 bool systemCameraPermission = checkPermissionForPreflight(cameraId, in hasPermissionsForSystemCamera() 205 return checkPermissionForPreflight(cameraId, sCameraHeadlessSystemUserPermission, in hasPermissionsForCameraHeadlessSystemUser() 211 return checkPermissionForPreflight(std::string(), sCameraPrivacyAllowlistPermission, in hasPermissionsForCameraPrivacyAllowlist() 217 return checkPermissionForPreflight(std::string(), sCameraOpenCloseListenerPermission, in hasPermissionsForOpenCloseListener()
|
D | AttributionAndPermissionUtils.h | 59 virtual bool checkPermissionForPreflight(const std::string &cameraId,
|
/frameworks/base/packages/SettingsLib/tests/robotests/testutils/com/android/settingslib/testutils/shadow/ |
D | ShadowPermissionChecker.java | 72 public static int checkPermissionForPreflight(@NonNull Context context, in checkPermissionForPreflight() method in ShadowPermissionChecker 74 return checkPermissionForPreflight(context, permission, new AttributionSource( in checkPermissionForPreflight() 79 public static int checkPermissionForPreflight(@NonNull Context context, in checkPermissionForPreflight() method in ShadowPermissionChecker 84 : PermissionChecker.checkPermissionForPreflight( in checkPermissionForPreflight()
|
/frameworks/base/core/tests/coretests/src/android/content/ |
D | PermissionCheckerTest.java | 57 assertThat(PermissionChecker.checkPermissionForPreflight( in testCheckPermissionForPreflight_appOpPermission_modeDefaultAndPermissionGranted_returnsGranted() 69 assertThat(PermissionChecker.checkPermissionForPreflight( in testCheckPermissionForPreflight_appOpPermission_modeDefaultAndPermissionNotGranted_returnsHardDenied() 81 assertThat(PermissionChecker.checkPermissionForPreflight( in testCheckPermissionForPreflight_appOpPermission_modeAllowed_returnsGranted() 93 assertThat(PermissionChecker.checkPermissionForPreflight( in testCheckPermissionForPreflight_appOpPermission_packageNameIsNull_returnsGranted() 105 assertThat(PermissionChecker.checkPermissionForPreflight( in testCheckPermissionForPreflight_appOpPermission_modeIgnored_returnsHardDenied() 117 assertThat(PermissionChecker.checkPermissionForPreflight( in testCheckPermissionForPreflight_appOpPermission_modeErrored_returnsHardDenied()
|
/frameworks/base/core/java/android/content/ |
D | PermissionChecker.java | 538 public static int checkPermissionForPreflight(@NonNull Context context, in checkPermissionForPreflight() method in PermissionChecker 540 return checkPermissionForPreflight(context, permission, new AttributionSource( in checkPermissionForPreflight() 574 public static int checkPermissionForPreflight(@NonNull Context context, in checkPermissionForPreflight() method in PermissionChecker 649 return checkPermissionForPreflight(context, permission, Process.myPid(), in checkSelfPermissionForPreflight() 731 return checkPermissionForPreflight(context, permission, Binder.getCallingPid(), in checkCallingPermissionForPreflight() 810 return checkPermissionForPreflight(context, permission, Binder.getCallingPid(), in checkCallingOrSelfPermissionForPreflight()
|
/frameworks/base/media/java/android/media/permission/ |
D | PermissionUtil.java | 195 public static int checkPermissionForPreflight(@NonNull Context context, in checkPermissionForPreflight() method in PermissionUtil 198 return PermissionChecker.checkPermissionForPreflight(context, permission, in checkPermissionForPreflight()
|
/frameworks/native/libs/permission/include/android/permission/ |
D | PermissionChecker.h | 118 PermissionResult checkPermissionForPreflight(
|
/frameworks/native/libs/permission/android/permission/ |
D | PermissionChecker.cpp | 85 PermissionChecker::PermissionResult PermissionChecker::checkPermissionForPreflight( in checkPermissionForPreflight() function in android::permission::PermissionChecker
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/ |
D | RecentLocationApps.java | 113 if (PermissionChecker.checkPermissionForPreflight(mContext, permission, in getAppList()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
D | UsbDialogHelper.java | 147 return PermissionChecker.checkPermissionForPreflight(mContext, RECORD_AUDIO, in packageHasAudioRecordingPermission()
|
/frameworks/av/media/utils/ |
D | ServiceUtilities.cpp | 206 bool ok = (permissionChecker.checkPermissionForPreflight( in captureAudioOutputAllowed() 264 ok = (permissionChecker.checkPermissionForPreflight( in captureHotwordAllowed()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
D | RecentAppOpsAccess.java | 162 if (PermissionChecker.checkPermissionForPreflight(mContext, permission, in getAppList()
|
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger_middleware/ |
D | SoundTriggerMiddlewarePermission.java | 176 final int status = PermissionUtil.checkPermissionForPreflight(context, identity, in enforcePermissionForPreflight()
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkScorerAppManager.java | 214 return isLocationModeEnabled() && PermissionChecker.checkPermissionForPreflight(mContext, in canAccessLocation()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | LocationControllerImpl.java | 316 if (PermissionChecker.checkPermissionForPreflight(mContext, permission, in isSystemApp()
|
/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | LegacyPermissionManagerService.java | 415 int result = PermissionChecker.checkPermissionForPreflight(mContext, RECORD_AUDIO, -1, in checkSoundTriggerRecordAudioPermissionForDataDelivery()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | UserControllerTest.java | 1297 when(mInjector.checkPermissionForPreflight( in testHandleIncomingUser() 1318 when(mInjector.checkPermissionForPreflight( in testHandleIncomingUser() 1339 when(mInjector.checkPermissionForPreflight( in testHandleIncomingUser() 1703 boolean checkPermissionForPreflight(String permission, int pid, int uid, String pkg) { in checkPermissionForPreflight() method in UserControllerTest.TestInjector
|
/frameworks/base/core/java/android/speech/ |
D | RecognitionService.java | 872 int result = PermissionChecker.checkPermissionForPreflight(RecognitionService.this, in checkPermissionForPreflightNotHardDenied()
|
/frameworks/base/core/java/android/permission/ |
D | PermissionManager.java | 424 public int checkPermissionForPreflight(@NonNull String permission, in checkPermissionForPreflight() method in PermissionManager 426 return PermissionChecker.checkPermissionForPreflight(mContext, permission, in checkPermissionForPreflight()
|
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/ |
D | DetectorSession.java | 888 int result = PermissionChecker.checkPermissionForPreflight( in enforcePermissionsForDataDelivery()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | CrossProfileAppsServiceImpl.java | 768 == PermissionChecker.checkPermissionForPreflight(
|
/frameworks/base/core/java/android/app/ |
D | ForegroundServiceTypePolicy.java | 1170 PermissionChecker.checkPermissionForPreflight(context, name, in checkPermission()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | ResolverListAdapter.java | 956 PermissionChecker.checkPermissionForPreflight(
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/alarm/ |
D | AlarmManagerServiceTest.java | 493 () -> PermissionChecker.checkPermissionForPreflight(any(), in setUp() 496 () -> PermissionChecker.checkPermissionForPreflight(any(), eq(SCHEDULE_EXACT_ALARM), in setUp() 2466 () -> PermissionChecker.checkPermissionForPreflight(eq(mMockContext), 2475 () -> PermissionChecker.checkPermissionForPreflight(eq(mMockContext),
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | UserController.java | 2822 return mInjector.checkPermissionForPreflight(INTERACT_ACROSS_PROFILES, callingPid, 3897 boolean checkPermissionForPreflight(String permission, int pid, int uid, String pkg) { 3899 == PermissionChecker.checkPermissionForPreflight(
|