Home
last modified time | relevance | path

Searched refs:effectId (Results 1 - 9 of 9) sorted by relevance

/base/sensors/miscdevice/test/fuzztest/vibrator/issupporteffect_fuzzer/
H A Dissupporteffect_fuzzer.cpp50 char effectId[LEN + 1]; in IsSupportEffectFuzzTest() local
51 effectId[LEN] = END_CHAR; in IsSupportEffectFuzzTest()
53 startPos += GetObject<char>(data + startPos, size - startPos, effectId[i]); in IsSupportEffectFuzzTest()
56 OHOS::Sensors::IsSupportEffect(effectId, &state); in IsSupportEffectFuzzTest()
/base/sensors/miscdevice/frameworks/native/vibrator/
H A Dvibrator_agent.cpp70 int32_t StartVibrator(const char *effectId) in StartVibrator() argument
73 CHKPR(effectId, PARAMETER_ERROR); in StartVibrator()
75 int32_t ret = client.Vibrate(DEFAULT_VIBRATOR_ID, effectId, g_loopCount, g_usage, g_systemUsage); in StartVibrator()
80 MISC_HILOGD("Vibrate effectId failed, ret:%{public}d", ret); in StartVibrator()
184 int32_t IsSupportEffect(const char *effectId, bool *state) in IsSupportEffect() argument
186 CHKPR(effectId, PARAMETER_ERROR); in IsSupportEffect()
188 int32_t ret = client.IsSupportEffect(effectId, *state); in IsSupportEffect()
190 MISC_HILOGD("Query effect support failed, ret:%{public}d, effectId:%{public}s", ret, effectId); in IsSupportEffect()
256 int32_t PlayPrimitiveEffect(const char *effectId, int32_ argument
[all...]
/base/sensors/miscdevice/interfaces/inner_api/vibrator/
H A Dvibrator_agent.h58 * @param effectId Indicates the preset vibration effect, which is described in {@link vibrator_agent_type.h}, for
66 int32_t StartVibrator(const char *effectId);
146 * @param effectId Indicates the preset vibration effect, which is described in {@link vibrator_agent_type.h}, for
154 int32_t IsSupportEffect(const char *effectId, bool *state);
203 * @param effectId Indicates the preset vibration effect, which is described in {@link vibrator_agent_type.h}, for
210 int32_t PlayPrimitiveEffect(const char *effectId, int32_t intensity);
/base/sensors/miscdevice/test/fuzztest/vibrator/playprimitiveeffect_fuzzer/
H A Dplayprimitiveeffect_fuzzer.cpp80 char effectId[LEN + 1]; in PlayPrimitiveEffectFuzzTest() local
81 effectId[LEN] = END_CHAR; in PlayPrimitiveEffectFuzzTest()
83 startPos += GetObject<char>(data + startPos, size - startPos, effectId[i]); in PlayPrimitiveEffectFuzzTest()
86 OHOS::Sensors::PlayPrimitiveEffect(effectId, intensity); in PlayPrimitiveEffectFuzzTest()
/base/sensors/miscdevice/frameworks/cj/src/
H A Dvibrator_ffi.cpp50 std::string effectId; member
84 return PlayPrimitiveEffect(info.effectId.c_str(), info.intensity); in StartVibrate()
111 std::string strEffectId(effect.effectId); in FfiVibratorStartVibrationPreset()
112 info.effectId = strEffectId; in FfiVibratorStartVibrationPreset()
165 std::string effectId(id); in FfiVibratorSupportEffect()
166 code = IsSupportEffect(effectId.c_str(), &isSupportEffect); in FfiVibratorSupportEffect()
H A Dvibrator_ffi.h32 char* effectId; member
/base/sensors/miscdevice/frameworks/js/napi/vibrator/src/
H A Dvibrator_js.cpp78 std::string effectId; member
129 string effectId; in VibrateEffectId() local
130 NAPI_ASSERT(env, GetStringValue(env, args[0], effectId), "Wrong argument type. String or function expected"); in VibrateEffectId()
133 asyncCallbackInfo->error.code = StartVibrator(effectId.c_str()); in VibrateEffectId()
428 CHKCF(GetPropertyString(env, args[0], "effectId", info.effectId), "Get vibrate effectId fail"); in ParseParameter()
482 return PlayPrimitiveEffect(info.effectId.c_str(), info.intensity); in StartVibrate()
653 string effectId; in IsSupportEffect() local
654 if (!GetStringValue(env, args[0], effectId)) { in IsSupportEffect()
680 string effectId; IsSupportEffectSync() local
[all...]
/base/sensors/miscdevice/services/miscdevice_service/haptic_matcher/src/
H A Dcustom_vibration_matcher.cpp160 primitiveEffect.effectId = event.duration; in TransformEffect()
176 primitiveEffect.effectId = 0; in TransformEffect()
372 int32_t preEffectId = prePrimitiveEffect.effectId; in ProcessContinuousEventSlice()
376 prePrimitiveEffect.effectId = mergeDuration * CONTINUOUS_GRADE_MASK + grade; in ProcessContinuousEventSlice()
383 primitiveEffect.effectId = slice.duration * CONTINUOUS_GRADE_MASK + grade; in ProcessContinuousEventSlice()
409 primitiveEffect.effectId = (-matchId); in ProcessTransientEvent()
/base/sensors/miscdevice/test/unittest/vibrator/native/
H A Dvibrator_agent_test.cpp119 bool IsSupportVibratorEffect(const char* effectId) in IsSupportVibratorEffect() argument
122 IsSupportEffect(effectId, &state); in IsSupportVibratorEffect()

Completed in 6 milliseconds