Home
last modified time | relevance | path

Searched refs:max (Results 1 - 25 of 92) sorted by relevance

1234

/drivers/hdf_core/adapter/khdf/liteos_m/model/storage/src/mmc/
H A Dmmc_block_lite.c75 size_t max; in DisckMmcRead() local
82 max = (size_t)(-1); in DisckMmcRead()
83 if (startSector >= (DWORD)max || nSectors >= (UINT)max) { in DisckMmcRead()
102 size_t max; in DiskMmcWrite() local
109 max = (size_t)(-1); in DiskMmcWrite()
110 if (startSector >= (DWORD)max || nSectors >= (UINT)max) { in DiskMmcWrite()
/drivers/peripheral/camera/vdi_base/common/pipeline_core/pipeline_impl/src/builder/
H A Dstream_pipeline_builder.cpp25 std::vector<int32_t> max(2); in SetMaxSize()
27 if (i[0] * i[1] > max[0] * max[1]) { in SetMaxSize()
28 max[0] = i[0]; in SetMaxSize()
29 max[1] = i[1]; in SetMaxSize()
32 pipeline_->maxWidth_ = max[0]; in SetMaxSize()
33 pipeline_->maxHeight_ = max[1]; in SetMaxSize()
/drivers/hdf_core/framework/support/platform/test/fuzztest/
H A 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/hdf_core/framework/model/audio/core/include/
H A Daudio_control.h45 int32_t max; /* R: maximum value */ member
59 uint32_t max; member
69 uint32_t max; member
H A Daudio_parse.h82 uint32_t max; member
/drivers/peripheral/audio/test/systemtest/hdi_service/common/capture/src/
H A Daudio_idl_hdicapture_volume_test.cpp327 float max = 0; in HWTEST_F() local
330 ret = capture->GetGainThreshold(capture, &min, &max); in HWTEST_F()
334 EXPECT_LE(max, GAIN_MAX); in HWTEST_F()
346 float max = 0; in HWTEST_F() local
350 ret = capture->GetGainThreshold(captureNull, &min, &max); in HWTEST_F()
361 float max = 0; in HWTEST_F() local
365 ret = capture->GetGainThreshold(capture, minNull, &max); in HWTEST_F()
370 * @tc.desc test AudioCaptureGetGainThreshold interface, return -3 if the incoming parameter max is nullptr.
392 float max = 0; in HWTEST_F() local
395 ret = capture->GetGainThreshold(capture, &min, &max); in HWTEST_F()
431 float max = 0; HWTEST_F() local
469 float max = 0; HWTEST_F() local
[all...]
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/engine/
H A DXTools.js54 export function RandInt(min = 0, max = 100) {
55 return Math.floor(Math.random() * (max - min)) + min;
/drivers/peripheral/audio/test/systemtest/hdi_service/common/render/src/
H A Daudio_idl_hdirender_volume_test.cpp71 float max = 0; in HWTEST_F() local
74 ret = render->GetGainThreshold(render, &min, &max); in HWTEST_F()
78 EXPECT_LE(max, GAIN_MAX); in HWTEST_F()
90 float max = 0; in HWTEST_F() local
94 ret = render->GetGainThreshold(renderNull, &min, &max); in HWTEST_F()
105 float max = 0; in HWTEST_F() local
109 ret = render->GetGainThreshold(render, minNull, &max); in HWTEST_F()
114 * @tc.desc Test RenderGetGainThreshold interface, return -3 if set max to nullptr
145 float max = 0; in HWTEST_F() local
146 ret = render->GetGainThreshold(render, &min, &max); in HWTEST_F()
175 float max = 0; HWTEST_F() local
228 float max = 0; HWTEST_F() local
[all...]
/drivers/hdf_core/adapter/khdf/liteos/model/storage/src/mmc/
H A Dmmc_block_lite.c95 size_t max; in LiteosBlockRead() local
102 max = (size_t)(-1); in LiteosBlockRead()
105 if (secStart >= max || nSecs >= max) { in LiteosBlockRead()
120 size_t max; in LiteosBlockWrite() local
127 max = (size_t)(-1); in LiteosBlockWrite()
130 if (secStart >= max || nSecs >= max) { in LiteosBlockWrite()
/drivers/hdf_core/framework/model/audio/core/src/
H A Daudio_core.c505 if (mixerValue < mixerCtrl->min || mixerValue > mixerCtrl->max) { in AudioCodecRegUpdate()
511 mixerValue = mixerCtrl->max - mixerCtrl->value; in AudioCodecRegUpdate()
547 if (val[0] > enumCtrl->max) { in AudioCodecMuxRegUpdate()
558 if (val[1] > enumCtrl->max) { in AudioCodecMuxRegUpdate()
581 if (value < mixerCtrl->min || value > mixerCtrl->max) { in AudioDaiRegUpdate()
587 value = mixerCtrl->max - mixerCtrl->value; in AudioDaiRegUpdate()
715 elemInfo->max = mixerCtrl->max; in AudioInfoCtrlOps()
738 elemInfo->max = enumCtrl->max; in AudioInfoEnumCtrlOps()
[all...]
/drivers/peripheral/audio/interfaces/include/
H A Daudio_volume.h106 * @param max Indicates the pointer to the maximum value of the range.
111 int32_t (*GetGainThreshold)(AudioHandle handle, float *min, float *max);
/drivers/peripheral/distributed_audio/interface/audio/v1_0/
H A Di_audio_volume.h31 virtual int32_t GetGainThreshold(float &min, float &max) = 0;
/drivers/peripheral/audio/interfaces/2.0/include/
H A Daudio_volume.h106 * @param max Indicates the pointer to the maximum value of the range.
111 int32_t (*GetGainThreshold)(AudioHandle handle, float *min, float *max);
/drivers/peripheral/bluetooth/audio/interfaces/include/
H A Daudio_volume.h106 * @param max Indicates the pointer to the maximum value of the range.
111 int32_t (*GetGainThreshold)(AudioHandle handle, float *min, float *max);
/drivers/peripheral/audio/supportlibs/adm_adapter/include/
H A Daudio_interface_lib_common.h50 int32_t max; /* Read: maximum value */ member
H A Daudio_interface_lib_mixer.h116 int32_t max; /* R: maximum value */ member
/drivers/hdf_core/framework/model/audio/usb/src/
H A Daudio_usb_mixer.c89 #define MAX_CHANNELS 16 /* max logical channels */
137 int32_t min, max, res; /* min & max is volume range, res is volume reset state */ member
148 uint32_t max; member
465 if (value >= mixElemInfo->max) { in AudioUsbGetRelativeValue()
466 return (mixElemInfo->max - mixElemInfo->min + mixElemInfo->res - 1) / mixElemInfo->res; in AudioUsbGetRelativeValue()
482 if (value > mixElemInfo->max) { in AudioUsbGetAbsValue()
483 return mixElemInfo->max; in AudioUsbGetAbsValue()
1069 if (temp < mixElemInfo->max) { in AudioUsbCtlGetMaxVal()
1075 if (temp < mixElemInfo->min || temp > mixElemInfo->max) { in AudioUsbCtlGetMaxVal()
[all...]
/drivers/peripheral/codec/interfaces/include/
H A Dcodec_common_type.h145 int32_t max; /** Maximum value */ member
/drivers/hdf_core/framework/model/input/driver/touchscreen/
H A Dtouch_ft5406.c179 device->driver->inputDev->attrSet.axisInfo[ABS_X].max = device->boardCfg->attr.resolutionX - 1; in SetAbility()
182 device->driver->inputDev->attrSet.axisInfo[ABS_Y].max = device->boardCfg->attr.resolutionY - 1; in SetAbility()
185 device->driver->inputDev->attrSet.axisInfo[ABS_MT_POSITION_X].max = device->boardCfg->attr.resolutionX - 1; in SetAbility()
188 device->driver->inputDev->attrSet.axisInfo[ABS_MT_POSITION_Y].max = device->boardCfg->attr.resolutionY - 1; in SetAbility()
190 device->driver->inputDev->attrSet.axisInfo[ABS_MT_TRACKING_ID].max = MAX_SUPPORT_POINT; in SetAbility()
H A Dtouch_ft5x06.c175 device->driver->inputDev->attrSet.axisInfo[ABS_X].max = device->boardCfg->attr.resolutionX - NUM_1; in SetAbility()
178 device->driver->inputDev->attrSet.axisInfo[ABS_Y].max = device->boardCfg->attr.resolutionY - NUM_1; in SetAbility()
181 device->driver->inputDev->attrSet.axisInfo[ABS_MT_POSITION_X].max = device->boardCfg->attr.resolutionX - NUM_1; in SetAbility()
184 device->driver->inputDev->attrSet.axisInfo[ABS_MT_POSITION_Y].max = device->boardCfg->attr.resolutionY - NUM_1; in SetAbility()
186 device->driver->inputDev->attrSet.axisInfo[ABS_MT_TRACKING_ID].max = MAX_POINT; in SetAbility()
H A Dtouch_gt911.c287 device->driver->inputDev->attrSet.axisInfo[ABS_X].max = device->boardCfg->attr.resolutionX - 1; in SetAbility()
290 device->driver->inputDev->attrSet.axisInfo[ABS_Y].max = device->boardCfg->attr.resolutionY - 1; in SetAbility()
293 device->driver->inputDev->attrSet.axisInfo[ABS_MT_POSITION_X].max = device->boardCfg->attr.resolutionX - 1; in SetAbility()
296 device->driver->inputDev->attrSet.axisInfo[ABS_MT_POSITION_Y].max = device->boardCfg->attr.resolutionY - 1; in SetAbility()
298 device->driver->inputDev->attrSet.axisInfo[ABS_MT_TRACKING_ID].max = MAX_POINT; in SetAbility()
/drivers/peripheral/audio/test/hal_mock/
H A Daudio_render_mock.c203 static int32_t GetGainThreshold(struct IAudioRenderVdi* render, float *min, float *max) in GetGainThreshold() argument
205 if (render == NULL || min == NULL || max == NULL) { in GetGainThreshold()
210 (void *)max; in GetGainThreshold()
/drivers/hdf_core/framework/model/input/driver/
H A Dhdf_hid_adapter.h53 int32_t max; member
/drivers/peripheral/codec/hal/idl_service/src/
H A Dcodec_component_config.cpp270 if (iface.GetUint32(&childNode, CODEC_CONFIG_KEY_MAX_BITRATE, reinterpret_cast<uint32_t *>(&cap.bitRate.max), 0) != in GetMiscOfCapability()
335 {CODEC_CONFIG_KEY_MAX_BLOCK_COUNT, cap.port.video.blockCount.max, 0}, in GetVideoPortCapability()
337 {CODEC_CONFIG_KEY_MAX_BLOCKS_PER_SECOND, cap.port.video.blocksPerSecond.max, 0}, in GetVideoPortCapability()
341 {CODEC_CONFIG_KEY_MAX_FRAME_RATE, cap.port.video.frameRate.max, 0}}; in GetVideoPortCapability()
/drivers/peripheral/codec/hal/src/
H A Dcodec_config_parser.c73 CODEC_LOGE("%{public}s table size: %{public}d incorrect or exceed max size %{public}d!", attr->attrName, in GetUintTableConfig()
135 {CODEC_CONFIG_KEY_MAX_BLOCK_COUNT, (uint32_t*)&cap->port.video.blockCount.max, 0}, in GetVideoPortCapability()
137 {CODEC_CONFIG_KEY_MAX_BLOCKS_PER_SECOND, (uint32_t*)&cap->port.video.blocksPerSecond.max, 0}, in GetVideoPortCapability()
141 {CODEC_CONFIG_KEY_MAX_FRAME_RATE, (uint32_t *)&cap->port.video.frameRate.max, 0} in GetVideoPortCapability()
222 if (iface->GetUint32(childNode, CODEC_CONFIG_KEY_MAX_BITRATE, (uint32_t*)&(cap->bitRate.max), 0) != HDF_SUCCESS) { in GetMiscOfCapability()

Completed in 14 milliseconds

1234