Searched refs:trapezoidIndex (Results 1 – 4 of 4) sorted by relevance
71 void onSelect(int trapezoidIndex); in onSelect() argument277 if (mHoveredIndex != trapezoidIndex) { in onHoverEvent()278 mHoveredIndex = trapezoidIndex; in onHoverEvent()303 if (trapezoidIndex == SELECTED_INDEX_INVALID in onClick()304 || !isValidToDraw(trapezoidIndex)) { in onClick()308 if (trapezoidIndex == mSelectedIndex) { in onClick()311 setSelectedIndex(trapezoidIndex); in onClick()578 && trapezoidIndex >= 0 in isValidToDraw()579 && trapezoidIndex < mLevels.length - 1 in isValidToDraw()580 && mLevels[trapezoidIndex] != 0 in isValidToDraw()[all …]
242 public void onSelect(int trapezoidIndex) { in onSelect() argument243 Log.d(TAG, "onChartSelect:" + trapezoidIndex); in onSelect()244 refreshUi(trapezoidIndex, /*isForce=*/ false); in onSelect()247 trapezoidIndex == BatteryChartView.SELECTED_INDEX_ALL in onSelect()328 boolean refreshUi(int trapezoidIndex, boolean isForce) { in refreshUi() argument332 || (mTrapezoidIndex == trapezoidIndex && !isForce)) { in refreshUi()336 trapezoidIndex, mBatteryIndexedMap.size(), isForce)); in refreshUi()338 mTrapezoidIndex = trapezoidIndex; in refreshUi()
224 final int trapezoidIndex = 1; in testRefreshUi_trapezoidIndexIsNotChanged_ignoreRefresh() local225 mBatteryChartPreferenceController.mTrapezoidIndex = trapezoidIndex; in testRefreshUi_trapezoidIndexIsNotChanged_ignoreRefresh()227 trapezoidIndex, /*isForce=*/ false)).isFalse(); in testRefreshUi_trapezoidIndexIsNotChanged_ignoreRefresh()232 final int trapezoidIndex = 1; in testRefreshUi_forceUpdate_refreshUi() local233 mBatteryChartPreferenceController.mTrapezoidIndex = trapezoidIndex; in testRefreshUi_forceUpdate_refreshUi()235 trapezoidIndex, /*isForce=*/ true)).isTrue(); in testRefreshUi_forceUpdate_refreshUi()251 final int trapezoidIndex = 1; in testRemoveAndCacheAllPrefs_emptyContent_ignoreRemoveAll() local255 trapezoidIndex, /*isForce=*/ true); in testRemoveAndCacheAllPrefs_emptyContent_ignoreRemoveAll()261 final int trapezoidIndex = 1; in testRemoveAndCacheAllPrefs_buildCacheAndRemoveAllPreference() local269 trapezoidIndex, /*isForce=*/ true); in testRemoveAndCacheAllPrefs_buildCacheAndRemoveAllPreference()
103 trapezoidIndex -> { in testSetSelectedIndex_invokesCallback()104 selectedIndex[0] = trapezoidIndex; in testSetSelectedIndex_invokesCallback()120 trapezoidIndex -> { in testSetSelectedIndex_sameIndex_notInvokesCallback()121 selectedIndex[0] = trapezoidIndex; in testSetSelectedIndex_sameIndex_notInvokesCallback()