Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DBatteryChartPreferenceControllerTest.java75 @Mock private BatteryChartView mDailyChartView; field in BatteryChartPreferenceControllerTest
106 doReturn(mLayoutParams).when(mDailyChartView).getLayoutParams(); in setUp()
114 mBatteryChartPreferenceController.mDailyChartView = mDailyChartView; in setUp()
150 reset(mDailyChartView); in setBatteryChartViewModel_6Hours()
157 verify(mDailyChartView, atLeastOnce()).setVisibility(View.GONE); in setBatteryChartViewModel_6Hours()
176 reset(mDailyChartView); in setBatteryChartViewModel_60Hours()
195 verify(mDailyChartView, atLeastOnce()).setVisibility(View.VISIBLE); in setBatteryChartViewModel_60Hours()
197 verify(mDailyChartView, atLeastOnce()).setViewModel(expectedDailyViewModel); in setBatteryChartViewModel_60Hours()
199 reset(mDailyChartView); in setBatteryChartViewModel_60Hours()
202 doReturn(mLayoutParams).when(mDailyChartView).getLayoutParams(); in setBatteryChartViewModel_60Hours()
[all …]
DBatteryHistoryPreferenceTest.java43 @Mock private BatteryChartView mDailyChartView; field in BatteryHistoryPreferenceTest
56 when(mViewHolder.findViewById(R.id.daily_battery_chart)).thenReturn(mDailyChartView); in setUp()
66 verify(mDailyChartView).setCompanionTextView(mTextView); in testOnBindViewHolder_updateBatteryUsage()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DBatteryHistoryPreference.java33 private BatteryChartView mDailyChartView; field in BatteryHistoryPreference
45 if (mDailyChartView != null && mHourlyChartView != null) { in setChartPreferenceController()
46 mChartPreferenceController.setBatteryChartView(mDailyChartView, mHourlyChartView); in setChartPreferenceController()
55 mDailyChartView = (BatteryChartView) view.findViewById(R.id.daily_battery_chart); in onBindViewHolder()
56 mDailyChartView.setCompanionTextView(companionTextView); in onBindViewHolder()
60 mChartPreferenceController.setBatteryChartView(mDailyChartView, mHourlyChartView); in onBindViewHolder()
DBatteryChartPreferenceController.java83 @VisibleForTesting BatteryChartView mDailyChartView; field in BatteryChartPreferenceController
262 () -> mDailyChartView.announceForAccessibility(getAccessibilityAnnounceMessage())); in selectHighlightSlotIndex()
275 if (mDailyChartView != dailyChartView || mHourlyChartView != hourlyChartView) { in setBatteryChartView()
291 mDailyChartView = dailyChartView; in setBatteryChartViewInner()
292 mDailyChartView.setOnSelectListener( in setBatteryChartViewInner()
303 mDailyChartView.announceForAccessibility( in setBatteryChartViewInner()
347 if (mDailyChartView == null || mHourlyChartView == null) { in showEmptyChart()
352 mDailyChartView.setVisibility(View.GONE); in showEmptyChart()
359 if (mDailyChartView == null || mHourlyChartView == null) { in refreshUi()
366 mDailyChartView.setVisibility(View.GONE); in refreshUi()
[all …]