Home
last modified time | relevance | path

Searched refs:duration (Results 1 – 25 of 53) sorted by relevance

123

/drivers/hdf_core/framework/model/misc/vibrator/driver/src/
Dvibrator_haptic.c161 uint32_t duration; in ProcessHapticTime() local
180 duration = hapticData->currentEffectSeq[hapticData->currentSeqIndex] == 0 ? in ProcessHapticTime()
182 return duration; in ProcessHapticTime()
188 uint32_t duration; in ProcessHapticEffect() local
207 duration = hapticData->currentEffectSeq[hapticData->currentSeqIndex] == 0 ? in ProcessHapticEffect()
209 return duration; in ProcessHapticEffect()
216 uint32_t duration; in HapticTimerEntry() local
222 duration = ProcessHapticTime(hapticData); in HapticTimerEntry()
226 duration = ProcessHapticEffect(hapticData); in HapticTimerEntry()
229duration = ((duration > 0) && (duration < VIBRATOR_MIN_WAIT_TIME)) ? VIBRATOR_MIN_WAIT_TIME : dura… in HapticTimerEntry()
[all …]
Dvibrator_driver.c125 uint32_t duration; in StartOnce() local
134 if (!HdfSbufReadUint32(data, &duration)) { in StartOnce()
150 config.duration = duration; in StartOnce()
187 config.duration = 0; in StartEffect()
259 uint32_t duration; in EnableModulationParameter() local
274 if (!HdfSbufReadUint32(data, &duration)) { in EnableModulationParameter()
300 config.duration = duration; in EnableModulationParameter()
/drivers/peripheral/vibrator/hdi_impl/
Dvibrator_interface_impl.cpp41 int32_t VibratorInterfaceImpl::StartOnce(uint32_t duration) in StartOnce() argument
43 … HDF_LOGI("%{public}s: Enter the StartOnce function, duration is %{public}u", __func__, duration); in StartOnce()
49 int32_t ret = vibratorInterface->StartOnce(duration); in StartOnce()
132 int32_t VibratorInterfaceImpl::EnableVibratorModulation(uint32_t duration, uint16_t intensity, int1… in EnableVibratorModulation() argument
135 __func__, duration, intensity, frequency); in EnableVibratorModulation()
142 int32_t ret = vibratorInterface->EnableVibratorModulation(duration, intensity, frequency); in EnableVibratorModulation()
177 effectInfo.duration = info.duration; in GetEffectInfo()
Dvibrator_interface_impl.h31 int32_t StartOnce(uint32_t duration) override;
35 …int32_t EnableVibratorModulation(uint32_t duration, uint16_t intensity, int16_t frequency) overrid…
/drivers/peripheral/vibrator/hal/src/
Dvibrator_controller.c120 static int32_t ValidityJudgment(uint32_t duration, uint16_t intensity, int16_t frequency) in ValidityJudgment() argument
123 if (duration == 0) { in ValidityJudgment()
143 static int32_t EnableVibratorModulation(uint32_t duration, uint16_t intensity, int16_t frequency) in EnableVibratorModulation() argument
148 ret = ValidityJudgment(duration, intensity, frequency); in EnableVibratorModulation()
162 if (!HdfSbufWriteUint32(msg, duration)) { in EnableVibratorModulation()
192 static int32_t StartOnce(uint32_t duration) in StartOnce() argument
205 if (!HdfSbufWriteUint32(msg, duration)) { in StartOnce()
262 effectInfo->duration = EFFECT_DURATION; in GetEffectInfo()
266 effectInfo->duration = 0; in GetEffectInfo()
/drivers/peripheral/vibrator/
DREADME.md7 - One-shot vibration for a specified duration (**StartOnce**).
9 - Vibration with the specified duration, intensity, and frequency (**EnableVibratorModulation**).
41 | int32_t StartOnce(uint32_t duration) | Starts vibration for a given **dur…
44 …bleVibratorModulation(uint32_t duration, int32_t intensity, int32_t frequency) | Starts vibration …
80 /* Start vibration with the specified duration. */
102 /* Start vibration based on the specified duration, intensity, and frequency. */
DREADME_zh.md45 | int32_t StartOnce(uint32_t duration) | 按照指定持续时间触发振动,duration为振动持续时长。 …
48 …_t EnableVibratorModulation(uint32_t duration, int32_t intensity, int32_t frequency) | 按照指定振幅,频率、持…
/drivers/peripheral/vibrator/hdi_service/
Dvibrator_if_service.cpp83 int32_t VibratorIfService::StartOnce(uint32_t duration) in StartOnce() argument
85 … HDF_LOGI("%{public}s: Enter the StartOnce function, duration is %{public}u", __func__, duration); in StartOnce()
92 int32_t ret = vibratorVdiImpl_->StartOnce(duration); in StartOnce()
184 int32_t VibratorIfService::EnableVibratorModulation(uint32_t duration, uint16_t intensity, int16_t … in EnableVibratorModulation() argument
187 __func__, duration, intensity, frequency); in EnableVibratorModulation()
194 int32_t ret = vibratorVdiImpl_->EnableVibratorModulation(duration, intensity, frequency); in EnableVibratorModulation()
257 effectInfo.duration = effectInfoVdi.duration; in GetEffectInfo()
Dvibrator_if_service.h32 int32_t StartOnce(uint32_t duration) override;
36 …int32_t EnableVibratorModulation(uint32_t duration, uint16_t intensity, int16_t frequency) overrid…
/drivers/peripheral/vibrator/interfaces/include/
Dvibrator_if.h63 int32_t (*StartOnce)(uint32_t duration);
120 int32_t (*EnableVibratorModulation)(uint32_t duration, uint16_t intensity, int16_t frequency);
Dvibrator_type.h176 int32_t duration; member
/drivers/hdf_core/framework/model/misc/vibrator/driver/include/
Dvibrator_haptic.h42 uint32_t duration; member
51 uint32_t duration[VIBRATOR_TIME_INDEX_BUTT]; member
/drivers/peripheral/vibrator/interfaces/v1_1/
Divibrator_interface_vdi.h36 virtual int32_t StartOnce(uint32_t duration) = 0;
40 …virtual int32_t EnableVibratorModulation(uint32_t duration, uint16_t intensity, int16_t frequency)…
Divibrator_type_vdi.h79 int32_t duration; member
/drivers/interface/vibrator/v1_1/
DIVibratorInterface.idl44 * @brief Controls the vibrator to perform a one-shot vibration that lasts for a given duration.
49 * @param duration Indicates the duration that the one-shot vibration lasts, in milliseconds.
55 StartOnce([in] unsigned int duration);
99 * @param duration Indicates the duration that the vibration lasts, in milliseconds.
113 …EnableVibratorModulation([in] unsigned int duration, [in] unsigned short intensity, [in] short fre…
DVibratorTypes.idl24 /**< Indicates the one-shot vibration with the given duration. */
124 …* The information include the capability to set the effect and the vibration duration of the effec…
129 /** Vibration duration of the effect, in milliseconds. */
130 int duration;
/drivers/interface/vibrator/v1_0/
DIVibratorInterface.idl44 * @brief Controls the vibrator to perform a one-shot vibration that lasts for a given duration.
49 * @param duration Indicates the duration that the one-shot vibration lasts, in milliseconds.
55 StartOnce([in] unsigned int duration);
DVibratorTypes.idl24 /**< Indicates the one-shot vibration with the given duration. */
/drivers/peripheral/vibrator/test/unittest/hdi/
Dhdf_vibrator_hdi_test.cpp428 printf("duration = [%d]\n\r", effectInfo.duration);
431 EXPECT_GT(effectInfo.duration, MIN_DURATION);
432 EXPECT_LE(effectInfo.duration, MAX_DURATION);
449 printf("duration = [%d]\n\r", effectInfo.duration);
452 EXPECT_EQ(effectInfo.duration, 0);
/drivers/interface/pin_auth/v1_1/
DPinAuthTypes.idl50 /**< Indicates that the property to get is lockout duration. */
65 /**< Indicates lockout duration. */
/drivers/hdf_core/framework/include/wifi/
Dhdf_wifi_event.h244 uint16_t duration; /**< Duration */ member
477 …32_t HdfWifiEventRemainOnChannel(const struct NetDevice *netDev, uint32_t freq, uint32_t duration);
/drivers/peripheral/usb/gadget/function/include/
Dcdcacm.h76 int32_t (*SendBreak)(struct UsbAcmDevice *acm, int32_t duration);
/drivers/peripheral/usb/test/unittest/device_sdk/
Dusb_device_cdcacm_test.h79 int32_t (*SendBreak)(struct AcmDevice *acm, int32_t duration);
/drivers/interface/face_auth/v1_1/
DFaceAuthTypes.idl50 /**< Indicates that the property to get is lockout duration. */
69 /**< Indicates lockout duration. */
/drivers/hdf_core/framework/model/misc/light/driver/src/
Dlight_driver.c152 uint32_t duration; in LightTimerEntry() local
166 duration = drvData->info[lightId]->offTime; in LightTimerEntry()
169 duration = drvData->info[lightId]->onTime; in LightTimerEntry()
174 if ((OsalTimerSetTimeout(&drvData->timer, duration) == HDF_SUCCESS)) { in LightTimerEntry()

123