/frameworks/base/services/tests/servicestests/src/com/android/server/locales/ |
D | LocaleManagerServiceTest.java | 136 .when(mMockPackageManager).getPackageUidAsUser(anyString(), any(), anyInt()); in testSetApplicationLocales_arbitraryAppWithoutPermissions_fails() 185 .when(mMockPackageManager).getPackageUidAsUser(anyString(), any(), anyInt()); in testSetApplicationLocales_arbitraryAppWithPermission_succeeds() 202 .when(mMockPackageManager).getPackageUidAsUser(anyString(), any(), anyInt()); in testSetApplicationLocales_callerOwnsPackage_succeeds() 215 .when(mMockPackageManager).getPackageUidAsUser(anyString(), any(), anyInt()); in testSetApplicationLocales_invalidPackageOrUserId_fails() 230 .getPackageUidAsUser(anyString(), any(), anyInt()); in testGetApplicationLocales_arbitraryAppWithoutPermission_fails() 247 .getPackageUidAsUser(anyString(), any(), anyInt()); in testGetApplicationLocales_currentImeQueryNonForegroundAppLocales_fails() 253 .getPackageUidAsUser(eq(imPkgName), any(), anyInt()); in testGetApplicationLocales_currentImeQueryNonForegroundAppLocales_fails() 272 .getPackageUidAsUser(anyString(), any(), anyInt()); in testGetApplicationLocales_appSpecificConfigAbsent_returnsEmptyList() 287 .getPackageUidAsUser(anyString(), any(), anyInt()); in testGetApplicationLocales_appSpecificLocalesAbsent_returnsEmptyList() 303 .getPackageUidAsUser(anyString(), any(), anyInt()); in testGetApplicationLocales_callerOwnsAppAndConfigPresent_returnsLocales() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/ |
D | UiModeManagerServiceTest.java | 965 when(mPackageManager.getPackageUidAsUser(eq(PACKAGE_NAME), anyInt())) in requestProjection_failsForBogusPackageName() 975 when(mPackageManager.getPackageUidAsUser(eq(PACKAGE_NAME), anyInt())) in requestProjection_failsIfNameNotFound() 985 when(mPackageManager.getPackageUidAsUser(eq(PACKAGE_NAME), anyInt())) in requestProjection_failsIfNoProjectionTypes() 998 when(mPackageManager.getPackageUidAsUser(eq(PACKAGE_NAME), anyInt())) in requestProjection_failsIfMultipleProjectionTypes() 1015 .when(mPackageManager).getPackageUidAsUser(eq(PACKAGE_NAME), anyInt()); in requestProjection_enforcesToggleAutomotiveProjectionPermission() 1024 when(mPackageManager.getPackageUidAsUser(eq(PACKAGE_NAME), anyInt())) in requestProjection_automotive_failsIfAlreadySetByOtherPackage() 1030 when(mPackageManager.getPackageUidAsUser(eq(otherPackage), anyInt())) in requestProjection_automotive_failsIfAlreadySetByOtherPackage() 1039 when(mPackageManager.getPackageUidAsUser(eq(PACKAGE_NAME), anyInt())) in requestProjection_failsIfCannotLinkToDeath() 1049 when(mPackageManager.getPackageUidAsUser(eq(PACKAGE_NAME), anyInt())) in requestProjection() 1065 when(mPackageManager.getPackageUidAsUser(eq(PACKAGE_NAME), anyInt())) in releaseProjection_failsForBogusPackageName() [all …]
|
/frameworks/base/services/companion/java/com/android/server/companion/virtual/ |
D | PermissionUtils.java | 45 .getPackageUidAsUser(callingPackage, UserHandle.getUserId(callingUid)); in validateCallingPackageName()
|
/frameworks/base/services/core/java/com/android/server/os/ |
D | DeviceIdentifiersPolicyService.java | 89 callingPackageUid = mContext.getPackageManager().getPackageUidAsUser( in checkPackageBelongsToCaller()
|
/frameworks/base/services/tests/VpnTests/java/com/android/server/ |
D | VpnTestBase.java | 89 }).when(mockPm).getPackageUidAsUser(anyString(), anyInt()); in setMockedPackages()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/ |
D | MusicFxHelperTest.java | 114 .getPackageUidAsUser(eq(packageName), anyObject(), anyInt()); in openSessionWithResList() 116 .getPackageUidAsUser(eq(mMusicFxPkgName), anyObject(), anyInt()); in openSessionWithResList() 143 .getPackageUidAsUser(eq(packageName), anyObject(), anyInt()); in closeSessionWithResList() 145 .getPackageUidAsUser(eq(mMusicFxPkgName), anyObject(), anyInt()); in closeSessionWithResList()
|
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/ |
D | ShadowApplicationPackageManager.java | 112 protected int getPackageUidAsUser(String packageName, int flags, int userId) in getPackageUidAsUser() method in ShadowApplicationPackageManager
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | SensitiveNotificationProtectionControllerTest.kt | 119 packageManager.getPackageUidAsUser( in setUp() 126 packageManager.getPackageUidAsUser( in setUp() 136 packageManager.getPackageUidAsUser( in setUp()
|
/frameworks/base/services/core/java/com/android/server/app/ |
D | GameManagerService.java | 374 uid = mPackageManager.getPackageUidAsUser(packageName, userId); 1009 return mPackageManager.getPackageUidAsUser(packageName, userId) 1203 gameUid = mPackageManager.getPackageUidAsUser(packageName, userId); 1447 gameUid = mPackageManager.getPackageUidAsUser(packageName, userId); 1650 final int uid = mPackageManager.getPackageUidAsUser(packageName, userId); 1682 final int uid = mPackageManager.getPackageUidAsUser(packageName, userId); 1722 gameUid = mPackageManager.getPackageUidAsUser(packageName, userId); 1946 sb.append(mPackageManager.getPackageUidAsUser(packageName, userId)); 2143 uid = mPackageManager.getPackageUidAsUser(p, userId);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/ |
D | MediaProjectionPrivacyItemMonitor.kt | 128 val uid = packageManager.getPackageUidAsUser(info.packageName, userId) in makePrivacyItem()
|
/frameworks/base/services/musicrecognition/java/com/android/server/musicrecognition/ |
D | MusicRecognitionManagerService.java | 184 serviceUid = pm.getPackageUidAsUser(servicePackageName, in isCalledByServiceAppLocked()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | RankingHelperTest.java | 126 when(mPm.getPackageUidAsUser(eq(mPkg), anyInt())).thenReturn(mUid); in setUp() 127 when(mPm.getPackageUidAsUser(eq(UPDATED_PKG), anyInt())).thenReturn(UID2); in setUp() 128 when(mPm.getPackageUidAsUser(eq(SYSTEM_PKG), anyInt())).thenReturn(SYSTEM_UID); in setUp()
|
D | PreferencesHelperTest.java | 256 when(mPm.getPackageUidAsUser(eq(PKG_N_MR1), anyInt())).thenReturn(UID_N_MR1); in setUp() 257 when(mPm.getPackageUidAsUser(eq(PKG_O), anyInt())).thenReturn(UID_O); in setUp() 258 when(mPm.getPackageUidAsUser(eq(PKG_P), anyInt())).thenReturn(UID_P); in setUp() 259 when(mPm.getPackageUidAsUser(eq(SYSTEM_PKG), anyInt())).thenReturn(SYSTEM_UID); in setUp() 481 when(mPm.getPackageUidAsUser(eq(packageName), anyInt())).thenReturn(uid); in setUpPackageWithUid() 800 when(mPm.getPackageUidAsUser("pkg1", USER_SYSTEM)).thenReturn(UNKNOWN_UID); in testReadXml_oldXml_backup_migratesWhenPkgInstalled() 801 when(mPm.getPackageUidAsUser("pkg2", USER_SYSTEM)).thenReturn(UNKNOWN_UID); in testReadXml_oldXml_backup_migratesWhenPkgInstalled() 802 when(mPm.getPackageUidAsUser("pkg3", USER_SYSTEM)).thenReturn(UNKNOWN_UID); in testReadXml_oldXml_backup_migratesWhenPkgInstalled() 855 when(mPm.getPackageUidAsUser("pkg1", USER_SYSTEM)).thenReturn(11); in testReadXml_oldXml_backup_migratesWhenPkgInstalled() 856 when(mPm.getPackageUidAsUser("pkg2", USER_SYSTEM)).thenReturn(12); in testReadXml_oldXml_backup_migratesWhenPkgInstalled() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/external/ |
D | CloseShadeRightAfterClickTestB339290820.kt | 72 whenever(packageManager.getPackageUidAsUser(anyString(), anyInt(), anyInt())) in setUp()
|
/frameworks/base/services/net/java/android/net/ |
D | ConnectivityModuleConnector.java | 167 uid = pm.getPackageUidAsUser(comp.getPackageName(), UserHandle.USER_SYSTEM); in getModuleServiceIntent()
|
/frameworks/base/services/tests/mockingservicestests/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/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | SensitiveNotificationProtectionControllerImpl.java | 103 packageUid = mPackageManager.getPackageUidAsUser(info.getPackageName(),
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgePackageManager.java | 143 … public int getPackageUidAsUser(String packageName, int userHandle) throws NameNotFoundException { in getPackageUidAsUser() method in BridgePackageManager 148 …public int getPackageUidAsUser(String packageName, int flags, int userHandle) throws NameNotFoundE… in getPackageUidAsUser() method in BridgePackageManager
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/handheld/ |
D | UninstallAlertDialogFragment.java | 276 if (getContext().getPackageManager().getPackageUidAsUser(packageName, in hasClonedInstance()
|
/frameworks/base/services/translation/java/com/android/server/translation/ |
D | TranslationManagerService.java | 141 serviceUid = pm.getPackageUidAsUser(servicePackageName, userId); in isCalledByServiceAppLocked()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | FgsManagerController.kt | 544 val uid = packageManager.getPackageUidAsUser(packageName, userId) in logEvent() 688 val uid by lazy { packageManager.getPackageUidAsUser(packageName, userId) } in <lambda>()
|
/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/services/tests/servicestests/src/com/android/server/app/ |
D | MockPackageManager.java | 133 public int getPackageUidAsUser(@NonNull String packageName, int userId) in getPackageUidAsUser() method in MockPackageManager 139 public int getPackageUidAsUser(@NonNull String packageName, int flags, int userId) in getPackageUidAsUser() method in MockPackageManager
|
/frameworks/base/services/tests/servicestests/src/com/android/server/os/ |
D | BugreportManagerServiceImplTest.java | 110 when(mPackageManager.getPackageUidAsUser(anyString(), anyInt())).thenReturn(mCallingUid); in setUp()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | CrossProfileAppsServiceImpl.java | 321 return mInjector.getPackageManager().getPackageUidAsUser( in haveProfilesGotInteractAcrossProfilesPermission() 513 .getPackageUidAsUser(packageName, /* flags= */ 0, profileId);
|