Home
last modified time | relevance | path

Searched refs:getApplicationInfo (Results 1 – 25 of 190) sorted by relevance

12345678

/packages/apps/PermissionController/src/com/android/packageinstaller/role/utils/
DPackageUtils.java66 public static ApplicationInfo getApplicationInfo(@NonNull String packageName, in getApplicationInfo() method in PackageUtils
70 return packageManager.getApplicationInfo(packageName, in getApplicationInfo()
90 return getApplicationInfo(packageName, UserUtils.getUserContext(context, user)); in getApplicationInfoAsUser()
/packages/providers/TvProvider/tests/src/com/android/providers/tv/
DMockTvProviderContext.java64 public ApplicationInfo getApplicationInfo() { in getApplicationInfo() method in MockTvProviderContext
65 return mBase.getApplicationInfo(); in getApplicationInfo()
99 public ApplicationInfo getApplicationInfo(String packageName, int flags) in getApplicationInfo() method in MockTvProviderContext.MockPackageManagerForTesting
/packages/apps/Settings/src/com/android/settings/development/compat/
DPlatformCompatDashboard.java122 final ApplicationInfo applicationInfo = getApplicationInfo(); in onActivityResult()
170 final ApplicationInfo applicationInfo = getApplicationInfo(); in getAppChangeMappings()
211 ApplicationInfo getApplicationInfo() throws PackageManager.NameNotFoundException { in getApplicationInfo() method in PlatformCompatDashboard
212 return getPackageManager().getApplicationInfo(mSelectedApp, 0); in getApplicationInfo()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/detectors/
DRestrictAppDetectorTest.java102 doReturn(mApplicationInfo).when(mPackageManager).getApplicationInfo(any(), in setUp()
106 mPackageManager).getApplicationInfo(eq(UNINSTALLED_PACKAGE_NAME), anyInt()); in setUp()
168 doReturn(mApplicationInfo).when(mPackageManager).getApplicationInfo( in testDetect_typeNewHasRestrictedAnomaly_removeIt()
188 doReturn(mApplicationInfo).when(mPackageManager).getApplicationInfo( in testDetect_typeHandledHasUnRestrictedAnomaly_removeIt()
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DLauncherAppsCompatVO.java54 public ApplicationInfo getApplicationInfo(String packageName, int flags, UserHandle user) { in getApplicationInfo() method in LauncherAppsCompatVO
56 ApplicationInfo info = mLauncherApps.getApplicationInfo(packageName, flags, user); in getApplicationInfo()
85 if (ignoreTargetSdk || activityInfo.getApplicationInfo().targetSdkVersion >= in getCustomShortcutActivityList()
DLauncherAppsCompatVL.java79 public ApplicationInfo getApplicationInfo(String packageName, int flags, UserHandle user) { in getApplicationInfo() method in LauncherAppsCompatVL
86 return activityList.size() > 0 ? activityList.get(0).getApplicationInfo() : null; in getApplicationInfo()
90 mContext.getPackageManager().getApplicationInfo(packageName, flags); in getApplicationInfo()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/
DMockLocationAppPreferenceController.java107 final ApplicationInfo ai = mPackageManager.getApplicationInfo( in writeMockLocation()
119 final ApplicationInfo ai = mPackageManager.getApplicationInfo( in getAppLabel()
145 final ApplicationInfo ai = mPackageManager.getApplicationInfo( in removeMockLocationForApp()
/packages/apps/Settings/src/com/android/settings/development/
DMockLocationAppPreferenceController.java113 final ApplicationInfo ai = mPackageManager.getApplicationInfo( in writeMockLocation()
125 final ApplicationInfo ai = mPackageManager.getApplicationInfo( in getAppLabel()
151 final ApplicationInfo ai = mPackageManager.getApplicationInfo( in removeMockLocationForApp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DThemePreferenceControllerTest.java73 when(mPackageManager.getApplicationInfo(any(), anyInt())).thenReturn(mApplicationInfo); in setUp()
112 when(mPackageManager.getApplicationInfo(anyString(), anyInt()).loadLabel(mPackageManager)) in updateState_themeSet_shouldSetPreferenceValue()
131 when(mPackageManager.getApplicationInfo(anyString(), anyInt()).loadLabel(mPackageManager)) in updateState_themeNull_shouldSetDefaultSummary()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DDefaultAppsPreferenceControllerTest.java71 when(mPackageManager.getApplicationInfo(eq(BROWSER_PACKAGE_NAME), anyInt())).thenReturn( in setUp()
74 when(mPackageManager.getApplicationInfo(eq(DIALER_PACKAGE_NAME), anyInt())).thenReturn( in setUp()
77 when(mPackageManager.getApplicationInfo(eq(SMS_PACKAGE_NAME), anyInt())).thenReturn( in setUp()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
DMdmPackageInfoTest.java52 when(mockPackageManager.getApplicationInfo(TEST_PACKAGE_NAME, 0)) in setUp()
80 when(mockPackageManager.getApplicationInfo(TEST_PACKAGE_NAME, 0)) in testCreateFromPackageName_NameNotFoundException()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DPackageManagerHelper.java77 ApplicationInfo info = mLauncherApps.getApplicationInfo( in isAppOnSdcard()
87 ApplicationInfo info = mLauncherApps.getApplicationInfo(packageName, 0, user); in isAppSuspended()
145 return mPm.getApplicationInfo(srcPackage, 0).targetSdkVersion >= Build.VERSION_CODES.M; in hasPermissionForActivity()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DAppPrefLoaderTest.java62 when(mPackageManager.getApplicationInfo(anyString(), anyInt())) in loadInBackground_packageNotFound_shouldReturnEmptySet()
71 when(mPackageManager.getApplicationInfo(anyString(), anyInt())).thenReturn(info); in loadInBackground_shouldReturnPreference()
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
DPasswordUtilsTest.java102 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getCallingAppLabel_packageManagerThrowsNameNotFound_returnsNull()
112 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getCallingAppLabel_returnsLabel()
/packages/apps/Settings/src/com/android/settings/applications/
DProcStatsPackageEntry.java118 mUiTargetApp = pm.getApplicationInfo("android", in retrieveUiData()
124 mUiTargetApp = pm.getApplicationInfo(mPackage, in retrieveUiData()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DProcStatsPackageEntry.java118 mUiTargetApp = pm.getApplicationInfo("android", in retrieveUiData()
124 mUiTargetApp = pm.getApplicationInfo(mPackage, in retrieveUiData()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryEntryTest.java76 when(mockPackageManager.getApplicationInfo(APP_DEFAULT_PACKAGE_NAME, 0 /* no flags */)) in stubPackageManagerToReturnAppPackageAndName()
115 when(mockPackageManager.getApplicationInfo(APP_DEFAULT_PACKAGE_NAME, 0 /* no flags */)) in batteryEntryForApp_shouldSetLabelAsPackageName_whenPackageCannotBeFound()
DBackgroundActivityPreferenceControllerTest.java101 when(mPackageManager.getApplicationInfo(HIGH_SDK_PACKAGE, PackageManager.GET_META_DATA)) in setUp()
103 when(mPackageManager.getApplicationInfo(LOW_SDK_PACKAGE, PackageManager.GET_META_DATA)) in setUp()
DBatteryUtilsTest.java192 when(mPackageManager.getApplicationInfo(eq(HIGH_SDK_PACKAGE), anyInt())) in setUp()
194 when(mPackageManager.getApplicationInfo(eq(LOW_SDK_PACKAGE), anyInt())) in setUp()
469 doReturn(mApplicationInfo).when(mPackageManager).getApplicationInfo(PACKAGE_NAME, in testGetTargetSdkVersion_packageExist_returnSdk()
480 mPackageManager).getApplicationInfo(PACKAGE_NAME, PackageManager.GET_META_DATA); in testGetTargetSdkVersion_packageNotExist_returnSdkNull()
/packages/apps/Settings/tests/unit/src/com/android/settings/display/
DThemePreferenceControllerTest.java76 when(mMockPackageManager.getApplicationInfo(any(), anyInt())).thenAnswer(inv -> { in testUpdateState()
112 when(mMockPackageManager.getApplicationInfo(any(), anyInt())).thenAnswer(inv -> { in testUpdateState_withStaticOverlay()
/packages/apps/PermissionController/src/com/android/packageinstaller/role/ui/
DRequestRoleActivity.java136 if (PackageUtils.getApplicationInfo(mPackageName, this) == null) { in onCreate()
287 ApplicationInfo applicationInfo = PackageUtils.getApplicationInfo(packageName, context); in getApplicationUid()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryUtils.java314 ApplicationInfo info = mPackageManager.getApplicationInfo(packageName, in getTargetSdkVersion()
514 ApplicationInfo info = mPackageManager.getApplicationInfo(packageName, in isPreOApp()
568 final ApplicationInfo info = packageManager.getApplicationInfo(packageName, in isSystemApp()
/packages/apps/TV/src/com/android/tv/data/
DPreviewDataManager.java344 Drawable appIcon = mContext.getApplicationInfo().loadIcon(mContext.getPackageManager()); in doInBackground()
577 context.getApplicationInfo().loadLabel(context.getPackageManager()); in createDefaultPreviewChannel()
579 context.getApplicationInfo().loadDescription(context.getPackageManager()); in createDefaultPreviewChannel()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appops/
DAppOpsCategory.java341 entry.getAppEntry().getApplicationInfo().uid, in onListItemClick()
342 entry.getAppEntry().getApplicationInfo().packageName, in onListItemClick()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/tips/
DRestrictAppTipTest.java82 doReturn(mApplicationInfo).when(mPackageManager).getApplicationInfo(PACKAGE_NAME, in setUp()
85 .getApplicationInfo(UNINSTALL_PACKAGE_NAME, in setUp()

12345678