Searched refs:mTrapezoidIndex (Results 1 – 2 of 2) sorted by relevance
94 @VisibleForTesting int mTrapezoidIndex = BatteryChartView.SELECTED_INDEX_INVALID; field in BatteryChartPreferenceController140 mTrapezoidIndex = in onCreate()141 savedInstanceState.getInt(KEY_CURRENT_TIME_SLOT, mTrapezoidIndex); in onCreate()145 mTrapezoidIndex, mIsExpanded)); in onCreate()167 savedInstance.putInt(KEY_CURRENT_TIME_SLOT, mTrapezoidIndex); in onSaveInstanceState()170 mTrapezoidIndex, mIsExpanded)); in onSaveInstanceState()312 mTrapezoidIndex == BatteryChartView.SELECTED_INDEX_INVALID in forceRefreshUi()314 : mTrapezoidIndex; in forceRefreshUi()328 || (mTrapezoidIndex == trapezoidIndex && !isForce)) { in refreshUi()334 mTrapezoidIndex = trapezoidIndex; in refreshUi()[all …]
254 mBatteryChartPreferenceController.mTrapezoidIndex = trapezoidIndex; in testRefreshUi_trapezoidIndexIsNotChanged_ignoreRefresh()262 mBatteryChartPreferenceController.mTrapezoidIndex = trapezoidIndex; in testRefreshUi_forceUpdate_refreshUi()269 mBatteryChartPreferenceController.mTrapezoidIndex = in testForceRefreshUi_updateTrapezoidIndexIntoSelectAll()274 assertThat(mBatteryChartPreferenceController.mTrapezoidIndex) in testForceRefreshUi_updateTrapezoidIndexIntoSelectAll()574 mBatteryChartPreferenceController.mTrapezoidIndex = 0; in testRefreshCategoryTitle_setHourIntoBothTitleTextView()598 mBatteryChartPreferenceController.mTrapezoidIndex = in testRefreshCategoryTitle_setLast24HrIntoBothTitleTextView()660 mBatteryChartPreferenceController.mTrapezoidIndex = expectedIndex; in testOnSaveInstanceState_restoreSelectedIndexAndExpandState()664 mBatteryChartPreferenceController.mTrapezoidIndex = -1; in testOnSaveInstanceState_restoreSelectedIndexAndExpandState()671 assertThat(mBatteryChartPreferenceController.mTrapezoidIndex) in testOnSaveInstanceState_restoreSelectedIndexAndExpandState()