Home
last modified time | relevance | path

Searched refs:hapticFd (Results 1 - 3 of 3) sorted by relevance

/base/sensors/miscdevice/frameworks/cj/src/
H A Dvibrator_ffi.cpp126 info.fd = effect.hapticFd.fd; in FfiVibratorStartVibrationFile()
127 info.offset = effect.hapticFd.offSet; in FfiVibratorStartVibrationFile()
128 info.length = effect.hapticFd.length; in FfiVibratorStartVibrationFile()
H A Dvibrator_ffi.h45 RetHapticFileDescriptor hapticFd; member
/base/sensors/miscdevice/frameworks/js/napi/vibrator/src/
H A Dvibrator_js.cpp436 napi_value hapticFd = nullptr; in ParseParameter() local
437 CHKCF(GetPropertyItem(env, args[0], "hapticFd", hapticFd), "Get vibrate hapticFd fail"); in ParseParameter()
438 CHKCF(IsMatchType(env, hapticFd, napi_object), "Wrong argument type. Napi object expected"); in ParseParameter()
439 CHKCF(GetPropertyInt32(env, hapticFd, "fd", info.fd), "Get vibrate fd fail"); in ParseParameter()
440 GetPropertyInt64(env, hapticFd, "offset", info.offset); in ParseParameter()
444 GetPropertyInt64(env, hapticFd, "length", info.length); in ParseParameter()

Completed in 3 milliseconds