Home
last modified time | relevance | path

Searched refs:getApplicationInfo (Results 1 – 25 of 193) 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/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.java74 public ApplicationInfo getApplicationInfo(String packageName, int flags, UserHandle user) { in getApplicationInfo() method in LauncherAppsCompatVL
81 return activityList.size() > 0 ? activityList.get(0).getApplicationInfo() : null; in getApplicationInfo()
85 mContext.getPackageManager().getApplicationInfo(packageName, flags); in getApplicationInfo()
/packages/apps/Settings/src/com/android/settings/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/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/Launcher3/src/com/android/launcher3/util/
DPackageManagerHelper.java74 ApplicationInfo info = mLauncherApps.getApplicationInfo( in isAppOnSdcard()
84 ApplicationInfo info = mLauncherApps.getApplicationInfo(packageName, 0, user); in isAppSuspended()
142 return mPm.getApplicationInfo(srcPackage, 0).targetSdkVersion >= Build.VERSION_CODES.M; in hasPermissionForActivity()
/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/KeyChain/tests/src/com/android/keychain/tests/
DKeyChainServiceTest.java155 Log.d(TAG, "test_KeyChainService uid=" + getApplicationInfo().uid); in test_KeyChainService()
226 mSupport.grantAppPermission(getApplicationInfo().uid, alias1); in test_KeyChainService()
238 mSupport.revokeAppPermission(getApplicationInfo().uid, alias2); in test_KeyChainService()
/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/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/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/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/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/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/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/apps/TV/src/com/android/tv/data/
DPreviewDataManager.java340 Drawable appIcon = mContext.getApplicationInfo().loadIcon(mContext.getPackageManager()); in doInBackground()
569 context.getApplicationInfo().loadLabel(context.getPackageManager()); in createDefaultPreviewChannel()
571 context.getApplicationInfo().loadDescription(context.getPackageManager()); in createDefaultPreviewChannel()
/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/Settings/src/com/android/settings/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