Searched refs:BatteryState (Results 1 – 13 of 13) sorted by relevance
34 public class BatteryState { class60 public BatteryState( in BatteryState() method in BatteryState119 public static BatteryState create(ContentValues contentValues) { in create()120 Builder builder = BatteryState.newBuilder(); in create()222 public BatteryState build() { in build()223 return new BatteryState( in build()
34 void insert(BatteryState state); in insert()38 void insertAll(List<BatteryState> states); in insertAll()50 List<BatteryState> getAllAfter(long timestamp); in getAllAfter()
32 BatteryState.class,
20 import android.hardware.BatteryState;86 BatteryState batteryState = mInputDevice.getBatteryState(); in refresh()111 private boolean isValidBatteryState(BatteryState batteryState) { in isValidBatteryState()129 @NonNull BatteryState batteryState) { in onBatteryStateChanged()
20 import android.hardware.BatteryState;63 BatteryState mLastBatteryState;137 @NonNull BatteryState batteryState) { in onBatteryStateChanged()
70 BatteryState state = create(mBatteryInformation); in testBuilder_returnsExpectedResult()83 private static BatteryState create(BatteryInformation batteryInformation) { in create()84 return BatteryState.newBuilder() in create()
75 final List<BatteryState> states = mBatteryStateDao.getAllAfter(TIMESTAMP1); in insertAll_normalFlow_expectedBehavior()127 final List<BatteryState> states = mBatteryStateDao.getAllAfter(0); in clearAllBefore_normalFlow_expectedBehavior()160 private static void assertBatteryState(BatteryState state, long timestamp, String packageName) { in assertBatteryState()
33 import android.hardware.BatteryState;233 BatteryState batteryState = mock(BatteryState.class); in onBatteryStateChanged_detectsValidUsi()246 BatteryState batteryState = mock(BatteryState.class); in onBatteryStateChanged_detectsInvalidUsi_batteryNotPresent()
26 import android.hardware.BatteryState;60 private BatteryState mBatteryState;
46 import com.android.settings.fuelgauge.batteryusage.db.BatteryState;142 final BatteryState state = in insertDataToBatteryStateTable()143 new BatteryState( in insertDataToBatteryStateTable()
36 import com.android.settings.fuelgauge.batteryusage.db.BatteryState;99 final List<BatteryState> stateList = in dumpBatteryStateDatabaseHist()
35 import com.android.settings.fuelgauge.batteryusage.db.BatteryState;167 mBatteryStateDao.insert(BatteryState.create(contentValues)); in insert()
33 import com.android.settings.fuelgauge.batteryusage.db.BatteryState;311 final List<BatteryState> states = in insert_batteryState_returnsExpectedResult()345 final List<BatteryState> states = in insert_partialFieldsContentValues_returnsExpectedResult()