Home
last modified time | relevance | path

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

123

/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.java100 uidPkgInfo = pm.getApplicationInfoAsUser(uidPkg, 0, user); in getMinimumTargetSDK()
158 uidPkgInfo = pm.getApplicationInfoAsUser(uidPkg, 0, user); in forPermission()
/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.java137 when(mPm.getApplicationInfoAsUser(eq(PKG_N_MR1), anyInt(), anyInt())).thenReturn(legacy); in setUp()
138 when(mPm.getApplicationInfoAsUser(eq(PKG_O), anyInt(), anyInt())).thenReturn(upgrade); in setUp()
139 when(mPm.getApplicationInfoAsUser(eq(SYSTEM_PKG), anyInt(), anyInt())).thenReturn(upgrade); in setUp()
256 when(mPm.getApplicationInfoAsUser(eq(packageName), anyInt(), anyInt())) in setUpPackageWithUid()
679 when(mPm.getApplicationInfoAsUser(eq(PKG_N_MR1), anyInt(), anyInt())).thenReturn(upgraded); in testChannelXml_upgradeDeletesDefaultChannel()
697 when(mPm.getApplicationInfoAsUser(eq(PKG_N_MR1), anyInt(), anyInt())).thenReturn(upgraded); in testDeletesDefaultChannelAfterChannelIsCreated()
1572 … when(mPm.getApplicationInfoAsUser(eq(PKG_N_MR1), anyInt(), anyInt())).thenReturn(legacy); in testOnUserRemoved()
1647 when(mPm.getApplicationInfoAsUser(eq(PKG_O), anyInt(), anyInt())).thenReturn(legacy); in testOnPackageChange_downgradeTargetSdk()
1879 when(mPm.getApplicationInfoAsUser( in testDumpChannelsJson()
DNotificationComparatorTest.java100 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/core/java/com/android/internal/os/logging/
DMetricsLoggerWrapper.java79 uid = context.getPackageManager().getApplicationInfoAsUser( in getUid()
/frameworks/base/core/java/com/android/internal/util/
DLocationPermissionChecker.java223 if (mContext.getPackageManager().getApplicationInfoAsUser( in isTargetSdkLessThan()
/frameworks/base/telephony/common/com/android/internal/telephony/
DTelephonyPermissions.java372 callingPackageInfo = context.getPackageManager().getApplicationInfoAsUser( in reportAccessDeniedToReadIdentifiers()
486 ApplicationInfo info = context.getPackageManager().getApplicationInfoAsUser( in checkReadPhoneNumber()
/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.java131 when(mPackageManager.getApplicationInfoAsUser( in mockTestApplicationInfos()
/frameworks/base/core/java/com/android/internal/app/
DSuspendedAppActivity.java55 return mPm.getApplicationInfoAsUser(packageName, 0, mUserId).loadLabel(mPm); in getAppLabel()
/frameworks/base/services/usage/java/com/android/server/usage/
DStorageStatsService.java257 appInfo = mPackage.getApplicationInfoAsUser(packageName, in queryStatsForPackage()
319 final ApplicationInfo appInfo = mPackage.getApplicationInfoAsUser(packageNames[i], in queryStatsForUid()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DLocationPermissionCheckerTest.java98 when(mMockPkgMgr.getApplicationInfoAsUser(eq(TEST_PKG_NAME), eq(0), any())) in setupMocks()
/frameworks/base/services/core/java/com/android/server/compat/
DPlatformCompat.java291 return mContext.getPackageManager().getApplicationInfoAsUser(packageName, 0, userId); in getApplicationInfo()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java130 if (mContext.getPackageManager().getApplicationInfoAsUser( in isTargetSdkLessThan()
/frameworks/base/services/core/java/com/android/server/incident/
DIncidentCompanionService.java362 .getApplicationInfoAsUser(pkg, 0, userId); in enforceCallerIsSameApp()
/frameworks/base/core/java/android/service/notification/
DStatusBarNotification.java395 .getApplicationInfoAsUser(pkg, PackageManager.MATCH_UNINSTALLED_PACKAGES, in getPackageContext()
/frameworks/base/services/core/java/com/android/server/storage/
DCacheQuotaStrategy.java189 ApplicationInfo appInfo = packageManager.getApplicationInfoAsUser( in getUnfulfilledRequests()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsUsageMonitor.java580 ApplicationInfo ai = mContext.getPackageManager().getApplicationInfoAsUser( in checkCallerIsSystemOrPhoneOrSameApp()
/frameworks/base/services/core/java/com/android/server/media/projection/
DMediaProjectionManagerService.java292 ai = mPackageManager.getApplicationInfoAsUser(packageName, 0, callingUser); in createProjection()
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DFullRestoreEngine.java341 .getApplicationInfoAsUser(pkg, 0, mUserId); in restoreOneFile()

123