Home
last modified time | relevance | path

Searched refs:getApplicationInfoAsUser (Results 1 – 25 of 111) sorted by relevance

12345

/frameworks/opt/car/services/updatableServices/tests/src/com/android/server/wm/
DCarDisplayCompatScaleProviderUpdatableTest.java148 when(mPackageManager.getApplicationInfoAsUser(eq("package1"), in noApplicationInfo_returnsFalse()
160 when(mPackageManager.getApplicationInfoAsUser(eq("package1"), in hasMedataDataDisplayCompat_requiredFalse_returnsFalse()
177 when(mPackageManager.getApplicationInfoAsUser(eq("package1"), in hasMedataData_notDisplayCompat_returnsTrue()
195 when(mPackageManager.getApplicationInfoAsUser(eq("package1"), in hasMedataDataDisplayCompat_requiredTrue_returnsTrue()
259 when(mPackageManager.getApplicationInfoAsUser(eq("package1"), in isPrivileged_returnsFalse()
274 when(mPackageManager.getApplicationInfoAsUser(eq("package1"), in isSystem_returnsFalse()
316 when(mPackageManager.getApplicationInfoAsUser(eq("package1"), in matchDisplay_scalesPackage()
344 when(mPackageManager.getApplicationInfoAsUser(eq("package1"), in matchDisplayPackage_scalesPackage()
372 when(mPackageManager.getApplicationInfoAsUser(eq("package1"), in matchDisplayUser_scalesPackage()
401 when(mPackageManager.getApplicationInfoAsUser(eq("package1"), in matchDisplayPackageUser_scalesPackage()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/companion/virtual/
DCameraAccessControllerTest.java112 when(mPackageManager.getApplicationInfoAsUser( in setUp()
115 when(mPackageManager.getApplicationInfoAsUser( in setUp()
260 when(mPackageManager.getApplicationInfoAsUser( in multipleUsers_getPersonalProfileAppUid_cameraBlocked()
263 when(mPackageManager.getApplicationInfoAsUser( in multipleUsers_getPersonalProfileAppUid_cameraBlocked()
278 when(mPackageManager.getApplicationInfoAsUser( in multipleUsers_getPersonalProfileAppUid_noCameraBlocking()
281 when(mPackageManager.getApplicationInfoAsUser( in multipleUsers_getPersonalProfileAppUid_noCameraBlocking()
295 when(mPackageManager.getApplicationInfoAsUser( in multipleUsers_getWorkProfileAppUid_cameraBlocked()
298 when(mPackageManager.getApplicationInfoAsUser( in multipleUsers_getWorkProfileAppUid_cameraBlocked()
313 when(mPackageManager.getApplicationInfoAsUser( in multipleUsers_getWorkProfileAppUid_noCameraBlocking()
316 when(mPackageManager.getApplicationInfoAsUser( in multipleUsers_getWorkProfileAppUid_noCameraBlocking()
/frameworks/base/packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/model/app/
DPackageManagers.kt28 fun getApplicationInfoAsUser(packageName: String, userId: Int): ApplicationInfo? in getPackageInfoAsUser() method
67 override fun getApplicationInfoAsUser(packageName: String, userId: Int): ApplicationInfo? = in getPackageInfoAsUserCached() method in com.android.settingslib.spaprivileged.model.app.PackageManagersImpl
71 getApplicationInfoAsUser(packageName, userId)?.hasFlag(ApplicationInfo.FLAG_INSTALLED) in getPackageInfoAsUserCached()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DDefaultAppInfo.java84 final ApplicationInfo appInfo = mPm.getApplicationInfoAsUser( in loadLabel()
109 final ApplicationInfo appInfo = mPm.getApplicationInfoAsUser( in loadIcon()
122 final ApplicationInfo appInfo = mPm.getApplicationInfoAsUser( in loadIcon()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/notetask/
DNoteTaskInfoResolverTest.kt64 packageManager.getApplicationInfoAsUser( in resolveInfo_shouldReturnInfo()
87 packageManager.getApplicationInfoAsUser( in resolveInfo_packageManagerThrowsException_shouldReturnInfoWithZeroUid()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/
DControlsServiceInfo.kt120 val appInfo = mPm.getApplicationInfoAsUser(componentName.packageName, 0, userId) in loadLabel()
134 val appInfo = mPm.getApplicationInfoAsUser(packageName, 0, userId) in loadIcon()
/frameworks/base/services/core/java/com/android/server/app/
DGameClassifierImpl.java39 mPackageManager.getApplicationInfoAsUser( in isGame()
/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/
DUtils.java65 final ApplicationInfo appInfo = packageManager.getApplicationInfoAsUser( in getApplicationLabel()
145 final ApplicationInfo appInfo = packageManager.getApplicationInfoAsUser( in getApplicationInfo()
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/data/
DRecentTaskLabelLoader.kt50 packageManager.getApplicationInfoAsUser( in loadLabel()
/frameworks/base/packages/SystemUI/src/com/android/systemui/notetask/
DNoteTaskInfoResolver.kt66 getApplicationInfoAsUser(packageName, EMPTY_APPLICATION_INFO_FLAGS, user).uid in PackageManager()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/
DPipAppOpsListener.kt37 .getApplicationInfoAsUser(packageName, 0, userId) in <lambda>()
DPipUiEventLogger.kt56 uid = mPackageManager.getApplicationInfoAsUser( in getUid()
/frameworks/base/services/core/java/com/android/server/policy/
DSoftRestrictedPermissionPolicy.java95 uidPkgInfo = pm.getApplicationInfoAsUser(uidPkg, 0, user); in getMinimumTargetSDK()
267 applicationInfo = packageManager.getApplicationInfoAsUser(packageName, 0, user);
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DBackgroundInstallControlServiceTest.java571 when(mPackageManager.getApplicationInfoAsUser(eq(PACKAGE_NAME_1), any(), anyInt())) in testHandleUsageEvent_packageAddedNoUsageEvent()
609 when(mPackageManager.getApplicationInfoAsUser(eq(PACKAGE_NAME_1), any(), anyInt())) in testHandleUsageEvent_packageAddedInsideTimeFrame()
655 when(mPackageManager.getApplicationInfoAsUser(eq(PACKAGE_NAME_1), any(), anyInt())) in testHandleUsageEvent_fallsBackToAppInfoTimeWhenHistoricalSessionsNotFound()
706 when(mPackageManager.getApplicationInfoAsUser(eq(PACKAGE_NAME_1), any(), anyInt())) in testHandleUsageEvent_usesHistoricalSessionCreateTimeWhenHistoricalSessionsFound()
771 when(mPackageManager.getApplicationInfoAsUser(eq(PACKAGE_NAME_1), any(), anyInt())) in testHandleUsageEvent_packageAddedOutsideTimeFrame1()
822 when(mPackageManager.getApplicationInfoAsUser(eq(PACKAGE_NAME_1), any(), anyInt())) in testHandleUsageEvent_packageAddedOutsideTimeFrame2()
877 when(mPackageManager.getApplicationInfoAsUser(eq(PACKAGE_NAME_1), any(), anyInt())) in testHandleUsageEvent_packageAddedThroughAdb()
928 when(mPackageManager.getApplicationInfoAsUser(eq(PACKAGE_NAME_1), any(), anyInt())) in testHandleUsageEvent_packageAddedThroughAdb2()
/frameworks/base/packages/SystemUI/src/com/android/systemui/camera/
DCameraIntents.kt40 … && context.packageManager.getApplicationInfoAsUser(packageName, 0, userId).enabled ?: false) { in getOverrideCameraPackage()
/frameworks/base/core/java/com/android/internal/app/
DBlockedAppActivity.java70 pm.getApplicationInfoAsUser(packageName, /* flags= */ 0, userId); in getAppLabel()
DAppLocaleStore.java146 .getApplicationInfoAsUser(packageName, /* flags= */ 0, context.getUserId()); in isSystemApp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/toast/
DSystemUIToast.java181 .getApplicationInfoAsUser(mPackageName, 0, mUserId); in inflateToastView()
256 final ApplicationInfo appInfo = packageManager.getApplicationInfoAsUser( in getBadgedIcon()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/app/
DGameManagerServiceTests.java262 when(mMockPackageManager.getApplicationInfoAsUser(eq(packageName), anyInt(), anyInt())) in mockAppCategory()
388 final ApplicationInfo applicationInfo = mMockPackageManager.getApplicationInfoAsUser( in mockGameModeOptInAll()
396 when(mMockPackageManager.getApplicationInfoAsUser(anyString(), anyInt(), anyInt())) in mockGameModeOptInAll()
401 final ApplicationInfo applicationInfo = mMockPackageManager.getApplicationInfoAsUser( in mockGameModeOptInPerformance()
407 when(mMockPackageManager.getApplicationInfoAsUser(anyString(), anyInt(), anyInt())) in mockGameModeOptInPerformance()
412 final ApplicationInfo applicationInfo = mMockPackageManager.getApplicationInfoAsUser( in mockGameModeOptInBattery()
418 when(mMockPackageManager.getApplicationInfoAsUser(anyString(), anyInt(), anyInt())) in mockGameModeOptInBattery()
423 final ApplicationInfo applicationInfo = mMockPackageManager.getApplicationInfoAsUser( in mockInterventionAllowDownscaleTrue()
429 when(mMockPackageManager.getApplicationInfoAsUser(anyString(), anyInt(), anyInt())) in mockInterventionAllowDownscaleTrue()
434 final ApplicationInfo applicationInfo = mMockPackageManager.getApplicationInfoAsUser( in mockInterventionAllowDownscaleFalse()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/
DDefaultAppInfoTest.java65 when(mPackageManager.getApplicationInfoAsUser(anyString(), anyInt(), in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DWorkLockActivityTest.kt88 packageManager.getApplicationInfoAsUser( in testGetBadgedIcon()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/notification/
DConversationIconFactory.java100 final ApplicationInfo appInfo = mPackageManager.getApplicationInfoAsUser( in getAppBadge()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DWorkLockActivity.java113 mPackageManager.getApplicationInfoAsUser(packageName, in getBadgedIcon()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DRankingHelperTest.java123 when(mPm.getApplicationInfoAsUser(eq(mPkg), anyInt(), anyInt())).thenReturn(legacy); in setUp()
124 when(mPm.getApplicationInfoAsUser(eq(UPDATED_PKG), anyInt(), anyInt())).thenReturn(upgrade); in setUp()
125 when(mPm.getApplicationInfoAsUser(eq(SYSTEM_PKG), anyInt(), anyInt())).thenReturn(upgrade); in setUp()
/frameworks/base/services/usage/java/com/android/server/usage/
DStorageStatsService.java364 appInfo = mPackage.getApplicationInfoAsUser(packageName, in queryStatsForPackage()
446 final ApplicationInfo appInfo = mPackage.getApplicationInfoAsUser(packageNames[i], in queryStatsForUid()
810 appInfo = mPackage.getApplicationInfoAsUser(packageName, in queryCratesForPackage()
852 final ApplicationInfo appInfo = mPackage.getApplicationInfoAsUser(packageName, in queryCratesForUid()

12345