Home
last modified time | relevance | path

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

123

/frameworks/base/packages/CarSystemUI/tests/src/com/android/systemui/car/sideloaded/
DSideLoadedAppDetectorTest.java87 when(mPackageManager.getApplicationInfoAsUser(eq(APP_PACKAGE_NAME), anyInt(), any())) in isSafe_systemApp_returnsTrue()
102 when(mPackageManager.getApplicationInfoAsUser(eq(APP_PACKAGE_NAME), anyInt(), any())) in isSafe_updatedSystemApp_returnsTrue()
120 when(mPackageManager.getApplicationInfoAsUser(eq(APP_PACKAGE_NAME), anyInt(), any())) in isSafe_nonSystemApp_withSafeSource_returnsTrue()
139 when(mPackageManager.getApplicationInfoAsUser(eq(APP_PACKAGE_NAME), anyInt(), any())) in isSafe_nonSystemApp_withUnsafeSource_returnsFalse()
158 when(mPackageManager.getApplicationInfoAsUser(eq(APP_PACKAGE_NAME), anyInt(), any())) in isSafe_nonSystemApp_withoutSource_returnsFalse()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DDefaultAppInfo.java82 final ApplicationInfo appInfo = mPm.getApplicationInfoAsUser( in loadLabel()
103 final ApplicationInfo appInfo = mPm.getApplicationInfoAsUser( in loadIcon()
116 final ApplicationInfo appInfo = mPm.getApplicationInfoAsUser( in loadIcon()
/frameworks/base/services/core/java/com/android/server/policy/
DSoftRestrictedPermissionPolicy.java96 uidPkgInfo = pm.getApplicationInfoAsUser(uidPkg, 0, user); in getMinimumTargetSDK()
225 applicationInfo = packageManager.getApplicationInfoAsUser(packageName, 0, user);
/frameworks/base/core/java/com/android/internal/app/
DBlockedAppActivity.java70 pm.getApplicationInfoAsUser(packageName, /* flags= */ 0, userId); in getAppLabel()
DSuspendedAppActivity.java73 return mPm.getApplicationInfoAsUser(packageName, 0, mUserId).loadLabel(mPm); in getAppLabel()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DRankingHelperTest.java111 when(mPm.getApplicationInfoAsUser(eq(PKG), anyInt(), anyInt())).thenReturn(legacy); in setUp()
112 when(mPm.getApplicationInfoAsUser(eq(UPDATED_PKG), anyInt(), anyInt())).thenReturn(upgrade); in setUp()
113 when(mPm.getApplicationInfoAsUser(eq(SYSTEM_PKG), anyInt(), anyInt())).thenReturn(upgrade); in setUp()
DPreferencesHelperTest.java169 when(mPm.getApplicationInfoAsUser(eq(PKG_N_MR1), anyInt(), anyInt())).thenReturn(legacy); in setUp()
170 when(mPm.getApplicationInfoAsUser(eq(PKG_O), anyInt(), anyInt())).thenReturn(upgrade); in setUp()
171 when(mPm.getApplicationInfoAsUser(eq(PKG_P), anyInt(), anyInt())).thenReturn(upgrade); in setUp()
172 when(mPm.getApplicationInfoAsUser(eq(SYSTEM_PKG), anyInt(), anyInt())).thenReturn(upgrade); in setUp()
317 when(mPm.getApplicationInfoAsUser(eq(packageName), anyInt(), anyInt())) in setUpPackageWithUid()
751 when(mPm.getApplicationInfoAsUser(eq(PKG_N_MR1), anyInt(), anyInt())).thenReturn(upgraded); in testChannelXml_upgradeDeletesDefaultChannel()
769 when(mPm.getApplicationInfoAsUser(eq(PKG_N_MR1), anyInt(), anyInt())).thenReturn(upgraded); in testDeletesDefaultChannelAfterChannelIsCreated()
1677 … when(mPm.getApplicationInfoAsUser(eq(PKG_N_MR1), anyInt(), anyInt())).thenReturn(legacy); in testOnUserRemoved()
1752 when(mPm.getApplicationInfoAsUser(eq(PKG_O), anyInt(), anyInt())).thenReturn(legacy); in testOnPackageChange_downgradeTargetSdk()
2001 when(mPm.getApplicationInfoAsUser( in testDumpChannelsJson()
[all …]
DNotificationComparatorTest.java102 when(mPm.getApplicationInfoAsUser(anyString(), anyInt(), anyInt())).thenReturn(legacy); in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipAppOpsListener.java50 .getApplicationInfoAsUser(packageName, 0, topPipActivityInfo.second);
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/
DDefaultAppInfoTest.java65 when(mPackageManager.getApplicationInfoAsUser(anyString(), anyInt(), in setUp()
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/car/sideloaded/
DSideLoadedAppDetector.java98 applicationInfo = mPackageManager.getApplicationInfoAsUser(packageName, in isSafe()
/frameworks/base/services/usage/java/com/android/server/usage/
DStorageStatsService.java296 appInfo = mPackage.getApplicationInfoAsUser(packageName, in queryStatsForPackage()
374 final ApplicationInfo appInfo = mPackage.getApplicationInfoAsUser(packageNames[i], in queryStatsForUid()
691 appInfo = mPackage.getApplicationInfoAsUser(packageName, in queryCratesForPackage()
733 final ApplicationInfo appInfo = mPackage.getApplicationInfoAsUser(packageName, in queryCratesForUid()
/frameworks/base/core/java/com/android/internal/os/logging/
DMetricsLoggerWrapper.java79 uid = context.getPackageManager().getApplicationInfoAsUser( in getUid()
/frameworks/base/telephony/common/com/android/internal/telephony/
DTelephonyPermissions.java341 callingPackageInfo = context.getPackageManager().getApplicationInfoAsUser( in reportAccessDeniedToReadIdentifiers()
440 ApplicationInfo info = context.getPackageManager().getApplicationInfoAsUser( in checkReadPhoneNumber()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/notification/
DConversationIconFactory.java100 final ApplicationInfo appInfo = mPackageManager.getApplicationInfoAsUser( in getAppBadge()
/frameworks/base/core/java/com/android/internal/util/
DLocationPermissionChecker.java223 if (mContext.getPackageManager().getApplicationInfoAsUser( in isTargetSdkLessThan()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/
DRecentLocationAccesses.java180 ApplicationInfo appInfo = mPackageManager.getApplicationInfoAsUser( in getAccessFromOps()
DRecentLocationApps.java204 ApplicationInfo appInfo = mPackageManager.getApplicationInfoAsUser( in getRequestFromOps()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/location/
DRecentLocationAccessesTest.java133 when(mPackageManager.getApplicationInfoAsUser( in mockTestApplicationInfos()
DRecentLocationAppsTest.java132 when(mPackageManager.getApplicationInfoAsUser( in mockTestApplicationInfos()
/frameworks/base/services/core/java/com/android/server/incident/
DIncidentCompanionService.java362 .getApplicationInfoAsUser(pkg, 0, userId); in enforceCallerIsSameApp()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DLocationPermissionCheckerTest.java99 when(mMockPkgMgr.getApplicationInfoAsUser(eq(TEST_PKG_NAME), eq(0), any())) in setupMocks()
/frameworks/base/core/java/android/service/notification/
DStatusBarNotification.java440 .getApplicationInfoAsUser(pkg, PackageManager.MATCH_UNINSTALLED_PACKAGES, in getPackageContext()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java98 if (mContext.getPackageManager().getApplicationInfoAsUser( in isTargetSdkLessThan()
/frameworks/base/services/core/java/com/android/server/storage/
DCacheQuotaStrategy.java190 ApplicationInfo appInfo = packageManager.getApplicationInfoAsUser( in getUnfulfilledRequests()

123