Home
last modified time | relevance | path

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

12

/frameworks/base/tests/Input/src/com/android/server/input/
DBatteryControllerTests.kt314 `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/
DPeripheralControllerInterface.h38 virtual std::optional<int32_t> getBatteryCapacity(int32_t batteryId) = 0;
DPeripheralController.cpp355 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()
DPeripheralController.h40 std::optional<int32_t> getBatteryCapacity(int32_t batteryId) override;
/frameworks/native/services/inputflinger/tests/fuzzers/
DInputReaderFuzzer.cpp100 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()
DMapperHelpers.h242 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/
DNativeInputManagerService.java157 int getBatteryCapacity(int deviceId); in getBatteryCapacity() method
428 public native int getBatteryCapacity(int deviceId); in getBatteryCapacity() method in NativeInputManagerService.NativeImpl
DBatteryController.java530 isPresent ? mNative.getBatteryCapacity(deviceId) / 100.f : Float.NaN); in queryBatteryStateFromNative()
/frameworks/native/services/inputflinger/reader/mapper/
DInputMapper.h103 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/native/services/inputflinger/reader/include/
DInputDevice.h426 inline std::optional<int32_t> getBatteryCapacity(int32_t batteryId) { in getBatteryCapacity() function
427 return mEventHub->getBatteryCapacity(mId, batteryId); in getBatteryCapacity()
DInputReader.h97 std::optional<int32_t> getBatteryCapacity(int32_t deviceId) override;
DEventHub.h376 virtual std::optional<int32_t> getBatteryCapacity(int32_t deviceId,
599 std::optional<int32_t> getBatteryCapacity(int32_t deviceId,
/frameworks/native/services/inputflinger/tests/
DInterfaceMocks.h167 MOCK_METHOD(std::optional<int32_t>, getBatteryCapacity, (int32_t deviceId, int32_t batteryId),
DFakeEventHub.h209 std::optional<int32_t> getBatteryCapacity(int32_t, int32_t) const override;
DFakeEventHub.cpp565 std::optional<int32_t> FakeEventHub::getBatteryCapacity(int32_t, int32_t) const { in getBatteryCapacity() function in android::FakeEventHub
DInputReader_test.cpp1306 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/
DInputReaderBase.h356 virtual std::optional<int32_t> getBatteryCapacity(int32_t deviceId) = 0;
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DPowerProfileTest.java87 assertEquals(3000.0, mProfile.getBatteryCapacity()); in testPowerProfile()
168 assertEquals(3000.0, mProfile.getBatteryCapacity()); in testPowerProfile_legacyCpuConfig()
/frameworks/base/core/java/android/os/
DBatteryUsageStats.java240 public double getBatteryCapacity() { in getBatteryCapacity() method in BatteryUsageStats
581 pw.print(BatteryStats.formatCharge(getBatteryCapacity())); in dump()
DBatteryStats.java4704 formatCharge(stats.getBatteryCapacity()), in dumpCheckinLocked()
8817 stats.getBatteryCapacity()); in dumpProtoSystemLocked()
/frameworks/native/services/inputflinger/reader/
DInputReader.cpp738 std::optional<int32_t> InputReader::getBatteryCapacity(int32_t deviceId) { in getBatteryCapacity() function in android::InputReader
758 return mEventHub->getBatteryCapacity(*eventHubId, batteryIds.front()); in getBatteryCapacity()
DEventHub.cpp1771 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/
DPowerProfile.java1010 public double getBatteryCapacity() { in getBatteryCapacity() method in PowerProfile
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputManagerService.cpp2391 std::optional<int32_t> ret = im->getInputManager()->getReader().getBatteryCapacity(deviceId); in nativeGetBatteryCapacity()

12