Home
last modified time | relevance | path

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

123

/frameworks/base/core/java/com/android/internal/util/
DLocationPermissionChecker.java148 checkPackage(uid, pkgName); in checkLocationPermissionInternal()
245 private void checkPackage(int uid, String pkgName) in checkPackage() method in LocationPermissionChecker
250 mAppOpsManager.checkPackage(uid, pkgName); in checkPackage()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java219 checkPackage(uid, pkgName); in enforceCanAccessScanResults()
274 checkPackage(uid, pkgName); in enforceCanAccessScanResultsForWifiScanner()
312 checkPackage(uid, pkgName); in checkCanAccessWifiDirect()
347 public void checkPackage(int uid, String pkgName) throws SecurityException { in checkPackage() method in WifiPermissionsUtil
351 mAppOps.checkPackage(uid, pkgName); in checkPackage()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareServiceImpl.java170 mAppOps.checkPackage(uid, callingPackage); in connect()
286 mAppOps.checkPackage(uid, callingPackage); in publish()
336 mAppOps.checkPackage(uid, callingPackage); in subscribe()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DAppSmsManager.java87 appOps.checkPackage(Binder.getCallingUid(), callingPkg); in createAppSpecificSmsToken()
124 appOps.checkPackage(Binder.getCallingUid(), callingPackageName); in createAppSpecificSmsTokenWithPackageInfo()
DSmsPermissions.java179 .checkPackage(Binder.getCallingUid(), packageName); in packageNameMatchesCallingUid()
DSubscriptionController.java1125 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in getAccessibleSubscriptionInfoList()
3165 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in enforceCarrierPrivilegeOnInactiveSub()
3271 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in createSubscriptionGroup()
3388 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in addSubscriptionsIntoGroup()
3448 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in removeSubscriptionsFromGroup()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/euicc/
DEuiccController.java366 mAppOpsManager.checkPackage(Binder.getCallingUid(), callingPackage); in getDownloadableSubscriptionMetadata()
528 mAppOpsManager.checkPackage(Binder.getCallingUid(), callingPackage); in downloadSubscription()
803 mAppOpsManager.checkPackage(Binder.getCallingUid(), callingPackage); in getDefaultDownloadableSubscriptionList()
889 mAppOpsManager.checkPackage(Binder.getCallingUid(), callingPackage); in deleteSubscription()
958 mAppOpsManager.checkPackage(Binder.getCallingUid(), callingPackage); in switchToSubscription()
1085 mAppOpsManager.checkPackage(Binder.getCallingUid(), callingPackage); in updateSubscriptionNickname()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pServiceImplTest.java952 .when(mWifiPermissionsUtil).checkPackage(anyInt(), anyString()); in testAddLocalServiceFailureWhenChannelUpdateWrongPkgName()
966 doNothing().when(mWifiPermissionsUtil).checkPackage(anyInt(), anyString()); in testAddLocalServiceFailureWhenCallerPermissionDenied()
984 doNothing().when(mWifiPermissionsUtil).checkPackage(anyInt(), anyString()); in testAddLocalServiceSuccess()
1002 doNothing().when(mWifiPermissionsUtil).checkPackage(anyInt(), anyString()); in testAddLocalServiceFailureWhenNativeCallFailure()
1034 .when(mWifiPermissionsUtil).checkPackage(anyInt(), anyString()); in testConnectWithConfigValidAsGroupFailureWhenChannelUpdateWrongPkgName()
1048 doNothing().when(mWifiPermissionsUtil).checkPackage(anyInt(), anyString()); in testConnectWithConfigValidAsGroupFailureWhenPermissionDenied()
1116 .when(mWifiPermissionsUtil).checkPackage(anyInt(), anyString()); in testCreateGroupWithConfigValidAsGroupFailureWhenChannelUpdateWrongPkgName()
1132 doNothing().when(mWifiPermissionsUtil).checkPackage(anyInt(), anyString()); in testCreateGroupWithConfigValidAsGroupFailureWhenPermissionDenied()
1199 .when(mWifiPermissionsUtil).checkPackage(anyInt(), anyString()); in testDiscoverPeersFailureWhenChannelUpdateWrongPkgName()
1213 doNothing().when(mWifiPermissionsUtil).checkPackage(anyInt(), anyString()); in testDiscoverPeersFailureWhenPermissionDenied()
[all …]
/frameworks/base/core/java/com/android/internal/app/
DIAppOpsService.aidl61 int checkPackage(int uid, String packageName); in checkPackage() method
/frameworks/base/services/core/java/com/android/server/
DHardwarePropertiesManagerService.java163 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in enforceHardwarePropertiesRetrievalAllowed()
DBluetoothManagerService.java867 checkPackage(callingUid, packageName); in checkBluetoothPermissions()
1156 private void checkPackage(int uid, String packageName) { in checkPackage() method in BluetoothManagerService
1167 mAppOps.checkPackage(uid, packageName); in checkPackage()
DTelephonyRegistry.java636 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in addOnSubscriptionsChangedListener()
690 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in addOnOpportunisticSubscriptionsChangedListener()
808 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in listen()
/frameworks/base/startop/apps/test/src/
DSystemServerBenchmarks.java173 appOps.checkPackage(uid, packageName); in initializeBenchmarks()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerService.java531 mAppOps.checkPackage(callingUid, installerPackageName); in createSessionInternal()
538 mAppOps.checkPackage(callingUid, requestedInstallerPackageName); in createSessionInternal()
903 mAppOps.checkPackage(Binder.getCallingUid(), installerPackageName); in getMySessions()
927 mAppOps.checkPackage(callingUid, callerPackageName); in uninstall()
979 mAppOps.checkPackage(callingUid, callerPackageName); in uninstallExistingPackage()
DCrossProfileAppsServiceImpl.java680 mInjector.getAppOpsManager().checkPackage(mInjector.getCallingUid(), callingPackage);
/frameworks/base/services/core/java/com/android/server/os/
DBugreportManagerServiceImpl.java83 mAppOps.checkPackage(callingUid, callingPackage); in startBugreport()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSmsPermissionsTest.java270 doThrow(e).when(mockAppOpsManager).checkPackage(anyInt(), anyString()); in testPackageNameMatchesCallingUid()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DLocationPermissionCheckerTest.java113 .when(mMockAppOps).checkPackage(mUid, TEST_PKG_NAME); in setupMocks()
/frameworks/base/services/core/java/com/android/server/incident/
DPendingReports.java458 mAppOpsManager.checkPackage(uid, packageName); in isPackageInUid()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DScanRequestProxy.java372 mAppOps.checkPackage(callingUid, packageName); in isRequestFromBackground()
/frameworks/base/graphics/java/android/graphics/
DGraphicsStatsService.java182 mAppOps.checkPackage(uid, packageName); in requestBufferForProcess()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DCrossProfileAppsServiceImplTest.java160 }).when(mAppOpsManager).checkPackage(anyInt(), anyString()); in setupPackage()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java881 mAppOpsManager.checkPackage(callingUid, opPackageName); in registerAccountListener()
915 mAppOpsManager.checkPackage(callingUid, opPackageName); in unregisterAccountListener()
1906 mAppOpsManager.checkPackage(callingUid, opPackageName); in hasFeatures()
4211 mAppOpsManager.checkPackage(callingUid, opPackageName);
4288 mAppOpsManager.checkPackage(callingUid, opPackageName);
4465 mAppOpsManager.checkPackage(callingUid, opPackageName);
4534 mAppOpsManager.checkPackage(callingUid, opPackageName);
4599 mAppOpsManager.checkPackage(callingUid, opPackageName);
/frameworks/base/services/core/java/com/android/server/slice/
DSliceManagerService.java432 mAppOps.checkPackage(Binder.getCallingUid(), pkg); in verifyCaller()
/frameworks/base/services/core/java/com/android/server/clipboard/
DClipboardService.java752 mAppOps.checkPackage(uid, callingPackage); in clipboardAccessAllowed()

123