Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryChartViewTest.java53 private BatteryChartView mBatteryChartView; field in BatteryChartViewTest
68 mBatteryChartView = new BatteryChartView(mContext); in setUp()
103 mBatteryChartView.mSelectedIndex = 1; in testSetSelectedIndex_invokesCallback()
104 mBatteryChartView.setOnSelectListener( in testSetSelectedIndex_invokesCallback()
109 mBatteryChartView.setSelectedIndex(expectedIndex); in testSetSelectedIndex_invokesCallback()
111 assertThat(mBatteryChartView.mSelectedIndex) in testSetSelectedIndex_invokesCallback()
120 mBatteryChartView.mSelectedIndex = expectedIndex; in testSetSelectedIndex_sameIndex_notInvokesCallback()
121 mBatteryChartView.setOnSelectListener( in testSetSelectedIndex_sameIndex_notInvokesCallback()
126 mBatteryChartView.setSelectedIndex(expectedIndex); in testSetSelectedIndex_sameIndex_notInvokesCallback()
133 mBatteryChartView.setClickableForce(true); in testClickable_isChartGraphSlotsEnabledIsFalse_notClickable()
[all …]
DBatteryChartPreferenceControllerTest.java83 @Mock private BatteryChartView mBatteryChartView; field in BatteryChartPreferenceControllerTest
112 mBatteryChartPreferenceController.mBatteryChartView = mBatteryChartView; in setUp()
246 mBatteryChartPreferenceController.mBatteryChartView = null; in testRefreshUi_batteryChartViewIsNull_ignoreRefresh()
621 mBatteryChartPreferenceController.mBatteryChartView = in testSetTimestampLabel_nullBatteryHistoryKeys_ignore()
625 verify(mBatteryChartPreferenceController.mBatteryChartView, never()) in testSetTimestampLabel_nullBatteryHistoryKeys_ignore()
632 mBatteryChartPreferenceController.mBatteryChartView = in testSetTimestampLabel_setExpectedTimestampData()
638 verify(mBatteryChartPreferenceController.mBatteryChartView) in testSetTimestampLabel_setExpectedTimestampData()
645 mBatteryChartPreferenceController.mBatteryChartView = in testSetTimestampLabel_withoutValidTimestamp_setExpectedTimestampData()
651 verify(mBatteryChartPreferenceController.mBatteryChartView) in testSetTimestampLabel_withoutValidTimestamp_setExpectedTimestampData()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryHistoryPreference.java48 private BatteryChartView mBatteryChartView; field in BatteryHistoryPreference
89 if (mBatteryChartView != null) { in setChartPreferenceController()
90 mChartPreferenceController.setBatteryChartView(mBatteryChartView); in setChartPreferenceController()
102 mBatteryChartView = (BatteryChartView) view.findViewById(R.id.battery_chart); in onBindViewHolder()
103 mBatteryChartView.setCompanionTextView( in onBindViewHolder()
106 mChartPreferenceController.setBatteryChartView(mBatteryChartView); in onBindViewHolder()
DBatteryChartPreferenceController.java88 @VisibleForTesting BatteryChartView mBatteryChartView; field in BatteryChartPreferenceController
299 if (mBatteryChartView != batteryChartView) { in setBatteryChartView()
305 mBatteryChartView = batteryChartView; in setBatteryChartViewInner()
306 mBatteryChartView.setOnSelectListener(this); in setBatteryChartViewInner()
315 if (mBatteryChartView != null) { in forceRefreshUi()
316 mBatteryChartView.setLevels(mBatteryHistoryLevels); in forceRefreshUi()
317 mBatteryChartView.setSelectedIndex(refreshIndex); in forceRefreshUi()
327 || mBatteryChartView == null in refreshUi()
571 if (mBatteryChartView == null || mBatteryHistoryKeys == null) { in setTimestampLabel()
576 mBatteryChartView.setLatestTimestamp(latestTimestamp); in setTimestampLabel()