Searched refs:hasBattery (Results 1 – 6 of 6) sorted by relevance
/frameworks/native/include/input/ |
D | InputDevice.h | 329 inline void setHasBattery(bool hasBattery) { mHasBattery = hasBattery; } in setHasBattery() argument 330 inline bool hasBattery() const { return mHasBattery; } in hasBattery() function
|
/frameworks/base/tests/Input/src/com/android/server/input/ |
D | BatteryControllerTests.kt | 78 hasBattery: Boolean = true, in createInputDevice() 87 .setHasBattery(hasBattery) in createInputDevice() 235 hasBattery: Boolean = true, in notifyDeviceChanged() 243 .thenReturn(createInputDevice(deviceId, hasBattery, supportsUsi, generation)) in notifyDeviceChanged() 252 hasBattery: Boolean = true, in addInputDevice() 256 notifyDeviceChanged(deviceId, hasBattery, supportsUsi) in addInputDevice() 369 notifyDeviceChanged(DEVICE_ID, hasBattery = false) in testBatteryPresenceChanged() 376 notifyDeviceChanged(DEVICE_ID, hasBattery = true) in testBatteryPresenceChanged()
|
/frameworks/base/core/java/android/view/ |
D | InputDevice.java | 505 boolean hasButtonUnderPad, boolean hasSensor, boolean hasBattery, int usiVersionMajor, in InputDevice() argument 533 mHasBattery = hasBattery; in InputDevice() 709 public Builder setHasBattery(boolean hasBattery) { in setHasBattery() argument 710 mHasBattery = hasBattery; in setHasBattery() 1392 public boolean hasBattery() { in hasBattery() method in InputDevice
|
/frameworks/base/core/jni/ |
D | android_view_InputDevice.cpp | 91 deviceInfo.hasBattery(), usiVersion.majorVersion, in android_view_InputDevice_create()
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | BatteryController.java | 232 private boolean hasBattery(int deviceId) { in hasBattery() method in BatteryController 233 return processInputDevice(deviceId, false /*defaultValue*/, InputDevice::hasBattery); in hasBattery() 415 return queryBatteryStateFromNative(deviceId, updateTime, hasBattery(deviceId)); in getBatteryState() 595 if (mHasBattery != hasBattery(mState.deviceId)) { in configureDeviceMonitor()
|
/frameworks/base/core/java/android/hardware/input/ |
D | InputManagerGlobal.java | 747 public BatteryState getInputDeviceBatteryState(int deviceId, boolean hasBattery) { in getInputDeviceBatteryState() argument 748 if (!hasBattery) { in getInputDeviceBatteryState()
|