Home
last modified time | relevance | path

Searched refs:mSummaryPreference (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceTest.java68 private DataUsageSummaryPreference mSummaryPreference; field in DataUsageSummaryPreferenceTest
88 mSummaryPreference = new DataUsageSummaryPreference(mActivity, null /* attrs */); in setUp()
90 View view = inflater.inflate(mSummaryPreference.getLayoutResource(), null /* root */, in setUp()
102 mSummaryPreference.setUsageInfo(mCycleEnd, mUpdateTime, DUMMY_CARRIER, 0 /* numPlans */, in testSetUsageInfo_withLaunchIntent_launchButtonShown()
111 mSummaryPreference.setUsageInfo(mCycleEnd, mUpdateTime, DUMMY_CARRIER, 0 /* numPlans */, in testSetUsageInfo_withoutLaunchIntent_launchButtonNotShown()
120 mSummaryPreference.setUsageInfo(mCycleEnd, mUpdateTime, DUMMY_CARRIER, 1 /* numPlans */, in testSetUsageInfo_withDataPlans_carrierInfoShown()
129 mSummaryPreference.setUsageInfo(mCycleEnd, mUpdateTime, DUMMY_CARRIER, 0 /* numPlans */, in testSetUsageInfo_withNoDataPlans_carrierInfoNotShown()
143 mSummaryPreference.setUsageInfo(mCycleEnd, updateTime, DUMMY_CARRIER, 1 /* numPlans */, in testCarrierUpdateTime_shouldFormatDaysCorrectly()
158 mSummaryPreference.setUsageInfo(mCycleEnd, updateTime, DUMMY_CARRIER, 1 /* numPlans */, in testCarrierUpdateTime_shouldFormatHoursCorrectly()
173 mSummaryPreference.setUsageInfo(mCycleEnd, updateTime, DUMMY_CARRIER, 1 /* numPlans */, in testCarrierUpdateTime_shouldFormatMinutesCorrectly()
[all …]
DDataUsageSummaryPreferenceControllerTest.java83 private DataUsageSummaryPreference mSummaryPreference; field in DataUsageSummaryPreferenceControllerTest
157 mController.updateState(mSummaryPreference); in testSummaryUpdate_onePlan_basic()
160 verify(mSummaryPreference).setLimitInfo(captor.capture()); in testSummaryUpdate_onePlan_basic()
164 verify(mSummaryPreference).setUsageInfo(info.cycleEnd, now - UPDATE_BACKOFF_MS, in testSummaryUpdate_onePlan_basic()
166 verify(mSummaryPreference).setChartEnabled(true); in testSummaryUpdate_onePlan_basic()
167 verify(mSummaryPreference).setWifiMode(false /* isWifiMode */, null /* usagePeriod */, in testSummaryUpdate_onePlan_basic()
182 mController.updateState(mSummaryPreference); in testSummaryUpdate_noPlan_basic()
185 verify(mSummaryPreference).setLimitInfo(captor.capture()); in testSummaryUpdate_noPlan_basic()
189 verify(mSummaryPreference).setUsageInfo(info.cycleEnd, now - UPDATE_BACKOFF_MS, in testSummaryUpdate_noPlan_basic()
191 verify(mSummaryPreference).setChartEnabled(true); in testSummaryUpdate_noPlan_basic()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/backup/
DToggleBackupSettingFragment.java47 private Preference mSummaryPreference; field in ToggleBackupSettingFragment
63 mSummaryPreference = new Preference(getPrefContext()) { in onCreate()
71 mSummaryPreference.setPersistent(false); in onCreate()
72 mSummaryPreference.setLayoutResource(R.layout.text_description_preference); in onCreate()
73 preferenceScreen.addPreference(mSummaryPreference); in onCreate()
89 mSummaryPreference.setSummary(R.string.fullbackup_data_summary); in onViewCreated()
91 mSummaryPreference.setSummary(R.string.backup_data_summary); in onViewCreated()
/packages/apps/Settings/src/com/android/settings/backup/
DToggleBackupSettingFragment.java47 private Preference mSummaryPreference; field in ToggleBackupSettingFragment
63 mSummaryPreference = new Preference(getPrefContext()) { in onCreate()
71 mSummaryPreference.setPersistent(false); in onCreate()
72 mSummaryPreference.setLayoutResource(R.layout.text_description_preference); in onCreate()
73 preferenceScreen.addPreference(mSummaryPreference); in onCreate()
89 mSummaryPreference.setSummary(R.string.fullbackup_data_summary); in onViewCreated()
91 mSummaryPreference.setSummary(R.string.backup_data_summary); in onViewCreated()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageSummary.java69 private DataUsageSummaryPreference mSummaryPreference; field in DataUsageSummary
90 mSummaryPreference = findPreference(KEY_STATUS_HEADER); in onCreate()
251 mSummaryController.updateState(mSummaryPreference); in updateDataUsage()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DDataUsageSummary.java74 private DataUsageSummaryPreference mSummaryPreference; field in DataUsageSummary
95 mSummaryPreference = (DataUsageSummaryPreference) findPreference(KEY_STATUS_HEADER); in onCreate()
262 mSummaryController.updateState(mSummaryPreference); in updateDataUsage()