Home
last modified time | relevance | path

Searched refs:getPackageUid (Results 1 – 25 of 62) sorted by relevance

123

/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsPermissions.java92 && callingUid == mContext.getPackageManager().getPackageUid( in enforceCallerIsImsAppOrCarrierApp()
190 != mContext.getPackageManager().getPackageUid(packageName, 0)) { in packageNameMatchesCallingUid()
192 + mContext.getPackageManager().getPackageUid(packageName, 0) in packageNameMatchesCallingUid()
/frameworks/native/libs/binder/
DPermissionController.cpp82 int PermissionController::getPackageUid(const String16& package, int flags) in getPackageUid() function in android::PermissionController
85 return service != nullptr ? service->getPackageUid(package, flags) : -1; in getPackageUid()
DIPermissionController.cpp93 virtual int getPackageUid(const String16& package, int flags) in getPackageUid() function in android::BpPermissionController
164 const int uid = getPackageUid(package, flags); in onTransact()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DRoleObserverTest.java162 when(mPm.getPackageUid("dialer", MATCH_ALL, 0)).thenReturn(30); in testInit()
166 when(mPm.getPackageUid("emergency", MATCH_ALL, 0)).thenReturn(40); in testInit()
217 when(mPm.getPackageUid("phone", MATCH_ALL, 0)).thenReturn(30); in testSwapDefault()
261 when(mPm.getPackageUid("emerPhone", MATCH_ALL, 0)).thenReturn(30); in testSwapDefault_multipleOverlappingApps()
295 when(mPm.getPackageUid("phone", MATCH_ALL, 10)).thenReturn(30); in testSwapDefault_newUser()
/frameworks/base/core/java/android/os/
DIPermissionController.aidl26 int getPackageUid(String packageName, int flags); in getPackageUid() method
/frameworks/native/libs/binder/include/binder/
DPermissionController.h53 int getPackageUid(const String16& package, int flags);
DIPermissionController.h43 virtual int getPackageUid(const String16& package, int flags) = 0;
/frameworks/base/services/core/java/com/android/server/firewall/
DSenderPackageFilter.java50 packageUid = pm.getPackageUid(mPackageName, PackageManager.MATCH_ANY_USER, in matches()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSmsPermissionsTest.java265 .getPackageUid(eq(PACKAGE), anyInt()); in testPackageNameMatchesCallingUid()
276 .getPackageUid(eq(PACKAGE), anyInt()); in testPackageNameMatchesCallingUid()
/frameworks/base/services/core/java/com/android/server/uri/
DUriGrantsManagerService.java223 final int packageUid = pm.getPackageUid(packageName, in getUriPermissions()
304 uid = getPmInternal().getPackageUid(toPackage, 0, userId); in takePersistableUriPermission()
369 uid = getPmInternal().getPackageUid(toPackage, 0, userId); in releasePersistableUriPermission()
566 targetUid = pm.getPackageUid(targetPkg, MATCH_DEBUG_TRIAGED_MISSING, targetUserId); in checkGrantUriPermissionFromIntent()
669 targetUid = AppGlobals.getPackageManager().getPackageUid( in readGrantedUriPermissions()
762 targetUid = pm.getPackageUid(targetPkg, MATCH_DEBUG_TRIAGED_MISSING, targetUserId); in grantUriPermission()
1061 targetUid = pm.getPackageUid(targetPkg, MATCH_DEBUG_TRIAGED_MISSING, in checkGrantUriPermission()
/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/util/
DTargetPackageUtils.java100 sTestAppUid = pm.getPackageUid(PACKAGE_NAME, 0); in getTestAppUid()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DPendingIntentControllerTest.java81 when(mIPackageManager.getPackageUid(eq(TEST_PACKAGE_NAME), anyInt(), anyInt())).thenReturn( in setUp()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DInstallStart.java146 if (uid == getPackageManager().getPackageUid(packageName, 0)) { in declaresAppOpPermission()
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DBackgroundRestrictionsTest.java112 mTestPackageUid = mContext.getPackageManager().getPackageUid(TEST_APP_PACKAGE, 0); in setUp()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DOwners.java213 final int uid = mDeviceOwner != null ? mPackageManagerInternal.getPackageUid( in pushToActivityTaskManagerLocked()
659 final int uid = mPackageManagerInternal.getPackageUid(mDeviceOwner.packageName, in pushToAppOpsLocked()
668 final int uid = mPackageManagerInternal.getPackageUid( in pushToAppOpsLocked()
/frameworks/base/services/core/java/com/android/server/pm/dex/
DDynamicCodeLogger.java170 loadingUid = mPackageManager.getPackageUid(loadingPackageName, /*flags*/ 0, in logDynamicCodeLoading()
/frameworks/base/services/core/java/com/android/server/compat/
DPlatformCompat.java305 uid = mContext.getPackageManager().getPackageUid(packageName, 0); in killPackage()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/
DDynamicCodeLoggerTests.java289 doReturn(uid).when(mPM).getPackageUid(packageName, /*flags*/ 0, OWNER_USER_ID); in setPackageUid()
/frameworks/base/core/tests/coretests/src/android/os/
DBinderProxyCountingTest.java116 sTestPkgUid = sContext.getPackageManager().getPackageUid(TEST_APP_PKG, 0); in setUpOnce()
/frameworks/base/services/tests/servicestests/src/com/android/server/compat/
DPlatformCompatTest.java63 when(mPackageManager.getPackageUid(eq(PACKAGE_NAME), eq(0))).thenThrow( in setUp()
/frameworks/base/services/core/java/com/android/server/
DBinderCallsStatsService.java110 final int uid = pm.getPackageUid(pkgInfo.packageName, queryFlags); in createAppidTrustlist()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsService.java977 if (mPackageManagerInternal.getPackageUid(pkg, /*flags=*/ 0, in checkCallerIsSameApp()
1193 final int packageUid = mPackageManagerInternal.getPackageUid(packageName, 0, userId); in getAppStandbyBucket()
1241 final int packageUid = mPackageManagerInternal.getPackageUid(packageName, in setAppStandbyBucket()
1316 if (mPackageManagerInternal.getPackageUid(packageName, in setAppStandbyBuckets()
/frameworks/base/core/java/android/content/pm/
DPackageManagerInternal.java387 public abstract int getPackageUid(String packageName, in getPackageUid() method in PackageManagerInternal
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DConnOnActivityStartTest.java113 mTestPkgUid = mContext.getPackageManager().getPackageUid(TEST_PKG, 0); in setUpOnce()
/frameworks/base/services/core/java/com/android/server/am/
DPendingIntentController.java219 final int uid = AppGlobals.getPackageManager().getPackageUid(rec.key.packageName, in cancelIntentSender()

123