Home
last modified time | relevance | path

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

123

/frameworks/native/services/vibratorservice/benchmarks/
DVibratorHalControllerBenchmarks.cpp66 checkHalResult(halCall<void>(mController, [](auto hal) { return hal->off(); }), state); in turnVibratorOff()
110 auto ret = halCall<void>(mController, [](auto hal) { return hal->ping(); }); in __anon417cac240202()
129 halCall<void>(mController, [&](auto hal) { return hal->on(duration, callback); }); in __anon417cac240402()
144 halCall<void>(mController, [&](auto hal) { return hal->on(duration, callback); }); in __anon417cac240602()
167 halCall<void>(controller, [&](auto hal) { return hal->on(duration, callback); }); in __anon417cac240802()
173 halCall<void>(controller, [&](auto hal) { return hal->setAmplitude(amplitude); }); in __anon417cac240902()
191 halCall<void>(mController, [&](auto hal) { return hal->on(duration, callback); }); in __anon417cac240b02()
196 halCall<void>(mController, [&](auto hal) { return hal->setAmplitude(amplitude); }); in __anon417cac240c02()
212 halCall<void>(controller, [](auto hal) { return hal->setExternalControl(true); }); in __anon417cac240d02()
216 [](auto hal) { return hal->setExternalControl(false); }); in __anon417cac240e02()
[all …]
/frameworks/native/services/vibratorservice/
DVibratorManagerHalController.cpp32 sp<Aidl::IVibratorManager> hal = waitForVintfService<Aidl::IVibratorManager>(); in connectManagerHal() local
58 std::shared_ptr<ManagerHalWrapper> hal = nullptr; in apply() local
91 hal_fn<void> pingFn = [](std::shared_ptr<ManagerHalWrapper> hal) { return hal->ping(); }; in ping()
105 hal_fn<ManagerCapabilities> getCapabilitiesFn = [](std::shared_ptr<ManagerHalWrapper> hal) { in getCapabilities()
112 hal_fn<std::vector<int32_t>> getVibratorIdsFn = [](std::shared_ptr<ManagerHalWrapper> hal) { in getVibratorIds()
120 [&](std::shared_ptr<ManagerHalWrapper> hal) { return hal->getVibrator(id); }; in getVibrator()
125 hal_fn<void> prepareSyncedFn = [&](std::shared_ptr<ManagerHalWrapper> hal) { in prepareSynced()
133 hal_fn<void> triggerSyncedFn = [&](std::shared_ptr<ManagerHalWrapper> hal) { in triggerSynced()
140 hal_fn<void> cancelSyncedFn = [](std::shared_ptr<ManagerHalWrapper> hal) { in cancelSynced()
/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
DCommandGetCapabilities.cpp49 if (auto hal = getHal<aidl::IVibrator>()) { in doMain() local
DCommandGetPwleCompositionSizeMax.cpp51 if (auto hal = getHal<aidl::IVibrator>()) { in doMain() local
DCommandGetCompositionDelayMax.cpp51 if (auto hal = getHal<aidl::IVibrator>()) { in doMain() local
DCommandGetFrequencyMinimum.cpp51 if (auto hal = getHal<aidl::IVibrator>()) { in doMain() local
DCommandGetFrequencyResolution.cpp51 if (auto hal = getHal<aidl::IVibrator>()) { in doMain() local
DCommandGetResonantFrequency.cpp51 if (auto hal = getHal<aidl::IVibrator>()) { in doMain() local
DCommandGetCompositionSizeMax.cpp51 if (auto hal = getHal<aidl::IVibrator>()) { in doMain() local
DCommandGetQFactor.cpp49 if (auto hal = getHal<aidl::IVibrator>()) { in doMain() local
DCommandGetPwlePrimitiveDurationMax.cpp51 if (auto hal = getHal<aidl::IVibrator>()) { in doMain() local
DCommandGetSupportedPrimitives.cpp51 if (auto hal = getHal<aidl::IVibrator>()) { in doMain() local
DCommandGetSupportedEffects.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/test/
DVibratorHalControllerTest.cpp43 static const auto ON_FN = [](vibrator::HalWrapper* hal) { return hal->on(10ms, []() {}); }; in __anon0b22b6e80102()
44 static const auto OFF_FN = [](vibrator::HalWrapper* hal) { return hal->off(); }; in __anon0b22b6e80302()
45 static const auto PING_FN = [](vibrator::HalWrapper* hal) { return hal->ping(); }; in __anon0b22b6e80402()
234 auto onFn = [&](vibrator::HalWrapper* hal) { return hal->on(10ms, callback); }; in TEST_F()
/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/native/services/powermanager/benchmarks/
DPowerHalAidlBenchmarks.cpp66 sp<IPower> hal = waitForVintfService<IPower>(); in runBenchmark() local
103 sp<IPowerHintSession> hal; in runSessionBenchmark() local
159 sp<IPower> hal = waitForVintfService<IPower>(); in BM_PowerHalAidlBenchmarks_createHintSession() local
/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/base/services/voiceinteraction/java/com/android/server/soundtrigger_middleware/
DFakeHalFactory.java49 final FakeSoundTriggerHal hal = new FakeSoundTriggerHal(mInjection); in create() local

123