Home
last modified time | relevance | path

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

1234

/packages/modules/AdServices/sdksandbox/tests/unittest/src/com/android/server/sdksandbox/
DSdkSandboxShellCommandUnitTest.java104 .getApplicationInfoAsUser( in setup()
114 .getApplicationInfoAsUser( in setup()
121 .getApplicationInfoAsUser( in setup()
159 .getApplicationInfoAsUser( in testStartFailsForInvalidPackage()
199 .getApplicationInfoAsUser( in testStartFailsForNonDebuggablePackage()
223 .getApplicationInfoAsUser( in testStartFailsWhenSandboxAlreadyRunning()
249 .getApplicationInfoAsUser( in testStartSucceedsForDebuggablePackageWhenNotAlreadyRunning()
277 .getApplicationInfoAsUser( in testStartFailsWhenBindingSandboxFails()
300 .getApplicationInfoAsUser( in testStopFailsForInvalidPackage()
324 .getApplicationInfoAsUser( in testStopFailsForNonDebuggablePackage()
[all …]
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/sideloaded/
DSideLoadedAppDetectorTest.java89 when(mPackageManager.getApplicationInfoAsUser(eq(APP_PACKAGE_NAME), anyInt(), any())) in isSafe_systemApp_returnsTrue()
104 when(mPackageManager.getApplicationInfoAsUser(eq(APP_PACKAGE_NAME), anyInt(), any())) in isSafe_updatedSystemApp_returnsTrue()
122 when(mPackageManager.getApplicationInfoAsUser(eq(APP_PACKAGE_NAME), anyInt(), any())) in isSafe_nonSystemApp_withSafeSource_returnsTrue()
141 when(mPackageManager.getApplicationInfoAsUser(eq(APP_PACKAGE_NAME), anyInt(), any())) in isSafe_nonSystemApp_withUnsafeSource_returnsFalse()
160 when(mPackageManager.getApplicationInfoAsUser(eq(APP_PACKAGE_NAME), anyInt(), any())) in isSafe_nonSystemApp_withoutSource_returnsFalse()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/location/
DAdasPrivacyPolicyDisclosurePreferenceControllerTest.java143 when(mPackageManager.getApplicationInfoAsUser(any(), anyInt(), anyInt())) in refreshUi_privacyPolicyMissing_throwsNoException()
159 when(mPackageManager.getApplicationInfoAsUser(any(), anyInt(), anyInt())) in refreshUi_metaDataMissing_throwsNoException()
174 when(mPackageManager.getApplicationInfoAsUser(any(), anyInt(), anyInt())) in refreshUi_throwsNoException()
186 when(mPackageManager.getApplicationInfoAsUser(any(), anyInt(), anyInt())) in initializePreference()
DLocationInfotainmentAppsPreferenceControllerTest.java131 when(mPackageManager.getApplicationInfoAsUser(any(), anyInt(), anyInt())) in refreshUi_throwsNoException()
173 when(mPackageManager.getApplicationInfoAsUser(any(), anyInt(), anyInt())) in refreshUi_appDisabled_hideApp()
194 when(mPackageManager.getApplicationInfoAsUser(any(), anyInt(), anyInt())) in initializePreference()
/packages/modules/Permission/service/java/com/android/ecm/
DEnhancedConfirmationService.java238 ApplicationInfo applicationInfo = getApplicationInfoAsUser(packageName, userId); in isPackageEcmGuarded()
276 getApplicationInfoAsUser(installingPackageName, userId); in isPackageEcmGuarded()
364 private ApplicationInfo getApplicationInfoAsUser(@Nullable String packageName, in getApplicationInfoAsUser() method in EnhancedConfirmationService.Stub
371 return mPackageManager.getApplicationInfoAsUser(packageName, /* flags */ 0, in getApplicationInfoAsUser()
381 return mPackageManager.getApplicationInfoAsUser(packageName, /* flags */ 0, in getPackageUid()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settingslib/enterprise/
DEnterprisePrivacyFeatureProviderImplTest.java195 .getApplicationInfoAsUser(packageName, /* flags= */ 0, MY_USER_ID); in mockGetApplicationInfoNotFound()
200 doReturn(mApplicationInfo).when(mSpiedPm).getApplicationInfoAsUser(packageName, in mockGetApplicationInfoLabel()
202 doReturn(mApplicationInfo).when(mSpiedPm).getApplicationInfoAsUser(packageName, in mockGetApplicationInfoLabel()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/datausage/lib/
DAppPreferenceRepositoryTest.kt55 getApplicationInfoAsUser(PACKAGE_NAME, 0, UserHandle.getUserId(UID)) in loadAppPreferences_packageNotFound_returnEmpty()
74 getApplicationInfoAsUser(PACKAGE_NAME, 0, UserHandle.getUserId(UID)) in loadAppPreferences_packageFound_returnPreference()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DWorkSourceHelperTest.java65 when(mPackageManager.getApplicationInfoAsUser(any(), anyInt(), any())).thenReturn( in setUp()
105 when(mPackageManager.getApplicationInfoAsUser(any(), anyInt(), any())).thenReturn(appInfo); in testGetRequestorWsPriority()
/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DEnhancedConfirmationManagerTest.kt318 getApplicationInfoAsUser(context, packageName).uid
321 private fun getApplicationInfoAsUser(context: Context, packageName: String) = method
322 packageManager.getApplicationInfoAsUser(
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppInfoDashboardFragmentTest.java312 when(mPackageManager.getApplicationInfoAsUser( in getNumberOfUserWithPackageInstalled_twoUsersInstalled_shouldReturnTwo()
315 when(mPackageManager.getApplicationInfoAsUser( in getNumberOfUserWithPackageInstalled_twoUsersInstalled_shouldReturnTwo()
335 when(mPackageManager.getApplicationInfoAsUser( in getNumberOfUserWithPackageInstalled_oneUserInstalled_shouldReturnOne()
338 when(mPackageManager.getApplicationInfoAsUser( in getNumberOfUserWithPackageInstalled_oneUserInstalled_shouldReturnOne()
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/
DPackageManagerCompat.java102 public ApplicationInfo getApplicationInfoAsUser(@NonNull String packageName, int flags, in getApplicationInfoAsUser() method in PackageManagerCompat
104 return this.mManager.getApplicationInfoAsUser(packageName, flags, userId); in getApplicationInfoAsUser()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/qc/
DDataSubscriptionControllerTest.java216 when(mPackageManager.getApplicationInfoAsUser( in onTaskMovedToFront_AppRequiresInternetAndNotBlocked_registerCallback()
237 when(mPackageManager.getApplicationInfoAsUser( in onTaskMovedToFront_invalidNetCap_popUpDisplay()
258 when(mPackageManager.getApplicationInfoAsUser( in onTaskMovedToFront_callbackRegistered_unregisterAndRegisterCallback()
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/model/
DRole.java516 ApplicationInfo applicationInfo = PackageUtils.getApplicationInfoAsUser(packageName, in getQualifiedDefaultHolderPackageNameAsUser()
591 ApplicationInfo applicationInfo = PackageUtils.getApplicationInfoAsUser(packageName, user, in isPackageQualifiedAsUser()
697 applicationInfo = PackageUtils.getApplicationInfoAsUser(packageName, user, in getQualifyingPackagesAsUser()
736 applicationInfo = PackageUtils.getApplicationInfoAsUser(packageName, user, in getQualifyingPackagesAsUser()
916 ApplicationInfo applicationInfo = PackageUtils.getApplicationInfoAsUser(packageName, user, in killAppAsUser()
DAppOp.java130 ApplicationInfo applicationInfo = PackageUtils.getApplicationInfoAsUser(packageName, user, in isAvailableAsUser()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/utils/
DPackageUtils.java65 public static ApplicationInfo getApplicationInfoAsUser(@NonNull String packageName, in getApplicationInfoAsUser() method in PackageUtils
/packages/apps/Settings/src/com/android/settings/datausage/lib/
DAppPreferenceRepository.kt42 val app = packageManager.getApplicationInfoAsUser(packageName, 0, userId) in <lambda>()
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/util/
DPackageUtils.java84 public static ApplicationInfo getApplicationInfoAsUser(@NonNull String packageName, in getApplicationInfoAsUser() method in PackageUtils
/packages/services/Car/tests/RailwayReferenceApp/src/com/google/android/car/networking/railway/
DUidToPackageNameConverter.java45 packageManager.getApplicationInfoAsUser(packageName, 0, user).uid; in convertToUids()
/packages/apps/Car/Settings/src/com/android/car/settingslib/enterprise/
DEnterprisePrivacyFeatureProviderImpl.java79 return mPm.getApplicationInfoAsUser(packageName, /* flags= */ 0, MY_USER_ID) in getImeLabelIfOwnerSet()
/packages/services/Car/service/src/com/android/car/watchdog/
DPackageInfoHandler.java277 ApplicationInfo info = mPackageManager.getApplicationInfoAsUser( in getUserPackageComponentType()
292 applicationInfos.add(mPackageManager.getApplicationInfoAsUser( in getSharedComponentTypeInternal()
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DEnterprisePrivacyFeatureProviderImplTest.java267 when(mPackageManager.getApplicationInfoAsUser(IME_PACKAGE_ID, 0, mUserId)) in testGetImeLabelIfOwnerSet()
281 when(mPackageManager.getApplicationInfoAsUser(IME_PACKAGE_ID, 0, mUserId)) in testGetImeLabelIfOwnerSet()
287 when(mPackageManager.getApplicationInfoAsUser(IME_PACKAGE_ID, 0, mUserId)) in testGetImeLabelIfOwnerSet()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/settingslib/
DDefaultAppInfo.java80 final ApplicationInfo appInfo = mPm.getApplicationInfoAsUser( in loadLabel()
/packages/apps/Car/Settings/src/com/android/car/settings/location/
DAdasPrivacyPolicyUtil.java58 packageManager.getApplicationInfoAsUser( in createPrivacyPolicyPreference()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/
DRoleLiveData.java90 ApplicationInfo qualifyingApplicationInfo = PackageUtils.getApplicationInfoAsUser( in loadValueInBackground()
/packages/apps/Settings/src/com/android/settings/notification/history/
DHistoryLoader.java72 info = mPm.getApplicationInfoAsUser( in load()

1234