Home
last modified time | relevance | path

Searched refs:BatteryState (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/stylus/
DFixedCapacityBatteryState.kt19 import android.hardware.BatteryState
21 class FixedCapacityBatteryState(private val capacity: Float) : BatteryState() {
DStylusUsiPowerStartableTest.kt19 import android.hardware.BatteryState
135 val batteryState = mock(BatteryState::class.java) in onStylusUsiBatteryStateChanged_batteryNotPresent_noop()
DStylusManagerTest.kt20 import android.hardware.BatteryState in <lambda>()
60 @Mock lateinit var batteryState: BatteryState in <lambda>()
/frameworks/base/tests/Input/src/android/hardware/input/
DInputDeviceBatteryListenerTest.kt20 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>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/stylus/
DStylusUsiPowerStartable.kt19 import android.hardware.BatteryState
56 batteryState: BatteryState in onStylusUsiBatteryStateChanged()
DStylusManager.kt22 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>()
DStylusUsiPowerUI.kt27 import android.hardware.BatteryState
111 fun updateBatteryState(deviceId: Int, batteryState: BatteryState) { in updateBatteryState()
/frameworks/base/services/core/java/com/android/server/input/
DBatteryController.java29 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()
/frameworks/base/core/java/android/hardware/
DBatteryState.java29 public abstract class BatteryState { class
/frameworks/base/core/java/android/hardware/input/
DInputManagerGlobal.java24 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()
DInputManager.java41 import android.hardware.BatteryState;
1328 int deviceId, long eventTimeMillis, @NonNull BatteryState batteryState); in onBatteryStateChanged()
/frameworks/base/tests/Input/src/com/android/server/input/
DBatteryControllerTests.kt22 import android.hardware.BatteryState.STATUS_CHARGING
23 import android.hardware.BatteryState.STATUS_DISCHARGING
24 import android.hardware.BatteryState.STATUS_FULL
25 import android.hardware.BatteryState.STATUS_UNKNOWN
/frameworks/base/core/java/android/view/
DInputDevice.java30 import android.hardware.BatteryState;
1285 public BatteryState getBatteryState() { in getBatteryState()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
/frameworks/base/core/api/
Dcurrent.txt18190 public abstract class BatteryState {
18191 ctor public BatteryState();
51010 method @NonNull public android.hardware.BatteryState getBatteryState();