/hardware/interfaces/audio/common/7.0/example/ |
D | Effect.cpp | 36 Return<Result> Effect::init() { in init() 40 Return<Result> Effect::setConfig( in setConfig() 50 Return<Result> Effect::reset() { in reset() 54 Return<Result> Effect::enable() { in enable() 63 Return<Result> Effect::disable() { in disable() 72 Return<Result> Effect::setDevice(const DeviceAddress& device) { in setDevice() 77 Return<void> Effect::setAndGetVolume(const hidl_vec<uint32_t>& volumes, in setAndGetVolume() 84 Return<Result> Effect::volumeChangeNotification(const hidl_vec<uint32_t>& volumes) { in volumeChangeNotification() 89 Return<Result> Effect::setAudioMode(AudioMode mode) { in setAudioMode() 94 Return<Result> Effect::setConfigReverse( in setConfigReverse() [all …]
|
/hardware/interfaces/vibrator/1.3/example/ |
D | Vibrator.cpp | 67 Return<void> Vibrator::perform(V1_0::Effect effect, EffectStrength strength, perform_cb _hidl_cb) { in perform() 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() 142 return perform(static_cast<Effect>(effect), strength, _hidl_cb); in perform() 206 const std::string Vibrator::effectToName(Effect effect) { in effectToName() 210 uint32_t Vibrator::effectToMs(Effect effect, Status* status) { in effectToMs() 212 case Effect::CLICK: in effectToMs() 214 case Effect::DOUBLE_CLICK: in effectToMs() 216 case Effect::TICK: in effectToMs() [all …]
|
D | Vibrator.h | 40 Return<void> perform(V1_0::Effect 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); 65 static const std::string effectToName(Effect effect); 66 static uint32_t effectToMs(Effect effect, Status* status);
|
/hardware/interfaces/vibrator/1.2/vts/functional/ |
D | VtsHalVibratorV1_2TargetTest.cpp | 30 using ::android::hardware::vibrator::V1_2::Effect; 74 for (const auto& effect : hidl_enum_range<Effect>()) { in TEST_P() 85 Effect effect = *std::prev(hidl_enum_range<Effect>().end()); in TEST_P() 86 Effect badEffect = static_cast<Effect>(static_cast<int32_t>(effect) + 1); in TEST_P() 95 Effect effect = *hidl_enum_range<Effect>().begin(); in TEST_P() 96 Effect badEffect = static_cast<Effect>(static_cast<int32_t>(effect) - 1); in TEST_P() 107 EXPECT_OK(vibrator->perform_1_2(Effect::THUD, badStrength, validatePerformEffectBadInput)); in TEST_P() 116 EXPECT_OK(vibrator->perform_1_2(Effect::THUD, badStrength, validatePerformEffectBadInput)); in TEST_P()
|
/hardware/interfaces/vibrator/1.3/vts/functional/ |
D | VtsHalVibratorV1_3TargetTest.cpp | 33 using ::android::hardware::vibrator::V1_3::Effect; 87 for (const auto& effect : hidl_enum_range<Effect>()) { in TEST_P() 98 Effect effect = *std::prev(hidl_enum_range<Effect>().end()); in TEST_P() 99 Effect badEffect = static_cast<Effect>(static_cast<int32_t>(effect) + 1); in TEST_P() 108 Effect effect = *hidl_enum_range<Effect>().begin(); in TEST_P() 109 Effect badEffect = static_cast<Effect>(static_cast<int32_t>(effect) - 1); in TEST_P() 120 EXPECT_OK(vibrator->perform_1_3(Effect::THUD, badStrength, in TEST_P() 130 EXPECT_OK(vibrator->perform_1_3(Effect::THUD, badStrength, in TEST_P()
|
/hardware/interfaces/vibrator/1.0/vts/functional/ |
D | VtsHalVibratorV1_0TargetTest.cpp | 32 using ::android::hardware::vibrator::V1_0::Effect; 74 vibrator->perform(Effect::CLICK, EffectStrength::MEDIUM, validatePerformEffect); in TEST_P() 75 vibrator->perform(Effect::DOUBLE_CLICK, EffectStrength::LIGHT, validatePerformEffect); in TEST_P() 82 Effect effect = *std::prev(hidl_enum_range<Effect>().end()); in TEST_P() 83 Effect badEffect = static_cast<Effect>(static_cast<int32_t>(effect) + 1); in TEST_P() 91 Effect effect = *hidl_enum_range<Effect>().begin(); in TEST_P() 92 Effect badEffect = static_cast<Effect>(static_cast<int32_t>(effect) - 1); in TEST_P() 102 EXPECT_OK(vibrator->perform(Effect::CLICK, badStrength, validatePerformEffectBadInput)); in TEST_P() 111 EXPECT_OK(vibrator->perform(Effect::CLICK, badStrength, validatePerformEffectBadInput)); in TEST_P()
|
/hardware/interfaces/audio/effect/all-versions/default/ |
D | Effect.cpp | 217 Effect::StatusMQ* statusMQ, EventFlag* efGroup, Effect* effectHal) in ProcessThread() 235 Effect::StatusMQ* mStatusMQ; 237 Effect* const mEffectHal; 306 const char* Effect::sContextResultOfCommand = "returned status"; 307 const char* Effect::sContextCallToCommand = "error"; 308 const char* Effect::sContextCallFunction = sContextCallToCommand; 309 const char* Effect::sContextConversion = "conversion"; 311 Effect::Effect(bool isInput, effect_handle_t handle) in Effect() function in android::hardware::audio::effect::CPP_VERSION::implementation::Effect 316 Effect::~Effect() { in ~Effect() 339 size_t Effect::alignedSizeIn(size_t s) { in alignedSizeIn() [all …]
|
/hardware/google/pixel/vibrator/drv2624/ |
D | Vibrator.cpp | 234 ndk::ScopedAStatus Vibrator::getSupportedEffects(std::vector<Effect> *_aidl_return) { in getSupportedEffects() 235 *_aidl_return = {Effect::TEXTURE_TICK, Effect::TICK, Effect::CLICK, Effect::HEAVY_CLICK, in getSupportedEffects() 236 Effect::DOUBLE_CLICK}; in getSupportedEffects() 240 ndk::ScopedAStatus Vibrator::perform(Effect effect, EffectStrength strength, in perform() 275 ndk::ScopedAStatus Vibrator::getEffectDetails(Effect effect, uint8_t *outIndex, in getEffectDetails() 278 case Effect::TEXTURE_TICK: in getEffectDetails() 282 case Effect::CLICK: in getEffectDetails() 286 case Effect::DOUBLE_CLICK: in getEffectDetails() 290 case Effect::TICK: in getEffectDetails() 294 case Effect::HEAVY_CLICK: in getEffectDetails() [all …]
|
D | Vibrator.h | 142 ndk::ScopedAStatus perform(Effect effect, EffectStrength strength, 145 ndk::ScopedAStatus getSupportedEffects(std::vector<Effect> *_aidl_return) override; 155 ndk::ScopedAStatus getSupportedAlwaysOnEffects(std::vector<Effect> *_aidl_return) override; 156 ndk::ScopedAStatus alwaysOnEnable(int32_t id, Effect effect, EffectStrength strength) override; 174 ndk::ScopedAStatus getEffectDetails(Effect effect, uint8_t *outIndex, uint32_t *outTimeMs); 175 ndk::ScopedAStatus performEffect(Effect effect, EffectStrength strength, int32_t *outTimeMs);
|
/hardware/interfaces/vibrator/aidl/android/hardware/vibrator/ |
D | IVibrator.aidl | 21 import android.hardware.vibrator.Effect; 118 int perform(in Effect effect, in EffectStrength strength, in IVibratorCallback callback); in perform() 126 Effect[] getSupportedEffects(); in getSupportedEffects() 215 Effect[] getSupportedAlwaysOnEffects(); in getSupportedAlwaysOnEffects() 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 …]
|
/hardware/interfaces/vibrator/aidl/aidl_api/android.hardware.vibrator/1/android/hardware/vibrator/ |
D | IVibrator.aidl | 24 …int perform(in android.hardware.vibrator.Effect effect, in android.hardware.vibrator.EffectStrengt… in perform() 25 android.hardware.vibrator.Effect[] getSupportedEffects(); in getSupportedEffects() 33 android.hardware.vibrator.Effect[] getSupportedAlwaysOnEffects(); in getSupportedAlwaysOnEffects() 34 …void alwaysOnEnable(in int id, in android.hardware.vibrator.Effect effect, in android.hardware.vib… in alwaysOnEnable()
|
/hardware/interfaces/vibrator/aidl/aidl_api/android.hardware.vibrator/2/android/hardware/vibrator/ |
D | IVibrator.aidl | 40 …int perform(in android.hardware.vibrator.Effect effect, in android.hardware.vibrator.EffectStrengt… in perform() 41 android.hardware.vibrator.Effect[] getSupportedEffects(); in getSupportedEffects() 49 android.hardware.vibrator.Effect[] getSupportedAlwaysOnEffects(); in getSupportedAlwaysOnEffects() 50 …void alwaysOnEnable(in int id, in android.hardware.vibrator.Effect effect, in android.hardware.vib… in alwaysOnEnable()
|
/hardware/interfaces/vibrator/aidl/aidl_api/android.hardware.vibrator/current/android/hardware/vibrator/ |
D | IVibrator.aidl | 40 …int perform(in android.hardware.vibrator.Effect effect, in android.hardware.vibrator.EffectStrengt… in perform() 41 android.hardware.vibrator.Effect[] getSupportedEffects(); in getSupportedEffects() 49 android.hardware.vibrator.Effect[] getSupportedAlwaysOnEffects(); in getSupportedAlwaysOnEffects() 50 …void alwaysOnEnable(in int id, in android.hardware.vibrator.Effect effect, in android.hardware.vib… in alwaysOnEnable()
|
/hardware/google/pixel/vibrator/cs40l25/tests/ |
D | test-vibrator.cpp | 77 static const std::map<Effect, EffectIndex> EFFECT_INDEX{ 78 {Effect::CLICK, 2}, 79 {Effect::TICK, 2}, 80 {Effect::HEAVY_CLICK, 2}, 81 {Effect::TEXTURE_TICK, 9}, 94 {{Effect::CLICK, EffectStrength::LIGHT}, Scale(0.7f * 0.5f)}, 95 {{Effect::CLICK, EffectStrength::MEDIUM}, Scale(0.7f * 0.7f)}, 96 {{Effect::CLICK, EffectStrength::STRONG}, Scale(0.7f * 1.0f)}, 97 {{Effect::TICK, EffectStrength::LIGHT}, Scale(0.5f * 0.5f)}, 98 {{Effect::TICK, EffectStrength::MEDIUM}, Scale(0.5f * 0.7f)}, [all …]
|
/hardware/google/pixel/vibrator/cs40l26/tests/ |
D | test-vibrator.cpp | 82 static const std::map<Effect, EffectIndex> EFFECT_INDEX{ 83 {Effect::CLICK, 2}, 84 {Effect::TICK, 2}, 85 {Effect::HEAVY_CLICK, 2}, 86 {Effect::TEXTURE_TICK, 9}, 124 {{Effect::TICK, EffectStrength::LIGHT}, 126 {{Effect::TICK, EffectStrength::MEDIUM}, 128 {{Effect::TICK, EffectStrength::STRONG}, 130 {{Effect::CLICK, EffectStrength::LIGHT}, 132 {{Effect::CLICK, EffectStrength::MEDIUM}, [all …]
|
/hardware/interfaces/vibrator/aidl/default/include/vibrator-impl/ |
D | Vibrator.h | 31 ndk::ScopedAStatus perform(Effect effect, EffectStrength strength, 34 ndk::ScopedAStatus getSupportedEffects(std::vector<Effect>* _aidl_return) override; 44 ndk::ScopedAStatus getSupportedAlwaysOnEffects(std::vector<Effect>* _aidl_return) override; 45 ndk::ScopedAStatus alwaysOnEnable(int32_t id, Effect effect, EffectStrength strength) override;
|
/hardware/interfaces/vibrator/bench/ |
D | benchmark.cpp | 121 using Effect = E1; typedef in VibratorEffectsBench 135 void performBench(State* state, Return<void> (I::*performApi)(Effect, EffectStrength, in performBench() argument 172 return static_cast<Effect>(this->getOtherArg(state, 0)); in getEffect() 257 using VibratorEffectsBench_V1_0 = VibratorEffectsBench<V1_0::IVibrator, V1_0::Effect>; 263 VibratorEffectsBench<V1_1::IVibrator, V1_1::Effect_1_1, V1_0::Effect>; 269 VibratorEffectsBench<V1_2::IVibrator, V1_2::Effect, V1_1::Effect_1_1>; 350 using VibratorEffectsBench_V1_3 = VibratorEffectsBench<V1_3::IVibrator, V1_3::Effect, V1_2::Effect>; 541 std::vector<Aidl::Effect> supportedEffects; 556 std::vector<Aidl::Effect> supportedEffects; 579 for (const auto& effect : enum_range<Aidl::Effect>()) { in DefaultArgs() [all …]
|
/hardware/interfaces/vibrator/1.1/ |
D | types.hal | 19 import @1.0::Effect; 22 // changed to 'Effect' which the convention dictates. 24 enum Effect_1_1 : @1.0::Effect {
|
/hardware/google/pixel/vibrator/cs40l25/bench/ |
D | benchmark.cpp | 87 for (Effect effect : ndk::enum_range<Effect>()) { in SupportedEffectArgs() 147 Effect effect = Effect(state.range(0));
|
/hardware/interfaces/vibrator/1.3/ |
D | types.hal | 19 import @1.2::Effect; 21 enum Effect : @1.2::Effect {
|
/hardware/google/pixel/vibrator/cs40l25/ |
D | Vibrator.h | 172 ndk::ScopedAStatus perform(Effect effect, EffectStrength strength, 175 ndk::ScopedAStatus getSupportedEffects(std::vector<Effect> *_aidl_return) override; 185 ndk::ScopedAStatus getSupportedAlwaysOnEffects(std::vector<Effect> *_aidl_return) override; 186 ndk::ScopedAStatus alwaysOnEnable(int32_t id, Effect effect, EffectStrength strength) override; 208 ndk::ScopedAStatus getSimpleDetails(Effect effect, EffectStrength strength, 212 ndk::ScopedAStatus getCompoundDetails(Effect effect, EffectStrength strength, 217 ndk::ScopedAStatus performEffect(Effect effect, EffectStrength strength,
|
D | Vibrator.cpp | 357 ndk::ScopedAStatus Vibrator::perform(Effect effect, EffectStrength strength, in perform() 370 ndk::ScopedAStatus Vibrator::getSupportedEffects(std::vector<Effect> *_aidl_return) { in getSupportedEffects() 372 *_aidl_return = {Effect::TEXTURE_TICK, Effect::TICK, Effect::CLICK, Effect::HEAVY_CLICK, in getSupportedEffects() 373 Effect::DOUBLE_CLICK}; in getSupportedEffects() 606 ndk::ScopedAStatus Vibrator::getSupportedAlwaysOnEffects(std::vector<Effect> *_aidl_return) { in getSupportedAlwaysOnEffects() 608 *_aidl_return = {Effect::TEXTURE_TICK, Effect::TICK, Effect::CLICK, Effect::HEAVY_CLICK}; in getSupportedAlwaysOnEffects() 612 ndk::ScopedAStatus Vibrator::alwaysOnEnable(int32_t id, Effect effect, EffectStrength strength) { in alwaysOnEnable() 1084 ndk::ScopedAStatus Vibrator::getSimpleDetails(Effect effect, EffectStrength strength, in getSimpleDetails() 1112 case Effect::TEXTURE_TICK: in getSimpleDetails() 1116 case Effect::TICK: in getSimpleDetails() [all …]
|
/hardware/interfaces/vibrator/aidl/default/ |
D | Vibrator.cpp | 77 ndk::ScopedAStatus Vibrator::perform(Effect effect, EffectStrength strength, in perform() 82 if (effect != Effect::CLICK && effect != Effect::TICK) { in perform() 105 ndk::ScopedAStatus Vibrator::getSupportedEffects(std::vector<Effect>* _aidl_return) { in getSupportedEffects() 106 *_aidl_return = {Effect::CLICK, Effect::TICK}; in getSupportedEffects() 205 ndk::ScopedAStatus Vibrator::getSupportedAlwaysOnEffects(std::vector<Effect>* _aidl_return) { in getSupportedAlwaysOnEffects() 209 ndk::ScopedAStatus Vibrator::alwaysOnEnable(int32_t id, Effect effect, EffectStrength strength) { in alwaysOnEnable() 210 std::vector<Effect> effects; in alwaysOnEnable()
|
/hardware/google/pixel/vibrator/cs40l26/ |
D | Vibrator.h | 185 ndk::ScopedAStatus perform(Effect effect, EffectStrength strength, 188 ndk::ScopedAStatus getSupportedEffects(std::vector<Effect> *_aidl_return) override; 198 ndk::ScopedAStatus getSupportedAlwaysOnEffects(std::vector<Effect> *_aidl_return) override; 199 ndk::ScopedAStatus alwaysOnEnable(int32_t id, Effect effect, EffectStrength strength) override; 220 ndk::ScopedAStatus getSimpleDetails(Effect effect, EffectStrength strength, 224 ndk::ScopedAStatus getCompoundDetails(Effect effect, EffectStrength strength, 227 ndk::ScopedAStatus performEffect(Effect effect, EffectStrength strength,
|