Home
last modified time | relevance | path

Searched refs:getBatteryCapacity (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/core/java/android/hardware/input/
DInputDeviceBatteryState.java58 int capacity = mInputManager.getBatteryCapacity(mDeviceId); in getCapacity()
DIInputManager.aidl113 int getBatteryCapacity(int deviceId); in getBatteryCapacity() method
DInputManager.java1372 public int getBatteryCapacity(int deviceId) { in getBatteryCapacity() method in InputManager
1374 return mIm.getBatteryCapacity(deviceId); in getBatteryCapacity()
/frameworks/native/services/inputflinger/reader/controller/
DPeripheralControllerInterface.h39 virtual std::optional<int32_t> getBatteryCapacity(int32_t batteryId) = 0;
DPeripheralController.cpp317 dump += getBatteryCapacity(batteryId).has_value() in dump()
318 ? StringPrintf(INDENT3 "Capacity: %d\n", getBatteryCapacity(batteryId).value()) in dump()
474 std::optional<int32_t> PeripheralController::getBatteryCapacity(int batteryId) { in getBatteryCapacity() function in android::PeripheralController
475 return getDeviceContext().getBatteryCapacity(batteryId); in getBatteryCapacity()
DPeripheralController.h41 std::optional<int32_t> getBatteryCapacity(int32_t batteryId) override;
/frameworks/base/services/tests/servicestests/src/com/android/server/input/
DBatteryControllerTests.kt157 `when`(native.getBatteryCapacity(DEVICE_ID)).thenReturn(100) in testRegisteringListenerNotifiesStateImmediately()
164 `when`(native.getBatteryCapacity(SECOND_DEVICE_ID)).thenReturn(78) in testRegisteringListenerNotifiesStateImmediately()
/frameworks/base/services/core/java/com/android/server/input/
DNativeInputManagerService.java131 int getBatteryCapacity(int deviceId); in getBatteryCapacity() method
320 public native int getBatteryCapacity(int deviceId); in getBatteryCapacity() method in NativeInputManagerService.NativeImpl
DBatteryController.java115 mNative.getBatteryCapacity(deviceId) / 100.f, in notifyBatteryListener()
DInputManagerService.java2336 public int getBatteryCapacity(int deviceId) { in getBatteryCapacity() method in InputManagerService
2337 return mNative.getBatteryCapacity(deviceId); in getBatteryCapacity()
/frameworks/native/services/inputflinger/reader/include/
DInputDevice.h103 std::optional<int32_t> getBatteryCapacity();
361 inline std::optional<int32_t> getBatteryCapacity(int32_t batteryId) { in getBatteryCapacity() function
362 return mEventHub->getBatteryCapacity(mId, batteryId); in getBatteryCapacity()
DEventHub.h337 virtual std::optional<int32_t> getBatteryCapacity(int32_t deviceId,
523 std::optional<int32_t> getBatteryCapacity(int32_t deviceId,
DInputReader.h99 std::optional<int32_t> getBatteryCapacity(int32_t deviceId) override;
/frameworks/native/services/inputflinger/reader/mapper/
DInputMapper.h80 virtual std::optional<int32_t> getBatteryCapacity() { return std::nullopt; } in getBatteryCapacity() function
/frameworks/base/tests/BatteryStatsPerfTest/src/com/android/internal/os/
DBatteryUsageStatsPerfTest.java126 assertThat(batteryUsageStats.getBatteryCapacity()).isEqualTo(4000); in testBatteryUsageStatsTransferOverBinder()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryUsageStatsStoreTest.java97 assertThat(batteryUsageStats.getBatteryCapacity()).isEqualTo(4000); in testStoreSnapshot()
DPowerProfileTest.java79 assertEquals(3000.0, mProfile.getBatteryCapacity()); in testPowerProfile()
/frameworks/native/services/inputflinger/include/
DInputReaderBase.h114 virtual std::optional<int32_t> getBatteryCapacity(int32_t deviceId) = 0;
/frameworks/native/services/inputflinger/reader/
DInputDevice.cpp555 std::optional<int32_t> InputDevice::getBatteryCapacity() { in getBatteryCapacity() function in android::InputDevice
556 return mController ? mController->getBatteryCapacity(DEFAULT_BATTERY_ID) : std::nullopt; in getBatteryCapacity()
DInputReader.cpp687 std::optional<int32_t> InputReader::getBatteryCapacity(int32_t deviceId) { in getBatteryCapacity() function in android::InputReader
692 return device->getBatteryCapacity(); in getBatteryCapacity()
DEventHub.cpp1478 std::optional<int32_t> EventHub::getBatteryCapacity(int32_t deviceId, int32_t batteryId) const { in getBatteryCapacity() function in android::EventHub
/frameworks/base/core/java/android/os/
DBatteryUsageStats.java231 public double getBatteryCapacity() { in getBatteryCapacity() method in BatteryUsageStats
553 PowerCalculator.printPowerMah(pw, getBatteryCapacity()); in dump()
/frameworks/base/core/java/com/android/internal/os/
DPowerProfile.java754 public double getBatteryCapacity() { in getBatteryCapacity() method in PowerProfile
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp1009 std::optional<int32_t> getBatteryCapacity(int32_t, int32_t) const override { in getBatteryCapacity() function in android::FakeEventHub
2173 std::optional<int32_t> getBatteryCapacity(int32_t batteryId) override { in getBatteryCapacity() function in android::FakePeripheralController
2174 return getDeviceContext().getBatteryCapacity(batteryId); in getBatteryCapacity()
2218 ASSERT_EQ(controller.getBatteryCapacity(DEFAULT_BATTERY), BATTERY_CAPACITY); in TEST_F()
2219 ASSERT_EQ(mReader->getBatteryCapacity(deviceId), BATTERY_CAPACITY); in TEST_F()
9948 ASSERT_TRUE(controller.getBatteryCapacity(DEFAULT_BATTERY)); in TEST_F()
9949 ASSERT_EQ(controller.getBatteryCapacity(DEFAULT_BATTERY).value_or(-1), BATTERY_CAPACITY); in TEST_F()
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputManagerService.cpp2077 std::optional<int32_t> ret = im->getInputManager()->getReader().getBatteryCapacity(deviceId); in nativeGetBatteryCapacity()

12