/packages/apps/PermissionController/src/com/android/packageinstaller/role/utils/ |
D | PackageUtils.java | 66 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/ |
D | MockTvProviderContext.java | 64 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/ |
D | PlatformCompatDashboard.java | 122 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/ |
D | RestrictAppDetectorTest.java | 102 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/ |
D | LauncherAppsCompatVO.java | 54 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()
|
D | LauncherAppsCompatVL.java | 79 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/ |
D | MockLocationAppPreferenceController.java | 107 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/ |
D | MockLocationAppPreferenceController.java | 113 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/ |
D | ThemePreferenceControllerTest.java | 73 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/ |
D | DefaultAppsPreferenceControllerTest.java | 71 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/ |
D | MdmPackageInfoTest.java | 52 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/ |
D | PackageManagerHelper.java | 77 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/ |
D | AppPrefLoaderTest.java | 62 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/ |
D | PasswordUtilsTest.java | 102 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/ |
D | ProcStatsPackageEntry.java | 118 mUiTargetApp = pm.getApplicationInfo("android", in retrieveUiData() 124 mUiTargetApp = pm.getApplicationInfo(mPackage, in retrieveUiData()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | ProcStatsPackageEntry.java | 118 mUiTargetApp = pm.getApplicationInfo("android", in retrieveUiData() 124 mUiTargetApp = pm.getApplicationInfo(mPackage, in retrieveUiData()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryEntryTest.java | 76 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()
|
D | BackgroundActivityPreferenceControllerTest.java | 101 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()
|
D | BatteryUtilsTest.java | 192 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/ |
D | ThemePreferenceControllerTest.java | 76 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/ |
D | RequestRoleActivity.java | 136 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/ |
D | BatteryUtils.java | 314 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/ |
D | PreviewDataManager.java | 344 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/ |
D | AppOpsCategory.java | 341 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/ |
D | RestrictAppTipTest.java | 82 doReturn(mApplicationInfo).when(mPackageManager).getApplicationInfo(PACKAGE_NAME, in setUp() 85 .getApplicationInfo(UNINSTALL_PACKAGE_NAME, in setUp()
|