Home
last modified time | relevance | path

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

/frameworks/native/services/powermanager/
DPowerHalLoader.cpp38 sp<T> loadHal(bool& exists, sp<T>& hal, F& loadFn, const char* halName) { in loadHal() argument
45 hal = loadFn(); in loadHal()
110 static auto loadFn = []() { return V1_1::IPower::castFrom(loadHidlV1_0Locked()); }; in loadHidlV1_1() local
111 return loadHal<V1_1::IPower>(gHalExists, gHalHidlV1_1, loadFn, "HIDL v1.1"); in loadHidlV1_1()
117 static auto loadFn = []() { return V1_2::IPower::castFrom(loadHidlV1_0Locked()); }; in loadHidlV1_2() local
118 return loadHal<V1_2::IPower>(gHalExists, gHalHidlV1_2, loadFn, "HIDL v1.2"); in loadHidlV1_2()
124 static auto loadFn = []() { return V1_3::IPower::castFrom(loadHidlV1_0Locked()); }; in loadHidlV1_3() local
125 return loadHal<V1_3::IPower>(gHalExists, gHalHidlV1_3, loadFn, "HIDL v1.3"); in loadHidlV1_3()
130 static auto loadFn = []() { return V1_0::IPower::getService(); }; in loadHidlV1_0Locked() local
131 return loadHal<V1_0::IPower>(gHalExists, gHalHidlV1_0, loadFn, "HIDL v1.0"); in loadHidlV1_0Locked()