Searched refs:BatteryChartView (Results 1 – 6 of 6) sorted by relevance
53 private BatteryChartView mBatteryChartView;68 mBatteryChartView = new BatteryChartView(mContext); in setUp()80 assertThat(BatteryChartView.isAccessibilityEnabled(mContext)).isFalse(); in testIsAccessibilityEnabled_disable_returnFalse()90 assertThat(BatteryChartView.isAccessibilityEnabled(mContext)).isFalse(); in testIsAccessibilityEnabled_emptyInfo_returnFalse()96 assertThat(BatteryChartView.isAccessibilityEnabled(mContext)).isTrue(); in testIsAccessibilityEnabled_validServiceId_returnTrue()
83 @Mock private BatteryChartView mBatteryChartView;270 BatteryChartView.SELECTED_INDEX_INVALID; in testForceRefreshUi_updateTrapezoidIndexIntoSelectAll()275 .isEqualTo(BatteryChartView.SELECTED_INDEX_ALL); in testForceRefreshUi_updateTrapezoidIndexIntoSelectAll()559 BatteryChartView.SELECTED_INDEX_ALL /*slot index*/); in testOnSelect_selectAll_logMetric()599 BatteryChartView.SELECTED_INDEX_ALL; in testRefreshCategoryTitle_setLast24HrIntoBothTitleTextView()622 spy(new BatteryChartView(mContext)); in testSetTimestampLabel_nullBatteryHistoryKeys_ignore()633 spy(new BatteryChartView(mContext)); in testSetTimestampLabel_setExpectedTimestampData()646 spy(new BatteryChartView(mContext)); in testSetTimestampLabel_withoutValidTimestamp_setExpectedTimestampData()
64 OnSaveInstanceState, BatteryChartView.OnSelectListener, OnResume,88 @VisibleForTesting BatteryChartView mBatteryChartView;94 @VisibleForTesting int mTrapezoidIndex = BatteryChartView.SELECTED_INDEX_INVALID;243 trapezoidIndex == BatteryChartView.SELECTED_INDEX_ALL in onSelect()298 void setBatteryChartView(final BatteryChartView batteryChartView) { in setBatteryChartView()304 private void setBatteryChartViewInner(final BatteryChartView batteryChartView) { in setBatteryChartViewInner()312 mTrapezoidIndex == BatteryChartView.SELECTED_INDEX_INVALID in forceRefreshUi()313 ? BatteryChartView.SELECTED_INDEX_ALL in forceRefreshUi()634 return batteryIndexedMap.get(BatteryChartView.SELECTED_INDEX_ALL); in getBatteryLast24HrUsageData()
53 public class BatteryChartView extends AppCompatImageView implements View.OnClickListener, class111 private BatteryChartView.OnSelectListener mOnSelectListener;113 public BatteryChartView(Context context) { in BatteryChartView() method in BatteryChartView117 public BatteryChartView(Context context, AttributeSet attrs) { in BatteryChartView() method in BatteryChartView176 public void setOnSelectListener(BatteryChartView.OnSelectListener listener) { in setOnSelectListener()
48 private BatteryChartView mBatteryChartView;102 mBatteryChartView = (BatteryChartView) view.findViewById(R.id.battery_chart); in onBindViewHolder()
289 insert24HoursData(BatteryChartView.SELECTED_INDEX_ALL, resultMap); in getIndexedUsageMap()