Home
last modified time | relevance | path

Searched refs:Vibrator (Results 1 – 25 of 50) sorted by relevance

12

/hardware/interfaces/vibrator/1.3/example/
DVibrator.cpp32 Vibrator::Vibrator() { in Vibrator() function in android::hardware::vibrator::V1_3::implementation::Vibrator
46 Return<Status> Vibrator::on(uint32_t timeoutMs) { in on()
50 Return<Status> Vibrator::off() { in off()
54 Return<bool> Vibrator::supportsAmplitudeControl() { in supportsAmplitudeControl()
58 Return<Status> Vibrator::setAmplitude(uint8_t amplitude) { in setAmplitude()
67 Return<void> Vibrator::perform(V1_0::Effect effect, EffectStrength strength, perform_cb _hidl_cb) { in perform()
73 Return<void> Vibrator::perform_1_1(V1_1::Effect_1_1 effect, EffectStrength strength, in perform_1_1()
80 Return<void> Vibrator::perform_1_2(V1_2::Effect effect, EffectStrength strength, in perform_1_2()
87 Return<bool> Vibrator::supportsExternalControl() { in supportsExternalControl()
91 Return<Status> Vibrator::setExternalControl(bool enabled) { in setExternalControl()
[all …]
Dservice.cpp26 using android::hardware::vibrator::V1_3::implementation::Vibrator;
30 sp<IVibrator> vibrator = new Vibrator(); in registerVibratorService()
DVibrator.h31 class Vibrator : public IVibrator {
33 Vibrator();
/hardware/google/pixel/vibrator/cs40l25/tests/
Dtest-hwapi.cpp122 std::unique_ptr<Vibrator::HwApi> mHwApi;
123 std::unique_ptr<Vibrator::HwApi> mNoApi;
142 using HasTest = HwApiTypedTest<bool(Vibrator::HwApi &)>;
161 HasTest::MakeParam("device/cp_dig_scale", &Vibrator::HwApi::hasEffectScale),
162 HasTest::MakeParam("device/asp_enable", &Vibrator::HwApi::hasAspEnable),
163 HasTest::MakeParam("device/pwle", &Vibrator::HwApi::hasPwle),
167 using GetBoolTest = HwApiTypedTest<bool(Vibrator::HwApi &, bool *)>;
206 &Vibrator::HwApi::getAspEnable),
210 using GetUint32Test = HwApiTypedTest<bool(Vibrator::HwApi &, uint32_t *)>;
236 &Vibrator::HwApi::getEffectCount),
[all …]
Dmocks.h23 class MockApi : public ::aidl::android::hardware::vibrator::Vibrator::HwApi {
58 class MockCal : public ::aidl::android::hardware::vibrator::Vibrator::HwCal {
78 class MockStats : public ::aidl::android::hardware::vibrator::Vibrator::StatsApi {
/hardware/interfaces/vibrator/1.0/default/
DVibrator.cpp34 Vibrator::Vibrator(vibrator_device_t *device) : mDevice(device) {} in Vibrator() function in android::hardware::vibrator::V1_0::implementation::Vibrator
37 Return<Status> Vibrator::on(uint32_t timeout_ms) { in on()
46 Return<Status> Vibrator::off() { in off()
55 Return<bool> Vibrator::supportsAmplitudeControl() { in supportsAmplitudeControl()
59 Return<Status> Vibrator::setAmplitude(uint8_t) { in setAmplitude()
63 Return<void> Vibrator::perform(Effect, EffectStrength, perform_cb _hidl_cb) { in perform()
83 return new Vibrator(vib_device); in HIDL_FETCH_IVibrator()
DVibrator.h29 struct Vibrator : public IVibrator { struct
30 Vibrator(vibrator_device_t *device);
/hardware/google/pixel/vibrator/drv2624/
DVibrator.cpp65 Vibrator::Vibrator(std::unique_ptr<HwApi> hwapi, std::unique_ptr<HwCal> hwcal) in Vibrator() function in aidl::android::hardware::vibrator::Vibrator
114 ndk::ScopedAStatus Vibrator::getCapabilities(int32_t *_aidl_return) { in getCapabilities()
124 ndk::ScopedAStatus Vibrator::on(uint32_t timeoutMs, const char mode[], in on()
155 ndk::ScopedAStatus Vibrator::on(int32_t timeoutMs, in on()
164 ndk::ScopedAStatus Vibrator::off() { in off()
173 ndk::ScopedAStatus Vibrator::setAmplitude(float amplitude) { in setAmplitude()
189 ndk::ScopedAStatus Vibrator::setExternalControl(bool enabled) { in setExternalControl()
195 binder_status_t Vibrator::dump(int fd, const char **args, uint32_t numArgs) { in dump()
234 ndk::ScopedAStatus Vibrator::getSupportedEffects(std::vector<Effect> *_aidl_return) { in getSupportedEffects()
240 ndk::ScopedAStatus Vibrator::perform(Effect effect, EffectStrength strength, in perform()
[all …]
Dservice.cpp25 using aidl::android::hardware::vibrator::Vibrator;
35 std::shared_ptr<Vibrator> vib = in main()
36 ndk::SharedRefBase::make<Vibrator>(std::move(hwapi), std::make_unique<HwCal>()); in main()
38 const std::string instance = std::string() + Vibrator::descriptor + "/default"; in main()
DAndroid.bp24 "-DLOG_TAG=\"Vibrator\"",
48 srcs: ["Vibrator.cpp"],
/hardware/interfaces/vibrator/aidl/default/
DVibrator.cpp42 ndk::ScopedAStatus Vibrator::getCapabilities(int32_t* _aidl_return) { in getCapabilities()
53 ndk::ScopedAStatus Vibrator::off() { in off()
58 ndk::ScopedAStatus Vibrator::on(int32_t timeoutMs, in on()
77 ndk::ScopedAStatus Vibrator::perform(Effect effect, EffectStrength strength, in perform()
105 ndk::ScopedAStatus Vibrator::getSupportedEffects(std::vector<Effect>* _aidl_return) { in getSupportedEffects()
110 ndk::ScopedAStatus Vibrator::setAmplitude(float amplitude) { in setAmplitude()
118 ndk::ScopedAStatus Vibrator::setExternalControl(bool enabled) { in setExternalControl()
123 ndk::ScopedAStatus Vibrator::getCompositionDelayMax(int32_t* maxDelayMs) { in getCompositionDelayMax()
128 ndk::ScopedAStatus Vibrator::getCompositionSizeMax(int32_t* maxSize) { in getCompositionSizeMax()
133 ndk::ScopedAStatus Vibrator::getSupportedPrimitives(std::vector<CompositePrimitive>* supported) { in getSupportedPrimitives()
[all …]
Dmain.cpp24 using aidl::android::hardware::vibrator::Vibrator;
31 auto vib = ndk::SharedRefBase::make<Vibrator>(); in main()
33 vib->asBinder().get(), Vibrator::makeServiceName("default").c_str()); in main()
37 auto managedVib = ndk::SharedRefBase::make<Vibrator>(); in main()
Dfuzzer.cpp21 using aidl::android::hardware::vibrator::Vibrator;
27 auto managedVib = SharedRefBase::make<Vibrator>(); in LLVMFuzzerTestOneInput()
/hardware/google/pixel/vibrator/drv2624/tests/
Dtest-hwapi.cpp134 std::unique_ptr<Vibrator::HwApi> mHwApi;
135 std::unique_ptr<Vibrator::HwApi> mNoApi;
194 using HasTest = HwApiTypedTest<bool(Vibrator::HwApi &)>;
213 &Vibrator::HwApi::hasRtpInput),
217 using SetBoolTest = HwApiTypedTest<bool(Vibrator::HwApi &, bool)>;
254 SetBoolTest::MakeParam("activate", &Vibrator::HwApi::setActivate),
255 SetBoolTest::MakeParam("state", &Vibrator::HwApi::setState),
257 &Vibrator::HwApi::setCtrlLoop),
261 using SetInt8Test = HwApiTypedTest<bool(Vibrator::HwApi &, int8_t)>;
290 &Vibrator::HwApi::setRtpInput),
[all …]
Dmocks.h21 class MockApi : public ::aidl::android::hardware::vibrator::Vibrator::HwApi {
44 class MockCal : public ::aidl::android::hardware::vibrator::Vibrator::HwCal {
/hardware/google/pixel/vibrator/cs40l26/tests/
Dtest-hwapi.cpp111 std::unique_ptr<Vibrator::HwApi> mHwApi;
112 std::unique_ptr<Vibrator::HwApi> mNoApi;
131 using HasTest = HwApiTypedTest<bool(Vibrator::HwApi &)>;
150 &Vibrator::HwApi::hasOwtFreeSpace),
154 using GetUint32Test = HwApiTypedTest<bool(Vibrator::HwApi &, uint32_t *)>;
180 &Vibrator::HwApi::getEffectCount),
182 &Vibrator::HwApi::getOwtFreeSpace),
186 using SetBoolTest = HwApiTypedTest<bool(Vibrator::HwApi &, bool)>;
219 &Vibrator::HwApi::setF0CompEnable),
221 &Vibrator::HwApi::setRedcCompEnable),
[all …]
Dmocks.h23 class MockApi : public ::aidl::android::hardware::vibrator::Vibrator::HwApi {
60 class MockCal : public ::aidl::android::hardware::vibrator::Vibrator::HwCal {
86 class MockStats : public ::aidl::android::hardware::vibrator::Vibrator::StatsApi {
/hardware/interfaces/tests/extension/vibrator/aidl/default/
Dservice.cpp25 using aidl::android::hardware::vibrator::Vibrator;
33 std::shared_ptr<Vibrator> vib = ndk::SharedRefBase::make<Vibrator>(); in main()
42 const std::string instance = std::string() + Vibrator::descriptor + "/default"; in main()
/hardware/google/pixel/vibrator/cs40l25/
DVibrator.cpp162 void Vibrator::createPwleMaxLevelLimitMap() { in createPwleMaxLevelLimitMap()
165 Vibrator::getCapabilities(&capabilities); in createPwleMaxLevelLimitMap()
212 Vibrator::Vibrator(std::unique_ptr<HwApi> hwapi, std::unique_ptr<HwCal> hwcal, in Vibrator() function in aidl::android::hardware::vibrator::Vibrator
305 ndk::ScopedAStatus Vibrator::getCapabilities(int32_t *_aidl_return) { in getCapabilities()
324 ndk::ScopedAStatus Vibrator::off() { in off()
339 ndk::ScopedAStatus Vibrator::on(int32_t timeoutMs, in on()
357 ndk::ScopedAStatus Vibrator::perform(Effect effect, EffectStrength strength, in perform()
370 ndk::ScopedAStatus Vibrator::getSupportedEffects(std::vector<Effect> *_aidl_return) { in getSupportedEffects()
377 ndk::ScopedAStatus Vibrator::setAmplitude(float amplitude) { in setAmplitude()
392 ndk::ScopedAStatus Vibrator::setExternalControl(bool enabled) { in setExternalControl()
[all …]
Dservice.cpp29 using ::aidl::android::hardware::vibrator::Vibrator;
40 auto svc = ndk::SharedRefBase::make<Vibrator>( in main()
DAndroid.bp24 "-DLOG_TAG=\"Vibrator\"",
64 srcs: ["Vibrator.cpp"],
/hardware/google/pixel/vibrator/cs40l26/
DVibrator.cpp174 Vibrator::Vibrator(std::unique_ptr<HwApi> hwapi, std::unique_ptr<HwCal> hwcal, in Vibrator() function in aidl::android::hardware::vibrator::Vibrator
314 ndk::ScopedAStatus Vibrator::getCapabilities(int32_t *_aidl_return) { in getCapabilities()
336 ndk::ScopedAStatus Vibrator::off() { in off()
387 ndk::ScopedAStatus Vibrator::on(int32_t timeoutMs, in on()
410 ndk::ScopedAStatus Vibrator::perform(Effect effect, EffectStrength strength, in perform()
420 ndk::ScopedAStatus Vibrator::getSupportedEffects(std::vector<Effect> *_aidl_return) { in getSupportedEffects()
427 ndk::ScopedAStatus Vibrator::setAmplitude(float amplitude) { in setAmplitude()
444 ndk::ScopedAStatus Vibrator::setExternalControl(bool enabled) { in setExternalControl()
471 ndk::ScopedAStatus Vibrator::getCompositionDelayMax(int32_t *maxDelayMs) { in getCompositionDelayMax()
477 ndk::ScopedAStatus Vibrator::getCompositionSizeMax(int32_t *maxSize) { in getCompositionSizeMax()
[all …]
Dservice.cpp27 using ::aidl::android::hardware::vibrator::Vibrator;
34 auto svc = ndk::SharedRefBase::make<Vibrator>( in main()
DAndroid.bp24 "-DLOG_TAG=\"Vibrator\"",
66 "Vibrator.cpp",
137 "Vibrator.cpp",
/hardware/google/pixel-sepolicy/vibrator/cs40l26/
Dhal_vibrator_default.te18 # Allow Vibrator HAL to communicate with daemon via socket
26 # Allow Vibrator HAL to communicate with stats service

12