Home
last modified time | relevance | path

Searched defs:hal (Results 1 – 25 of 54) sorted by relevance

123

/frameworks/native/services/vibratorservice/
DVibratorManagerHalController.cpp32 sp<Aidl::IVibratorManager> hal = waitForVintfService<Aidl::IVibratorManager>(); in connectManagerHal() local
56 std::shared_ptr<ManagerHalWrapper> hal = nullptr; in apply() local
93 hal_fn<void> pingFn = [](std::shared_ptr<ManagerHalWrapper> hal) { return hal->ping(); }; in ping()
107 hal_fn<ManagerCapabilities> getCapabilitiesFn = [](std::shared_ptr<ManagerHalWrapper> hal) { in getCapabilities()
114 hal_fn<std::vector<int32_t>> getVibratorIdsFn = [](std::shared_ptr<ManagerHalWrapper> hal) { in getVibratorIds()
122 [&](std::shared_ptr<ManagerHalWrapper> hal) { return hal->getVibrator(id); }; in getVibrator()
127 hal_fn<void> prepareSyncedFn = [&](std::shared_ptr<ManagerHalWrapper> hal) { in prepareSynced()
135 hal_fn<void> triggerSyncedFn = [&](std::shared_ptr<ManagerHalWrapper> hal) { in triggerSynced()
142 hal_fn<void> cancelSyncedFn = [](std::shared_ptr<ManagerHalWrapper> hal) { in cancelSynced()
/frameworks/native/services/vibratorservice/benchmarks/
DVibratorHalControllerBenchmarks.cpp144 return mController.doWithRetry<void>([](auto hal) { return hal->off(); }, "off"); in turnVibratorOff()
148 auto disableExternalControlFn = [](auto hal) { return hal->setExternalControl(false); }; in disableExternalControl()
222 auto pingFn = [](auto hal) { return hal->ping(); }; in __anon599d61ff0502()
244 auto onFn = [&](auto hal) { return hal->on(duration, cb.completeFn()); }; in __anon599d61ff0602()
269 auto onFn = [&](auto hal) { return hal->on(duration, cb.completeFn()); }; in __anon599d61ff0702()
273 auto offFn = [&](auto hal) { return hal->off(); }; in __anon599d61ff0802()
295 auto setAmplitudeFn = [&](auto hal) { return hal->setAmplitude(amplitude); }; in __anon599d61ff0902()
297 auto onFn = [&](auto hal) { return hal->on(duration, [&]() {}); }; in __anon599d61ff0a02()
314 auto enableExternalControlFn = [](auto hal) { return hal->setExternalControl(true); }; in __anon599d61ff0c02()
339 auto setAmplitudeFn = [&](auto hal) { return hal->setAmplitude(amplitude); }; in __anon599d61ff0d02()
[all …]
/frameworks/native/cmds/idlcli/vibrator/
DCommandPerform.cpp115 if (auto hal = getHal<aidl::IVibrator>()) { in doMain() local
141 if (auto hal = getHal<V1_3::IVibrator>()) { in doMain() local
145 } else if (auto hal = getHal<V1_2::IVibrator>()) { in doMain() local
149 } else if (auto hal = getHal<V1_1::IVibrator>()) { in doMain() local
153 } else if (auto hal = getHal<V1_0::IVibrator>()) { in doMain() local
DCommandOff.cpp48 if (auto hal = getHal<aidl::IVibrator>()) { in doMain() local
52 } else if (auto hal = getHal<V1_0::IVibrator>()) { in doMain() local
DCommandSetAmplitude.cpp56 if (auto hal = getHal<aidl::IVibrator>()) { in doMain() local
61 } else if (auto hal = getHal<V1_0::IVibrator>()) { in doMain() local
DCommandSetExternalControl.cpp54 if (auto hal = getHal<aidl::IVibrator>()) { in doMain() local
58 } else if (auto hal = getHal<V1_3::IVibrator>()) { in doMain() local
DCommandOn.cpp74 if (auto hal = getHal<aidl::IVibrator>()) { in doMain() local
89 } else if (auto hal = getHal<V1_0::IVibrator>()) { in doMain() local
DCommandGetCompositionDelayMax.cpp51 if (auto hal = getHal<aidl::IVibrator>()) { in doMain() local
DCommandGetCompositionSizeMax.cpp51 if (auto hal = getHal<aidl::IVibrator>()) { in doMain() local
DCommandGetCapabilities.cpp49 if (auto hal = getHal<aidl::IVibrator>()) { in doMain() local
DCommandGetResonantFrequency.cpp51 if (auto hal = getHal<aidl::IVibrator>()) { in doMain() local
DCommandGetFrequencyMinimum.cpp51 if (auto hal = getHal<aidl::IVibrator>()) { in doMain() local
DCommandGetQFactor.cpp49 if (auto hal = getHal<aidl::IVibrator>()) { in doMain() local
DCommandGetFrequencyResolution.cpp51 if (auto hal = getHal<aidl::IVibrator>()) { in doMain() local
DCommandGetPwlePrimitiveDurationMax.cpp51 if (auto hal = getHal<aidl::IVibrator>()) { in doMain() local
DCommandGetPwleCompositionSizeMax.cpp51 if (auto hal = getHal<aidl::IVibrator>()) { in doMain() local
/frameworks/native/cmds/idlcli/
Dvibrator.h86 auto hal = getService<I>(name.empty() ? "default" : name); in Create() local
96 HalWrapper(shared_ptr<I>&& hal) : mHal(std::move(hal)) {} in HalWrapper()
110 auto hal = getHal<I>(); in halCall() local
/frameworks/native/services/vibratorservice/include/vibratorservice/
DVibratorHalController.h71 std::shared_ptr<HalWrapper> hal; in getInfo() local
121 std::shared_ptr<HalWrapper> hal; in doWithRetry() local
136 HalResult<T> doOnce(HalWrapper* hal, const HalFunction<HalResult<T>>& halFn, in doOnce()
/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/vibratorservice/test/
DVibratorHalControllerTest.cpp43 static const auto ON_FN = [](vibrator::HalWrapper* hal) { return hal->on(10ms, []() {}); }; in __anonb1938c430102()
44 static const auto OFF_FN = [](vibrator::HalWrapper* hal) { return hal->off(); }; in __anonb1938c430302()
45 static const auto PING_FN = [](vibrator::HalWrapper* hal) { return hal->ping(); }; in __anonb1938c430402()
260 auto onFn = [&](vibrator::HalWrapper* hal) { in TEST_F()
/frameworks/native/services/powermanager/benchmarks/
DPowerHalAidlBenchmarks.cpp69 std::shared_ptr<IPower> hal = PowerHalLoader::loadAidl(); in runBenchmark() local
98 std::shared_ptr<IPower> hal = PowerHalLoader::loadAidl(); in runSessionBenchmark() local
167 std::shared_ptr<IPower> hal = PowerHalLoader::loadAidl(); in BM_PowerHalAidlBenchmarks_createHintSession() local
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DMockHWComposer.h35 namespace hal = android::hardware::graphics::composer::hal; variable
DMockHWC2.h44 namespace hal = android::hardware::graphics::composer::hal; variable
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger_middleware/
DFakeHalFactory.java49 final FakeSoundTriggerHal hal = new FakeSoundTriggerHal(mInjection); in create() local
/frameworks/base/services/core/jni/tvinput/
DJTvInputHal.cpp389 JTvInputHal::NotifyHandler::NotifyHandler(JTvInputHal* hal, const TvInputEventWrapper& event) { in NotifyHandler()
411 JTvInputHal::NotifyTvMessageHandler::NotifyTvMessageHandler(JTvInputHal* hal, in NotifyTvMessageHandler()
446 JTvInputHal::TvInputCallbackWrapper::TvInputCallbackWrapper(JTvInputHal* hal) { in TvInputCallbackWrapper()
451 JTvInputHal::AidlTvInputCallback::AidlTvInputCallback(JTvInputHal* hal) { in AidlTvInputCallback()

123