/hardware/interfaces/vibrator/1.1/vts/functional/ |
D | VtsHalVibratorV1_1TargetTest.cpp | 31 using ::android::hardware::vibrator::V1_0::EffectStrength; 69 vibrator->perform_1_1(Effect_1_1::CLICK, EffectStrength::MEDIUM, validatePerformEffect); in TEST_P() 70 vibrator->perform_1_1(Effect_1_1::TICK, EffectStrength::STRONG, validatePerformEffect); in TEST_P() 80 vibrator->perform_1_1(badEffect, EffectStrength::LIGHT, validatePerformEffectBadInput)); in TEST_P() 90 vibrator->perform_1_1(badEffect, EffectStrength::LIGHT, validatePerformEffectBadInput)); in TEST_P() 97 EffectStrength strength = *std::prev(hidl_enum_range<EffectStrength>().end()); in TEST_P() 98 EffectStrength badStrength = static_cast<EffectStrength>(static_cast<int32_t>(strength) + 1); in TEST_P() 106 EffectStrength strength = *hidl_enum_range<EffectStrength>().begin(); in TEST_P() 107 EffectStrength badStrength = static_cast<EffectStrength>(static_cast<int32_t>(strength) - 1); in TEST_P()
|
/hardware/interfaces/vibrator/1.2/vts/functional/ |
D | VtsHalVibratorV1_2TargetTest.cpp | 29 using ::android::hardware::vibrator::V1_0::EffectStrength; 75 for (const auto& strength : hidl_enum_range<EffectStrength>()) { in TEST_P() 88 vibrator->perform_1_2(badEffect, EffectStrength::LIGHT, validatePerformEffectBadInput)); in TEST_P() 98 vibrator->perform_1_2(badEffect, EffectStrength::LIGHT, validatePerformEffectBadInput)); in TEST_P() 105 EffectStrength strength = *std::prev(hidl_enum_range<EffectStrength>().end()); in TEST_P() 106 EffectStrength badStrength = static_cast<EffectStrength>(static_cast<int32_t>(strength) + 1); in TEST_P() 114 EffectStrength strength = *hidl_enum_range<EffectStrength>().begin(); in TEST_P() 115 EffectStrength badStrength = static_cast<EffectStrength>(static_cast<int32_t>(strength) - 1); in TEST_P()
|
/hardware/interfaces/vibrator/1.3/vts/functional/ |
D | VtsHalVibratorV1_3TargetTest.cpp | 31 using ::android::hardware::vibrator::V1_0::EffectStrength; 88 for (const auto& strength : hidl_enum_range<EffectStrength>()) { in TEST_P() 100 EXPECT_OK(vibrator->perform_1_3(badEffect, EffectStrength::LIGHT, in TEST_P() 110 EXPECT_OK(vibrator->perform_1_3(badEffect, EffectStrength::LIGHT, in TEST_P() 118 EffectStrength strength = *std::prev(hidl_enum_range<EffectStrength>().end()); in TEST_P() 119 EffectStrength badStrength = static_cast<EffectStrength>(static_cast<int32_t>(strength) + 1); in TEST_P() 128 EffectStrength strength = *hidl_enum_range<EffectStrength>().begin(); in TEST_P() 129 EffectStrength badStrength = static_cast<EffectStrength>(static_cast<int32_t>(strength) - 1); in TEST_P()
|
/hardware/interfaces/vibrator/1.0/vts/functional/ |
D | VtsHalVibratorV1_0TargetTest.cpp | 33 using ::android::hardware::vibrator::V1_0::EffectStrength; 74 vibrator->perform(Effect::CLICK, EffectStrength::MEDIUM, validatePerformEffect); in TEST_P() 75 vibrator->perform(Effect::DOUBLE_CLICK, EffectStrength::LIGHT, validatePerformEffect); in TEST_P() 84 EXPECT_OK(vibrator->perform(badEffect, EffectStrength::LIGHT, validatePerformEffectBadInput)); in TEST_P() 93 EXPECT_OK(vibrator->perform(badEffect, EffectStrength::LIGHT, validatePerformEffectBadInput)); in TEST_P() 100 EffectStrength strength = *std::prev(hidl_enum_range<EffectStrength>().end()); in TEST_P() 101 EffectStrength badStrength = static_cast<EffectStrength>(static_cast<int32_t>(strength) + 1); in TEST_P() 109 EffectStrength strength = *hidl_enum_range<EffectStrength>().begin(); in TEST_P() 110 EffectStrength badStrength = static_cast<EffectStrength>(static_cast<int32_t>(strength) - 1); in TEST_P()
|
/hardware/interfaces/vibrator/1.3/example/ |
D | Vibrator.h | 28 using android::hardware::vibrator::V1_0::EffectStrength; 40 Return<void> perform(V1_0::Effect effect, EffectStrength strength, 44 Return<void> perform_1_1(V1_1::Effect_1_1 effect, EffectStrength strength, 48 Return<void> perform_1_2(V1_2::Effect effect, EffectStrength strength, 54 Return<void> perform_1_3(Effect effect, EffectStrength strength, perform_cb _hidl_cb) override; 57 Return<void> perform(Effect effect, EffectStrength strength, perform_cb _hidl_cb); 59 Return<void> perform(T effect, EffectStrength strength, perform_cb _hidl_cb); 67 static uint8_t strengthToAmplitude(EffectStrength strength, Status* status);
|
D | Vibrator.cpp | 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() 103 Return<void> Vibrator::perform_1_3(Effect effect, EffectStrength strength, perform_cb _hidl_cb) { in perform_1_3() 109 Return<void> Vibrator::perform(Effect effect, EffectStrength strength, perform_cb _hidl_cb) { in perform() 136 Return<void> Vibrator::perform(T effect, EffectStrength strength, perform_cb _hidl_cb) { in perform() 260 uint8_t Vibrator::strengthToAmplitude(EffectStrength strength, Status* status) { in strengthToAmplitude() 262 case EffectStrength::LIGHT: in strengthToAmplitude() 264 case EffectStrength::MEDIUM: in strengthToAmplitude() 266 case EffectStrength::STRONG: in strengthToAmplitude()
|
/hardware/interfaces/vibrator/aidl/android/hardware/vibrator/ |
D | IVibrator.aidl | 22 import android.hardware.vibrator.EffectStrength; 118 int perform(in Effect effect, in EffectStrength strength, in IVibratorCallback callback); in perform() 236 void alwaysOnEnable(in int id, in Effect effect, in EffectStrength strength); in alwaysOnEnable()
|
/hardware/google/pixel/vibrator/drv2624/tests/ |
D | test-vibrator.cpp | 54 {{Effect::CLICK, EffectStrength::LIGHT}, {1, 2}}, 55 {{Effect::CLICK, EffectStrength::MEDIUM}, {1, 0}}, 56 {{Effect::CLICK, EffectStrength::STRONG}, {1, 0}}, 57 {{Effect::TICK, EffectStrength::LIGHT}, {2, 2}}, 58 {{Effect::TICK, EffectStrength::MEDIUM}, {2, 0}}, 59 {{Effect::TICK, EffectStrength::STRONG}, {2, 0}}, 60 {{Effect::DOUBLE_CLICK, EffectStrength::LIGHT}, {3, 2}}, 61 {{Effect::DOUBLE_CLICK, EffectStrength::MEDIUM}, {3, 0}}, 62 {{Effect::DOUBLE_CLICK, EffectStrength::STRONG}, {3, 0}}, 63 {{Effect::HEAVY_CLICK, EffectStrength::LIGHT}, {4, 2}}, [all …]
|
D | types.h | 25 ::aidl::android::hardware::vibrator::EffectStrength>;
|
/hardware/google/pixel/vibrator/cs40l25/bench/ |
D | benchmark.cpp | 87 for (EffectStrength strength : ndk::enum_range<EffectStrength>()) { in SupportedEffectArgs() 147 EffectStrength strength = EffectStrength(state.range(1));
|
/hardware/google/pixel/vibrator/cs40l25/tests/ |
D | test-vibrator.cpp | 89 {{Effect::CLICK, EffectStrength::LIGHT}, Scale(0.7f * 0.5f)}, 90 {{Effect::CLICK, EffectStrength::MEDIUM}, Scale(0.7f * 0.7f)}, 91 {{Effect::CLICK, EffectStrength::STRONG}, Scale(0.7f * 1.0f)}, 92 {{Effect::TICK, EffectStrength::LIGHT}, Scale(0.5f * 0.5f)}, 93 {{Effect::TICK, EffectStrength::MEDIUM}, Scale(0.5f * 0.7f)}, 94 {{Effect::TICK, EffectStrength::STRONG}, Scale(0.5f * 1.0f)}, 95 {{Effect::HEAVY_CLICK, EffectStrength::LIGHT}, Scale(1.0f * 0.5f)}, 96 {{Effect::HEAVY_CLICK, EffectStrength::MEDIUM}, Scale(1.0f * 0.7f)}, 97 {{Effect::HEAVY_CLICK, EffectStrength::STRONG}, Scale(1.0f * 1.0f)}, 98 {{Effect::TEXTURE_TICK, EffectStrength::LIGHT}, Scale(0.5f * 0.5f)}, [all …]
|
/hardware/interfaces/vibrator/aidl/aidl_api/android.hardware.vibrator/1/android/hardware/vibrator/ |
D | IVibrator.aidl | 24 …ndroid.hardware.vibrator.Effect effect, in android.hardware.vibrator.EffectStrength strength, in a… in perform() 34 … in android.hardware.vibrator.Effect effect, in android.hardware.vibrator.EffectStrength strength); in alwaysOnEnable()
|
D | EffectStrength.aidl | 20 enum EffectStrength { enum
|
/hardware/google/pixel/vibrator/cs40l26/ |
D | Vibrator.h | 106 ndk::ScopedAStatus perform(Effect effect, EffectStrength strength, 120 ndk::ScopedAStatus alwaysOnEnable(int32_t id, Effect effect, EffectStrength strength) override; 142 ndk::ScopedAStatus getSimpleDetails(Effect effect, EffectStrength strength, 146 ndk::ScopedAStatus getCompoundDetails(Effect effect, EffectStrength strength, 151 ndk::ScopedAStatus performEffect(Effect effect, EffectStrength strength,
|
/hardware/google/pixel/vibrator/drv2624/bench/ |
D | benchmark.cpp | 151 for (const auto &strength : ndk::enum_range<EffectStrength>()) { in DefaultArgs() 164 return static_cast<EffectStrength>(getOtherArg(state, 1)); in getStrength() 170 EffectStrength strength = getStrength(state);
|
/hardware/interfaces/vibrator/aidl/aidl_api/android.hardware.vibrator/current/android/hardware/vibrator/ |
D | IVibrator.aidl | 40 …ndroid.hardware.vibrator.Effect effect, in android.hardware.vibrator.EffectStrength strength, in a… in perform() 50 … in android.hardware.vibrator.Effect effect, in android.hardware.vibrator.EffectStrength strength); in alwaysOnEnable()
|
D | EffectStrength.aidl | 36 enum EffectStrength { enum
|
/hardware/interfaces/vibrator/aidl/aidl_api/android.hardware.vibrator/2/android/hardware/vibrator/ |
D | IVibrator.aidl | 40 …ndroid.hardware.vibrator.Effect effect, in android.hardware.vibrator.EffectStrength strength, in a… in perform() 50 … in android.hardware.vibrator.Effect effect, in android.hardware.vibrator.EffectStrength strength); in alwaysOnEnable()
|
D | EffectStrength.aidl | 36 enum EffectStrength { enum
|
/hardware/google/pixel/vibrator/cs40l25/ |
D | Vibrator.h | 144 ndk::ScopedAStatus perform(Effect effect, EffectStrength strength, 158 ndk::ScopedAStatus alwaysOnEnable(int32_t id, Effect effect, EffectStrength strength) override; 180 ndk::ScopedAStatus getSimpleDetails(Effect effect, EffectStrength strength, 184 ndk::ScopedAStatus getCompoundDetails(Effect effect, EffectStrength strength, 189 ndk::ScopedAStatus performEffect(Effect effect, EffectStrength strength,
|
/hardware/google/pixel/vibrator/drv2624/ |
D | Vibrator.cpp | 240 ndk::ScopedAStatus Vibrator::perform(Effect effect, EffectStrength strength, in perform() 255 static ndk::ScopedAStatus convertEffectStrength(EffectStrength strength, uint8_t *outScale) { in convertEffectStrength() 259 case EffectStrength::LIGHT: in convertEffectStrength() 262 case EffectStrength::MEDIUM: in convertEffectStrength() 263 case EffectStrength::STRONG: in convertEffectStrength() 305 ndk::ScopedAStatus Vibrator::performEffect(Effect effect, EffectStrength strength, in performEffect() 342 ndk::ScopedAStatus Vibrator::alwaysOnEnable(int32_t id, Effect effect, EffectStrength strength) { in alwaysOnEnable()
|
/hardware/interfaces/vibrator/bench/ |
D | benchmark.cpp | 95 using EffectStrength = V1_0::EffectStrength; typedef in VibratorEffectsBench 102 for (const auto& strength : hidl_enum_range<EffectStrength>()) { in DefaultArgs() 108 void performBench(State* state, Return<void> (I::*performApi)(Effect, EffectStrength, in performBench() argument 139 return static_cast<EffectStrength>(this->getOtherArg(state, 1)); in getStrength() 406 for (const auto& strength : enum_range<Aidl::EffectStrength>()) { in DefaultArgs() 418 return static_cast<Aidl::EffectStrength>(this->getOtherArg(state, 1)); in getStrength()
|
/hardware/interfaces/vibrator/1.1/ |
D | IVibrator.hal | 19 import @1.0::EffectStrength; 37 perform_1_1(Effect_1_1 effect, EffectStrength strength)
|
/hardware/interfaces/vibrator/1.2/ |
D | IVibrator.hal | 19 import @1.0::EffectStrength; 35 perform_1_2(Effect effect, EffectStrength strength)
|
/hardware/interfaces/vibrator/aidl/default/include/vibrator-impl/ |
D | Vibrator.h | 31 ndk::ScopedAStatus perform(Effect effect, EffectStrength strength, 45 ndk::ScopedAStatus alwaysOnEnable(int32_t id, Effect effect, EffectStrength strength) override;
|