/frameworks/base/core/java/android/hardware/input/ |
D | InputDeviceBatteryState.java | 58 int capacity = mInputManager.getBatteryCapacity(mDeviceId); in getCapacity()
|
D | IInputManager.aidl | 113 int getBatteryCapacity(int deviceId); in getBatteryCapacity() method
|
D | InputManager.java | 1372 public int getBatteryCapacity(int deviceId) { in getBatteryCapacity() method in InputManager 1374 return mIm.getBatteryCapacity(deviceId); in getBatteryCapacity()
|
/frameworks/native/services/inputflinger/reader/controller/ |
D | PeripheralControllerInterface.h | 39 virtual std::optional<int32_t> getBatteryCapacity(int32_t batteryId) = 0;
|
D | PeripheralController.cpp | 317 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()
|
D | PeripheralController.h | 41 std::optional<int32_t> getBatteryCapacity(int32_t batteryId) override;
|
/frameworks/base/services/tests/servicestests/src/com/android/server/input/ |
D | BatteryControllerTests.kt | 157 `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/ |
D | NativeInputManagerService.java | 131 int getBatteryCapacity(int deviceId); in getBatteryCapacity() method 320 public native int getBatteryCapacity(int deviceId); in getBatteryCapacity() method in NativeInputManagerService.NativeImpl
|
D | BatteryController.java | 115 mNative.getBatteryCapacity(deviceId) / 100.f, in notifyBatteryListener()
|
D | InputManagerService.java | 2336 public int getBatteryCapacity(int deviceId) { in getBatteryCapacity() method in InputManagerService 2337 return mNative.getBatteryCapacity(deviceId); in getBatteryCapacity()
|
/frameworks/native/services/inputflinger/reader/include/ |
D | InputDevice.h | 103 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()
|
D | EventHub.h | 337 virtual std::optional<int32_t> getBatteryCapacity(int32_t deviceId, 523 std::optional<int32_t> getBatteryCapacity(int32_t deviceId,
|
D | InputReader.h | 99 std::optional<int32_t> getBatteryCapacity(int32_t deviceId) override;
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | InputMapper.h | 80 virtual std::optional<int32_t> getBatteryCapacity() { return std::nullopt; } in getBatteryCapacity() function
|
/frameworks/base/tests/BatteryStatsPerfTest/src/com/android/internal/os/ |
D | BatteryUsageStatsPerfTest.java | 126 assertThat(batteryUsageStats.getBatteryCapacity()).isEqualTo(4000); in testBatteryUsageStatsTransferOverBinder()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryUsageStatsStoreTest.java | 97 assertThat(batteryUsageStats.getBatteryCapacity()).isEqualTo(4000); in testStoreSnapshot()
|
D | PowerProfileTest.java | 79 assertEquals(3000.0, mProfile.getBatteryCapacity()); in testPowerProfile()
|
/frameworks/native/services/inputflinger/include/ |
D | InputReaderBase.h | 114 virtual std::optional<int32_t> getBatteryCapacity(int32_t deviceId) = 0;
|
/frameworks/native/services/inputflinger/reader/ |
D | InputDevice.cpp | 555 std::optional<int32_t> InputDevice::getBatteryCapacity() { in getBatteryCapacity() function in android::InputDevice 556 return mController ? mController->getBatteryCapacity(DEFAULT_BATTERY_ID) : std::nullopt; in getBatteryCapacity()
|
D | InputReader.cpp | 687 std::optional<int32_t> InputReader::getBatteryCapacity(int32_t deviceId) { in getBatteryCapacity() function in android::InputReader 692 return device->getBatteryCapacity(); in getBatteryCapacity()
|
D | EventHub.cpp | 1478 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/ |
D | BatteryUsageStats.java | 231 public double getBatteryCapacity() { in getBatteryCapacity() method in BatteryUsageStats 553 PowerCalculator.printPowerMah(pw, getBatteryCapacity()); in dump()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | PowerProfile.java | 754 public double getBatteryCapacity() { in getBatteryCapacity() method in PowerProfile
|
/frameworks/native/services/inputflinger/tests/ |
D | InputReader_test.cpp | 1009 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/ |
D | com_android_server_input_InputManagerService.cpp | 2077 std::optional<int32_t> ret = im->getInputManager()->getReader().getBatteryCapacity(deviceId); in nativeGetBatteryCapacity()
|