Home
last modified time | relevance | path

Searched refs:PowerHalController (Results 1 – 10 of 10) sorted by relevance

/frameworks/native/services/powermanager/benchmarks/
DPowerHalControllerBenchmarks.cpp29 using android::power::PowerHalController;
44 static void runBenchmark(benchmark::State& state, HalResult<T> (PowerHalController::*fn)(Args0...), in runBenchmark()
47 PowerHalController controller; in runBenchmark()
57 HalResult<T> (PowerHalController::*fn)(Args0...), Args1&&... args1) { in runCachedBenchmark()
58 PowerHalController controller; in runCachedBenchmark()
76 PowerHalController controller; in BM_PowerHalControllerBenchmarks_init()
82 PowerHalController controller; in BM_PowerHalControllerBenchmarks_initCached()
93 runBenchmark(state, &PowerHalController::setBoost, boost, 0); in BM_PowerHalControllerBenchmarks_setBoost()
98 runCachedBenchmark(state, &PowerHalController::setBoost, boost, 0); in BM_PowerHalControllerBenchmarks_setBoostCached()
103 runBenchmark(state, &PowerHalController::setMode, mode, false); in BM_PowerHalControllerBenchmarks_setMode()
[all …]
/frameworks/native/services/powermanager/
DPowerHalController.cpp66 void PowerHalController::init() { in init()
72 std::shared_ptr<HalWrapper> PowerHalController::initHal() { in initHal()
103 HalResult<T> PowerHalController::processHalResult(HalResult<T>&& result, const char* fnName) { in processHalResult()
114 HalResult<void> PowerHalController::setBoost(aidl::android::hardware::power::Boost boost, in setBoost()
120 HalResult<void> PowerHalController::setMode(aidl::android::hardware::power::Mode mode, in setMode()
128 HalResult<std::shared_ptr<PowerHintSessionWrapper>> PowerHalController::createHintSession( in createHintSession()
137 HalResult<std::shared_ptr<PowerHintSessionWrapper>> PowerHalController::createHintSessionWithConfig( in createHintSessionWithConfig()
149 HalResult<int64_t> PowerHalController::getHintSessionPreferredRate() { in getHintSessionPreferredRate()
156 HalResult<aidl::android::hardware::power::ChannelConfig> PowerHalController::getSessionChannel( in getSessionChannel()
164 HalResult<void> PowerHalController::closeSessionChannel(int tgid, int uid) { in closeSessionChannel()
DAndroid.bp17 "PowerHalController.cpp",
/frameworks/native/include/powermanager/
DPowerHalController.h51 class PowerHalController : public HalWrapper {
53 PowerHalController() : PowerHalController(std::make_unique<HalConnector>()) {} in PowerHalController() function
54 explicit PowerHalController(std::unique_ptr<HalConnector> connector) in PowerHalController() function
56 virtual ~PowerHalController() = default;
/frameworks/native/services/powermanager/tests/
DPowerHalControllerTest.cpp100 mHalController = std::make_unique<PowerHalController>(std::move(halConnector)); in SetUp()
106 std::unique_ptr<PowerHalController> mHalController = nullptr;
129 PowerHalController halController(std::move(halConnector)); in TEST_F()
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/
DMockPowerHalController.h39 class MockPowerHalController : public power::PowerHalController {
/frameworks/native/services/surfaceflinger/DisplayHardware/
DPowerAdvisor.h156 std::unique_ptr<power::PowerHalController> mPowerHal;
261 power::PowerHalController& getPowerHal();
DPowerAdvisor.cpp86 : mPowerHal(std::make_unique<power::PowerHalController>()), mFlinger(flinger) { in PowerAdvisor()
756 power::PowerHalController& PowerAdvisor::getPowerHal() { in getPowerHal()
/frameworks/base/services/core/jni/
Dcom_android_server_power_PowerManagerService.cpp68 static power::PowerHalController gPowerHalController;
Dcom_android_server_hint_HintManagerService.cpp52 static power::PowerHalController gPowerHalController;