Searched refs:usageView (Results 1 – 2 of 2) sorted by relevance
78 final UsageView usageView = mock(UsageView.class); in calcPoints_dataAvailableFromCycleStart_shouldAddDataPointsOnly() local84 mPreference.calcPoints(usageView, mNetworkCycleData.subList(0, 5)); in calcPoints_dataAvailableFromCycleStart_shouldAddDataPointsOnly()86 verify(usageView).addPath(pointsCaptor.capture()); in calcPoints_dataAvailableFromCycleStart_shouldAddDataPointsOnly()94 final UsageView usageView = mock(UsageView.class); in calcPoints_dataNotAvailableAtCycleStart_shouldIndicateStartOfData() local100 mPreference.calcPoints(usageView, mNetworkCycleData.subList(2, 7)); in calcPoints_dataNotAvailableAtCycleStart_shouldIndicateStartOfData()102 verify(usageView).addPath(pointsCaptor.capture()); in calcPoints_dataNotAvailableAtCycleStart_shouldIndicateStartOfData()111 final UsageView usageView = mock(UsageView.class); in calcPoints_shouldNotDrawPointForFutureDate() local148 mPreference.calcPoints(usageView, mNetworkCycleData); in calcPoints_shouldNotDrawPointForFutureDate()150 verify(usageView).addPath(pointsCaptor.capture()); in calcPoints_shouldNotDrawPointForFutureDate()
118 final UsageView usageView = (UsageView) view.findViewById(R.id.battery_usage); in onBindViewHolder() local119 usageView.findViewById(R.id.label_group).setAlpha(.7f); in onBindViewHolder()120 mBatteryInfo.bindHistory(usageView); in onBindViewHolder()