Home
last modified time | relevance | path

Searched refs:checkPermissionForPreflight (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/av/services/camera/libcameraservice/utils/
DAttributionAndPermissionUtils.cpp107 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()
DAttributionAndPermissionUtils.h59 virtual bool checkPermissionForPreflight(const std::string &cameraId,
/frameworks/base/packages/SettingsLib/tests/robotests/testutils/com/android/settingslib/testutils/shadow/
DShadowPermissionChecker.java72 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/
DPermissionCheckerTest.java57 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/
DPermissionChecker.java538 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/
DPermissionUtil.java195 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/
DPermissionChecker.h118 PermissionResult checkPermissionForPreflight(
/frameworks/native/libs/permission/android/permission/
DPermissionChecker.cpp85 PermissionChecker::PermissionResult PermissionChecker::checkPermissionForPreflight( in checkPermissionForPreflight() function in android::permission::PermissionChecker
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/
DRecentLocationApps.java113 if (PermissionChecker.checkPermissionForPreflight(mContext, permission, in getAppList()
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DUsbDialogHelper.java147 return PermissionChecker.checkPermissionForPreflight(mContext, RECORD_AUDIO, in packageHasAudioRecordingPermission()
/frameworks/av/media/utils/
DServiceUtilities.cpp206 bool ok = (permissionChecker.checkPermissionForPreflight( in captureAudioOutputAllowed()
264 ok = (permissionChecker.checkPermissionForPreflight( in captureHotwordAllowed()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DRecentAppOpsAccess.java162 if (PermissionChecker.checkPermissionForPreflight(mContext, permission, in getAppList()
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger_middleware/
DSoundTriggerMiddlewarePermission.java176 final int status = PermissionUtil.checkPermissionForPreflight(context, identity, in enforcePermissionForPreflight()
/frameworks/base/services/core/java/com/android/server/
DNetworkScorerAppManager.java214 return isLocationModeEnabled() && PermissionChecker.checkPermissionForPreflight(mContext, in canAccessLocation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DLocationControllerImpl.java316 if (PermissionChecker.checkPermissionForPreflight(mContext, permission, in isSystemApp()
/frameworks/base/services/core/java/com/android/server/pm/permission/
DLegacyPermissionManagerService.java415 int result = PermissionChecker.checkPermissionForPreflight(mContext, RECORD_AUDIO, -1, in checkSoundTriggerRecordAudioPermissionForDataDelivery()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DUserControllerTest.java1297 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/
DRecognitionService.java872 int result = PermissionChecker.checkPermissionForPreflight(RecognitionService.this, in checkPermissionForPreflightNotHardDenied()
/frameworks/base/core/java/android/permission/
DPermissionManager.java424 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/
DDetectorSession.java888 int result = PermissionChecker.checkPermissionForPreflight( in enforcePermissionsForDataDelivery()
/frameworks/base/services/core/java/com/android/server/pm/
DCrossProfileAppsServiceImpl.java768 == PermissionChecker.checkPermissionForPreflight(
/frameworks/base/core/java/android/app/
DForegroundServiceTypePolicy.java1170 PermissionChecker.checkPermissionForPreflight(context, name, in checkPermission()
/frameworks/base/core/java/com/android/internal/app/
DResolverListAdapter.java956 PermissionChecker.checkPermissionForPreflight(
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/alarm/
DAlarmManagerServiceTest.java493 () -> 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/
DUserController.java2822 return mInjector.checkPermissionForPreflight(INTERACT_ACROSS_PROFILES, callingPid,
3897 boolean checkPermissionForPreflight(String permission, int pid, int uid, String pkg) {
3899 == PermissionChecker.checkPermissionForPreflight(

12