Home
last modified time | relevance | path

Searched refs:mockBatteryEntry (Results 1 – 2 of 2) sorted by relevance

/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
H A DBatteryHistEntryTest.java41 private BatteryEntry mockBatteryEntry; field in BatteryHistEntryTest
53 when(mockBatteryEntry.getUid()).thenReturn(1001); in testConstructor_contentValues_returnsExpectedResult()
54 when(mockBatteryEntry.getLabel()).thenReturn("Settings"); in testConstructor_contentValues_returnsExpectedResult()
55 when(mockBatteryEntry.getDefaultPackageName()) in testConstructor_contentValues_returnsExpectedResult()
57 when(mockBatteryEntry.isHidden()).thenReturn(true); in testConstructor_contentValues_returnsExpectedResult()
59 when(mockBatteryEntry.getConsumedPower()).thenReturn(1.1); in testConstructor_contentValues_returnsExpectedResult()
60 mockBatteryEntry.percent = 0.3; in testConstructor_contentValues_returnsExpectedResult()
61 when(mockBatteryEntry.getTimeInForegroundMs()).thenReturn(1234L); in testConstructor_contentValues_returnsExpectedResult()
64 when(mockBatteryEntry.getConsumerType()) in testConstructor_contentValues_returnsExpectedResult()
68 mockBatteryEntry, in testConstructor_contentValues_returnsExpectedResult()
[all …]
H A DConvertUtilsTest.java57 private BatteryEntry mockBatteryEntry; field in ConvertUtilsTest
73 when(mockBatteryEntry.getUid()).thenReturn(1001); in convert_returnsExpectedContentValues()
74 when(mockBatteryEntry.getLabel()).thenReturn("Settings"); in convert_returnsExpectedContentValues()
75 when(mockBatteryEntry.getDefaultPackageName()) in convert_returnsExpectedContentValues()
77 when(mockBatteryEntry.isHidden()).thenReturn(true); in convert_returnsExpectedContentValues()
79 when(mockBatteryEntry.getConsumedPower()).thenReturn(1.1); in convert_returnsExpectedContentValues()
80 mockBatteryEntry.percent = 0.3; in convert_returnsExpectedContentValues()
81 when(mockBatteryEntry.getTimeInForegroundMs()).thenReturn(1234L); in convert_returnsExpectedContentValues()
82 when(mockBatteryEntry.getTimeInBackgroundMs()).thenReturn(5689L); in convert_returnsExpectedContentValues()
84 when(mockBatteryEntry.getConsumerType()) in convert_returnsExpectedContentValues()
[all …]