Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/unit/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceTest.java68 private DataUsageSummaryPreference mSummaryPreference; field in DataUsageSummaryPreferenceTest
80 mSummaryPreference = spy(new DataUsageSummaryPreference(mContext, null /* attrs */)); in setUp()
83 mSummaryPreference.getLayoutResource(), in setUp()
87 assertThat(mSummaryPreference.getDataUsed(mHolder)).isNotNull(); in setUp()
97 mSummaryPreference.setUsageInfo(mCycleEnd, mUpdateTime, FAKE_CARRIER, 0 /* numPlans */, in testSetUsageInfo_withLaunchIntent_launchButtonShown()
100 mSummaryPreference.onBindViewHolder(mHolder); in testSetUsageInfo_withLaunchIntent_launchButtonShown()
101 assertThat(mSummaryPreference.getLaunchButton(mHolder).getVisibility()) in testSetUsageInfo_withLaunchIntent_launchButtonShown()
107 mSummaryPreference.setUsageInfo(mCycleEnd, mUpdateTime, FAKE_CARRIER, 0 /* numPlans */, in testSetUsageInfo_withoutLaunchIntent_launchButtonNotShown()
110 mSummaryPreference.onBindViewHolder(mHolder); in testSetUsageInfo_withoutLaunchIntent_launchButtonNotShown()
111 assertThat(mSummaryPreference.getLaunchButton(mHolder).getVisibility()) in testSetUsageInfo_withoutLaunchIntent_launchButtonNotShown()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceControllerTest.java89 private DataUsageSummaryPreference mSummaryPreference; field in DataUsageSummaryPreferenceControllerTest
179 mController.updateState(mSummaryPreference); in testSummaryUpdate_onePlan_basic()
182 verify(mSummaryPreference).setLimitInfo(captor.capture()); in testSummaryUpdate_onePlan_basic()
187 verify(mSummaryPreference).setUsageInfo((info.cycleEnd / 1000) * 1000, in testSummaryUpdate_onePlan_basic()
190 verify(mSummaryPreference).setChartEnabled(true); in testSummaryUpdate_onePlan_basic()
191 verify(mSummaryPreference).setWifiMode(false /* isWifiMode */, null /* usagePeriod */, in testSummaryUpdate_onePlan_basic()
205 mController.updateState(mSummaryPreference); in testSummaryUpdate_noPlan_basic()
208 verify(mSummaryPreference).setLimitInfo(captor.capture()); in testSummaryUpdate_noPlan_basic()
212 verify(mSummaryPreference).setUsageInfo( in testSummaryUpdate_noPlan_basic()
218 verify(mSummaryPreference).setChartEnabled(true); in testSummaryUpdate_noPlan_basic()
[all …]
/packages/apps/Settings/src/com/android/settings/backup/
DToggleBackupSettingFragment.java46 private Preference mSummaryPreference; field in ToggleBackupSettingFragment
62 mSummaryPreference = new Preference(getPrefContext()) { in onCreate()
70 mSummaryPreference.setPersistent(false); in onCreate()
71 mSummaryPreference.setLayoutResource(R.layout.text_description_preference); in onCreate()
72 preferenceScreen.addPreference(mSummaryPreference); in onCreate()
87 mSummaryPreference.setSummary(R.string.fullbackup_data_summary); in onViewCreated()
89 mSummaryPreference.setSummary(R.string.backup_data_summary); in onViewCreated()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageSummary.java68 private DataUsageSummaryPreference mSummaryPreference; field in DataUsageSummary
92 mSummaryPreference = findPreference(KEY_STATUS_HEADER); in onCreate()
272 mSummaryController.updateState(mSummaryPreference); in updateDataUsage()