Home
last modified time | relevance | path

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

/frameworks/native/services/vibratorservice/include/vibratorservice/
DVibratorHalController.h30 std::shared_ptr<HalWrapper> connectHal(std::shared_ptr<CallbackScheduler> scheduler);
33 using HalFunction = std::function<T(HalWrapper*)>;
41 std::function<std::shared_ptr<HalWrapper>(std::shared_ptr<CallbackScheduler>)>;
67 return apply<Info>([](HalWrapper* hal) { return hal->getInfo(); }, sDefaultInfo, "getInfo"); in getInfo()
84 std::shared_ptr<HalWrapper> mConnectedHal GUARDED_BY(mConnectedHalMutex);
98 std::shared_ptr<HalWrapper> hal; in apply()
DVibratorHalWrapper.h255 friend class HalWrapper; variable
259 class HalWrapper {
261 explicit HalWrapper(std::shared_ptr<CallbackScheduler> scheduler) in HalWrapper() function
263 virtual ~HalWrapper() = default;
328 class AidlHalWrapper : public HalWrapper {
337 : HalWrapper(std::move(scheduler)), in HalWrapper() function
398 class HidlHalWrapper : public HalWrapper {
401 : HalWrapper(std::move(scheduler)), mHandle(std::move(handle)) {} in HidlHalWrapper()
DVibratorManagerHalWrapper.h137 std::shared_ptr<HalWrapper> connectToVibrator(int32_t vibratorId,
/frameworks/native/services/powermanager/
DPowerHalController.cpp35 std::unique_ptr<HalWrapper> HalConnector::connect() { in connect()
63 std::shared_ptr<HalWrapper> PowerHalController::initHal() { in initHal()
90 std::shared_ptr<HalWrapper> handle = initHal(); in setBoost()
96 std::shared_ptr<HalWrapper> handle = initHal(); in setMode()
103 std::shared_ptr<HalWrapper> handle = initHal(); in createHintSession()
109 std::shared_ptr<HalWrapper> handle = initHal(); in getHintSessionPreferredRate()
/frameworks/native/include/powermanager/
DPowerHalController.h39 virtual std::unique_ptr<HalWrapper> connect();
49 class PowerHalController : public HalWrapper {
71 std::shared_ptr<HalWrapper> mConnectedHal GUARDED_BY(mConnectedHalMutex) = nullptr;
72 const std::shared_ptr<HalWrapper> mDefaultHal = std::make_shared<EmptyHalWrapper>();
74 std::shared_ptr<HalWrapper> initHal();
DPowerHalWrapper.h116 class HalWrapper {
118 virtual ~HalWrapper() = default;
129 class EmptyHalWrapper : public HalWrapper {
143 class HidlHalWrapperV1_0 : public HalWrapper {
182 class AidlHalWrapper : public HalWrapper {
/frameworks/native/services/surfaceflinger/DisplayHardware/
DPowerAdvisor.cpp98 HalWrapper* const halWrapper = getPowerHal(); in setExpensiveRenderingExpected()
122 HalWrapper* const halWrapper = getPowerHal(); in notifyDisplayUpdateImminent()
139 class HidlPowerHalWrapper : public PowerAdvisor::HalWrapper {
145 static std::unique_ptr<HalWrapper> connect() { in connect()
185 class AidlPowerHalWrapper : public PowerAdvisor::HalWrapper {
202 static std::unique_ptr<HalWrapper> connect() { in connect()
241 PowerAdvisor::HalWrapper* PowerAdvisor::getPowerHal() { in getPowerHal()
242 static std::unique_ptr<HalWrapper> sHalWrapper = nullptr; in getPowerHal()
DPowerAdvisor.h51 class HalWrapper {
53 virtual ~HalWrapper() = default;
69 HalWrapper* getPowerHal() REQUIRES(mPowerHalMutex);
/frameworks/native/cmds/idlcli/
Dvibrator.h80 class HalWrapper {
82 static std::unique_ptr<HalWrapper> Create() { in Create()
87 return hal ? std::unique_ptr<HalWrapper>(new HalWrapper(std::move(hal))) : nullptr; in Create()
96 HalWrapper(shared_ptr<I>&& hal) : mHal(std::move(hal)) {} in HalWrapper() function
104 static auto sHalWrapper = HalWrapper<I>::Create(); in getHal()
/frameworks/native/services/vibratorservice/
DVibratorHalWrapper.cpp128 Info HalWrapper::getInfo() { in getInfo()
168 HalResult<milliseconds> HalWrapper::performComposedEffect(const std::vector<CompositeEffect>&, in performComposedEffect()
174 HalResult<void> HalWrapper::performPwleEffect(const std::vector<PrimitivePwle>&, in performPwleEffect()
180 HalResult<Capabilities> HalWrapper::getCapabilities() { in getCapabilities()
188 HalResult<std::vector<milliseconds>> HalWrapper::getPrimitiveDurations() { in getPrimitiveDurations()
203 HalResult<std::vector<Effect>> HalWrapper::getSupportedEffectsInternal() { in getSupportedEffectsInternal()
208 HalResult<std::vector<Braking>> HalWrapper::getSupportedBrakingInternal() { in getSupportedBrakingInternal()
213 HalResult<std::vector<CompositePrimitive>> HalWrapper::getSupportedPrimitivesInternal() { in getSupportedPrimitivesInternal()
218 HalResult<std::vector<milliseconds>> HalWrapper::getPrimitiveDurationsInternal( in getPrimitiveDurationsInternal()
224 HalResult<milliseconds> HalWrapper::getPrimitiveDelayMaxInternal() { in getPrimitiveDelayMaxInternal()
[all …]
DVibratorManagerHalWrapper.cpp33 auto pingFn = [](HalWrapper* hal) { return hal->ping(); }; in ping()
76 std::shared_ptr<HalWrapper> AidlManagerHalWrapper::connectToVibrator( in connectToVibrator()
DVibratorHalController.cpp49 std::shared_ptr<HalWrapper> connectHal(std::shared_ptr<CallbackScheduler> scheduler) { in connectHal()
/frameworks/native/services/vibratorservice/test/
DVibratorHalControllerTest.cpp43 static const auto ON_FN = [](vibrator::HalWrapper* hal) { return hal->on(10ms, []() {}); }; in __anon0a7ef88a0202()
44 static const auto OFF_FN = [](vibrator::HalWrapper* hal) { return hal->off(); }; in __anon0a7ef88a0302()
45 static const auto PING_FN = [](vibrator::HalWrapper* hal) { return hal->ping(); }; in __anon0a7ef88a0402()
49 class MockHalWrapper : public vibrator::HalWrapper {
52 : HalWrapper(scheduler) {} in MockHalWrapper()
234 auto onFn = [&](vibrator::HalWrapper* hal) { return hal->on(10ms, callback); }; in TEST_F()
DVibratorHalWrapperHidlV1_1Test.cpp69 std::unique_ptr<vibrator::HalWrapper> mWrapper = nullptr;
DVibratorHalWrapperHidlV1_2Test.cpp72 std::unique_ptr<vibrator::HalWrapper> mWrapper = nullptr;
DVibratorHalWrapperHidlV1_3Test.cpp79 std::unique_ptr<vibrator::HalWrapper> mWrapper = nullptr;
DVibratorHalWrapperHidlV1_0Test.cpp72 std::unique_ptr<vibrator::HalWrapper> mWrapper = nullptr;
DVibratorManagerHalWrapperAidlTest.cpp43 static const auto OFF_FN = [](vibrator::HalWrapper* hal) { return hal->off(); }; in __anon714a623c0102()
DVibratorHalWrapperAidlTest.cpp111 std::unique_ptr<vibrator::HalWrapper> mWrapper = nullptr;
/frameworks/base/services/core/jni/
Dcom_android_server_vibrator_VibratorController.cpp212 auto pingFn = [](vibrator::HalWrapper* hal) { return hal->ping(); }; in vibratorIsAvailable()
224 auto onFn = [timeoutMs, &callback](vibrator::HalWrapper* hal) { in vibratorOn()
237 auto offFn = [](vibrator::HalWrapper* hal) { return hal->off(); }; in vibratorOff()
247 auto setAmplitudeFn = [amplitude](vibrator::HalWrapper* hal) { in vibratorSetAmplitude()
260 auto setExternalControlFn = [enabled](vibrator::HalWrapper* hal) { in vibratorSetExternalControl()
276 auto performEffectFn = [effectType, effectStrength, &callback](vibrator::HalWrapper* hal) { in vibratorPerformEffect()
297 auto performComposedEffectFn = [&effects, &callback](vibrator::HalWrapper* hal) { in vibratorPerformComposedEffect()
332 auto performPwleEffectFn = [&primitives, &callback](vibrator::HalWrapper* hal) { in vibratorPerformPwleEffect()
346 auto alwaysOnEnableFn = [id, effect, strength](vibrator::HalWrapper* hal) { in vibratorAlwaysOnEnable()
359 auto alwaysOnDisableFn = [id](vibrator::HalWrapper* hal) { in vibratorAlwaysOnDisable()
/frameworks/native/services/powermanager/tests/
DPowerHalControllerTest.cpp56 virtual std::unique_ptr<HalWrapper> connect() override { in connect()
84 std::unique_ptr<HalWrapper> connect() override { in connect()
DPowerHalWrapperHidlV1_0Test.cpp57 std::unique_ptr<HalWrapper> mWrapper = nullptr;
DPowerHalWrapperHidlV1_1Test.cpp71 std::unique_ptr<HalWrapper> mWrapper = nullptr;
DPowerHalWrapperAidlTest.cpp67 std::unique_ptr<HalWrapper> mWrapper = nullptr;