Home
last modified time | relevance | path

Searched refs:usageView (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DChartDataUsagePreferenceTest.java65 final UsageView usageView = mock(UsageView.class); in calcPoints_dataAvailableFromCycleStart_shouldAddDataPointsOnly() local
71 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() local
87 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() local
135 mPreference.calcPoints(usageView, mNetworkCycleData); in calcPoints_shouldNotDrawPointForFutureDate()
137 verify(usageView).addPath(pointsCaptor.capture()); in calcPoints_shouldNotDrawPointForFutureDate()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryHistoryPreference.java92 UsageView usageView = (UsageView) view.findViewById(R.id.battery_usage); in onBindViewHolder() local
93 usageView.findViewById(R.id.label_group).setAlpha(.7f); in onBindViewHolder()
94 mBatteryInfo.bindHistory(usageView); in onBindViewHolder()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryHistoryPreference.java92 UsageView usageView = (UsageView) view.findViewById(R.id.battery_usage); in onBindViewHolder() local
93 usageView.findViewById(R.id.label_group).setAlpha(.7f); in onBindViewHolder()
94 mBatteryInfo.bindHistory(usageView); in onBindViewHolder()