Home
last modified time | relevance | path

Searched refs:IPower (Results 1 – 19 of 19) sorted by relevance

/frameworks/native/services/powermanager/
DPowerHalLoader.cpp58 std::shared_ptr<aidl::android::hardware::power::IPower> PowerHalLoader::gHalAidl = nullptr;
59 sp<V1_0::IPower> PowerHalLoader::gHalHidlV1_0 = nullptr;
60 sp<V1_1::IPower> PowerHalLoader::gHalHidlV1_1 = nullptr;
61 sp<V1_2::IPower> PowerHalLoader::gHalHidlV1_2 = nullptr;
62 sp<V1_3::IPower> PowerHalLoader::gHalHidlV1_3 = nullptr;
74 std::shared_ptr<aidl::android::hardware::power::IPower> PowerHalLoader::loadAidl() { in loadAidl()
84 std::string(aidl::android::hardware::power::IPower::descriptor) + "/default"; in loadAidl()
89 gHalAidl = aidl::android::hardware::power::IPower::fromBinder( in loadAidl()
102 sp<V1_0::IPower> PowerHalLoader::loadHidlV1_0() { in loadHidlV1_0()
107 sp<V1_1::IPower> PowerHalLoader::loadHidlV1_1() { in loadHidlV1_1()
[all …]
DPowerHalController.cpp36 if (std::shared_ptr<aidl::android::hardware::power::IPower> halAidl = in connect()
41 if (sp<V1_0::IPower> halHidlV1_0 = PowerHalLoader::loadHidlV1_0()) { in connect()
42 if (sp<V1_3::IPower> halHidlV1_3 = PowerHalLoader::loadHidlV1_3()) { in connect()
45 if (sp<V1_2::IPower> halHidlV1_2 = PowerHalLoader::loadHidlV1_2()) { in connect()
48 if (sp<V1_1::IPower> halHidlV1_1 = PowerHalLoader::loadHidlV1_1()) { in connect()
DPowerHalWrapper.cpp132 auto handle = static_cast<V1_1::IPower*>(mHandleV1_0.get()); in sendPowerHint()
140 auto handle = static_cast<V1_2::IPower*>(mHandleV1_0.get()); in sendPowerHint()
182 auto handle = static_cast<V1_3::IPower*>(mHandleV1_0.get()); in sendPowerHint()
/frameworks/native/include/powermanager/
DPowerHalLoader.h34 static std::shared_ptr<aidl::android::hardware::power::IPower> loadAidl();
35 static sp<hardware::power::V1_0::IPower> loadHidlV1_0();
36 static sp<hardware::power::V1_1::IPower> loadHidlV1_1();
37 static sp<hardware::power::V1_2::IPower> loadHidlV1_2();
38 static sp<hardware::power::V1_3::IPower> loadHidlV1_3();
44 static std::shared_ptr<aidl::android::hardware::power::IPower> gHalAidl GUARDED_BY(gHalMutex);
45 static sp<hardware::power::V1_0::IPower> gHalHidlV1_0 GUARDED_BY(gHalMutex);
46 static sp<hardware::power::V1_1::IPower> gHalHidlV1_1 GUARDED_BY(gHalMutex);
47 static sp<hardware::power::V1_2::IPower> gHalHidlV1_2 GUARDED_BY(gHalMutex);
48 static sp<hardware::power::V1_3::IPower> gHalHidlV1_3 GUARDED_BY(gHalMutex);
[all …]
DPowerHalWrapper.h96 explicit HidlHalWrapperV1_0(sp<hardware::power::V1_0::IPower> handleV1_0) in HidlHalWrapperV1_0()
105 const sp<hardware::power::V1_0::IPower> mHandleV1_0;
117 explicit HidlHalWrapperV1_1(sp<hardware::power::V1_1::IPower> handleV1_1) in HidlHalWrapperV1_1()
131 explicit HidlHalWrapperV1_2(sp<hardware::power::V1_2::IPower> handleV1_2) in HidlHalWrapperV1_2()
143 explicit HidlHalWrapperV1_3(sp<hardware::power::V1_3::IPower> handleV1_3) in HidlHalWrapperV1_3()
154 explicit AidlHalWrapper(std::shared_ptr<aidl::android::hardware::power::IPower> handle) in AidlHalWrapper()
181 std::shared_ptr<aidl::android::hardware::power::IPower> mHandle;
/frameworks/native/services/powermanager/benchmarks/
DPowerHalAidlBenchmarks.cpp32 using aidl::android::hardware::power::IPower;
67 static void runBenchmark(benchmark::State& state, microseconds delay, R (IPower::*fn)(Args0...), in runBenchmark()
69 std::shared_ptr<IPower> hal = PowerHalLoader::loadAidl(); in runBenchmark()
98 std::shared_ptr<IPower> hal = PowerHalLoader::loadAidl(); in runSessionBenchmark()
142 runBenchmark(state, 0us, &IPower::isBoostSupported, boost, &isSupported); in BM_PowerHalAidlBenchmarks_isBoostSupported()
148 runBenchmark(state, 0us, &IPower::isModeSupported, mode, &isSupported); in BM_PowerHalAidlBenchmarks_isModeSupported()
153 runBenchmark(state, ONEWAY_API_DELAY, &IPower::setBoost, boost, 1); in BM_PowerHalAidlBenchmarks_setBoost()
158 runBenchmark(state, ONEWAY_API_DELAY, &IPower::setMode, mode, false); in BM_PowerHalAidlBenchmarks_setMode()
167 std::shared_ptr<IPower> hal = PowerHalLoader::loadAidl(); in BM_PowerHalAidlBenchmarks_createHintSession()
194 runBenchmark(state, 0us, &IPower::getHintSessionPreferredRate, &rate); in BM_PowerHalAidlBenchmarks_getHintSessionPreferredRate()
DPowerHalHidlBenchmarks.cpp33 using IPower1_0 = android::hardware::power::V1_0::IPower;
34 using IPower1_1 = android::hardware::power::V1_1::IPower;
/frameworks/native/services/powermanager/tests/
DPowerHalLoaderTest.cpp26 using IPowerV1_0 = android::hardware::power::V1_0::IPower;
27 using IPowerV1_1 = android::hardware::power::V1_1::IPower;
28 using IPowerV1_2 = android::hardware::power::V1_2::IPower;
29 using IPowerV1_3 = android::hardware::power::V1_3::IPower;
30 using IPowerAidl = aidl::android::hardware::power::IPower;
DPowerHalControllerTest.cpp32 using android::hardware::power::V1_0::IPower;
42 class MockIPowerV1_0 : public IPower {
53 TestPowerHalConnector(sp<IPower> powerHal) : mHal(std::move(powerHal)) {} in TestPowerHalConnector()
74 sp<IPower> mHal = nullptr;
DPowerHalWrapperHidlV1_0Test.cpp31 using android::hardware::power::V1_0::IPower;
41 class MockIPowerV1_0 : public IPower {
DPowerHalWrapperHidlV1_1Test.cpp33 using IPowerV1_1 = android::hardware::power::V1_1::IPower;
DPowerHalWrapperAidlTest.cpp33 using aidl::android::hardware::power::IPower;
47 class MockIPower : public IPower {
DPowerHalWrapperHidlV1_2Test.cpp35 using IPowerV1_2 = android::hardware::power::V1_2::IPower;
DPowerHalWrapperHidlV1_3Test.cpp36 using IPowerV1_3 = android::hardware::power::V1_3::IPower;
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/
DMockIPower.h31 using aidl::android::hardware::power::IPower;
41 class MockIPower : public IPower {
DMockPowerHalController.h30 class IPower; variable
/frameworks/base/services/core/java/com/android/server/power/hint/
DHintManagerService.java35 import android.hardware.power.IPower;
134 private final IPower mPowerHal;
194 IPower createIPower() { in createIPower()
195 return IPower.Stub.asInterface( in createIPower()
196 ServiceManager.waitForDeclaredService(IPower.DESCRIPTOR + "/default")); in createIPower()
/frameworks/base/libs/hwui/tests/scripts/
Dprep_generic.sh367 setprop ctl.interface_restart android.hardware.power@1.0::IPower/default || true
/frameworks/base/services/tests/servicestests/src/com/android/server/power/hint/
DHintManagerServiceTest.java52 import android.hardware.power.IPower;
143 private IPower mIPowerMock;
282 IPower createIPower() {
294 IPower createIPower() {