Searched refs:BatteryState (Results 1 – 15 of 15) sorted by relevance
19 import android.hardware.BatteryState21 class FixedCapacityBatteryState(private val capacity: Float) : BatteryState() {
19 import android.hardware.BatteryState135 val batteryState = mock(BatteryState::class.java) in onStylusUsiBatteryStateChanged_batteryNotPresent_noop()
20 import android.hardware.BatteryState in <lambda>()60 @Mock lateinit var batteryState: BatteryState in <lambda>()
20 import android.hardware.BatteryState in <lambda>()124 status: Int = BatteryState.STATUS_FULL, in <lambda>()143 deviceId: Int, eventTime: Long, batteryState: BatteryState -> in <lambda>()147 assertEquals(BatteryState.STATUS_DISCHARGING, batteryState.status) in <lambda>()163 BatteryState.STATUS_DISCHARGING, 0.5f /*capacity*/, 8675309L /*eventTime*/) in <lambda>()
19 import android.hardware.BatteryState56 batteryState: BatteryState in onStylusUsiBatteryStateChanged()
22 import android.hardware.BatteryState in <lambda>()197 batteryState: BatteryState in <lambda>()318 private fun isBatteryStateValid(batteryState: BatteryState): Boolean { in <lambda>()381 batteryState: BatteryState, in <lambda>()
27 import android.hardware.BatteryState111 fun updateBatteryState(deviceId: Int, batteryState: BatteryState) { in updateBatteryState()
29 import android.hardware.BatteryState;529 isPresent ? mNative.getBatteryStatus(deviceId) : BatteryState.STATUS_UNKNOWN, in queryBatteryStateFromNative()565 int mBluetoothMetadataBatteryStatus = BatteryState.STATUS_UNKNOWN;679 mBluetoothMetadataBatteryStatus = BatteryState.STATUS_UNKNOWN; in stopBluetoothMetadataMonitoring()739 ? BatteryState.STATUS_CHARGING in updateBluetoothMetadataState()740 : BatteryState.STATUS_DISCHARGING; in updateBluetoothMetadataState()742 mBluetoothMetadataBatteryStatus = BatteryState.STATUS_UNKNOWN; in updateBluetoothMetadataState()1053 initialize(deviceId, 0 /*updateTime*/, false /*isPresent*/, BatteryState.STATUS_UNKNOWN, in reset()
29 public abstract class BatteryState { class
24 import android.hardware.BatteryState;747 public BatteryState getInputDeviceBatteryState(int deviceId, boolean hasBattery) { in getInputDeviceBatteryState()761 private static final class LocalBatteryState extends BatteryState {767 this(false /*isPresent*/, BatteryState.STATUS_UNKNOWN, Float.NaN /*capacity*/); in LocalBatteryState()
41 import android.hardware.BatteryState;1328 int deviceId, long eventTimeMillis, @NonNull BatteryState batteryState); in onBatteryStateChanged()
22 import android.hardware.BatteryState.STATUS_CHARGING23 import android.hardware.BatteryState.STATUS_DISCHARGING24 import android.hardware.BatteryState.STATUS_FULL25 import android.hardware.BatteryState.STATUS_UNKNOWN
30 import android.hardware.BatteryState;1285 public BatteryState getBatteryState() { in getBatteryState()
AndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
18190 public abstract class BatteryState {18191 ctor public BatteryState();51010 method @NonNull public android.hardware.BatteryState getBatteryState();