Home
last modified time | relevance | path

Searched refs:getPackageInfoAsUser (Results 1 – 25 of 67) sorted by relevance

123

/frameworks/base/packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/model/app/
DPackageManagers.kt27 fun getPackageInfoAsUser(packageName: String, userId: Int): PackageInfo? in getPackageInfoAsUser() method
38 fun getPackageInfoAsUser(packageName: String, flags: Long, userId: Int): PackageInfo? in getPackageInfoAsUser() method
64 override fun getPackageInfoAsUser(packageName: String, userId: Int): PackageInfo? = in getPackageInfoAsUserCached() method in com.android.settingslib.spaprivileged.model.app.PackageManagersImpl
65 getPackageInfoAsUser(packageName, 0, userId) in getPackageInfoAsUserCached()
76 getPackageInfoAsUser(packageName, PackageManager.GET_PERMISSIONS.toLong(), userId) in getPackageInfoAsUserCached()
84 getPackageInfoAsUser(packageName, PackageManager.GET_PERMISSIONS.toLong(), userId) in getPackageInfoAsUserCached()
96 override fun getPackageInfoAsUser(packageName: String, flags: Long, userId: Int): PackageInfo? = in getPackageInfoAsUserCached() method in com.android.settingslib.spaprivileged.model.app.PackageManagersImpl
/frameworks/opt/car/services/updatableServices/tests/src/com/android/server/wm/
DCarDisplayCompatScaleProviderUpdatableTest.java173 when(mInterface.getPackageInfoAsUser(eq("package1"), any(PackageInfoFlags.class), in hasMedataData_notDisplayCompat_returnsTrue()
191 when(mInterface.getPackageInfoAsUser(eq("package1"), any(PackageInfoFlags.class), in hasMedataDataDisplayCompat_requiredTrue_returnsTrue()
211 when(mInterface.getPackageInfoAsUser(eq("package1"), any(PackageInfoFlags.class), in hasFeatureAutomotive_requiredTrue_returnsFalse()
223 when(mInterface.getPackageInfoAsUser(eq("package1"), any(PackageInfoFlags.class), in hasFeatureAutomotive_requiredFalse_returnsFalse()
232 when(mInterface.getPackageInfoAsUser(eq("package1"), any(PackageInfoFlags.class), in hasNoActivities_returnsFalse()
245 when(mInterface.getPackageInfoAsUser(eq("package1"), any(PackageInfoFlags.class), in hasDistractionOptimizedActivity_returnsFalse()
256 when(mInterface.getPackageInfoAsUser(eq("package1"), any(PackageInfoFlags.class), in isPrivileged_returnsFalse()
271 when(mInterface.getPackageInfoAsUser(eq("package1"), any(PackageInfoFlags.class), in isSystem_returnsFalse()
286 when(mInterface.getPackageInfoAsUser(eq("package1"), any(PackageInfoFlags.class), in hasPlatformSignature_returnsFalse()
299 verify(mInterface, times(1)).getPackageInfoAsUser(eq("package1"), in requiresDisplayCompat_packageStateIsCached()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DPackageManagerAdapter.java58 public PackageInfo getPackageInfoAsUser(String packageName, int flags, @UserIdInt int userId) in getPackageInfoAsUser() method in PackageManagerAdapter
60 return mPackageManager.getPackageInfoAsUser(packageName, flags, userId); in getPackageInfoAsUser()
/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/model/app/
DPackageManagersTest.kt37 val packageInfo = packageManagersImpl.getPackageInfoAsUser(PACKAGE_NAME, 0) in getPackageInfoAsUser_notFound()
46 val packageInfo = packageManagersImpl.getPackageInfoAsUser(PACKAGE_NAME, 0) in getPackageInfoAsUser_found()
/frameworks/base/packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/template/app/
DAppInfoPage.kt36 packageManagers.getPackageInfoAsUser(packageName, userId) in AppInfoPage()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/
DUserBackupManagerServiceTest.java185 when(mPackageManager.getPackageInfoAsUser(anyString(), anyInt(), anyInt())).thenReturn( in getRequestBackupParams_appIsEligibleForFullBackup()
201 when(mPackageManager.getPackageInfoAsUser(anyString(), anyInt(), anyInt())).thenReturn( in getRequestBackupParams_appIsEligibleForKeyValueBackup()
217 when(mPackageManager.getPackageInfoAsUser(anyString(), anyInt(), anyInt())).thenReturn( in getRequestBackupParams_appIsNotEligibleForBackup()
288 when(mPackageManager.getPackageInfoAsUser(anyString(), in testReportDelayedRestoreResult_sendsLogsToMonitor()
DPackageManagerBackupAgentTest.java82 when(mPackageManager.getPackageInfoAsUser(eq(EXISTING_PACKAGE_NAME), anyInt(), anyInt())) in setUp()
167 mPackageManager.getPackageInfoAsUser( in onBackup_noAncestralRecordInfo_deletesUninstalledPackagesFromBackup()
219 when(mPackageManager.getPackageInfoAsUser( in onRestore_legacyBackupWithMissingSignature_restoresBackup()
/frameworks/opt/car/services/builtInServices/src/com/android/server/wm/
DCarDisplayCompatScaleProviderInterface.java60 PackageInfo getPackageInfoAsUser(@NonNull String packageName, in getPackageInfoAsUser() method
DCarDisplayCompatScaleProvider.java130 public PackageInfo getPackageInfoAsUser(String packageName, in getBuiltinInterface() method in CarDisplayCompatScaleProvider
133 return mPackageManager.getPackageInfoAsUser(packageName, flags, userId); in getBuiltinInterface()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/tiles/impl/custom/data/repository/
DFakePackageManagerAdapterFacade.kt53 packageManagerAdapter.getPackageInfoAsUser(
/frameworks/base/core/java/android/webkit/
DUserPackage.java55 packageInfo = context.getPackageManager().getPackageInfoAsUser( in getPackageInfosAllUsers()
/frameworks/base/services/core/java/com/android/server/security/
DKeyAttestationApplicationIdProviderService.java69 PackageInfo packageInfo = mPackageManager.getPackageInfoAsUser(packageNames[i], in getKeyAttestationApplicationId()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbSerialReader.java85 .getPackageInfoAsUser(packageName, 0, user.getIdentifier()); in getSerial()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerBackupHelper.java122 packageInfo = packageManager.getPackageInfoAsUser(packageName, in apply()
181 packageInfo = packageManager.getPackageInfoAsUser(packageName, in backupAccountAccessPermissions()
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/
DShadowApplicationPackageManager.java98 protected PackageInfo getPackageInfoAsUser(String packageName, int flags, int userId) in getPackageInfoAsUser() method in ShadowApplicationPackageManager
/frameworks/base/services/tests/servicestests/src/com/android/server/net/watchlist/
DWatchlistLoggingHandlerTests.java152 }).when(mockPackageManager).getPackageInfoAsUser(anyString(), anyInt(), anyInt()); in setUp()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DRestoreUtils.java155 PackageInfo pkg = packageManager.getPackageInfoAsUser(info.packageName, in installApk()
DBackupEligibilityRules.java275 PackageInfo packageInfo = mPackageManager.getPackageInfoAsUser(packageName, in appIsRunningAndEligibleForBackupWithTransport()
/frameworks/base/services/core/java/com/android/server/grammaticalinflection/
DGrammaticalInflectionBackupHelper.java218 pkgInfo = mPackageManager.getPackageInfoAsUser(packageName, /* flags= */ 0, userId); in isPackageInstalledForUser()
/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/template/app/
DTogglePermissionAppInfoPageTest.kt55 on { getPackageInfoAsUser(PACKAGE_NAME, USER_ID) } doReturn PACKAGE_INFO in <lambda>()
/frameworks/base/services/backup/java/com/android/server/backup/
DTransportManager.java646 mPackageManager.getPackageInfoAsUser(packageName, 0, mUserId); in registerTransportsFromPackage()
686 mPackageManager.getPackageInfoAsUser(transport.getPackageName(), 0, mUserId); in isTransportTrusted()
/frameworks/base/services/companion/java/com/android/server/companion/utils/
DPackageUtils.java84 return pm.getPackageInfoAsUser(packageName, flags, userId); in getPackageInfo()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/
DPeopleBackupFollowUpJobTest.java101 when(mPackageManager.getPackageInfoAsUser(any(), anyInt(), anyInt())) in setUp()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/testutils/
DPackageManagerStub.java51 return getPackageInfoAsUser(packageName, flags, UserHandle.USER_SYSTEM); in getPackageInfo()
61 public PackageInfo getPackageInfoAsUser(String packageName, int flags, int userId) in getPackageInfoAsUser() method in PackageManagerStub
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DPerformUnifiedRestoreTask.java271 PackageInfo info = pm.getPackageInfoAsUser(filterSet[i], 0, mUserId); in PerformUnifiedRestoreTask()
301 .getPackageInfoAsUser(PLATFORM_PACKAGE_NAME, 0, mUserId)); in PerformUnifiedRestoreTask()
311 .getPackageInfoAsUser(SETTINGS_PACKAGE, 0, mUserId)); in PerformUnifiedRestoreTask()
634 .getPackageInfoAsUser( in dispatchNextRestore()

123