/frameworks/base/services/robotests/src/com/android/server/testing/shadows/ |
D | ShadowApplicationPackageManager.java | 76 protected int getPackageUidAsUser(String packageName, int flags, int userId) in getPackageUidAsUser() method in ShadowApplicationPackageManager
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | RankingHelperTest.java | 114 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()
|
D | PreferencesHelperTest.java | 140 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/ |
D | DpmTestBase.java | 131 doReturn(ai.uid).when(mServices.packageManager).getPackageUidAsUser( in markPackageAsInstalled()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgePackageManager.java | 134 … 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/ |
D | PackageManagerStub.java | 113 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/ |
D | ConnectivityModuleConnector.java | 170 uid = pm.getPackageUidAsUser(comp.getPackageName(), UserHandle.USER_SYSTEM); in getModuleServiceIntent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/ |
D | TileServices.java | 149 int uid = mContext.getPackageManager().getPackageUidAsUser(packageName, in verifyCaller()
|
/frameworks/base/test-mock/src/android/test/mock/ |
D | MockPackageManager.java | 134 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/ |
D | VpnTest.java | 708 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/ |
D | UsbManager.java | 691 .getPackageUidAsUser(packageName, mContext.getUserId()); in grantPermission()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/ |
D | AppStandbyControllerTests.java | 265 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/ |
D | CarrierPrivilegesTracker.java | 507 uids.add(mPackageManager.getPackageUidAsUser(pkgName, userId)); in getUidsForPackage()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierPrivilegesTrackerTest.java | 152 when(mPackageManager.getPackageUidAsUser( in setupInstalledPackages()
|
/frameworks/base/services/core/java/com/android/server/ |
D | PersistentDataBlockService.java | 153 allowedUid = pm.getPackageUidAsUser(allowedPackage, in getAllowedUid()
|
/frameworks/base/services/core/java/com/android/server/textclassifier/ |
D | TextClassificationManagerService.java | 448 .getPackageUidAsUser(packageName, UserHandle.getCallingUserId()); in validateInput()
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
D | AccountManagerService.java | 356 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/ |
D | ApplicationPackageManager.java | 290 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/ |
D | PreferencesHelper.java | 180 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/ |
D | ContentCapturePerUserService.java | 398 packageUid = pm.getPackageUidAsUser(packageName, UserHandle.getCallingUserId()); in assertCallerLocked()
|
D | ContentCaptureManagerService.java | 485 serviceUid = pm.getPackageUidAsUser(servicePackageName, UserHandle.getCallingUserId()); in isCalledByServiceLocked()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | AppStandbyController.java | 656 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/ |
D | PrintManagerService.java | 343 mContext.getPackageManager().getPackageUidAsUser( in setPrintServiceEnabled()
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageManager.java | 3606 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/ |
D | SettingsState.java | 1208 uid = context.getPackageManager().getPackageUidAsUser(packageName, 0, userId); in isSystemPackage()
|