Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DBatteryChartPreferenceControllerTest.java76 @Mock private BatteryChartView mHourlyChartView; field in BatteryChartPreferenceControllerTest
115 mBatteryChartPreferenceController.mHourlyChartView = mHourlyChartView; in setUp()
151 reset(mHourlyChartView); in setBatteryChartViewModel_6Hours()
159 verify(mHourlyChartView, atLeast(0)).setViewModel(null); in setBatteryChartViewModel_6Hours()
160 verify(mHourlyChartView, atLeastOnce()) in setBatteryChartViewModel_6Hours()
177 reset(mHourlyChartView); in setBatteryChartViewModel_60Hours()
200 reset(mHourlyChartView); in setBatteryChartViewModel_60Hours()
203 doReturn(View.GONE).when(mHourlyChartView).getVisibility(); in setBatteryChartViewModel_60Hours()
207 verify(mHourlyChartView).setVisibility(View.VISIBLE); in setBatteryChartViewModel_60Hours()
212 verify(mHourlyChartView) in setBatteryChartViewModel_60Hours()
[all …]
DBatteryHistoryPreferenceTest.java44 @Mock private BatteryChartView mHourlyChartView; field in BatteryHistoryPreferenceTest
57 when(mViewHolder.findViewById(R.id.hourly_battery_chart)).thenReturn(mHourlyChartView); in setUp()
68 verify(mHourlyChartView).setCompanionTextView(mTextView); in testOnBindViewHolder_updateBatteryUsage()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DBatteryHistoryPreference.java34 private BatteryChartView mHourlyChartView; field in BatteryHistoryPreference
45 if (mDailyChartView != null && mHourlyChartView != null) { in setChartPreferenceController()
46 mChartPreferenceController.setBatteryChartView(mDailyChartView, mHourlyChartView); in setChartPreferenceController()
57 mHourlyChartView = (BatteryChartView) view.findViewById(R.id.hourly_battery_chart); in onBindViewHolder()
58 mHourlyChartView.setCompanionTextView(companionTextView); in onBindViewHolder()
60 mChartPreferenceController.setBatteryChartView(mDailyChartView, mHourlyChartView); in onBindViewHolder()
DBatteryChartPreferenceController.java84 @VisibleForTesting BatteryChartView mHourlyChartView; field in BatteryChartPreferenceController
275 if (mDailyChartView != dailyChartView || mHourlyChartView != hourlyChartView) { in setBatteryChartView()
315 mHourlyChartView = hourlyChartView; in setBatteryChartViewInner()
316 mHourlyChartView.setOnSelectListener( in setBatteryChartViewInner()
330 mHourlyChartView.announceForAccessibility( in setBatteryChartViewInner()
347 if (mDailyChartView == null || mHourlyChartView == null) { in showEmptyChart()
353 mHourlyChartView.setVisibility(View.VISIBLE); in showEmptyChart()
354 mHourlyChartView.setViewModel(null); in showEmptyChart()
359 if (mDailyChartView == null || mHourlyChartView == null) { in refreshUi()
367 mHourlyChartView.setVisibility(View.GONE); in refreshUi()
[all …]