Searched refs:mDailyChartView (Results 1 – 4 of 4) sorted by relevance
75 @Mock private BatteryChartView mDailyChartView; field in BatteryChartPreferenceControllerTest106 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 …]
43 @Mock private BatteryChartView mDailyChartView; field in BatteryHistoryPreferenceTest56 when(mViewHolder.findViewById(R.id.daily_battery_chart)).thenReturn(mDailyChartView); in setUp()66 verify(mDailyChartView).setCompanionTextView(mTextView); in testOnBindViewHolder_updateBatteryUsage()
33 private BatteryChartView mDailyChartView; field in BatteryHistoryPreference45 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()
83 @VisibleForTesting BatteryChartView mDailyChartView; field in BatteryChartPreferenceController262 () -> 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 …]