/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | SmsPermissions.java | 92 && 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/ |
D | PermissionController.cpp | 82 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()
|
D | IPermissionController.cpp | 93 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/ |
D | RoleObserverTest.java | 162 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/ |
D | IPermissionController.aidl | 26 int getPackageUid(String packageName, int flags); in getPackageUid() method
|
/frameworks/native/libs/binder/include/binder/ |
D | PermissionController.h | 53 int getPackageUid(const String16& package, int flags);
|
D | IPermissionController.h | 43 virtual int getPackageUid(const String16& package, int flags) = 0;
|
/frameworks/base/services/core/java/com/android/server/firewall/ |
D | SenderPackageFilter.java | 50 packageUid = pm.getPackageUid(mPackageName, PackageManager.MATCH_ANY_USER, in matches()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | SmsPermissionsTest.java | 265 .getPackageUid(eq(PACKAGE), anyInt()); in testPackageNameMatchesCallingUid() 276 .getPackageUid(eq(PACKAGE), anyInt()); in testPackageNameMatchesCallingUid()
|
/frameworks/base/services/core/java/com/android/server/uri/ |
D | UriGrantsManagerService.java | 223 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/ |
D | TargetPackageUtils.java | 100 sTestAppUid = pm.getPackageUid(PACKAGE_NAME, 0); in getTestAppUid()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | PendingIntentControllerTest.java | 81 when(mIPackageManager.getPackageUid(eq(TEST_PACKAGE_NAME), anyInt(), anyInt())).thenReturn( in setUp()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | InstallStart.java | 146 if (uid == getPackageManager().getPackageUid(packageName, 0)) { in declaresAppOpPermission()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/job/ |
D | BackgroundRestrictionsTest.java | 112 mTestPackageUid = mContext.getPackageManager().getPackageUid(TEST_APP_PACKAGE, 0); in setUp()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | Owners.java | 213 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/ |
D | DynamicCodeLogger.java | 170 loadingUid = mPackageManager.getPackageUid(loadingPackageName, /*flags*/ 0, in logDynamicCodeLoading()
|
/frameworks/base/services/core/java/com/android/server/compat/ |
D | PlatformCompat.java | 305 uid = mContext.getPackageManager().getPackageUid(packageName, 0); in killPackage()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/ |
D | DynamicCodeLoggerTests.java | 289 doReturn(uid).when(mPM).getPackageUid(packageName, /*flags*/ 0, OWNER_USER_ID); in setPackageUid()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | BinderProxyCountingTest.java | 116 sTestPkgUid = sContext.getPackageManager().getPackageUid(TEST_APP_PKG, 0); in setUpOnce()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/compat/ |
D | PlatformCompatTest.java | 63 when(mPackageManager.getPackageUid(eq(PACKAGE_NAME), eq(0))).thenThrow( in setUp()
|
/frameworks/base/services/core/java/com/android/server/ |
D | BinderCallsStatsService.java | 110 final int uid = pm.getPackageUid(pkgInfo.packageName, queryFlags); in createAppidTrustlist()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsService.java | 977 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/ |
D | PackageManagerInternal.java | 387 public abstract int getPackageUid(String packageName, in getPackageUid() method in PackageManagerInternal
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | ConnOnActivityStartTest.java | 113 mTestPkgUid = mContext.getPackageManager().getPackageUid(TEST_PKG, 0); in setUpOnce()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | PendingIntentController.java | 219 final int uid = AppGlobals.getPackageManager().getPackageUid(rec.key.packageName, in cancelIntentSender()
|