/hardware/interfaces/vibrator/1.3/example/ |
D | Vibrator.cpp | 32 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 …]
|
D | service.cpp | 26 using android::hardware::vibrator::V1_3::implementation::Vibrator; 30 sp<IVibrator> vibrator = new Vibrator(); in registerVibratorService()
|
D | Vibrator.h | 31 class Vibrator : public IVibrator { 33 Vibrator();
|
D | Android.bp | 31 srcs: ["service.cpp", "Vibrator.cpp"],
|
/hardware/google/pixel/vibrator/cs40l25/tests/ |
D | test-hwapi.cpp | 121 std::unique_ptr<Vibrator::HwApi> mHwApi; 122 std::unique_ptr<Vibrator::HwApi> mNoApi; 141 using HasTest = HwApiTypedTest<bool(Vibrator::HwApi &)>; 160 HasTest::MakeParam("device/cp_dig_scale", &Vibrator::HwApi::hasEffectScale), 161 HasTest::MakeParam("device/asp_enable", &Vibrator::HwApi::hasAspEnable), 162 HasTest::MakeParam("device/pwle", &Vibrator::HwApi::hasPwle), 166 using GetBoolTest = HwApiTypedTest<bool(Vibrator::HwApi &, bool *)>; 205 &Vibrator::HwApi::getAspEnable), 209 using GetUint32Test = HwApiTypedTest<bool(Vibrator::HwApi &, uint32_t *)>; 235 &Vibrator::HwApi::getEffectCount), [all …]
|
D | mocks.h | 23 class MockApi : public ::aidl::android::hardware::vibrator::Vibrator::HwApi { 57 class MockCal : public ::aidl::android::hardware::vibrator::Vibrator::HwCal {
|
/hardware/interfaces/vibrator/1.0/default/ |
D | Vibrator.cpp | 34 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()
|
D | Vibrator.h | 29 struct Vibrator : public IVibrator { struct 30 Vibrator(vibrator_device_t *device);
|
D | Android.bp | 30 srcs: ["Vibrator.cpp"],
|
/hardware/google/pixel/vibrator/drv2624/ |
D | Vibrator.cpp | 65 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 …]
|
D | service.cpp | 25 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()
|
D | Hardware.h | 26 class HwApi : public Vibrator::HwApi, private HwApiBase { 90 class HwCal : public Vibrator::HwCal, private HwCalBase {
|
D | Vibrator.h | 27 class Vibrator : public BnVibrator { 136 Vibrator(std::unique_ptr<HwApi> hwapi, std::unique_ptr<HwCal> hwcal);
|
/hardware/google/pixel/vibrator/drv2624/tests/ |
D | test-hwapi.cpp | 134 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 …]
|
D | mocks.h | 21 class MockApi : public ::aidl::android::hardware::vibrator::Vibrator::HwApi { 44 class MockCal : public ::aidl::android::hardware::vibrator::Vibrator::HwCal {
|
/hardware/interfaces/vibrator/aidl/default/ |
D | Vibrator.cpp | 40 ndk::ScopedAStatus Vibrator::getCapabilities(int32_t* _aidl_return) { in getCapabilities() 51 ndk::ScopedAStatus Vibrator::off() { in off() 56 ndk::ScopedAStatus Vibrator::on(int32_t timeoutMs, in on() 72 ndk::ScopedAStatus Vibrator::perform(Effect effect, EffectStrength strength, in perform() 100 ndk::ScopedAStatus Vibrator::getSupportedEffects(std::vector<Effect>* _aidl_return) { in getSupportedEffects() 105 ndk::ScopedAStatus Vibrator::setAmplitude(float amplitude) { in setAmplitude() 113 ndk::ScopedAStatus Vibrator::setExternalControl(bool enabled) { in setExternalControl() 118 ndk::ScopedAStatus Vibrator::getCompositionDelayMax(int32_t* maxDelayMs) { in getCompositionDelayMax() 123 ndk::ScopedAStatus Vibrator::getCompositionSizeMax(int32_t* maxSize) { in getCompositionSizeMax() 128 ndk::ScopedAStatus Vibrator::getSupportedPrimitives(std::vector<CompositePrimitive>* supported) { in getSupportedPrimitives() [all …]
|
D | main.cpp | 24 using aidl::android::hardware::vibrator::Vibrator; 31 auto vib = ndk::SharedRefBase::make<Vibrator>(); in main() 32 const std::string vibName = std::string() + Vibrator::descriptor + "/default"; in main() 37 auto managedVib = ndk::SharedRefBase::make<Vibrator>(); in main()
|
D | Android.bp | 20 "Vibrator.cpp",
|
/hardware/google/pixel/vibrator/cs40l25/ |
D | Vibrator.cpp | 146 void Vibrator::createPwleMaxLevelLimitMap() { in createPwleMaxLevelLimitMap() 148 Vibrator::getCapabilities(&capabilities); in createPwleMaxLevelLimitMap() 192 Vibrator::Vibrator(std::unique_ptr<HwApi> hwapi, std::unique_ptr<HwCal> hwcal) in Vibrator() function in aidl::android::hardware::vibrator::Vibrator 267 ndk::ScopedAStatus Vibrator::getCapabilities(int32_t *_aidl_return) { in getCapabilities() 285 ndk::ScopedAStatus Vibrator::off() { in off() 296 ndk::ScopedAStatus Vibrator::on(int32_t timeoutMs, in on() 310 ndk::ScopedAStatus Vibrator::perform(Effect effect, EffectStrength strength, in perform() 317 ndk::ScopedAStatus Vibrator::getSupportedEffects(std::vector<Effect> *_aidl_return) { in getSupportedEffects() 323 ndk::ScopedAStatus Vibrator::setAmplitude(float amplitude) { in setAmplitude() 336 ndk::ScopedAStatus Vibrator::setExternalControl(bool enabled) { in setExternalControl() [all …]
|
D | service.cpp | 27 using ::aidl::android::hardware::vibrator::Vibrator; 38 auto svc = ndk::SharedRefBase::make<Vibrator>(std::make_unique<HwApi>(), in main()
|
/hardware/interfaces/tests/extension/vibrator/aidl/default/ |
D | service.cpp | 25 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/cs40l26/ |
D | Vibrator.cpp | 216 Vibrator::Vibrator(std::unique_ptr<HwApi> hwapi, std::unique_ptr<HwCal> hwcal) in Vibrator() function in aidl::android::hardware::vibrator::Vibrator 367 ndk::ScopedAStatus Vibrator::getCapabilities(int32_t *_aidl_return) { in getCapabilities() 387 ndk::ScopedAStatus Vibrator::off() { in off() 410 ndk::ScopedAStatus Vibrator::on(int32_t timeoutMs, in on() 427 ndk::ScopedAStatus Vibrator::perform(Effect effect, EffectStrength strength, in perform() 434 ndk::ScopedAStatus Vibrator::getSupportedEffects(std::vector<Effect> *_aidl_return) { in getSupportedEffects() 440 ndk::ScopedAStatus Vibrator::setAmplitude(float amplitude) { in setAmplitude() 454 ndk::ScopedAStatus Vibrator::setExternalControl(bool enabled) { in setExternalControl() 469 ndk::ScopedAStatus Vibrator::getCompositionDelayMax(int32_t *maxDelayMs) { in getCompositionDelayMax() 475 ndk::ScopedAStatus Vibrator::getCompositionSizeMax(int32_t *maxSize) { in getCompositionSizeMax() [all …]
|
D | service.cpp | 27 using ::aidl::android::hardware::vibrator::Vibrator; 38 auto svc = ndk::SharedRefBase::make<Vibrator>(std::make_unique<HwApi>(), in main()
|
D | Hardware.h | 26 class HwApi : public Vibrator::HwApi, private HwApiBase { 68 class HwCal : public Vibrator::HwCal, private HwCalBase {
|
D | Vibrator.h | 31 class Vibrator : public BnVibrator { 100 Vibrator(std::unique_ptr<HwApi> hwapi, std::unique_ptr<HwCal> hwcal);
|