Lines Matching refs:IPower
58 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()
110 static auto loadFn = []() { return V1_1::IPower::castFrom(loadHidlV1_0Locked()); }; in loadHidlV1_1()
111 return loadHal<V1_1::IPower>(gHalExists, gHalHidlV1_1, loadFn, "HIDL v1.1"); in loadHidlV1_1()
114 sp<V1_2::IPower> PowerHalLoader::loadHidlV1_2() { in loadHidlV1_2()
117 static auto loadFn = []() { return V1_2::IPower::castFrom(loadHidlV1_0Locked()); }; in loadHidlV1_2()
118 return loadHal<V1_2::IPower>(gHalExists, gHalHidlV1_2, loadFn, "HIDL v1.2"); in loadHidlV1_2()
121 sp<V1_3::IPower> PowerHalLoader::loadHidlV1_3() { in loadHidlV1_3()
124 static auto loadFn = []() { return V1_3::IPower::castFrom(loadHidlV1_0Locked()); }; in loadHidlV1_3()
125 return loadHal<V1_3::IPower>(gHalExists, gHalHidlV1_3, loadFn, "HIDL v1.3"); in loadHidlV1_3()
128 sp<V1_0::IPower> PowerHalLoader::loadHidlV1_0Locked() { in loadHidlV1_0Locked()
130 static auto loadFn = []() { return V1_0::IPower::getService(); }; in loadHidlV1_0Locked()
131 return loadHal<V1_0::IPower>(gHalExists, gHalHidlV1_0, loadFn, "HIDL v1.0"); in loadHidlV1_0Locked()