Home
last modified time | relevance | path

Searched refs:min (Results 1 – 25 of 96) sorted by relevance

1234

/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/engine/
DXTools.js54 export function RandInt(min = 0, max = 100) { argument
55 return Math.floor(Math.random() * (max - min)) + min;
/drivers/peripheral/audio/test/systemtest/hdi_service/common/capture/src/
Daudio_idl_hdicapture_volume_test.cpp326 float min = 0; variable
330 ret = capture->GetGainThreshold(capture, &min, &max);
333 EXPECT_EQ(min, GAIN_MIN);
345 float min = 0; variable
350 ret = capture->GetGainThreshold(captureNull, &min, &max);
376 float min = 0; variable
380 ret = capture->GetGainThreshold(capture, &min, maxNull);
391 float min = 0; variable
395 ret = capture->GetGainThreshold(capture, &min, &max);
399 float gainMin = min;
[all …]
/drivers/hdf_core/framework/support/platform/test/fuzztest/
Drandom.h15 int32_t randNum(int32_t min, int32_t max) in randNum() argument
19 std::uniform_int_distribution<int32_t> randomNum(min, max); in randNum()
/drivers/peripheral/audio/test/systemtest/hdi_service/common/render/src/
Daudio_idl_hdirender_volume_test.cpp70 float min = 0; variable
74 ret = render->GetGainThreshold(render, &min, &max);
77 EXPECT_EQ(min, GAIN_MIN);
89 float min = 0; variable
94 ret = render->GetGainThreshold(renderNull, &min, &max);
120 float min = 0; variable
124 ret = render->GetGainThreshold(render, &min, maxNull);
144 float min = 0; variable
146 ret = render->GetGainThreshold(render, &min, &max);
149 float gainMin = min;
[all …]
/drivers/hdf_core/framework/model/audio/core/include/
Daudio_control.h44 int32_t min; /* R: minimum value */ member
68 uint32_t min; member
/drivers/hdf_core/framework/include/platform/
Drtc_base.h48 #define IS_INVALID_MIN(min) ((min) >= RTC_MAX_MINUTE) argument
/drivers/peripheral/distributed_audio/interface/audio/v1_0/
Di_audio_volume.h31 virtual int32_t GetGainThreshold(float &min, float &max) = 0;
/drivers/peripheral/audio/interfaces/include/
Daudio_volume.h111 int32_t (*GetGainThreshold)(AudioHandle handle, float *min, float *max);
/drivers/peripheral/audio/interfaces/2.0/include/
Daudio_volume.h111 int32_t (*GetGainThreshold)(AudioHandle handle, float *min, float *max);
/drivers/peripheral/bluetooth/audio/interfaces/include/
Daudio_volume.h111 int32_t (*GetGainThreshold)(AudioHandle handle, float *min, float *max);
/drivers/peripheral/usb/test/moduletest/common/scripts/
Dusb_raw_host_loopback.sh18 stty -F "$device" raw speed 115200 min 0 time 5
/drivers/peripheral/audio/supportlibs/adm_adapter/include/
Daudio_interface_lib_common.h49 int32_t min; /* Read: minimum value */ member
Daudio_interface_lib_mixer.h115 int32_t min; /* R: minimum value */ member
/drivers/peripheral/codec/interfaces/include/
Dcodec_common_type.h144 int32_t min; /** Minimum value */ member
/drivers/interface/nnrt/v2_0/
DNnrtTypes.idl169 …* is the maximum value of the data to be quantized, <b>\f$ r_{min} \f$</b> is the minimum value of…
172 \text{clamp}(x,min,max) =
175 \text{min} & \text{ if } x < \text{ min } \\
181 \text{q}(x_i) = clamp(round(\frac{r}{scale}+zeroPoint), min , max)
189 scale = \frac{r_{max}-r_{min}}{q_{max}-q_{min}}
193 zeroPoint = round(q_{min}-\frac{r_{min}}{scale})
195 * <b>\f$ q_{min},q_{max} \f$</b> is calculated by using the following formula:
197 q_{min} = -(1<<(numBits-1))
202 …* When \f$ r_{min} \f$ and \f$ r_{max} \f$ are <b>0</b>, <b>scale</b> and <b>zeroPoint</b> must be…
532 \text{ReLU6}(x_i) = \min(\max(0, x_i), 6)
[all …]
/drivers/interface/nnrt/v1_0/
DNnrtTypes.idl164 …_{max} \f$</b> is the maximum value of the data to be quantized, <b>\f$ r_{min} \f$</b> is the min…
166 \text{clamp}(x,min,max) =
169 \text{min} & \text{ if } x < \text{ min } \\
175 \text{q}(x_i) = clamp(round(\frac{r}{scale}+zeroPoint), min , max)
183 scale = \frac{r_{max}-r_{min}}{q_{max}-q_{min}}
187 zeroPoint = round(q_{min}-\frac{r_{min}}{scale})
189 * <b>\f$ q_{min},q_{max} \f$</b> is calculated by using the following formula:
191 q_{min} = -(1<<(numBits-1))
196 …* When \f$ r_{min} \f$ and \f$ r_{max} \f$ are <b>0</b>, <b>scale</b> and <b>zeroPoint</b> must be…
509 \text{ReLU6}(x_i) = \min(\max(0, x_i), 6)
[all …]
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/resources/templates/lite/input_template/
Dinput_driver_source.template93 device->driver->inputDev->attrSet.axisInfo[ABS_X].min = 0;
96 device->driver->inputDev->attrSet.axisInfo[ABS_Y].min = 0;
99 device->driver->inputDev->attrSet.axisInfo[ABS_MT_POSITION_X].min = 0;
102 device->driver->inputDev->attrSet.axisInfo[ABS_MT_POSITION_Y].min = 0;
/drivers/hdf_core/framework/model/audio/usb/src/
Daudio_usb_mixer.c137 int32_t min, max, res; /* min & max is volume range, res is volume reset state */ member
147 uint32_t min; member
462 if (value < mixElemInfo->min) { in AudioUsbGetRelativeValue()
466 return (mixElemInfo->max - mixElemInfo->min + mixElemInfo->res - 1) / mixElemInfo->res; in AudioUsbGetRelativeValue()
469 return (value - mixElemInfo->min) / mixElemInfo->res; in AudioUsbGetRelativeValue()
475 return mixElemInfo->min; in AudioUsbGetAbsValue()
481 value += mixElemInfo->min; in AudioUsbGetAbsValue()
1075 if (temp < mixElemInfo->min || temp > mixElemInfo->max) { in AudioUsbCtlGetMaxVal()
1106 AudioUsbGetCtlValue(mixElemInfo, UAC_GET_MIN, request, &mixElemInfo->min) < HDF_SUCCESS) { in AudioUsbCtlGetMinMaxValSub()
1131 if (mixElemInfo->min + mixElemInfo->res < mixElemInfo->max) { in AudioUsbCtlGetMinMaxValSub()
[all …]
/drivers/interface/nnrt/v2_1/
DNnrtTypes.idl169 …* is the maximum value of the data to be quantized, <b>\f$ r_{min} \f$</b> is the minimum value of…
172 \text{clamp}(x,min,max) =
175 \text{min} & \text{ if } x < \text{ min } \\
181 \text{q}(x_i) = clamp(round(\frac{r}{scale}+zeroPoint), min , max)
189 scale = \frac{r_{max}-r_{min}}{q_{max}-q_{min}}
193 zeroPoint = round(q_{min}-\frac{r_{min}}{scale})
195 * <b>\f$ q_{min},q_{max} \f$</b> is calculated by using the following formula:
197 q_{min} = -(1<<(numBits-1))
202 …* When \f$ r_{min} \f$ and \f$ r_{max} \f$ are <b>0</b>, <b>scale</b> and <b>zeroPoint</b> must be…
628 \text{ReLU6}(x_i) = \min(\max(0, x_i), 6)
[all …]
/drivers/hdf_core/framework/model/input/driver/touchscreen/
Dtouch_ft5406.c178 device->driver->inputDev->attrSet.axisInfo[ABS_X].min = 0; in SetAbility()
181 device->driver->inputDev->attrSet.axisInfo[ABS_Y].min = 0; in SetAbility()
184 device->driver->inputDev->attrSet.axisInfo[ABS_MT_POSITION_X].min = 0; in SetAbility()
187 device->driver->inputDev->attrSet.axisInfo[ABS_MT_POSITION_Y].min = 0; in SetAbility()
Dtouch_ft5x06.c174 device->driver->inputDev->attrSet.axisInfo[ABS_X].min = NUM_0; in SetAbility()
177 device->driver->inputDev->attrSet.axisInfo[ABS_Y].min = NUM_0; in SetAbility()
180 device->driver->inputDev->attrSet.axisInfo[ABS_MT_POSITION_X].min = NUM_0; in SetAbility()
183 device->driver->inputDev->attrSet.axisInfo[ABS_MT_POSITION_Y].min = NUM_0; in SetAbility()
/drivers/hdf_core/framework/model/audio/core/src/
Daudio_core.c505 if (mixerValue < mixerCtrl->min || mixerValue > mixerCtrl->max) { in AudioCodecRegUpdate()
581 if (value < mixerCtrl->min || value > mixerCtrl->max) { in AudioDaiRegUpdate()
714 elemInfo->min = mixerCtrl->min; in AudioInfoCtrlOps()
737 elemInfo->min = 0; in AudioInfoEnumCtrlOps()
757 if (rcurValue > mixerCtrl->max || rcurValue < mixerCtrl->min) { in AudioGetCtrlOpsRReg()
779 if (curValue > mixerCtrl->max || curValue < mixerCtrl->min) { in AudioGetCtrlOpsReg()
905 if (val < mixerCtrl->min || val > mixerCtrl->max) { in AudioSetCtrlOpsReg()
926 if (val < mixerCtrl->min || val > mixerCtrl->max) { in AudioSetCtrlOpsRReg()
/drivers/hdf_core/framework/model/input/driver/
Dhdf_hid_adapter.h52 int32_t min; member
/drivers/peripheral/codec/hal/idl_service/src/
Dcodec_component_config.cpp261 …t32(&childNode, CODEC_CONFIG_KEY_MIN_BITRATE, reinterpret_cast<uint32_t *>(&cap.bitRate.min), 0) != in GetMiscOfCapability()
330 {CODEC_CONFIG_KEY_MIN_BLOCK_COUNT, cap.port.video.blockCount.min, 0}, in GetVideoPortCapability()
332 {CODEC_CONFIG_KEY_MIN_BLOCKS_PER_SECOND, cap.port.video.blocksPerSecond.min, 0}, in GetVideoPortCapability()
336 {CODEC_CONFIG_KEY_MIN_FRAME_RATE, cap.port.video.frameRate.min, 0}, in GetVideoPortCapability()
/drivers/peripheral/codec/hal/src/
Dcodec_config_parser.c134 …{CODEC_CONFIG_KEY_MIN_BLOCK_COUNT, (uint32_t*)&cap->port.video.blockCount.min, … in GetVideoPortCapability()
136 …{CODEC_CONFIG_KEY_MIN_BLOCKS_PER_SECOND, (uint32_t*)&cap->port.video.blocksPerSecond.min, … in GetVideoPortCapability()
140 …{CODEC_CONFIG_KEY_MIN_FRAME_RATE, (uint32_t *)&cap->port.video.frameRate.min, … in GetVideoPortCapability()
219 …if (iface->GetUint32(childNode, CODEC_CONFIG_KEY_MIN_BITRATE, (uint32_t*)&(cap->bitRate.min), 0) !… in GetMiscOfCapability()

1234