Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/input/
DBatteryControllerTests.kt324 `when`(native.getBatteryDevicePath(DEVICE_ID)).thenReturn("/sys/dev/test/device1") in testListenersNotifiedOnUEventNotification()
356 `when`(native.getBatteryDevicePath(DEVICE_ID)).thenReturn("/test/device1") in testBatteryPresenceChanged()
469 `when`(native.getBatteryDevicePath(USI_DEVICE_ID)).thenReturn("/sys/dev/usi_device") in testUsiDeviceIsMonitoredPersistently()
489 `when`(native.getBatteryDevicePath(USI_DEVICE_ID)).thenReturn("/sys/dev/usi_device") in testNoPollingWhenUsiDevicesAreMonitored()
492 `when`(native.getBatteryDevicePath(SECOND_USI_DEVICE_ID)).thenReturn("/sys/dev/usi_device2") in testNoPollingWhenUsiDevicesAreMonitored()
509 `when`(native.getBatteryDevicePath(USI_DEVICE_ID)).thenReturn("/sys/dev/usi_device") in testExpectedFlowForUsiBattery()
558 `when`(native.getBatteryDevicePath(USI_DEVICE_ID)).thenReturn("/sys/dev/usi_device") in testStylusPresenceExtendsValidUsiBatteryState()
597 `when`(native.getBatteryDevicePath(USI_DEVICE_ID)).thenReturn("/sys/dev/usi_device") in testStylusPresenceMakesUsiBatteryStateValid()
624 `when`(native.getBatteryDevicePath(USI_DEVICE_ID)).thenReturn("/sys/dev/usi_device") in testStylusPresenceDoesNotMakeUsiBatteryStateValidAtBoot()
715 `when`(native.getBatteryDevicePath(BT_DEVICE_ID)).thenReturn("/sys/dev/bt_device") in testBluetoothBatteryIsPrioritized()
[all …]
/frameworks/native/services/inputflinger/tests/fuzzers/
DInputReaderFuzzer.cpp110 std::optional<std::string> getBatteryDevicePath(int32_t deviceId) { in getBatteryDevicePath() function in android::FuzzInputReader
111 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.java158 String getBatteryDevicePath(int deviceId); in getBatteryDevicePath() method
397 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.h346 virtual std::optional<std::string> getBatteryDevicePath(int32_t deviceId) = 0;
/frameworks/native/services/inputflinger/reader/include/
DInputReader.h104 std::optional<std::string> getBatteryDevicePath(int32_t deviceId) override;
/frameworks/native/services/inputflinger/reader/
DInputReader.cpp797 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.cpp2315 im->getInputManager()->getReader().getBatteryDevicePath(deviceId); in nativeGetBatteryDevicePath()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp1290 ASSERT_EQ(mReader->getBatteryDevicePath(deviceId), FakeEventHub::BATTERY_DEVPATH); in TEST_F()