Home
last modified time | relevance | path

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

/frameworks/native/services/powermanager/
DPowerHalController.cpp35 std::unique_ptr<HalWrapper> HalConnector::connect() { in connect()
72 std::shared_ptr<HalWrapper> PowerHalController::initHal() { in initHal()
116 std::shared_ptr<HalWrapper> handle = initHal(); in setBoost()
122 std::shared_ptr<HalWrapper> handle = initHal(); in setMode()
130 std::shared_ptr<HalWrapper> handle = initHal(); in createHintSession()
141 std::shared_ptr<HalWrapper> handle = initHal(); in createHintSessionWithConfig()
150 std::shared_ptr<HalWrapper> handle = initHal(); in getHintSessionPreferredRate()
158 std::shared_ptr<HalWrapper> handle = initHal(); in getSessionChannel()
165 std::shared_ptr<HalWrapper> handle = initHal(); in closeSessionChannel()
/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>)>;
71 std::shared_ptr<HalWrapper> hal; in getInfo()
106 std::shared_ptr<HalWrapper> mConnectedHal GUARDED_BY(mConnectedHalMutex);
121 std::shared_ptr<HalWrapper> hal; in doWithRetry()
136 HalResult<T> doOnce(HalWrapper* hal, const HalFunction<HalResult<T>>& halFn, in doOnce()
DVibratorHalWrapper.h333 friend class HalWrapper; variable
337 class HalWrapper {
339 explicit HalWrapper(std::shared_ptr<CallbackScheduler> scheduler) in HalWrapper() function
341 virtual ~HalWrapper() = default;
406 class AidlHalWrapper : public HalWrapper {
415 : HalWrapper(std::move(scheduler)), in HalWrapper() function
476 class HidlHalWrapper : public HalWrapper {
479 : HalWrapper(std::move(scheduler)), mHandle(std::move(handle)) {} in HidlHalWrapper()
DVibratorManagerHalWrapper.h137 std::shared_ptr<HalWrapper> connectToVibrator(int32_t vibratorId,
/frameworks/native/include/powermanager/
DPowerHalController.h40 virtual std::unique_ptr<HalWrapper> connect();
51 class PowerHalController : public HalWrapper {
82 std::shared_ptr<HalWrapper> mConnectedHal GUARDED_BY(mConnectedHalMutex) = nullptr;
83 const std::shared_ptr<HalWrapper> mDefaultHal = std::make_shared<EmptyHalWrapper>();
85 std::shared_ptr<HalWrapper> initHal();
DPowerHalWrapper.h48 class HalWrapper {
50 virtual ~HalWrapper() = default;
69 class EmptyHalWrapper : public HalWrapper {
/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.cpp59 Info HalWrapper::getInfo() { in getInfo()
99 HalResult<milliseconds> HalWrapper::performComposedEffect(const std::vector<CompositeEffect>&, in performComposedEffect()
105 HalResult<void> HalWrapper::performPwleEffect(const std::vector<PrimitivePwle>&, in performPwleEffect()
111 HalResult<Capabilities> HalWrapper::getCapabilities() { in getCapabilities()
119 HalResult<std::vector<milliseconds>> HalWrapper::getPrimitiveDurations() { in getPrimitiveDurations()
134 HalResult<std::vector<Effect>> HalWrapper::getSupportedEffectsInternal() { in getSupportedEffectsInternal()
139 HalResult<std::vector<Braking>> HalWrapper::getSupportedBrakingInternal() { in getSupportedBrakingInternal()
144 HalResult<std::vector<CompositePrimitive>> HalWrapper::getSupportedPrimitivesInternal() { in getSupportedPrimitivesInternal()
149 HalResult<std::vector<milliseconds>> HalWrapper::getPrimitiveDurationsInternal( in getPrimitiveDurationsInternal()
155 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 __anon4a8d81570102()
44 static const auto OFF_FN = [](vibrator::HalWrapper* hal) { return hal->off(); }; in __anon4a8d81570302()
45 static const auto PING_FN = [](vibrator::HalWrapper* hal) { return hal->ping(); }; in __anon4a8d81570402()
49 class MockHalWrapper : public vibrator::HalWrapper {
52 : HalWrapper(scheduler) {} in MockHalWrapper()
260 auto onFn = [&](vibrator::HalWrapper* hal) { 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 __anon430768090102()
DVibratorHalWrapperAidlTest.cpp111 std::unique_ptr<vibrator::HalWrapper> mWrapper = nullptr;
/frameworks/base/services/core/jni/
Dcom_android_server_vibrator_VibratorController.cpp223 auto pingFn = [](vibrator::HalWrapper* hal) { return hal->ping(); }; in vibratorIsAvailable()
235 auto onFn = [timeoutMs, &callback](vibrator::HalWrapper* hal) { in vibratorOn()
248 auto offFn = [](vibrator::HalWrapper* hal) { return hal->off(); }; in vibratorOff()
259 auto setAmplitudeFn = [amplitude](vibrator::HalWrapper* hal) { in vibratorSetAmplitude()
272 auto setExternalControlFn = [enabled](vibrator::HalWrapper* hal) { in vibratorSetExternalControl()
288 auto performEffectFn = [effectType, effectStrength, &callback](vibrator::HalWrapper* hal) { in vibratorPerformEffect()
309 auto performComposedEffectFn = [&effects, &callback](vibrator::HalWrapper* hal) { in vibratorPerformComposedEffect()
344 auto performPwleEffectFn = [&primitives, &callback](vibrator::HalWrapper* hal) { in vibratorPerformPwleEffect()
358 auto alwaysOnEnableFn = [id, effect, strength](vibrator::HalWrapper* hal) { in vibratorAlwaysOnEnable()
371 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_1Test.cpp61 std::unique_ptr<HalWrapper> mWrapper = nullptr;
DPowerHalWrapperHidlV1_0Test.cpp57 std::unique_ptr<HalWrapper> mWrapper = nullptr;
DPowerHalWrapperHidlV1_2Test.cpp66 std::unique_ptr<HalWrapper> mWrapper = nullptr;
DPowerHalWrapperHidlV1_3Test.cpp70 std::unique_ptr<HalWrapper> mWrapper = nullptr;
DPowerHalWrapperAidlTest.cpp81 std::unique_ptr<HalWrapper> mWrapper = nullptr;