Home
last modified time | relevance | path

Searched refs:getBatteryDevicePath (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/tests/Input/src/com/android/server/input/
DBatteryControllerTests.kt327 `when`(native.getBatteryDevicePath(DEVICE_ID)).thenReturn("/sys/dev/test/device1") in testListenersNotifiedOnUEventNotification()
359 `when`(native.getBatteryDevicePath(DEVICE_ID)).thenReturn("/test/device1") in testBatteryPresenceChanged()
472 `when`(native.getBatteryDevicePath(USI_DEVICE_ID)).thenReturn("/sys/dev/usi_device") in testUsiDeviceIsMonitoredPersistently()
492 `when`(native.getBatteryDevicePath(USI_DEVICE_ID)).thenReturn("/sys/dev/usi_device") in testNoPollingWhenUsiDevicesAreMonitored()
495 `when`(native.getBatteryDevicePath(SECOND_USI_DEVICE_ID)).thenReturn("/sys/dev/usi_device2") in testNoPollingWhenUsiDevicesAreMonitored()
512 `when`(native.getBatteryDevicePath(USI_DEVICE_ID)).thenReturn("/sys/dev/usi_device") in testExpectedFlowForUsiBattery()
561 `when`(native.getBatteryDevicePath(USI_DEVICE_ID)).thenReturn("/sys/dev/usi_device") in testStylusPresenceExtendsValidUsiBatteryState()
600 `when`(native.getBatteryDevicePath(USI_DEVICE_ID)).thenReturn("/sys/dev/usi_device") in testStylusPresenceMakesUsiBatteryStateValid()
627 `when`(native.getBatteryDevicePath(USI_DEVICE_ID)).thenReturn("/sys/dev/usi_device") in testStylusPresenceDoesNotMakeUsiBatteryStateValidAtBoot()
718 `when`(native.getBatteryDevicePath(BT_DEVICE_ID)).thenReturn("/sys/dev/bt_device") in testBluetoothBatteryIsPrioritized()
[all …]
/frameworks/native/services/inputflinger/tests/fuzzers/
DInputReaderFuzzer.cpp108 std::optional<std::string> getBatteryDevicePath(int32_t deviceId) { in getBatteryDevicePath() function in android::FuzzInputReader
109 return reader->getBatteryDevicePath(deviceId); in getBatteryDevicePath()
252 [&]() -> void { reader->getBatteryDevicePath(fdp->ConsumeIntegral<int32_t>()); }, in LLVMFuzzerTestOneInput()
/frameworks/base/services/core/java/com/android/server/input/
DNativeInputManagerService.java166 String getBatteryDevicePath(int deviceId); in getBatteryDevicePath() method
434 public native String getBatteryDevicePath(int deviceId); in getBatteryDevicePath() method in NativeInputManagerService.NativeImpl
DBatteryController.java628 final String batteryPath = mNative.getBatteryDevicePath(mState.deviceId); in startNativeMonitoring()
/frameworks/native/services/inputflinger/include/
DInputReaderBase.h360 virtual std::optional<std::string> getBatteryDevicePath(int32_t deviceId) = 0;
/frameworks/native/services/inputflinger/reader/include/
DInputReader.h101 std::optional<std::string> getBatteryDevicePath(int32_t deviceId) override;
/frameworks/native/services/inputflinger/reader/
DInputReader.cpp784 std::optional<std::string> InputReader::getBatteryDevicePath(int32_t deviceId) { in getBatteryDevicePath() function in android::InputReader
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputManagerService.cpp2406 im->getInputManager()->getReader().getBatteryDevicePath(deviceId); in nativeGetBatteryDevicePath()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp1386 ASSERT_EQ(mReader->getBatteryDevicePath(deviceId), FakeEventHub::BATTERY_DEVPATH); in TEST_F()