/foundation/arkui/ace_engine/frameworks/core/components/common/painter/ |
H A D | rosen_universal_painter.cpp | 63 SkDoubleToScalar(std::max(RosenUniversalPainter::NormalizeToPx(corner.topLeftRadius.GetX(), dipScale), 0.0)), in DrawRRectBackground() 64 SkDoubleToScalar(std::max(RosenUniversalPainter::NormalizeToPx(corner.topLeftRadius.GetY(), dipScale), 0.0))); in DrawRRectBackground() 66 SkDoubleToScalar(std::max(RosenUniversalPainter::NormalizeToPx(corner.topRightRadius.GetX(), dipScale), 0.0)), in DrawRRectBackground() 67 SkDoubleToScalar(std::max(RosenUniversalPainter::NormalizeToPx(corner.topRightRadius.GetY(), dipScale), 0.0))); in DrawRRectBackground() 70 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() 74 SkDoubleToScalar(std::max(RosenUniversalPainter::NormalizeToPx(corner.bottomLeftRadius.GetX(), 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(RosenUniversalPainte in DrawRRectBackground() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
H A D | image_painter_utils.cpp | 42 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(radiusX [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/animation/ |
H A D | rs_frame_rate_range.h | 44 FrameRateRange(int min, int max, int preferred) : min_(min), max_(max), preferred_(preferred) {} in FrameRateRange() argument 46 FrameRateRange(int min, int max, int preferred, int type) : min_(min), max_(max), in FrameRateRange() argument 49 FrameRateRange(int min, int max, int preferred, int type, ComponentScene componentScene) : min_(min), max_(max), in FrameRateRange() argument 78 void Set(int min, int max, int preferred) in Set() argument 81 this->max_ = max; in Set() 85 void Set(int min, int max, int preferred, int type) in Set() argument 88 this->max_ = max; in Set() [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/ |
H A D | data_panel_model_impl.cpp | 24 void DataPanelModelImpl::Create(const std::vector<double>& values, double max, int32_t type) in Create() argument 37 if (GreatOrEqual(valueSum, max) && max > 0) { in Create() 38 value = max - (valueSum - value); in Create() 53 if (LessOrEqual(max, 0.0)) { in Create() 54 max = valueSum; in Create() 56 component->SetMaxValue(max); in Create()
|
/foundation/graphic/graphic_utils_lite/interfaces/innerkits/ |
H A D | graphic_semaphore.h | 31 static constexpr int32_t MAX_SEM_COUNT = 1000; // 1000: max number of semaphore count 41 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()
|
/foundation/resourceschedule/ffrt/benchmarks/speedup/ |
H A D | speedup.cpp | 25 uint32_t max = max_min; in main() local 27 while ((max - min) > 1) { in main() 29 uint32_t median = (max + min) / 2; in main() 34 max = median; in main()
|
/foundation/communication/netstack/frameworks/cj/http/src/ |
H A D | net_http_cache_strategy.cpp | 95 request was initiated, not the time that the response was received. apparent_age = max(0, response_time - in CacheResponseAgeMillis() 102 corrected_initial_age = max(apparent_age, corrected_age_value); in CacheResponseAgeMillis() 112 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_ in CacheResponseAgeMillis() [all...] |
/foundation/communication/netstack/frameworks/js/napi/http/cache/cache_strategy/src/ |
H A D | http_cache_strategy.cpp | 97 request was initiated, not the time that the response was received. apparent_age = max(0, response_time - in CacheResponseAgeMillis() 104 corrected_initial_age = max(apparent_age, corrected_age_value); in CacheResponseAgeMillis() 114 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_ in CacheResponseAgeMillis() [all...] |
/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/chart/21/ |
H A D | index.js | 29 xAxis: { min: 0, max: 10, axisTick: 10, display:true }, 30 yAxis: { min: 100, max: 5267, axisTick: 10, display: true } 40 xAxis: { min: 0, max: 10, axisTick: 10, display:true }, 41 yAxis: { min: 400, max: 800, axisTick: 10, display: true }
|
/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/chart/28/ |
H A D | index.js | 19 max: 450, 29 max: 6, 38 max: 1, 47 max: -1,
|
/foundation/arkui/ace_engine_lite/frameworks/examples/showcase/src/main/js/default/common/js/ |
H A D | chart.js | 49 max: 10, 55 max: 5000, 63 max: 10, 68 max: 5000,
|
/foundation/communication/netstack/interfaces/innerkits/rust/ylong_http_client/src/reqwest_impl/ |
H A D | config.rs | 76 max: u64, 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()
|
/foundation/communication/ipc/ipc/native/test/unittest/common/ |
H A D | ipc_capi_parcel_unittest.cpp | 55 uint32_t max{ 0 }; 183 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 in ReadWriteStringPerformance() [all...] |
/foundation/systemabilitymgr/samgr_lite/samgr/source/ |
H A D | common.c | 35 vector->max = 0; in VECTOR_Clear() 47 if (vector->top >= vector->max) { in VECTOR_Add() 58 if (vector->max + GROW_STEP < 0) { in VECTOR_Add() 62 void **data = (void **)SAMGR_Malloc(sizeof(void *) * (vector->max + GROW_STEP)); in VECTOR_Add() 70 (void)memcpy_s(data, sizeof(void *) * (vector->max + GROW_STEP), in VECTOR_Add() 71 vector->data, sizeof(void *) * vector->max); in VECTOR_Add() 75 vector->max += GROW_STEP; in VECTOR_Add()
|
/foundation/graphic/graphic_2d/rosen/test/hyper_graphic_manager/unittest/ |
H A D | hgm_multi_app_strategy_test.cpp | 79 strategyConfigs[settingStrategyName] = { .min = OLED_NULL_HZ, .max = OLED_120_HZ, .down = OLED_144_HZ, in SetUp() 83 strategyConfigs[strategyName0] = { .min = fps0, .max = fps0, .dynamicMode = DynamicModeType::TOUCH_ENABLED, in SetUp() 89 strategyConfigs[strategyName1] = { .min = fps1, .max = fps1, .dynamicMode = DynamicModeType::TOUCH_ENABLED, in SetUp() 163 ASSERT_EQ(strategyConfig.max, fps0); in HWTEST_F() 174 ASSERT_EQ(touchVoteInfo.max, downFps0); in HWTEST_F() 182 ASSERT_EQ(touchVoteInfo.max, downFps0); in HWTEST_F() 216 ASSERT_EQ(strategyConfig.max, fps0); in HWTEST_F() 227 ASSERT_EQ(touchVoteInfo.max, OLED_144_HZ); in HWTEST_F() 270 ASSERT_EQ(strategyConfig.max, OLED_120_HZ); in HWTEST_F() 280 ASSERT_EQ(touchVoteInfo.max, OLED_144_H in HWTEST_F() [all...] |
/foundation/graphic/graphic_2d/rosen/test/include/ |
H A D | limit_number.h | 24 std::numeric_limits<float>::max(), std::numeric_limits<float>::min(),
29 std::numeric_limits<uint64_t>::max(),
30 std::numeric_limits<int64_t>::max(),
|
/foundation/arkui/ace_engine/frameworks/core/components/tool_bar/ |
H A D | render_tool_bar.cpp | 55 toolBarHeight_ = std::max((*item)->GetLayoutSize().Height(), toolBarHeight_); in LayoutChildren() 68 double toolBarMinWidth = std::max(0.0, innerLayout.GetMinSize().Width()); in MakeInnerLayoutParam() 73 innerLayout.SetMinSize(Size(std::max(toolBarMinWidth, 0.0), std::max(0.0, 0.0))); in MakeInnerLayoutParam() 74 innerLayout.SetMaxSize(Size(std::max(toolBarMaxWidth, 0.0), std::max(GetLayoutParam().GetMaxSize().Height(), 0.0))); in MakeInnerLayoutParam()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/ |
H A D | text_editing_value_ng.h | 50 caretPosition = std::max(0, caretPosition - 1); in CursorMoveLeft() 100 auto min = std::clamp(std::max(std::min(start, end), 0), 0, static_cast<int32_t>(wideText.length())); in GetSelectedText() 101 auto max = std::clamp(std::min(std::max(start, end), static_cast<int32_t>(wideText.length())), 0, in GetSelectedText() local 103 return StringUtils::ToString(wideText.substr(min, max - min)); in GetSelectedText() 119 return text[std::max(0, caretPosition - 1)]; in LastChar()
|
/foundation/graphic/graphic_3d/lume/Lume_3D/src/ecs/systems/ |
H A D | render_preprocessor_system.h | 75 BASE_NS::Math::Vec3 min { std::numeric_limits<float>::max(), std::numeric_limits<float>::max(), 76 std::numeric_limits<float>::max() }; 77 BASE_NS::Math::Vec3 max { -std::numeric_limits<float>::max(), -std::numeric_limits<float>::max(), 78 -std::numeric_limits<float>::max() };
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/ |
H A D | performance_analysis.cpp | 52 stepIter.max = 0; in Initialization() 162 if (stepTimeRecordInfo_[step].max < offset) { // LCOV_EXCL_BR_LINE in StepTimeRecordEnd() 163 stepTimeRecordInfo_[step].max = offset; in StepTimeRecordEnd() 181 if (stepTimeRecordInfo_[i].max != 0) { // LCOV_EXCL_BR_LINE in GetStatistics() 183 result += "max: " + std::to_string(stepTimeRecordInfo_[i].max) + "\n"; in GetStatistics() 205 if (stepTimeRecordInfo_[i].max != 0) { // LCOV_EXCL_BR_LINE in OutStatistics() 206 outFile << i << "," << stepTimeRecordInfo_[i].max<< "," << stepTimeRecordInfo_[i].min in OutStatistics() 223 iter.max = 0; in Clear()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/calendar/ |
H A D | calendar_layout_algorithm.cpp | 50 std::max(maxSize.Width(), calendarMinSize.Width()), std::max(minSize.Height(), calendarMinSize.Height())); in MeasureContent() 53 std::max(maxSize.Width(), calendarMinSize.Width()), std::max(maxSize.Height(), calendarMinSize.Height())); in MeasureContent()
|
/foundation/arkui/ace_engine/frameworks/core/components/flex/ |
H A D | render_flex_item.h | 124 Size max = Size(NormalizePercentToPx(maxWidth_, false), NormalizePercentToPx(maxHeight_, true)); in GetNormalizedConstraints() local 125 if (LessNotEqual(max.Width(), min.Width())) { in GetNormalizedConstraints() 126 max.SetWidth(min.Width()); in GetNormalizedConstraints() 128 if (LessNotEqual(max.Height(), min.Height())) { in GetNormalizedConstraints() 129 max.SetHeight(min.Height()); in GetNormalizedConstraints() 131 LayoutParam constraint = LayoutParam(max, min); in GetNormalizedConstraints()
|
/foundation/multimodalinput/input/frameworks/proxy/events/src/ |
H A D | input_device.cpp | 133 int32_t max = static_cast<int32_t>(INPUT_DEV_CAP_MAX); in HasCapability() local 134 for (int32_t cap = min; cap < max; ++cap) { in HasCapability() 156 InputDevice::AxisInfo::AxisInfo(int32_t type, int32_t min, int32_t max, int32_t fuzz, int32_t flat, int32_t resolution) in AxisInfo() argument 157 : axisType_(type), minimum_(min), maximum_(max), fuzz_(fuzz), flat_(flat), resolution_(resolution) {} in AxisInfo() 179 void InputDevice::AxisInfo::SetMaximum(int32_t max) in SetMaximum() argument 181 maximum_ = max; in SetMaximum()
|
/foundation/multimedia/player_framework/interfaces/inner_api/native/ |
H A D | codec_capability.h | 33 CodecRange(const int32_t &min, const int32_t &max) in CodecRange() argument 35 if (min <= max) { in CodecRange() 37 this->maxVal = max; in CodecRange() 44 CodecRange Create(const int32_t &min, const int32_t &max) in Create() argument 46 return CodecRange(min, max); in Create()
|
/foundation/communication/netstack/utils/profiler_utils/src/ |
H A D | http_client_network_message.cpp | 44 msg.dnsEndTime_ + static_cast<uint64_t>(std::max(0.0, timeInfo_.tcpConnectTime - timeInfo_.dnsTime)); in Parse() 46 static_cast<uint64_t>(std::max(0.0, timeInfo_.tlsHandshakeTime - in Parse() 49 static_cast<uint64_t>(std::max(0.0, timeInfo_.firstSendTime - in Parse() 50 std::max({timeInfo_.dnsTime, in Parse() 54 static_cast<uint64_t>(std::max(0.0, timeInfo_.firstRecvTime - timeInfo_.firstSendTime)); in Parse()
|