Home
last modified time | relevance | path

Searched refs:mApplicationInfo (Results 1 – 19 of 19) 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/development/compat/
DPlatformCompatDashboardTest.java75 private ApplicationInfo mApplicationInfo; field in PlatformCompatDashboardTest
104 mApplicationInfo.packageName = APP_NAME; in setUp()
107 doReturn(mApplicationInfo).when(mDashboard).getApplicationInfo(); in setUp()
128 mApplicationInfo.targetSdkVersion = 1; in createAppPreference_targetSdkEquals1_summaryReturnsAppNameAndTargetSdk()
130 when(mApplicationInfo.loadIcon(any(PackageManager.class))).thenReturn(icon); in createAppPreference_targetSdkEquals1_summaryReturnsAppNameAndTargetSdk()
132 Preference appPreference = mDashboard.createAppPreference(mApplicationInfo); in createAppPreference_targetSdkEquals1_summaryReturnsAppNameAndTargetSdk()
/packages/apps/Car/Settings/src/com/android/car/settings/location/
DLocationFooterPreferenceController.java73 .getResourcesForApplication(footer.mApplicationInfo) in onCreateInternal()
85 + footer.mApplicationInfo.packageName); in onCreateInternal()
147 private final ApplicationInfo mApplicationInfo; field in LocationFooterPreferenceController.LocationFooter
151 mApplicationInfo = appInfo; in LocationFooter()
/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/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.java94 private ApplicationInfo mApplicationInfo; field in RecentNotifyingAppsPreferenceControllerTest
189 mAppEntry.info = mApplicationInfo; in display_showRecents()
221 app1Entry.info = mApplicationInfo; in display_showRecentsWithInstantApp()
222 app2Entry.info = mApplicationInfo; in display_showRecentsWithInstantApp()
273 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.java155 private ApplicationInfo mApplicationInfo; field in BatteryUtilsTest
470 doReturn(mApplicationInfo).when(mPackageManager).getApplicationInfo(PACKAGE_NAME, in testGetTargetSdkVersion_packageExist_returnSdk()
472 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.java54 private ApplicationInfo mApplicationInfo; field in MockLocationAppPreferenceControllerTest
108 eq(PackageManager.MATCH_DISABLED_COMPONENTS))).thenReturn(mApplicationInfo); in onActivityResult_fooPrevAppBarNewApp_shouldRemoveFooAndSetBarAsMockLocationApp()
/packages/apps/Car/Notification/tests/robotests/src/com/android/car/notification/
DPreprocessingManagerTest.java91 private ApplicationInfo mApplicationInfo; field in PreprocessingManagerTest
181 when(mApplicationInfo.isSignedWithPlatformKey()).thenReturn(true); in setup()
182 when(mApplicationInfo.isSystemApp()).thenReturn(true); in setup()
183 when(mApplicationInfo.isPrivilegedApp()).thenReturn(true); in setup()
185 packageInfo.applicationInfo = mApplicationInfo; in setup()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DTelecomServiceImplTest.java175 @Mock private ApplicationInfo mApplicationInfo; field in TelecomServiceImplTest
1069 mApplicationInfo.targetSdkVersion = targetSdkVersion; in setTargetSdkVersion()
1070 doReturn(mApplicationInfo).when(mPackageManager).getApplicationInfoAsUser( in setTargetSdkVersion()