/drivers/hdf_core/framework/model/misc/vibrator/driver/src/ |
D | vibrator_haptic.c | 161 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() 229 …duration = ((duration > 0) && (duration < VIBRATOR_MIN_WAIT_TIME)) ? VIBRATOR_MIN_WAIT_TIME : dura… in HapticTimerEntry() [all …]
|
D | vibrator_driver.c | 125 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/ |
D | vibrator_interface_impl.cpp | 41 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()
|
D | vibrator_interface_impl.h | 31 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/ |
D | vibrator_controller.c | 120 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/ |
D | README.md | 7 - 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. */
|
D | README_zh.md | 45 | int32_t StartOnce(uint32_t duration) | 按照指定持续时间触发振动,duration为振动持续时长。 … 48 …_t EnableVibratorModulation(uint32_t duration, int32_t intensity, int32_t frequency) | 按照指定振幅,频率、持…
|
/drivers/peripheral/vibrator/hdi_service/ |
D | vibrator_if_service.cpp | 83 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()
|
D | vibrator_if_service.h | 32 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/ |
D | vibrator_if.h | 63 int32_t (*StartOnce)(uint32_t duration); 120 int32_t (*EnableVibratorModulation)(uint32_t duration, uint16_t intensity, int16_t frequency);
|
D | vibrator_type.h | 176 int32_t duration; member
|
/drivers/hdf_core/framework/model/misc/vibrator/driver/include/ |
D | vibrator_haptic.h | 42 uint32_t duration; member 51 uint32_t duration[VIBRATOR_TIME_INDEX_BUTT]; member
|
/drivers/peripheral/vibrator/interfaces/v1_1/ |
D | ivibrator_interface_vdi.h | 36 virtual int32_t StartOnce(uint32_t duration) = 0; 40 …virtual int32_t EnableVibratorModulation(uint32_t duration, uint16_t intensity, int16_t frequency)…
|
D | ivibrator_type_vdi.h | 79 int32_t duration; member
|
/drivers/interface/vibrator/v1_1/ |
D | IVibratorInterface.idl | 44 * @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…
|
D | VibratorTypes.idl | 24 /**< 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/ |
D | IVibratorInterface.idl | 44 * @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);
|
D | VibratorTypes.idl | 24 /**< Indicates the one-shot vibration with the given duration. */
|
/drivers/peripheral/vibrator/test/unittest/hdi/ |
D | hdf_vibrator_hdi_test.cpp | 428 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/ |
D | PinAuthTypes.idl | 50 /**< Indicates that the property to get is lockout duration. */ 65 /**< Indicates lockout duration. */
|
/drivers/hdf_core/framework/include/wifi/ |
D | hdf_wifi_event.h | 244 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/ |
D | cdcacm.h | 76 int32_t (*SendBreak)(struct UsbAcmDevice *acm, int32_t duration);
|
/drivers/peripheral/usb/test/unittest/device_sdk/ |
D | usb_device_cdcacm_test.h | 79 int32_t (*SendBreak)(struct AcmDevice *acm, int32_t duration);
|
/drivers/interface/face_auth/v1_1/ |
D | FaceAuthTypes.idl | 50 /**< Indicates that the property to get is lockout duration. */ 69 /**< Indicates lockout duration. */
|
/drivers/hdf_core/framework/model/misc/light/driver/src/ |
D | light_driver.c | 152 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()
|