Home
last modified time | relevance | path

Searched refs:PowerHint (Results 1 – 8 of 8) sorted by relevance

/frameworks/native/services/powermanager/tests/
DPowerHalWrapperHidlV1_1Test.cpp32 using android::hardware::power::V1_0::PowerHint;
45 MOCK_METHOD(hardware::Return<void>, powerHint, (PowerHint hint, int32_t data), (override));
49 MOCK_METHOD(hardware::Return<void>, powerHintAsync, (PowerHint hint, int32_t data), (override));
77 EXPECT_CALL(*mMockHal.get(), powerHintAsync(Eq(PowerHint::INTERACTION), Eq(1000))) in TEST_F()
85 EXPECT_CALL(*mMockHal.get(), powerHintAsync(Eq(PowerHint::INTERACTION), Eq(1000))) in TEST_F()
87 .WillRepeatedly([](PowerHint, int32_t) { in TEST_F() argument
111 EXPECT_CALL(*mMockHal.get(), powerHintAsync(Eq(PowerHint::LAUNCH), Eq(true))) in TEST_F()
113 EXPECT_CALL(*mMockHal.get(), powerHintAsync(Eq(PowerHint::LOW_POWER), Eq(false))) in TEST_F()
115 EXPECT_CALL(*mMockHal.get(), powerHintAsync(Eq(PowerHint::SUSTAINED_PERFORMANCE), Eq(true))) in TEST_F()
117 EXPECT_CALL(*mMockHal.get(), powerHintAsync(Eq(PowerHint::VR_MODE), Eq(false))) in TEST_F()
[all …]
DPowerHalWrapperHidlV1_0Test.cpp32 using android::hardware::power::V1_0::PowerHint;
44 MOCK_METHOD(hardware::Return<void>, powerHint, (PowerHint hint, int32_t data), (override));
72 EXPECT_CALL(*mMockHal.get(), powerHint(Eq(PowerHint::INTERACTION), Eq(1000))).Times(Exactly(1)); in TEST_F()
79 EXPECT_CALL(*mMockHal.get(), powerHint(Eq(PowerHint::INTERACTION), Eq(1000))) in TEST_F()
81 .WillRepeatedly([](PowerHint, int32_t) { in TEST_F() argument
105 EXPECT_CALL(*mMockHal.get(), powerHint(Eq(PowerHint::LAUNCH), Eq(true))).Times(Exactly(1)); in TEST_F()
106 EXPECT_CALL(*mMockHal.get(), powerHint(Eq(PowerHint::LOW_POWER), Eq(false))) in TEST_F()
108 EXPECT_CALL(*mMockHal.get(), powerHint(Eq(PowerHint::SUSTAINED_PERFORMANCE), Eq(true))) in TEST_F()
110 EXPECT_CALL(*mMockHal.get(), powerHint(Eq(PowerHint::VR_MODE), Eq(false))) in TEST_F()
133 EXPECT_CALL(*mMockHal.get(), powerHint(Eq(PowerHint::LAUNCH), Eq(1))) in TEST_F()
[all …]
DPowerHalControllerTest.cpp33 using android::hardware::power::V1_0::PowerHint;
45 MOCK_METHOD(hardware::Return<void>, powerHint, (PowerHint hint, int32_t data), (override));
156 EXPECT_CALL(*mMockHal.get(), powerHint(Eq(PowerHint::INTERACTION), Eq(100))) in TEST_F()
158 EXPECT_CALL(*mMockHal.get(), powerHint(Eq(PowerHint::LAUNCH), Eq(1))).Times(Exactly(1)); in TEST_F()
177 ON_CALL(*mMockHal.get(), powerHint(Eq(PowerHint::LAUNCH), _)) in TEST_F()
178 .WillByDefault([](PowerHint, int32_t) { in TEST_F() argument
245 ON_CALL(*mMockHal.get(), powerHint(Eq(PowerHint::LAUNCH), _)) in TEST_F()
246 .WillByDefault([](PowerHint, int32_t) { in TEST_F() argument
DPowerHalWrapperHidlV1_3Test.cpp32 using PowerHintV1_0 = android::hardware::power::V1_0::PowerHint;
33 using PowerHintV1_2 = android::hardware::power::V1_2::PowerHint;
34 using PowerHintV1_3 = android::hardware::power::V1_3::PowerHint;
DPowerHalWrapperHidlV1_2Test.cpp32 using PowerHintV1_0 = android::hardware::power::V1_0::PowerHint;
33 using PowerHintV1_2 = android::hardware::power::V1_2::PowerHint;
/frameworks/native/services/powermanager/benchmarks/
DPowerHalHidlBenchmarks.cpp31 using android::hardware::power::V1_0::PowerHint;
40 static constexpr int64_t FIRST_POWER_HINT = static_cast<int64_t>(PowerHint::VSYNC);
41 static constexpr int64_t LAST_POWER_HINT = static_cast<int64_t>(PowerHint::LAUNCH);
78 PowerHint powerHint = static_cast<PowerHint>(state.range(0)); in BM_PowerHalHidlBenchmarks_powerHint()
83 PowerHint powerHint = static_cast<PowerHint>(state.range(0)); in BM_PowerHalHidlBenchmarks_powerHintAsync()
/frameworks/native/services/powermanager/
DPowerHalWrapper.cpp84 return sendPowerHint(V1_3::PowerHint::INTERACTION, durationMs); in setBoost()
94 return sendPowerHint(V1_3::PowerHint::LAUNCH, data); in setMode()
96 return sendPowerHint(V1_3::PowerHint::LOW_POWER, data); in setMode()
98 return sendPowerHint(V1_3::PowerHint::SUSTAINED_PERFORMANCE, data); in setMode()
100 return sendPowerHint(V1_3::PowerHint::VR_MODE, data); in setMode()
110 HalResult<void> HidlHalWrapperV1_0::sendPowerHint(V1_3::PowerHint hintId, uint32_t data) { in sendPowerHint()
111 auto ret = mHandleV1_0->powerHint(static_cast<V1_0::PowerHint>(hintId), data); in sendPowerHint()
131 HalResult<void> HidlHalWrapperV1_1::sendPowerHint(V1_3::PowerHint hintId, uint32_t data) { in sendPowerHint()
133 auto ret = handle->powerHintAsync(static_cast<V1_0::PowerHint>(hintId), data); in sendPowerHint()
139 HalResult<void> HidlHalWrapperV1_2::sendPowerHint(V1_3::PowerHint hintId, uint32_t data) { in sendPowerHint()
[all …]
/frameworks/native/include/powermanager/
DPowerHalWrapper.h106 virtual HalResult<void> sendPowerHint(hardware::power::V1_3::PowerHint hintId, uint32_t data);
122 HalResult<void> sendPowerHint(hardware::power::V1_3::PowerHint hintId, uint32_t data) override;
136 HalResult<void> sendPowerHint(hardware::power::V1_3::PowerHint hintId, uint32_t data) override;
148 HalResult<void> sendPowerHint(hardware::power::V1_3::PowerHint hintId, uint32_t data) override;