/frameworks/base/tests/Input/src/com/android/server/input/ |
D | BatteryControllerTests.kt | 314 `when`(native.getBatteryCapacity(DEVICE_ID)).thenReturn(100) in testRegisteringListenerNotifiesStateImmediately() 320 `when`(native.getBatteryCapacity(SECOND_DEVICE_ID)).thenReturn(78) in testRegisteringListenerNotifiesStateImmediately() 329 `when`(native.getBatteryCapacity(DEVICE_ID)).thenReturn(78) in testListenersNotifiedOnUEventNotification() 340 `when`(native.getBatteryCapacity(DEVICE_ID)).thenReturn(80) in testListenersNotifiedOnUEventNotification() 361 `when`(native.getBatteryCapacity(DEVICE_ID)).thenReturn(78) in testBatteryPresenceChanged() 388 `when`(native.getBatteryCapacity(DEVICE_ID)).thenReturn(78) in testStartPollingWhenListenerIsRegistered() 394 `when`(native.getBatteryCapacity(DEVICE_ID)).thenReturn(80) in testStartPollingWhenListenerIsRegistered() 419 `when`(native.getBatteryCapacity(DEVICE_ID)).thenReturn(78) in testNoPollingWhenTheDeviceIsNotInteractive() 425 `when`(native.getBatteryCapacity(DEVICE_ID)).thenReturn(80) in testNoPollingWhenTheDeviceIsNotInteractive() 437 `when`(native.getBatteryCapacity(DEVICE_ID)).thenReturn(90) in testNoPollingWhenTheDeviceIsNotInteractive() [all …]
|
/frameworks/native/services/inputflinger/reader/controller/ |
D | PeripheralControllerInterface.h | 38 virtual std::optional<int32_t> getBatteryCapacity(int32_t batteryId) = 0;
|
D | PeripheralController.cpp | 355 dump += getBatteryCapacity(batteryId).has_value() in dump() 356 ? StringPrintf(INDENT3 "Capacity: %d\n", getBatteryCapacity(batteryId).value()) in dump() 544 std::optional<int32_t> PeripheralController::getBatteryCapacity(int batteryId) { in getBatteryCapacity() function in android::PeripheralController 545 return getDeviceContext().getBatteryCapacity(batteryId); in getBatteryCapacity()
|
D | PeripheralController.h | 40 std::optional<int32_t> getBatteryCapacity(int32_t batteryId) override;
|
/frameworks/native/services/inputflinger/tests/fuzzers/ |
D | InputReaderFuzzer.cpp | 100 std::optional<int32_t> getBatteryCapacity(int32_t deviceId) { in getBatteryCapacity() function in android::FuzzInputReader 101 return reader->getBatteryCapacity(deviceId); in getBatteryCapacity() 250 [&]() -> void { reader->getBatteryCapacity(fdp->ConsumeIntegral<int32_t>()); }, in LLVMFuzzerTestOneInput()
|
D | MapperHelpers.h | 242 std::optional<int32_t> getBatteryCapacity(int32_t deviceId, int32_t batteryId) const override { in getBatteryCapacity() function
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | NativeInputManagerService.java | 157 int getBatteryCapacity(int deviceId); in getBatteryCapacity() method 428 public native int getBatteryCapacity(int deviceId); in getBatteryCapacity() method in NativeInputManagerService.NativeImpl
|
D | BatteryController.java | 530 isPresent ? mNative.getBatteryCapacity(deviceId) / 100.f : Float.NaN); in queryBatteryStateFromNative()
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | InputMapper.h | 103 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/native/services/inputflinger/reader/include/ |
D | InputDevice.h | 426 inline std::optional<int32_t> getBatteryCapacity(int32_t batteryId) { in getBatteryCapacity() function 427 return mEventHub->getBatteryCapacity(mId, batteryId); in getBatteryCapacity()
|
D | InputReader.h | 97 std::optional<int32_t> getBatteryCapacity(int32_t deviceId) override;
|
D | EventHub.h | 376 virtual std::optional<int32_t> getBatteryCapacity(int32_t deviceId, 599 std::optional<int32_t> getBatteryCapacity(int32_t deviceId,
|
/frameworks/native/services/inputflinger/tests/ |
D | InterfaceMocks.h | 167 MOCK_METHOD(std::optional<int32_t>, getBatteryCapacity, (int32_t deviceId, int32_t batteryId),
|
D | FakeEventHub.h | 209 std::optional<int32_t> getBatteryCapacity(int32_t, int32_t) const override;
|
D | FakeEventHub.cpp | 565 std::optional<int32_t> FakeEventHub::getBatteryCapacity(int32_t, int32_t) const { in getBatteryCapacity() function in android::FakeEventHub
|
D | InputReader_test.cpp | 1306 std::optional<int32_t> getBatteryCapacity(int32_t batteryId) override { in getBatteryCapacity() function in android::FakePeripheralController 1307 return getDeviceContext().getBatteryCapacity(batteryId); in getBatteryCapacity() 1351 ASSERT_EQ(controller.getBatteryCapacity(FakeEventHub::DEFAULT_BATTERY), in TEST_F() 1353 ASSERT_EQ(mReader->getBatteryCapacity(deviceId), FakeEventHub::BATTERY_CAPACITY); in TEST_F() 10252 ASSERT_TRUE(controller.getBatteryCapacity(FakeEventHub::DEFAULT_BATTERY)); in TEST_F() 10253 ASSERT_EQ(controller.getBatteryCapacity(FakeEventHub::DEFAULT_BATTERY).value_or(-1), in TEST_F()
|
/frameworks/native/services/inputflinger/include/ |
D | InputReaderBase.h | 356 virtual std::optional<int32_t> getBatteryCapacity(int32_t deviceId) = 0;
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | PowerProfileTest.java | 87 assertEquals(3000.0, mProfile.getBatteryCapacity()); in testPowerProfile() 168 assertEquals(3000.0, mProfile.getBatteryCapacity()); in testPowerProfile_legacyCpuConfig()
|
/frameworks/base/core/java/android/os/ |
D | BatteryUsageStats.java | 240 public double getBatteryCapacity() { in getBatteryCapacity() method in BatteryUsageStats 581 pw.print(BatteryStats.formatCharge(getBatteryCapacity())); in dump()
|
D | BatteryStats.java | 4704 formatCharge(stats.getBatteryCapacity()), in dumpCheckinLocked() 8817 stats.getBatteryCapacity()); in dumpProtoSystemLocked()
|
/frameworks/native/services/inputflinger/reader/ |
D | InputReader.cpp | 738 std::optional<int32_t> InputReader::getBatteryCapacity(int32_t deviceId) { in getBatteryCapacity() function in android::InputReader 758 return mEventHub->getBatteryCapacity(*eventHubId, batteryIds.front()); in getBatteryCapacity()
|
D | EventHub.cpp | 1771 std::optional<int32_t> EventHub::getBatteryCapacity(int32_t deviceId, int32_t batteryId) const { in getBatteryCapacity() function in android::EventHub
|
/frameworks/base/core/java/com/android/internal/os/ |
D | PowerProfile.java | 1010 public double getBatteryCapacity() { in getBatteryCapacity() method in PowerProfile
|
/frameworks/base/services/core/jni/ |
D | com_android_server_input_InputManagerService.cpp | 2391 std::optional<int32_t> ret = im->getInputManager()->getReader().getBatteryCapacity(deviceId); in nativeGetBatteryCapacity()
|