Home
last modified time | relevance | path

Searched refs:Effect (Results 1 – 25 of 55) sorted by relevance

123

/hardware/interfaces/vibrator/1.3/example/
DVibrator.cpp67 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 …]
DVibrator.h40 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/audio/effect/all-versions/default/
DEffect.cpp52 Effect::StatusMQ* statusMQ, EventFlag* efGroup) in ProcessThread()
69 Effect::StatusMQ* mStatusMQ;
136 const char* Effect::sContextResultOfCommand = "returned status";
137 const char* Effect::sContextCallToCommand = "error";
138 const char* Effect::sContextCallFunction = sContextCallToCommand;
140 Effect::Effect(effect_handle_t handle) in Effect() function in android::hardware::audio::effect::CPP_VERSION::implementation::Effect
143 Effect::~Effect() { in ~Effect()
167 size_t Effect::alignedSizeIn(size_t s) { in alignedSizeIn()
173 std::unique_ptr<uint8_t[]> Effect::hidlVecToHal(const hidl_vec<T>& vec, uint32_t* halDataSize) { in hidlVecToHal()
184 void Effect::effectAuxChannelsConfigFromHal(const channel_config_t& halConfig, in effectAuxChannelsConfigFromHal()
[all …]
DEffect.h54 struct Effect : public IEffect { struct
59 explicit Effect(effect_handle_t handle); argument
183 virtual ~Effect(); argument
/hardware/interfaces/vibrator/1.2/vts/functional/
DVtsHalVibratorV1_2TargetTest.cpp30 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/
DVtsHalVibratorV1_3TargetTest.cpp33 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/
DVtsHalVibratorV1_0TargetTest.cpp32 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/vibrator/aidl/android/hardware/vibrator/
DIVibrator.aidl20 import android.hardware.vibrator.Effect;
100 int perform(in Effect effect, in EffectStrength strength, in IVibratorCallback callback); in perform()
108 Effect[] getSupportedEffects(); in getSupportedEffects()
197 Effect[] getSupportedAlwaysOnEffects(); in getSupportedAlwaysOnEffects()
215 void alwaysOnEnable(in int id, in Effect effect, in EffectStrength strength); in alwaysOnEnable()
DEffect.aidl21 enum Effect { enum
/hardware/interfaces/vibrator/aidl/default/
DVibrator.cpp60 ndk::ScopedAStatus Vibrator::perform(Effect effect, EffectStrength strength, in perform()
65 if (effect != Effect::CLICK && effect != Effect::TICK) { in perform()
88 ndk::ScopedAStatus Vibrator::getSupportedEffects(std::vector<Effect>* _aidl_return) { in getSupportedEffects()
89 *_aidl_return = {Effect::CLICK, Effect::TICK}; in getSupportedEffects()
181 ndk::ScopedAStatus Vibrator::getSupportedAlwaysOnEffects(std::vector<Effect>* _aidl_return) { in getSupportedAlwaysOnEffects()
185 ndk::ScopedAStatus Vibrator::alwaysOnEnable(int32_t id, Effect effect, EffectStrength strength) { in alwaysOnEnable()
186 std::vector<Effect> effects; in alwaysOnEnable()
/hardware/interfaces/vibrator/aidl/aidl_api/android.hardware.vibrator/1/android/hardware/vibrator/
DIVibrator.aidl24 …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()
DEffect.aidl20 enum Effect { enum
/hardware/interfaces/vibrator/aidl/aidl_api/android.hardware.vibrator/current/android/hardware/vibrator/
DIVibrator.aidl24 …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()
DEffect.aidl20 enum Effect { enum
/hardware/interfaces/vibrator/aidl/default/include/vibrator-impl/
DVibrator.h31 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/aidl/vts/
DVtsHalVibratorTargetTest.cpp33 using android::hardware::vibrator::Effect;
38 const std::vector<Effect> kEffects{android::enum_range<Effect>().begin(),
39 android::enum_range<Effect>().end()};
43 const std::vector<Effect> kInvalidEffects = {
44 static_cast<Effect>(static_cast<int32_t>(kEffects.front()) - 1),
45 static_cast<Effect>(static_cast<int32_t>(kEffects.back()) + 1),
114 std::vector<Effect> supported; in TEST_P()
117 for (Effect effect : kEffects) { in TEST_P()
141 std::vector<Effect> supported; in TEST_P()
144 for (Effect effect : kEffects) { in TEST_P()
[all …]
/hardware/interfaces/vibrator/1.1/
Dtypes.hal19 import @1.0::Effect;
22 // changed to 'Effect' which the convention dictates.
24 enum Effect_1_1 : @1.0::Effect {
/hardware/interfaces/vibrator/1.3/
Dtypes.hal19 import @1.2::Effect;
21 enum Effect : @1.2::Effect {
/hardware/interfaces/vibrator/1.0/default/
DVibrator.h37 Return<void> perform(Effect effect, EffectStrength strength, perform_cb _hidl_cb) override;
DVibrator.cpp63 Return<void> Vibrator::perform(Effect, EffectStrength, perform_cb _hidl_cb) { in perform() argument
/hardware/interfaces/audio/effect/2.0/
Dtypes.hal31 * Effect engine capabilities/requirements flags.
101 * | Effect offload | 22 | 0 The effect cannot be offloaded to an audio DSP
108 * | | | Effect implementations setting this flag do not
185 // Effect offload indication
191 // Effect has no process indication
/hardware/interfaces/audio/effect/6.0/
Dtypes.hal31 * Effect engine capabilities/requirements flags.
102 * | Effect offload | 22 | 0 The effect cannot be offloaded to an audio DSP
109 * | | | Effect implementations setting this flag do not
187 // Effect offload indication
193 // Effect has no process indication
/hardware/interfaces/audio/effect/5.0/
Dtypes.hal31 * Effect engine capabilities/requirements flags.
102 * | Effect offload | 22 | 0 The effect cannot be offloaded to an audio DSP
109 * | | | Effect implementations setting this flag do not
187 // Effect offload indication
193 // Effect has no process indication
/hardware/interfaces/audio/effect/4.0/
Dtypes.hal31 * Effect engine capabilities/requirements flags.
101 * | Effect offload | 22 | 0 The effect cannot be offloaded to an audio DSP
108 * | | | Effect implementations setting this flag do not
185 // Effect offload indication
191 // Effect has no process indication
/hardware/interfaces/vibrator/1.0/
Dtypes.hal27 enum Effect : uint32_t {

123