Home
last modified time | relevance | path

Searched refs:checkPackage (Results 1 – 25 of 47) sorted by relevance

12

/frameworks/base/services/companion/java/com/android/server/companion/utils/
DPermissionsUtils.java168 if (!checkPackage(callingUid, packageName)) { in enforceCallerIsSystemOr()
193 if (checkPackage(callingUid, packageName) || canManageCompanionDevices) { in enforceCallerCanManageAssociationsForPackage()
217 private static boolean checkPackage(@UserIdInt int uid, @NonNull String packageName) { in checkPackage() method in PermissionsUtils
219 return getAppOpsService().checkPackage(uid, packageName) == MODE_ALLOWED; in checkPackage()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DAppSmsManager.java87 appOps.checkPackage(Binder.getCallingUid(), callingPkg); in createAppSpecificSmsToken()
125 appOps.checkPackage(Binder.getCallingUid(), callingPackageName); in createAppSpecificSmsTokenWithPackageInfo()
DSmsPermissions.java207 .checkPackage(callerUid, packageName); in packageNameMatchesCallingUid()
DPhoneSubInfoController.java189 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage);
350 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/euicc/
DEuiccController.java246 mAppOpsManager.checkPackage(Binder.getCallingUid(), callingPackage); in getEid()
278 mAppOpsManager.checkPackage(Binder.getCallingUid(), callingPackage); in getAvailableMemoryInBytes()
455 mAppOpsManager.checkPackage(Binder.getCallingUid(), callingPackage); in getDownloadableSubscriptionMetadata()
623 mAppOpsManager.checkPackage(Binder.getCallingUid(), callingPackage); in downloadSubscription()
986 mAppOpsManager.checkPackage(Binder.getCallingUid(), callingPackage); in getDefaultDownloadableSubscriptionList()
1076 mAppOpsManager.checkPackage(Binder.getCallingUid(), callingPackage); in deleteSubscription()
1155 mAppOpsManager.checkPackage(Binder.getCallingUid(), callingPackage); in switchToSubscription()
1545 mAppOpsManager.checkPackage(Binder.getCallingUid(), callingPackage); in updateSubscriptionNickname()
2226 mAppOpsManager.checkPackage(Binder.getCallingUid(), callingPackage); in isSimPortAvailable()
2313 mAppOpsManager.checkPackage(Binder.getCallingUid(), callingPackage); in hasCarrierPrivilegesForPackageOnAnyPhone()
[all …]
/frameworks/base/startop/apps/test/src/
DSystemServerBenchmarks.java173 appOps.checkPackage(uid, packageName); in initializeBenchmarks()
/frameworks/base/services/core/java/com/android/server/
DHardwarePropertiesManagerService.java171 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in enforceHardwarePropertiesRetrievalAllowed()
DVcnManagementService.java795 .checkPackage(mDeps.getBinderCallingUid(), config.getProvisioningPackageName()); in setVcnConfig()
854 .checkPackage(mDeps.getBinderCallingUid(), opPkgName); in clearVcnConfig()
914 .checkPackage(mDeps.getBinderCallingUid(), opPkgName); in getConfiguredSubscriptionGroups()
1204 mContext.getSystemService(AppOpsManager.class).checkPackage(callingUid, opPkgName); in registerVcnStatusCallback()
DTelephonyRegistry.java933 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in addOnSubscriptionsChangedListener()
989 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in addOnOpportunisticSubscriptionsChangedListener()
1109 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in listen()
3169 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in addCarrierPrivilegesCallback()
3230 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in removeCarrierPrivilegesCallback()
3318 mAppOps.checkPackage(Binder.getCallingUid(), pkg); in addCarrierConfigChangeListener()
3353 mAppOps.checkPackage(Binder.getCallingUid(), pkg); in removeCarrierConfigChangeListener()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSmsPermissionsTest.java269 doThrow(e).when(mockAppOpsManager).checkPackage(anyInt(), anyString()); in testPackageNameMatchesCallingUid()
/frameworks/base/core/java/com/android/internal/app/
DIAppOpsService.aidl80 int checkPackage(int uid, String packageName); in checkPackage() method
/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerService.java721 mAppOps.checkPackage(callingUid, installerPackageName);
728 mAppOps.checkPackage(callingUid, requestedInstallerPackageName);
1366 mAppOps.checkPackage(callingUid, installerPackageName);
1423 mAppOps.checkPackage(callingUid, callerPackageName);
1484 mAppOps.checkPackage(callingUid, callerPackageName);
DCrossProfileAppsServiceImpl.java745 mInjector.getAppOpsManager().checkPackage(mInjector.getCallingUid(), callingPackage);
DVerifyingSession.java722 .checkPackage(installerUid, requiredVerifierPackage); in isVerificationEnabled()
/frameworks/base/services/core/java/com/android/server/incident/
DPendingReports.java504 mAppOpsManager.checkPackage(uid, packageName); in isPackageInUid()
/frameworks/base/graphics/java/android/graphics/
DGraphicsStatsService.java180 mAppOps.checkPackage(uid, packageName); in requestBufferForProcess()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DCrossProfileAppsServiceImplTest.java175 }).when(mAppOpsManager).checkPackage(anyInt(), anyString()); in setupPackage()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DCrossProfileAppsServiceImplTest.java175 }).when(mAppOpsManager).checkPackage(anyInt(), anyString()); in setupPackage()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java955 mAppOpsManager.checkPackage(callingUid, opPackageName); in registerAccountListener()
989 mAppOpsManager.checkPackage(callingUid, opPackageName); in unregisterAccountListener()
2066 mAppOpsManager.checkPackage(callingUid, opPackageName); in hasFeatures()
4449 mAppOpsManager.checkPackage(callingUid, opPackageName);
4538 mAppOpsManager.checkPackage(callingUid, opPackageName);
4738 mAppOpsManager.checkPackage(callingUid, opPackageName);
4807 mAppOpsManager.checkPackage(callingUid, opPackageName);
4872 mAppOpsManager.checkPackage(callingUid, opPackageName);
/frameworks/base/services/core/java/com/android/server/slice/
DSliceManagerService.java440 mAppOps.checkPackage(Binder.getCallingUid(), pkg); in verifyCaller()
/frameworks/base/tests/vcn/java/com/android/server/
DVcnManagementServiceTest.java951 .checkPackage(TEST_UID, TEST_PACKAGE_NAME_2); in testGetConfiguredSubscriptionGroupsMismatchedPackages()
1703 doThrow(new SecurityException()).when(mAppOpsMgr).checkPackage(TEST_UID, TEST_PACKAGE_NAME); in testRegisterVcnStatusCallbackInvalidPackage()
/frameworks/base/services/core/java/com/android/server/content/
DContentService.java1366 mContext.getSystemService(AppOpsManager.class).checkPackage(Binder.getCallingUid(), in putCache()
1388 mContext.getSystemService(AppOpsManager.class).checkPackage(Binder.getCallingUid(), in getCache()
/frameworks/base/services/core/java/com/android/server/os/
DBugreportManagerServiceImpl.java673 mAppOps.checkPackage(callingUid, callingPackage); in enforcePermission()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/subscription/
DSubscriptionManagerService.java2228 mAppOpsManager.checkPackage(Binder.getCallingUid(), callingPackage); in getAccessibleSubscriptionInfoList()
2597 mAppOpsManager.checkPackage(Binder.getCallingUid(), callingPackage); in createSubscriptionGroup()
2867 mAppOpsManager.checkPackage(Binder.getCallingUid(), callingPackage); in addSubscriptionsIntoGroup()
/frameworks/base/services/core/java/com/android/server/rollback/
DRollbackManagerServiceImpl.java434 appOps.checkPackage(callingUid, callerPackageName);

12