Searched refs:usageView (Results 1 – 3 of 3) sorted by relevance
65 final UsageView usageView = mock(UsageView.class); in calcPoints_dataAvailableFromCycleStart_shouldAddDataPointsOnly() local71 mPreference.calcPoints(usageView, mNetworkCycleData.subList(0, 5)); in calcPoints_dataAvailableFromCycleStart_shouldAddDataPointsOnly()73 verify(usageView).addPath(pointsCaptor.capture()); in calcPoints_dataAvailableFromCycleStart_shouldAddDataPointsOnly()81 final UsageView usageView = mock(UsageView.class); in calcPoints_dataNotAvailableAtCycleStart_shouldIndicateStartOfData() local87 mPreference.calcPoints(usageView, mNetworkCycleData.subList(2, 7)); in calcPoints_dataNotAvailableAtCycleStart_shouldIndicateStartOfData()89 verify(usageView).addPath(pointsCaptor.capture()); in calcPoints_dataNotAvailableAtCycleStart_shouldIndicateStartOfData()98 final UsageView usageView = mock(UsageView.class); in calcPoints_shouldNotDrawPointForFutureDate() local135 mPreference.calcPoints(usageView, mNetworkCycleData); in calcPoints_shouldNotDrawPointForFutureDate()137 verify(usageView).addPath(pointsCaptor.capture()); in calcPoints_shouldNotDrawPointForFutureDate()
92 UsageView usageView = (UsageView) view.findViewById(R.id.battery_usage); in onBindViewHolder() local93 usageView.findViewById(R.id.label_group).setAlpha(.7f); in onBindViewHolder()94 mBatteryInfo.bindHistory(usageView); in onBindViewHolder()