Home
last modified time | relevance | path

Searched refs:getPackageUidAsUser (Results 1 – 25 of 43) sorted by relevance

12

/frameworks/base/services/robotests/src/com/android/server/testing/shadows/
DShadowApplicationPackageManager.java76 protected int getPackageUidAsUser(String packageName, int flags, int userId) in getPackageUidAsUser() method in ShadowApplicationPackageManager
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DRankingHelperTest.java114 when(mPm.getPackageUidAsUser(eq(PKG), anyInt())).thenReturn(UID); in setUp()
115 when(mPm.getPackageUidAsUser(eq(UPDATED_PKG), anyInt())).thenReturn(UID2); in setUp()
116 when(mPm.getPackageUidAsUser(eq(SYSTEM_PKG), anyInt())).thenReturn(SYSTEM_UID); in setUp()
DPreferencesHelperTest.java140 when(mPm.getPackageUidAsUser(eq(PKG_N_MR1), anyInt())).thenReturn(UID_N_MR1); in setUp()
141 when(mPm.getPackageUidAsUser(eq(PKG_O), anyInt())).thenReturn(UID_O); in setUp()
142 when(mPm.getPackageUidAsUser(eq(SYSTEM_PKG), anyInt())).thenReturn(SYSTEM_UID); in setUp()
258 when(mPm.getPackageUidAsUser(eq(packageName), anyInt())).thenReturn(uid); in setUpPackageWithUid()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmTestBase.java131 doReturn(ai.uid).when(mServices.packageManager).getPackageUidAsUser( in markPackageAsInstalled()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgePackageManager.java134 … public int getPackageUidAsUser(String packageName, int userHandle) throws NameNotFoundException { in getPackageUidAsUser() method in BridgePackageManager
139 …public int getPackageUidAsUser(String packageName, int flags, int userHandle) throws NameNotFoundE… in getPackageUidAsUser() method in BridgePackageManager
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/testutils/
DPackageManagerStub.java113 public int getPackageUidAsUser(String packageName, int userId) in getPackageUidAsUser() method in PackageManagerStub
119 public int getPackageUidAsUser(String packageName, int flags, int userId) in getPackageUidAsUser() method in PackageManagerStub
/frameworks/base/services/net/java/android/net/
DConnectivityModuleConnector.java170 uid = pm.getPackageUidAsUser(comp.getPackageName(), UserHandle.USER_SYSTEM); in getModuleServiceIntent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DTileServices.java149 int uid = mContext.getPackageManager().getPackageUidAsUser(packageName, in verifyCaller()
/frameworks/base/test-mock/src/android/test/mock/
DMockPackageManager.java134 public int getPackageUidAsUser(String packageName, int flags, int userHandle) in getPackageUidAsUser() method in MockPackageManager
141 public int getPackageUidAsUser(String packageName, int userHandle) in getPackageUidAsUser() method in MockPackageManager
/frameworks/base/tests/net/java/com/android/server/connectivity/
DVpnTest.java708 when(mPackageManager.getPackageUidAsUser(eq(TEST_VPN_PKG), anyInt())) in createVpnAndSetupUidChecks()
1003 when(mPackageManager.getPackageUidAsUser(eq(TEST_VPN_PKG), anyInt())) in testSetAndStartAlwaysOnVpn()
1102 }).when(mPackageManager).getPackageUidAsUser(anyString(), anyInt()); in setMockedPackages()
/frameworks/base/core/java/android/hardware/usb/
DUsbManager.java691 .getPackageUidAsUser(packageName, mContext.getUserId()); in grantPermission()
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DAppStandbyControllerTests.java265 doReturn(UID_1).when(mockPm).getPackageUidAsUser(eq(PACKAGE_1), anyInt(), anyInt()); in setupPm()
266 doReturn(UID_EXEMPTED_1).when(mockPm).getPackageUidAsUser(eq(PACKAGE_EXEMPTED_1), in setupPm()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierPrivilegesTracker.java507 uids.add(mPackageManager.getPackageUidAsUser(pkgName, userId)); in getUidsForPackage()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCarrierPrivilegesTrackerTest.java152 when(mPackageManager.getPackageUidAsUser( in setupInstalledPackages()
/frameworks/base/services/core/java/com/android/server/
DPersistentDataBlockService.java153 allowedUid = pm.getPackageUidAsUser(allowedPackage, in getAllowedUid()
/frameworks/base/services/core/java/com/android/server/textclassifier/
DTextClassificationManagerService.java448 .getPackageUidAsUser(packageName, UserHandle.getCallingUserId()); in validateInput()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java356 final int uid = mPackageManager.getPackageUidAsUser(packageName, userId); in AccountManagerService()
667 uid = mPackageManager.getPackageUidAsUser(packageName, accounts.userId); in resolveAccountVisibility()
1035 mPackageManager.getPackageUidAsUser(packageName, userId); in packageExistsForUser()
1398 mPackageManager.getPackageUidAsUser(packageName, accounts.userId); in removeVisibilityValuesForPackage()
3953 int uid = mPackageManager.getPackageUidAsUser(packageName, userId); in hasAccountAccess()
4030 uid = mPackageManager.getPackageUidAsUser(packageName, userId); in createRequestAccountAccessIntentSenderAsUser()
4478 packageUid = mPackageManager.getPackageUidAsUser(packageName, userId);
5348 final int uid = mPackageManager.getPackageUidAsUser(packageName, userId);
6180 uid = mPackageManager.getPackageUidAsUser(packageName, userId);
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java290 return getPackageUidAsUser(packageName, flags, getUserId()); in getPackageUid()
294 public int getPackageUidAsUser(String packageName, int userId) throws NameNotFoundException { in getPackageUidAsUser() method in ApplicationPackageManager
295 return getPackageUidAsUser(packageName, 0, userId); in getPackageUidAsUser()
299 public int getPackageUidAsUser(String packageName, int flags, int userId) in getPackageUidAsUser() method in ApplicationPackageManager
/frameworks/base/services/core/java/com/android/server/notification/
DPreferencesHelper.java180 uid = mPm.getPackageUidAsUser(name, userId); in readXml()
1760 r.uid = mPm.getPackageUidAsUser(r.pkg, changeUserId); in onPackagesChanged()
1774 mPm.getPackageUidAsUser(pkg, changeUserId)); in onPackagesChanged()
/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/
DContentCapturePerUserService.java398 packageUid = pm.getPackageUidAsUser(packageName, UserHandle.getCallingUserId()); in assertCallerLocked()
DContentCaptureManagerService.java485 serviceUid = pm.getPackageUidAsUser(servicePackageName, UserHandle.getCallingUserId()); in isCalledByServiceLocked()
/frameworks/base/services/usage/java/com/android/server/usage/
DAppStandbyController.java656 uid = mPackageManager.getPackageUidAsUser(packageName, userId); in checkAndUpdateStandbyState()
835 final int uid = mPackageManager.getPackageUidAsUser(packageName, in notifyBatteryStats()
/frameworks/base/services/print/java/com/android/server/print/
DPrintManagerService.java343 mContext.getPackageManager().getPackageUidAsUser( in setPrintServiceEnabled()
/frameworks/base/core/java/android/content/pm/
DPackageManager.java3606 public abstract int getPackageUidAsUser(@NonNull String packageName, @UserIdInt int userId) in getPackageUidAsUser() method in PackageManager
3624 public abstract int getPackageUidAsUser(@NonNull String packageName, in getPackageUidAsUser() method in PackageManager
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsState.java1208 uid = context.getPackageManager().getPackageUidAsUser(packageName, 0, userId); in isSystemPackage()

12