Home
last modified time | relevance | path

Searched refs:mApplicationInfo (Results 1 – 16 of 16) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DRecentAppStatsMixinTest.java71 private ApplicationInfo mApplicationInfo; field in RecentAppStatsMixinTest
106 mAppEntry.info = mApplicationInfo; in loadDisplayableRecentApps_oneValidRecentAppSet_shouldHaveOneRecentApp()
141 mAppEntry.info = mApplicationInfo; in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps()
177 mAppEntry.info = mApplicationInfo; in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
196 statEntry.info = mApplicationInfo; in loadDisplayableRecentApps_oneInstantAppSet_shouldHaveOneRecentApp()
255 stat1Entry.info = mApplicationInfo; in loadDisplayableRecentApps_hiddenSystemModuleSet_shouldNotHaveHiddenSystemModule()
256 stat2Entry.info = mApplicationInfo; in loadDisplayableRecentApps_hiddenSystemModuleSet_shouldNotHaveHiddenSystemModule()
303 mAppEntry.info = mApplicationInfo; in loadDisplayableRecentApps_powerSaverModeOn_shouldHaveEmptyList()
DRecentAppsPreferenceControllerTest.java77 private ApplicationInfo mApplicationInfo; field in RecentAppsPreferenceControllerTest
148 mAppEntry.info = mApplicationInfo; in onReloadDataCompleted_threeValidRecentOpenAppsSet_setAppEntityThreeTime()
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DUtilsTest.java96 private ApplicationInfo mApplicationInfo; field in UtilsTest
235 doReturn(mApplicationInfo).when(mPackageManager).getApplicationInfoAsUser( in getBadgedIcon_usePackageNameAndUserId()
242 verify(mIconDrawableFactory).getBadgedIcon(mApplicationInfo, USER_ID); in getBadgedIcon_usePackageNameAndUserId()
248 mApplicationInfo.enabled = true; in isPackageEnabled_appEnabled_returnTrue()
249 when(mPackageManager.getApplicationInfo(PACKAGE_NAME, 0)).thenReturn(mApplicationInfo); in isPackageEnabled_appEnabled_returnTrue()
257 mApplicationInfo.enabled = false; in isPackageEnabled_appDisabled_returnTrue()
258 when(mPackageManager.getApplicationInfo(PACKAGE_NAME, 0)).thenReturn(mApplicationInfo); in isPackageEnabled_appDisabled_returnTrue()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/detectors/
DRestrictAppDetectorTest.java77 private ApplicationInfo mApplicationInfo; field in RestrictAppDetectorTest
102 doReturn(mApplicationInfo).when(mPackageManager).getApplicationInfo(any(), in setUp()
104 doReturn(PACKAGE_NAME).when(mApplicationInfo).loadLabel(any()); in setUp()
168 doReturn(mApplicationInfo).when(mPackageManager).getApplicationInfo( in testDetect_typeNewHasRestrictedAnomaly_removeIt()
188 doReturn(mApplicationInfo).when(mPackageManager).getApplicationInfo( in testDetect_typeHandledHasUnRestrictedAnomaly_removeIt()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/storage/
DAppsStorageStatsManagerTest.java65 private ApplicationInfo mApplicationInfo; field in AppsStorageStatsManagerTest
72 mAppsStorageStatsManager.startLoading(mLoaderManager, mApplicationInfo, USER_ID, false, in setUp()
124 mAppsStorageStatsManager.startLoading(mLoaderManager, mApplicationInfo, USER_ID, true, in callback_cachedCleared_listenerOnDataLoadedCalled()
141 mAppsStorageStatsManager.startLoading(mLoaderManager, mApplicationInfo, USER_ID, false, in callback_userDataCleared_listenerOnDataLoadedCalled()
/packages/apps/Car/Settings/src/com/android/car/settings/location/
DLocationFooterPreferenceController.java80 .getResourcesForApplication(footer.mApplicationInfo) in onCreateInternal()
84 + footer.mApplicationInfo.packageName); in onCreateInternal()
185 private final ApplicationInfo mApplicationInfo; field in LocationFooterPreferenceController.LocationFooter
193 mApplicationInfo = appInfo; in LocationFooter()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
DMdmPackageInfoTest.java42 private final ApplicationInfo mApplicationInfo = new ApplicationInfo(); field in MdmPackageInfoTest
53 .thenReturn(mApplicationInfo); in setUp()
55 when(mockPackageManager.getApplicationLabel(mApplicationInfo)).thenReturn(TEST_LABEL); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DAppGridViewTest.java49 private ApplicationInfo mApplicationInfo; field in AppGridViewTest
61 mInfo.activityInfo.applicationInfo = mApplicationInfo; in setUp()
69 when(mPackageManager.loadUnbadgedItemIcon(mActivityInfo, mApplicationInfo)) in appEntry_shouldLoadIcon()
DThemePreferenceControllerTest.java61 private ApplicationInfo mApplicationInfo; field in ThemePreferenceControllerTest
73 when(mPackageManager.getApplicationInfo(any(), anyInt())).thenReturn(mApplicationInfo); in setUp()
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/apps/
DRecentAppsPreferenceControllerTest.java92 private ApplicationInfo mApplicationInfo; field in RecentAppsPreferenceControllerTest
167 mAppEntry.info = mApplicationInfo; in display_showRecents()
193 stat1Entry.info = mApplicationInfo; in display_showRecentsWithInstantApp()
194 stat2Entry.info = mApplicationInfo; in display_showRecentsWithInstantApp()
288 mAppEntry.info = mApplicationInfo; in display_showRecents_formatSummary()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DRecentNotifyingAppsPreferenceControllerTest.java96 private ApplicationInfo mApplicationInfo; field in RecentNotifyingAppsPreferenceControllerTest
204 mAppEntry.info = mApplicationInfo; in display_showRecents()
237 app1Entry.info = mApplicationInfo; in display_showRecentsWithInstantApp()
238 app2Entry.info = mApplicationInfo; in display_showRecentsWithInstantApp()
289 mAppEntry.info = mApplicationInfo; in display_showRecents_formatSummary()
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
DPasswordUtilsTest.java63 private ApplicationInfo mApplicationInfo; field in PasswordUtilsTest
113 .thenReturn(mApplicationInfo); in getCallingAppLabel_returnsLabel()
114 when(mApplicationInfo.loadLabel(mPackageManager)).thenReturn("label"); in getCallingAppLabel_returnsLabel()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DRestrictedAppDetailsTest.java79 private ApplicationInfo mApplicationInfo; field in RestrictedAppDetailsTest
125 doReturn(mApplicationInfo).when(mPackageManager) in refreshUi_displayPreference()
127 doReturn(APP_NAME).when(mPackageManager).getApplicationLabel(mApplicationInfo); in refreshUi_displayPreference()
DBatteryUtilsTest.java154 private ApplicationInfo mApplicationInfo; field in BatteryUtilsTest
469 doReturn(mApplicationInfo).when(mPackageManager).getApplicationInfo(PACKAGE_NAME, in testGetTargetSdkVersion_packageExist_returnSdk()
471 mApplicationInfo.targetSdkVersion = SDK_VERSION; in testGetTargetSdkVersion_packageExist_returnSdk()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/tips/
DRestrictAppTipTest.java69 private ApplicationInfo mApplicationInfo; field in RestrictAppTipTest
82 doReturn(mApplicationInfo).when(mPackageManager).getApplicationInfo(PACKAGE_NAME, in setUp()
87 doReturn(DISPLAY_NAME).when(mApplicationInfo).loadLabel(mPackageManager); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DMockLocationAppPreferenceControllerTest.java55 private ApplicationInfo mApplicationInfo; field in MockLocationAppPreferenceControllerTest
109 eq(PackageManager.MATCH_DISABLED_COMPONENTS))).thenReturn(mApplicationInfo); in onActivityResult_fooPrevAppBarNewApp_shouldRemoveFooAndSetBarAsMockLocationApp()