Home
last modified time | relevance | path

Searched refs:PowerHintSessionWrapper (Results 1 – 14 of 14) sorted by relevance

/frameworks/native/services/powermanager/
DPowerHintSessionWrapper.cpp46 HalResult<void> PowerHintSessionWrapper::name args { \
51 PowerHintSessionWrapper::PowerHintSessionWrapper(std::shared_ptr<IPowerHintSession>&& session) in PowerHintSessionWrapper() function in android::power::PowerHintSessionWrapper
72 HalResult<SessionConfig> PowerHintSessionWrapper::getSessionConfig() { in getSessionConfig()
DPowerHalWrapper.cpp46 HalResult<std::shared_ptr<PowerHintSessionWrapper>> EmptyHalWrapper::createHintSession( in createHintSession()
50 return HalResult<std::shared_ptr<PowerHintSessionWrapper>>::unsupported(); in createHintSession()
53 HalResult<std::shared_ptr<PowerHintSessionWrapper>> EmptyHalWrapper::createHintSessionWithConfig( in createHintSessionWithConfig()
58 return HalResult<std::shared_ptr<PowerHintSessionWrapper>>::unsupported(); in createHintSessionWithConfig()
249 HalResult<std::shared_ptr<PowerHintSessionWrapper>> AidlHalWrapper::createHintSession( in createHintSession()
252 return HalResult<std::shared_ptr<PowerHintSessionWrapper>>:: in createHintSession()
254 std::make_shared<PowerHintSessionWrapper>(std::move(appSession))); in createHintSession()
257 HalResult<std::shared_ptr<PowerHintSessionWrapper>> AidlHalWrapper::createHintSessionWithConfig( in createHintSessionWithConfig()
261 return HalResult<std::shared_ptr<PowerHintSessionWrapper>>:: in createHintSessionWithConfig()
264 std::make_shared<PowerHintSessionWrapper>(std::move(appSession))); in createHintSessionWithConfig()
DPowerHalController.cpp128 HalResult<std::shared_ptr<PowerHintSessionWrapper>> PowerHalController::createHintSession( in createHintSession()
137 HalResult<std::shared_ptr<PowerHintSessionWrapper>> PowerHalController::createHintSessionWithConfig( in createHintSessionWithConfig()
DAndroid.bp20 "PowerHintSessionWrapper.cpp",
/frameworks/base/services/core/jni/
Dcom_android_server_hint_HintManagerService.cpp39 using android::power::PowerHintSessionWrapper;
54 static std::unordered_map<jlong, std::shared_ptr<PowerHintSessionWrapper>> gSessionMap
119 auto appSession = reinterpret_cast<PowerHintSessionWrapper*>(session_ptr); in pauseHintSession()
124 auto appSession = reinterpret_cast<PowerHintSessionWrapper*>(session_ptr); in resumeHintSession()
129 auto appSession = reinterpret_cast<PowerHintSessionWrapper*>(session_ptr); in closeHintSession()
136 auto appSession = reinterpret_cast<PowerHintSessionWrapper*>(session_ptr); in updateTargetWorkDuration()
142 auto appSession = reinterpret_cast<PowerHintSessionWrapper*>(session_ptr); in reportActualWorkDuration()
147 auto appSession = reinterpret_cast<PowerHintSessionWrapper*>(session_ptr); in sendHint()
152 auto appSession = reinterpret_cast<PowerHintSessionWrapper*>(session_ptr); in setThreads()
157 auto appSession = reinterpret_cast<PowerHintSessionWrapper*>(session_ptr); in setMode()
/frameworks/native/include/powermanager/
DPowerHintSessionWrapper.h32 class PowerHintSessionWrapper {
34 virtual ~PowerHintSessionWrapper() = default;
35 PowerHintSessionWrapper(
DPowerHalWrapper.h55 virtual HalResult<std::shared_ptr<PowerHintSessionWrapper>> createHintSession(
58 virtual HalResult<std::shared_ptr<PowerHintSessionWrapper>> createHintSessionWithConfig(
77 HalResult<std::shared_ptr<PowerHintSessionWrapper>> createHintSession(
80 HalResult<std::shared_ptr<PowerHintSessionWrapper>> createHintSessionWithConfig(
161 HalResult<std::shared_ptr<PowerHintSessionWrapper>> createHintSession(
164 HalResult<std::shared_ptr<PowerHintSessionWrapper>> createHintSessionWithConfig(
DPowerHalController.h64 virtual HalResult<std::shared_ptr<PowerHintSessionWrapper>> createHintSession(
67 virtual HalResult<std::shared_ptr<PowerHintSessionWrapper>> createHintSessionWithConfig(
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/
DMockPowerHalController.h47 MOCK_METHOD(HalResult<std::shared_ptr<android::power::PowerHintSessionWrapper>>,
50 MOCK_METHOD(HalResult<std::shared_ptr<android::power::PowerHintSessionWrapper>>,
DMockPowerHintSessionWrapper.cpp23 : power::PowerHintSessionWrapper(nullptr) {} in MockPowerHintSessionWrapper()
DMockPowerHintSessionWrapper.h39 class MockPowerHintSessionWrapper : public power::PowerHintSessionWrapper {
/frameworks/native/services/powermanager/tests/
DPowerHintSessionWrapperTest.cpp24 using android::power::PowerHintSessionWrapper;
62 std::unique_ptr<PowerHintSessionWrapper> mSession = nullptr;
71 mSession = std::make_unique<PowerHintSessionWrapper>(mMockSession); in SetUp()
/frameworks/native/services/surfaceflinger/tests/unittests/
DPowerAdvisorTest.cpp147 Return(HalResult<std::shared_ptr<PowerHintSessionWrapper>>:: in startPowerHintSession()
153 std::shared_ptr<PowerHintSessionWrapper>>::fromStatus(ndk::ScopedAStatus::ok(), in startPowerHintSession()
528 return HalResult<std::shared_ptr<PowerHintSessionWrapper>>:: in TEST_F()
567 .WillOnce(Return(HalResult<std::shared_ptr<PowerHintSessionWrapper>>:: in TEST_F()
574 .WillOnce(Return(HalResult<std::shared_ptr<PowerHintSessionWrapper>>:: in TEST_F()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DPowerAdvisor.h269 std::shared_ptr<power::PowerHintSessionWrapper> mHintSession GUARDED_BY(mHintSessionMutex) =