Home
last modified time | relevance | path

Searched refs:max (Results 1 – 25 of 1382) sorted by relevance

12345678910>>...56

/ohos5.0/docs/zh-cn/device-dev/reference/hdi-apis/nnrt/
H A D_quant_param_v10.md8 相关的公式如下,q为量化后的参数,r为真实参数, \( r_{max} \)为待量化数据的最大值, \( r_{min} \)待量化数据的最小值,round(x)为x四舍五入取整,clamp(x,m…
10 \[ \text{clamp}(x,min,max) = \begin{cases} \text{max} & \text{ if } x > \text{ max } \\ \tex…
13 $ \text{q}(x_i) = clamp(round(\frac{r}{scale}+zeroPoint), min , max) $
19 $ scale = \frac{r_{max}-r_{min}}{q_{max}-q_{min}} $
24 - 量化参数 \( q_{min},q_{max} \) 如下公式计算:
27 $ q_{max} = (1<<(numBits-1))-1 $
29 特殊情况:当$ r_{min} $和$ r_{max} $同时为0时,scale 和 zeroPoint均为0。
H A D_quant_param_v20.md8 相关的公式如下,q为量化后的参数,r为真实参数, \( r_{max} \)为待量化数据的最大值, \( r_{min} \)待量化数据的最小值,round(x)为x四舍五入取整,clamp(x,m…
10 \[ \text{clamp}(x,min,max) = \begin{cases} \text{max} & \text{ if } x > \text{ max } \\ \tex…
13 $ \text{q}(x_i) = clamp(round(\frac{r}{scale}+zeroPoint), min , max) $
19 $ scale = \frac{r_{max}-r_{min}}{q_{max}-q_{min}} $
24 - 量化参数 \( q_{min},q_{max} \) 如下公式计算:
27 $ q_{max} = (1<<(numBits-1))-1 $
29 特殊情况:当 \( r_{min} \)和 \( r_{max} \)同时为0时,scale 和 zeroPoint均为0。
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/painter/
H A Drosen_universal_painter.cpp70 … std::max(RosenUniversalPainter::NormalizeToPx(corner.bottomRightRadius.GetX(), dipScale), 0.0)), in DrawRRectBackground()
72 … std::max(RosenUniversalPainter::NormalizeToPx(corner.bottomRightRadius.GetY(), dipScale), 0.0))); in DrawRRectBackground()
76 … std::max(RosenUniversalPainter::NormalizeToPx(corner.bottomLeftRadius.GetY(), dipScale), 0.0))); in DrawRRectBackground()
92 … std::max(RosenUniversalPainter::NormalizeToPx(corner.topLeftRadius.GetX(), dipScale), 0.0)), in DrawRRectBackground()
94 … std::max(RosenUniversalPainter::NormalizeToPx(corner.topLeftRadius.GetY(), dipScale), 0.0)))); in DrawRRectBackground()
97 … std::max(RosenUniversalPainter::NormalizeToPx(corner.topRightRadius.GetX(), dipScale), 0.0)), in DrawRRectBackground()
99 … std::max(RosenUniversalPainter::NormalizeToPx(corner.topRightRadius.GetY(), dipScale), 0.0)))); in DrawRRectBackground()
102 … std::max(RosenUniversalPainter::NormalizeToPx(corner.bottomRightRadius.GetX(), dipScale), 0.0)), in DrawRRectBackground()
104 … std::max(RosenUniversalPainter::NormalizeToPx(corner.bottomRightRadius.GetY(), dipScale), 0.0)))); in DrawRRectBackground()
107 … std::max(RosenUniversalPainter::NormalizeToPx(corner.bottomLeftRadius.GetX(), dipScale), 0.0)), in DrawRRectBackground()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Dimage_painter_utils.cpp42 SkFloatToScalar(std::max(radiusXY[SkRRect::kUpperLeft_Corner].GetX(), 0.0f)), in ToSkRadius()
43 SkFloatToScalar(std::max(radiusXY[SkRRect::kUpperLeft_Corner].GetY(), 0.0f))); in ToSkRadius()
45 SkFloatToScalar(std::max(radiusXY[SkRRect::kUpperRight_Corner].GetX(), 0.0f)), in ToSkRadius()
46 SkFloatToScalar(std::max(radiusXY[SkRRect::kUpperRight_Corner].GetY(), 0.0f))); in ToSkRadius()
48 SkFloatToScalar(std::max(radiusXY[SkRRect::kLowerRight_Corner].GetX(), 0.0f)), in ToSkRadius()
49 SkFloatToScalar(std::max(radiusXY[SkRRect::kLowerRight_Corner].GetY(), 0.0f))); in ToSkRadius()
51 SkFloatToScalar(std::max(radiusXY[SkRRect::kLowerLeft_Corner].GetX(), 0.0f)), in ToSkRadius()
52 SkFloatToScalar(std::max(radiusXY[SkRRect::kLowerLeft_Corner].GetY(), 0.0f))); in ToSkRadius()
62 … RSPoint(static_cast<RSScalar>(std::max(radiusXY[RSRoundRect::TOP_LEFT_POS].GetX(), 0.0f)),
63 static_cast<RSScalar>(std::max(radiusXY[RSRoundRect::TOP_LEFT_POS].GetY(), 0.0f)));
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/hyper_graphic_manager/unittest/
H A Dhgm_multi_app_strategy_test.cpp143 ASSERT_EQ(strategyConfig.max, fps0);
164 ASSERT_EQ(strategyConfig.max, fps0);
173 ASSERT_EQ(strategyConfig.max, fps0);
200 ASSERT_EQ(strategyConfig.max, fps0);
299 ASSERT_EQ(strategyConfig.max, fps1);
323 ASSERT_EQ(strategyConfig.max, fps1);
364 ASSERT_EQ(strategyConfig.max, fps1);
405 ASSERT_EQ(strategyConfig.max, fps1);
425 ASSERT_EQ(strategyConfig.max, fps0);
503 ASSERT_EQ(strategyConfig.max, fps0);
[all …]
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/js-service-widget-ui/
H A Djs-service-widget-common-mediaquery.md33 \@media (max-height: 800) { … } // 范围查询,CSS level 3 写法
53 @import '../common/style.css' screen and (min-width: 600) and (max-width: 1200);
76 | or | 将多个媒体特征以“或”的方式连接成一个媒体查询,如果存在结果为true的媒体特征,则查询条件成立。<br/>例如:screen&nbsp;and&nbsp;(max-height:&n…
78 在MediaQuery Level 4中引入了范围查询,使其能够使用max-,min-的同时,也支持了&lt;=,&gt;=,&lt;,&gt;操作符。
96 | max-height | 应用页面显示区域的最大高度。 |
99 | max-width | 应用页面显示区域的最大宽度。 |
102 | max-resolution | 设备的最大分辨率。 |
106 | max-aspect-ratio | 应用页面显示区域的宽度与高度的最大比值。 |
109 | max-device-height | 设备的最大高度。 |
112 | max-device-width | 设备的最大宽度。 |
[all …]
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/src/util/config/
H A Dsettings.rs49 pub fn limited(max: usize) -> Self { in limited()
50 Self(redirect::Redirect::limited(max)) in limited()
148 pub fn max() -> Self { in max() method
233 max: u64, field
269 self.min = (cmp::min(self.max, min), Duration::from_secs(secs)); in min_speed()
288 pub fn max_speed(mut self, max: u64) -> Self { in max_speed()
289 self.max = cmp::max(self.min.0, max); in max_speed()
305 max: u64::MAX, in none()
533 let retry = Retry::max(); in ut_retry_max()
568 assert_eq!(speed.max, SpeedLimit::default().max) in ut_speed_limit_default()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-js/
H A Djs-components-common-mediaquery.md30 @media (max-height: 800) { … } :范围查询,CSS level 3 写法
48 @import '../common/style.css' screen and (min-width: 600) and (max-width: 1200);
68 …<br/>例如:not&nbsp;screen&nbsp;and&nbsp;(min-height:&nbsp;50)&nbsp;and&nbsp;(max-height:&nbsp;600)&n…
71 | or | 将多个媒体特征以“或”的方式连接成一个媒体查询,如果存在结果为true的媒体特征,则查询条件成立。<br/>例如:screen&nbsp;and&nbsp;(max-hei…
73 在MediaQuery Level 4中引入了范围查询,使其能够使用max-,min-的同时,也支持了&lt;=,&gt;=,&lt;,&gt;操作符。
91 | max-height | 应用页面显示区域的最大高度。 |
94 | max-width | 应用页面显示区域的最大宽度。 |
97 | max-resolution | 设备的最大分辨率。 |
101 | max-aspect-ratio | 应用页面显示区域的宽度与高度的最大比值。 |
104 | max-device-height | 设备的最大高度。 |
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/animation/
H A Drs_frame_rate_range.h40 FrameRateRange(int min, int max, int preferred) : min_(min), max_(max), preferred_(preferred) {} in FrameRateRange() argument
42 FrameRateRange(int min, int max, int preferred, int type) : min_(min), max_(max), in FrameRateRange() argument
45 …FrameRateRange(int min, int max, int preferred, int type, ComponentScene componentScene) : min_(mi… in FrameRateRange() argument
74 void Set(int min, int max, int preferred) in Set() argument
77 this->max_ = max; in Set()
81 void Set(int min, int max, int preferred, int type) in Set() argument
84 this->max_ = max; in Set()
/ohos5.0/foundation/communication/netstack/frameworks/cj/http/src/
H A Dnet_http_cache_strategy.cpp112 int64_t age = std::max<int64_t>(0, cacheResponse_.GetAgeSeconds()); in CacheResponseAgeMillis()
113 int64_t dateTime = std::max<int64_t>(0, cacheResponse_.GetDate()); in CacheResponseAgeMillis()
114 int64_t nowTime = std::max<int64_t>(0, GetNowTimeSeconds()); in CacheResponseAgeMillis()
115 int64_t requestTime = std::max<int64_t>(0, cacheResponse_.GetRequestTime()); in CacheResponseAgeMillis()
116 int64_t responseTime = std::max<int64_t>(0, cacheResponse_.GetResponseTime()); in CacheResponseAgeMillis()
122 int64_t apparentAge = std::max<int64_t>(0, responseTime - dateTime); in CacheResponseAgeMillis()
123 int64_t responseDelay = std::max<int64_t>(0, responseTime - requestTime); in CacheResponseAgeMillis()
125 int64_t correctedInitialAge = std::max<int64_t>(apparentAge, correctedAgeValue); in CacheResponseAgeMillis()
127 int64_t residentTime = std::max<int64_t>(0, nowTime - responseTime); in CacheResponseAgeMillis()
154 return std::max<int64_t>(delta, 0); in ComputeFreshnessLifetimeSecondsInternal()
[all …]
/ohos5.0/foundation/communication/netstack/frameworks/js/napi/http/cache/cache_strategy/src/
H A Dhttp_cache_strategy.cpp114 int64_t age = std::max<int64_t>(0, cacheResponse_.GetAgeSeconds()); in CacheResponseAgeMillis()
115 int64_t dateTime = std::max<int64_t>(0, cacheResponse_.GetDate()); in CacheResponseAgeMillis()
116 int64_t nowTime = std::max<int64_t>(0, HttpTime::GetNowTimeSeconds()); in CacheResponseAgeMillis()
117 int64_t requestTime = std::max<int64_t>(0, cacheResponse_.GetRequestTime()); in CacheResponseAgeMillis()
118 int64_t responseTime = std::max<int64_t>(0, cacheResponse_.GetResponseTime()); in CacheResponseAgeMillis()
124 int64_t apparentAge = std::max<int64_t>(0, responseTime - dateTime); in CacheResponseAgeMillis()
125 int64_t responseDelay = std::max<int64_t>(0, responseTime - requestTime); in CacheResponseAgeMillis()
127 int64_t correctedInitialAge = std::max<int64_t>(apparentAge, correctedAgeValue); in CacheResponseAgeMillis()
129 int64_t residentTime = std::max<int64_t>(0, nowTime - responseTime); in CacheResponseAgeMillis()
156 return std::max<int64_t>(delta, 0); in ComputeFreshnessLifetimeSecondsInternal()
[all …]
/ohos5.0/foundation/communication/ipc/ipc/native/test/unittest/common/
H A Dipc_capi_parcel_unittest.cpp183 writeResult.max = (writeDuration < writeResult.max) ? writeResult.max : writeDuration; in ReadWriteStringPerformance()
186 readResult.max = (readDuration < readResult.max) ? readResult.max : readDuration; in ReadWriteStringPerformance()
193 …writeCppResult.max = (writeCppDuration < writeCppResult.max) ? writeCppResult.max : writeCppDurati… in ReadWriteStringPerformance()
196 … readCppResult.max = (readCppDuration < readCppResult.max) ? readCppResult.max : readCppDuration; in ReadWriteStringPerformance()
252 writeResult.max = (writeDuration < writeResult.max) ? writeResult.max : writeDuration; in ReadWriteBufferPerformance()
255 readResult.max = (readDuration < readResult.max) ? readResult.max : readDuration; in ReadWriteBufferPerformance()
262 …writeCppResult.max = (writeCppDuration < writeCppResult.max) ? writeCppResult.max : writeCppDurati… in ReadWriteBufferPerformance()
265 … readCppResult.max = (readCppDuration < readCppResult.max) ? readCppResult.max : readCppDuration; in ReadWriteBufferPerformance()
326 writeResult.max = (writeDuration < writeResult.max) ? writeResult.max : writeDuration; in ReadWriteInterfaceTokenPerformance()
329 readResult.max = (readDuration < readResult.max) ? readResult.max : readDuration; in ReadWriteInterfaceTokenPerformance()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Ddata_panel_model_impl.cpp25 void DataPanelModelImpl::Create(const std::vector<double>& values, double max, int32_t type) in Create() argument
38 if (GreatOrEqual(valueSum, max) && max > 0) { in Create()
39 value = max - (valueSum - value); in Create()
54 if (LessOrEqual(max, 0.0)) { in Create()
55 max = valueSum; in Create()
57 component->SetMaxValue(max); in Create()
/ohos5.0/foundation/graphic/graphic_utils_lite/interfaces/innerkits/
H A Dgraphic_semaphore.h41 GraphicSemaphore(int32_t init, int32_t max) in GraphicSemaphore() argument
43 if (max > MAX_SEM_COUNT) { in GraphicSemaphore()
44 max = MAX_SEM_COUNT; in GraphicSemaphore()
46 if (init > max) { in GraphicSemaphore()
47 init = max; in GraphicSemaphore()
50 sem_ = CreateSemaphore(NULL, init, max, NULL); in GraphicSemaphore()
55 if (max == 1) { in GraphicSemaphore()
/ohos5.0/foundation/communication/netstack/interfaces/innerkits/rust/ylong_http_client/src/reqwest_impl/
H A Dconfig.rs76 max: u64, field
111 self.min = (cmp::min(self.max, min), Duration::from_secs(duration)); in min_speed()
130 pub fn max_speed(mut self, max: u64) -> Self { in max_speed()
131 self.max = cmp::max(self.min.0, max); in max_speed()
147 max: u64::MAX, in none()
193 pub fn limited(max: usize) -> Self { in limited()
194 Self(reqwest::redirect::Policy::limited(max)) in limited()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-basic-components-gauge.md40 | max | number | 否 | 当前数据段最大值。<br/>默认值:100<br/>**说明:** <br/>max小于min时使用默认值0和100。<br/>max和min支持负数。 |
257 | max | number | 是 | 当前数据段最大值。 |
283 Gauge({ value: 50, min: 1, max: 100 }) {
345 Gauge({ value: 50, min: 1, max: 100 }) {
490 该示例通过设置min,max属性,实现了量规图的最大最小值设置的功能。
630 ' max:' + JSON.stringify((config.contentModifier as MyGaugeStyle).max))
634 … Text('【Config】value:' + config.value + ' min:' + config.min + ' max:' + config.max).fontSize(12)
638 max: config.max
650 max: number = 0
655 this.max = max
[all …]
/ohos5.0/commonlibrary/c_utils/docs/zh-cn/
H A Dc-utils-guide-semaphore.md61 WorkSpace(const string &name, int maxSize) : sema(name, maxSize), count(0), max(0)
81 max = max > count ? max : count;
88 if (COUNT_MAX >= max) {
107 return max;
113 int max;
137 cout << "max: " << ws.GetMax() << " count: " << ws.GetCount() << endl;
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/hyper_graphic_manager/core/frame_rate_manager/
H A Dhgm_frame_rate_manager.cpp347 finalRange = {resultVoteInfo.max, resultVoteInfo.max, resultVoteInfo.max}; in UniProcessDataForLtpo()
411 finalRange = {resultVoteInfo.max, resultVoteInfo.max, resultVoteInfo.max}; in UniProcessDataForLtps()
1050 if ((*it).min != voteInfo.min || (*it).max != voteInfo.max) { in DeliverRefreshRateVote()
1078 if (min >= max) { in MergeRangeByPriority()
1079 min = max; in MergeRangeByPriority()
1083 if (maxTemp < max) { in MergeRangeByPriority()
1084 max = maxTemp; in MergeRangeByPriority()
1086 if (min >= max) { in MergeRangeByPriority()
1087 max = min; in MergeRangeByPriority()
1091 if (min == max) { in MergeRangeByPriority()
[all …]
/ohos5.0/base/security/asset/frameworks/js/napi/src/
H A Dasset_napi_check.cpp53 bool CheckArraySize(const napi_env env, const AssetAttr &attr, uint32_t min, uint32_t max) in CheckArraySize() argument
55 if (attr.value.blob.size > max || attr.value.blob.size <= min) { in CheckArraySize()
58 attr.value.blob.size, TAG_MAP.at(attr.tag), min + 1, max); in CheckArraySize()
76 bool CheckNumberRange(const napi_env env, const AssetAttr &attr, uint32_t min, uint32_t max) in CheckNumberRange() argument
78 if (attr.value.u32 > max || attr.value.u32 <= min) { in CheckNumberRange()
81 attr.value.u32, TAG_MAP.at(attr.tag), min, max); in CheckNumberRange()
113 uint32_t max; member
189 uint32_t max = CHECK_CONTINOUS_RANGE_FUNC_MAP.at(attr.tag).max; in CheckAssetValueValidity() local
190 return funcPtr(env, attr, min, max); in CheckAssetValueValidity()
/ohos5.0/base/security/security_component_manager/frameworks/common/src/
H A Dsec_comp_tool.cpp65 double max = MaxValue(red, green, blue); in RgbToHsv() local
67 double delta = max - min; in RgbToHsv()
68 if (max == min) { in RgbToHsv()
70 } else if (max == red) { in RgbToHsv()
73 } else if (max == green) { in RgbToHsv()
75 } else if (max == blue) { in RgbToHsv()
79 if (max == 0) { in RgbToHsv()
82 hsv.s = delta / max; in RgbToHsv()
85 hsv.v = max; in RgbToHsv()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-js-lite/
H A Djs-lite-components-common-mediaquery.md25 @media (max-height: 454) { … } :范围查询,CSS level 3 写法
50 …r/>例如:screen&nbsp;and&nbsp;(device-type:&nbsp;liteWearable)&nbsp;and&nbsp;(max-height:&nbsp;454)&n…
51 …体特征以“或”的方式连接成一个媒体查询,如果存在结果为true的媒体特征,则查询条件成立。<br/>例如:screen&nbsp;and&nbsp;(max-height:&nbsp;454) &…
62 | max-height | 应用页面显示区域的最大高度。 |
65 | max-width | 应用页面显示区域的最大宽度。 |
68 | max-aspect-ratio | 应用页面显示区域的宽度与高度的最大比值。 |
/ohos5.0/drivers/peripheral/audio/test/systemtest/hdi_service/common/capture/src/
H A Daudio_idl_hdicapture_volume_test.cpp327 float max = 0; variable
334 EXPECT_LE(max, GAIN_MAX);
346 float max = 0; variable
361 float max = 0; variable
392 float max = 0; variable
397 float gain = max - 1;
398 float gainMax = max;
401 float gainMaxExpc = max;
431 float max = 0; variable
436 float gainOne = max + 1;
[all …]
/ohos5.0/docs/zh-cn/application-dev/reference/apis-camera-kit/
H A D_camera___frame_rate_range.md21 | uint32_t [max](#max) | 最大帧速率。 |
27 ### max subsection
30 uint32_t Camera_FrameRateRange::max
/ohos5.0/docs/zh-cn/device-dev/reference/hdi-apis/codec/
H A D_range_value_v10.md21 | int [max](#max) | 最大值。 |
27 ### max subsection
30 int RangeValue::max
H A D_range_value_v20.md21 | int [max](#max) | 最大值。 |
27 ### max subsection
30 int RangeValue::max

12345678910>>...56