/drivers/peripheral/vibrator/interfaces/include/ |
H A D | vibrator_type.h | 60 /** The frequency setting is not supported. */ 109 * The parameters include the setting intensity and frequency capability the on and intensity and frequency range. 116 /**< setting frequency capability. 1 indicates support, 0 indicates not support. */ 122 /**< Max frequency(Hz). */ 124 /**< Min frequency(Hz). */ 131 * The parameters include delay, time, intensity and frequency of vibration. 139 int16_t frequency; /** Vibration frequency(Hz). */ member 199 * The information include the time, intensity, and frequency 209 int32_t frequency; global() member 229 int32_t frequency; global() member [all...] |
H A D | vibrator_if.h | 93 * @brief Obtains information about all the vibrator that support setting intensity and frequency in the system. 110 * @param frequency indicates vibrator frequency in a vibration period. 115 * @return Returns <b>-3</b> if the frequency setting is not supported. 120 int32_t (*EnableVibratorModulation)(uint32_t duration, uint16_t intensity, int16_t frequency);
|
/drivers/peripheral/vibrator/interfaces/v1_1/ |
H A D | ivibrator_type_vdi.h | 65 int16_t frequency;
member 92 int32_t frequency;
member 100 int32_t frequency;
member
|
H A D | ivibrator_interface_vdi.h | 41 virtual int32_t EnableVibratorModulation(uint32_t duration, uint16_t intensity, int16_t frequency) = 0;
|
/drivers/peripheral/vibrator/hdi_service/ |
H A D | vibrator_if_service.cpp | 216 int32_t VibratorIfService::EnableVibratorModulation(uint32_t duration, uint16_t intensity, int16_t frequency)
in EnableVibratorModulation() argument 218 HDF_LOGD("%{public}s: duration is %{public}u, intensity is %{public}u, frequency is %{public}d.",
in EnableVibratorModulation() 219 __func__, duration, intensity, frequency);
in EnableVibratorModulation() 226 int32_t ret = vibratorVdiImpl_->EnableVibratorModulation(duration, intensity, frequency);
in EnableVibratorModulation() 250 hdfEffectVdi.timeEffect.frequency = compositeEffects.timeEffect.frequency;
in EnableCompositeEffect() 333 hapticEventVdi.frequency = event.frequency;
in PlayHapticPattern() 340 curvePointVdip.frequency = point.frequency;
in PlayHapticPattern() [all...] |
H A D | vibrator_if_service.h | 37 int32_t EnableVibratorModulation(uint32_t duration, uint16_t intensity, int16_t frequency) override;
|
/drivers/peripheral/vibrator/hal/src/ |
H A D | vibrator_controller.c | 121 static int32_t ValidityJudgment(uint32_t duration, uint16_t intensity, int16_t frequency) in ValidityJudgment() argument 136 if ((priv->vibratorInfoEntry.isSupportFrequency == 0) || (frequency < priv->vibratorInfoEntry.frequencyMinValue) || in ValidityJudgment() 137 (frequency > priv->vibratorInfoEntry.frequencyMaxValue)) { in ValidityJudgment() 138 HDF_LOGE("%s:frequency not supported", __func__); in ValidityJudgment() 145 static int32_t EnableVibratorModulation(uint32_t duration, uint16_t intensity, int16_t frequency) in EnableVibratorModulation() argument 150 ret = ValidityJudgment(duration, intensity, frequency); in EnableVibratorModulation() 178 if (!HdfSbufWriteInt16(msg, frequency)) { in EnableVibratorModulation() 179 HDF_LOGE("%{public}s: write frequency failed.", __func__); in EnableVibratorModulation()
|
/drivers/peripheral/wlan/wpa/interfaces/hdi_service/service_common/ |
H A D | wpa_hal_p2p_struct.h | 55 int frequency; member 153 int frequency; member
|
H A D | wpa_hal_struct.h | 165 int frequency; member
|
/drivers/hdf_core/framework/model/audio/usb/src/ |
H A D | audio_usb_endpoints.c | 422 uint32_t frequency; in AudioUsbHandleSyncUrb() local 432 frequency = le32_to_cpup(urb->transfer_buffer); in AudioUsbHandleSyncUrb() 434 frequency &= 0x00ffffff; // ISO_FRAME_DESC_3 frequency is the valid value of the lower 24 bits in AudioUsbHandleSyncUrb() 436 frequency &= 0x0fffffff; // other frequency is the valid value of the lower 28 bits in AudioUsbHandleSyncUrb() 438 if (frequency == 0) { in AudioUsbHandleSyncUrb() 442 if (frequency < endpoint->freqn - 0x8000) { in AudioUsbHandleSyncUrb() 444 frequency += 0xf000; in AudioUsbHandleSyncUrb() 445 } else if (frequency > endpoin in AudioUsbHandleSyncUrb() [all...] |
/drivers/hdf_core/framework/model/misc/vibrator/driver/include/ |
H A D | vibrator_driver.h | 22 int32_t (*SetParameter)(uint16_t intensity, int16_t frequency);
|
/drivers/peripheral/vibrator/test/fuzztest/vibratorplayhapticpattern_fuzzer/ |
H A D | vibratorplayhapticpattern_fuzzer.cpp | 70 hapticEvent.frequency = params.g_eventFrequency; in VibratorPlayHapticPatternTest() 77 curvePoint.frequency = params.g_pointFrequency; in VibratorPlayHapticPatternTest()
|
/drivers/hdf_core/framework/test/unittest/platform/common/ |
H A D | rtc_test.h | 31 uint32_t frequency; member
|
H A D | rtc_test.c | 360 freq = tester->config.frequency; in RtcAlarmIrqAttachConfig() 449 ret = RtcSetFreq(tester->handle, tester->config.frequency); in RtcSetNormalFreqTest() 451 HDF_LOGE("RtcSetNormalFreqTest: set normal frequency fail, ret: %d!", ret); in RtcSetNormalFreqTest() 462 ret = RtcSetFreq(tester->handle, tester->config.frequency * RTC_TIME_UNIT); in RtcSetMaxFreqTest() 464 HDF_LOGE("RtcSetMaxFreqTest: set max frequency test fail!"); in RtcSetMaxFreqTest() 477 HDF_LOGE("RtcSetMinFreqTest: set min frequency test fail!"); in RtcSetMinFreqTest() 481 ret = RtcSetFreq(tester->handle, tester->config.frequency); in RtcSetMinFreqTest() 547 freq = tester->config.frequency; in RtcTestSample() 550 HDF_LOGE("RtcTestSample: set frequency fail, ret: %d!", ret); in RtcTestSample()
|
H A D | rtc_driver_test.c | 93 ret = drsOps->GetUint32(node, "frequency", &config->frequency, 0); in RtcTestReadConfig() 95 HDF_LOGE("RtcTestReadConfig: read frequency fail, ret: %d!", ret); in RtcTestReadConfig()
|
/drivers/peripheral/vibrator/hdi_impl/ |
H A D | vibrator_interface_impl.h | 35 int32_t EnableVibratorModulation(uint32_t duration, uint16_t intensity, int16_t frequency) override;
|
H A D | vibrator_interface_impl.cpp | 136 int32_t VibratorInterfaceImpl::EnableVibratorModulation(uint32_t duration, uint16_t intensity, int16_t frequency) in EnableVibratorModulation() argument 138 HDF_LOGI("%{public}s: duration is %{public}u, intensity is %{public}u, frequency is %{public}d.", in EnableVibratorModulation() 139 __func__, duration, intensity, frequency); in EnableVibratorModulation() 146 int32_t ret = vibratorInterface->EnableVibratorModulation(duration, intensity, frequency); in EnableVibratorModulation()
|
/drivers/hdf_core/framework/model/misc/vibrator/driver/src/ |
H A D | vibrator_driver.c | 261 int16_t frequency; in EnableModulationParameter() local 284 if (!HdfSbufReadInt16(data, &frequency)) { in EnableModulationParameter() 285 HDF_LOGE("%s: sbuf read frequency failed!", __func__); in EnableModulationParameter() 293 ret = drvData->ops.SetParameter(intensity, frequency); in EnableModulationParameter()
|
/drivers/peripheral/vibrator/test/unittest/hdi/ |
H A D | hdi_unittest_vibrator.cpp | 383 int32_t frequency = 200; in HWTEST_F() local 385 startRet = g_vibratorInterface->EnableVibratorModulation(duration, intensity, frequency); in HWTEST_F() 412 int32_t frequency = 200; in HWTEST_F() local 413 startRet = g_vibratorInterface->EnableVibratorModulation(noDuration, intensity, frequency); in HWTEST_F()
|
/drivers/peripheral/wlan/hal/src/ |
H A D | wifi_hal.c | 377 static int32_t SetPowerSaveModeInner(const char *ifName, int32_t frequency, int32_t mode) in SetPowerSaveModeInner() argument 383 return WifiSetPowerSaveMode(ifName, frequency, mode); in SetPowerSaveModeInner() 386 static int32_t SetPowerSaveMode(const char *ifName, int32_t frequency, int32_t mode) in SetPowerSaveMode() argument 389 int32_t ret = SetPowerSaveModeInner(ifName, frequency, mode); in SetPowerSaveMode()
|
/drivers/peripheral/wlan/interfaces/include/ |
H A D | wifi_hal.h | 356 * @param freq Indicates the send channel frequency. 386 * @param frequency Indicates connected ap frequency. 394 int32_t (*setPowerSaveMode)(const char *ifName, int32_t frequency, int32_t mode);
|
/drivers/peripheral/wlan/wpa/client/include/ |
H A D | wpa_client.h | 177 int frequency;
member
|
/drivers/peripheral/vibrator/chipset/drv2605l/ |
H A D | vibrator_drv2605l_driver.c | 184 static int32_t SetModulationParameter(uint16_t intensity, int16_t frequency) in SetModulationParameter() argument 204 if (frequency != 0) { in SetModulationParameter() 206 value[DRV2605L_VALUE_INDEX] = (uint8_t)FREQUENCY_MAPPING_VALUE(frequency); in SetModulationParameter() 212 HDF_LOGD("%s: the setting of frequency 0 is not supported and \ in SetModulationParameter() 213 will be set as the system default frequency", __func__); in SetModulationParameter()
|
/drivers/peripheral/wlan/hdi_service/service_common/ |
H A D | wlan_common_cmd.h | 76 int32_t WlanInterfaceSetPowerSaveMode(struct IWlanInterface *self, const char *ifName, int32_t frequency,
|
/drivers/peripheral/wlan/test/unittest/client/ |
H A D | hdf_client_test.cpp | 1139 int32_t frequency = 0; 1142 WifiSetPowerSaveMode(ifName, frequency, mode);
|