/base/sensors/miscdevice/test/fuzztest/vibrator/issupporteffect_fuzzer/ |
H A D | issupporteffect_fuzzer.cpp | 50 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 D | vibrator_agent.cpp | 70 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 D | vibrator_agent.h | 58 * @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 D | playprimitiveeffect_fuzzer.cpp | 80 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 D | vibrator_ffi.cpp | 50 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 D | vibrator_ffi.h | 32 char* effectId; member
|
/base/sensors/miscdevice/frameworks/js/napi/vibrator/src/ |
H A D | vibrator_js.cpp | 78 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 D | custom_vibration_matcher.cpp | 160 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 D | vibrator_agent_test.cpp | 119 bool IsSupportVibratorEffect(const char* effectId) in IsSupportVibratorEffect() argument 122 IsSupportEffect(effectId, &state); in IsSupportVibratorEffect()
|