Home
last modified time | relevance | path

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

1234

/frameworks/base/services/tests/servicestests/src/com/android/server/locales/
DLocaleManagerServiceTest.java136 .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/
DUiModeManagerServiceTest.java965 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/
DPermissionUtils.java45 .getPackageUidAsUser(callingPackage, UserHandle.getUserId(callingUid)); in validateCallingPackageName()
/frameworks/base/services/core/java/com/android/server/os/
DDeviceIdentifiersPolicyService.java89 callingPackageUid = mContext.getPackageManager().getPackageUidAsUser( in checkPackageBelongsToCaller()
/frameworks/base/services/tests/VpnTests/java/com/android/server/
DVpnTestBase.java89 }).when(mockPm).getPackageUidAsUser(anyString(), anyInt()); in setMockedPackages()
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
DMusicFxHelperTest.java114 .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/
DShadowApplicationPackageManager.java112 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/
DSensitiveNotificationProtectionControllerTest.kt119 packageManager.getPackageUidAsUser( in setUp()
126 packageManager.getPackageUidAsUser( in setUp()
136 packageManager.getPackageUidAsUser( in setUp()
/frameworks/base/services/core/java/com/android/server/app/
DGameManagerService.java374 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/
DMediaProjectionPrivacyItemMonitor.kt128 val uid = packageManager.getPackageUidAsUser(info.packageName, userId) in makePrivacyItem()
/frameworks/base/services/musicrecognition/java/com/android/server/musicrecognition/
DMusicRecognitionManagerService.java184 serviceUid = pm.getPackageUidAsUser(servicePackageName, in isCalledByServiceAppLocked()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DRankingHelperTest.java126 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()
DPreferencesHelperTest.java256 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/
DCloseShadeRightAfterClickTestB339290820.kt72 whenever(packageManager.getPackageUidAsUser(anyString(), anyInt(), anyInt())) in setUp()
/frameworks/base/services/net/java/android/net/
DConnectivityModuleConnector.java167 uid = pm.getPackageUidAsUser(comp.getPackageName(), UserHandle.USER_SYSTEM); in getModuleServiceIntent()
/frameworks/base/services/tests/mockingservicestests/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/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSensitiveNotificationProtectionControllerImpl.java103 packageUid = mPackageManager.getPackageUidAsUser(info.getPackageName(),
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgePackageManager.java143 … 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/
DUninstallAlertDialogFragment.java276 if (getContext().getPackageManager().getPackageUidAsUser(packageName, in hasClonedInstance()
/frameworks/base/services/translation/java/com/android/server/translation/
DTranslationManagerService.java141 serviceUid = pm.getPackageUidAsUser(servicePackageName, userId); in isCalledByServiceAppLocked()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DFgsManagerController.kt544 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/
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/services/tests/servicestests/src/com/android/server/app/
DMockPackageManager.java133 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/
DBugreportManagerServiceImplTest.java110 when(mPackageManager.getPackageUidAsUser(anyString(), anyInt())).thenReturn(mCallingUid); in setUp()
/frameworks/base/services/core/java/com/android/server/pm/
DCrossProfileAppsServiceImpl.java321 return mInjector.getPackageManager().getPackageUidAsUser( in haveProfilesGotInteractAcrossProfilesPermission()
513 .getPackageUidAsUser(packageName, /* flags= */ 0, profileId);

1234