Home
last modified time | relevance | path

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

123

/base/update/updateservice/services/core/ability/utils/include/
Dencrypt_utils.h33 static int64_t GetRand(int32_t min, int32_t max) in GetRand() argument
36 if (max < min) { in GetRand()
37 return min; in GetRand()
40 return min + rand() % (max - min); in GetRand()
/base/global/i18n_lite/tools/i18n-dat-tool/src/main/java/resource/
Dmeasure_format_patterns.txt1min|kcal|time|bpm|m|step|jump|ft|km|lap|in|cm|stroke|mi|yd", "%s %s", "#", "", "", "", "", "", "",…
2 zh-Hans "16", "h|min|kcal|time|bpm|m|step|jump|ft|km|lap|in|cm|stroke|mi|yd", "%s %s", "#", "", "",…
/base/msdp/device_status/utils/common/include/
Dutil.h54 …return AddInt(op1, op2, std::numeric_limits<int32_t>::min(), std::numeric_limits<int32_t>::max(), … in AddInt32()
59 …return AddInt(op1, op2, std::numeric_limits<int64_t>::min(), std::numeric_limits<int64_t>::max(), … in AddInt64()
92 …return MultiplyInt(op1, op2, std::numeric_limits<int32_t>::min(), std::numeric_limits<int32_t>::ma… in MultiplyInt32()
97 …return MultiplyInt(op1, op2, std::numeric_limits<int64_t>::min(), std::numeric_limits<int64_t>::ma… in MultiplyInt64()
/base/startup/init/interfaces/innerkits/include/syspara/
Dparameters.h42 T GetIntParameter(const std::string& key, T def, T min = std::numeric_limits<T>::min(),
/base/security/device_auth/deps_adapter/key_management_adapter/interfaces/
Dhuks_adapter.h44 #define CHECK_LEN_LOWER_RETURN(len, min, paramTag) \ argument
46 if ((len) < (min)) { \
/base/update/update_app/common/src/main/ets/util/
DFormatUtils.ts42 let data: number = Math.min(bytes, MAX_BYTES);
43 let point: number = Math.min(Math.max(decimalPoint, DOWN_POINT), UP_POINT);
/base/startup/init/interfaces/innerkits/syspara/
Dparam_wrapper.cpp40 bool StringToInt(const std::string& str, T min, T max, T& out) in StringToInt() argument
46 if (result < min || max < result) { in StringToInt()
122 T GetIntParameter(const std::string& key, T def, T min, T max) in GetIntParameter() argument
129 if (!value.empty() && StringToInt(value, min, max, result)) { in GetIntParameter()
/base/hiviewdfx/faultloggerd/frameworks/unwinder/
Ddfx_memory.cpp32 size_t actualLen = std::min(bytesLeft, copySize); in MemoryCopy()
50 size_t read = std::min(sizeof(buffer), maxRead - nRead); in ReadString()
/base/security/security_component_manager/frameworks/common/src/
Dsec_comp_tool.cpp64 double min = MinValue(red, green, blue); in RgbToHsv() local
65 double delta = max - min; in RgbToHsv()
66 if (max == min) { in RgbToHsv()
/base/security/device_security_level/baselib/utils/include/
Dutils_datetime.h28 uint16_t min; member
/base/msdp/device_status/tools/vdev/src/
Dvirtual_touchscreen.cpp105 slots_[slot].coord.x = std::min(std::max(x, 0), screenWidth_ - 1); in DownButton()
106 slots_[slot].coord.y = std::min(std::max(y, 0), screenHeight_ - 1); in DownButton()
159 .x = std::min(std::max(slots_[slot].coord.x + dx, 0), screenWidth_ - 1), in Move()
160 .y = std::min(std::max(slots_[slot].coord.y + dy, 0), screenHeight_ - 1) in Move()
/base/time/time_service/services/timer/src/
Dbatch.cpp23 : start_ {std::chrono::steady_clock::time_point::min()}, in Batch()
86 auto newStart = std::chrono::steady_clock::time_point::min(); in Remove()
/base/security/certificate_manager/frameworks/cert_manager_standard/main/common/include/
Dcm_x509.h53 uint32_t min; member
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/cleaner/
Dapp_event_log_cleaner.cpp56 nowSize -= std::min(delFileSize, nowSize); in ClearSpace()
/base/powermgr/display_manager/service/etc/
Ddisplay.para15 const.display.brightness.min=5
/base/location/frameworks/location_common/common/source/
Dcommon_utils.cpp278 double CommonUtils::DoubleRandom(double min, double max) in DoubleRandom() argument
282 static std::uniform_real_distribution<double> u(min, max); in DoubleRandom()
288 int CommonUtils::IntRandom(int min, int max) in IntRandom() argument
292 static std::uniform_int_distribution<int> u(min, max); in IntRandom()
/base/location/interfaces/inner_api/include/
Dcommon_utils.h176 static double DoubleRandom(double min, double max);
177 static int IntRandom(int min, int max);
/base/security/huks/services/huks_standard/huks_engine/main/device_cert_manager/include/
Ddcm_attest.h73 uint32_t min; member
/base/security/device_security_level/baselib/utils/src/
Dutils_datetime.c68 datetime->min = (uint16_t)tm.tm_min; in GetDateTimeByMillisecondSince1970()
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/
Dhisysevent_record.cpp37 static inline bool InValidRange(double d, T min, U max) in InValidRange() argument
39 return d >= static_cast<double>(min) && d <= static_cast<double>(max); in InValidRange()
52 static inline bool InValidRange(double d, T min, U max) in InValidRange() argument
54 return d >= int64ToDouble(min) && d <= int64ToDouble(max); in InValidRange()
/base/update/updater/services/flashd/daemon/
Dflash_commander.cpp104 auto writeSize = std::min(static_cast<size_t>(payloadSize), fileSize_ - currentSize_); in DoFlash()
/base/update/updater/services/flow_update/update_bin/
Dbin_flow_update.cpp88 …uint32_t copySize = std::min(static_cast<size_t>(len), static_cast<size_t>(maxBufSize_ - curlen_)); in AddRemainData()
180 …size_t writeLen = std::min(static_cast<size_t>(updateInfo_.info->unpackedSize - updateInfo_.imageW… in BinUpdateDoWrite()
/base/hiviewdfx/hilog/services/hilogtool/
Dlog_display.cpp133 uint32_t min = tmp / MIN2SEC; in DurationStr() local
134 uint32_t sec = tmp - (min * MIN2SEC); in DurationStr()
137 ret = snprintf_s(buffer, TIME_W, TIME_W - 1, "%uh%um%us.%u", hour, min, sec, msec); in DurationStr()
/base/telephony/cellular_call/test/fuzztest/imsclient_fuzzer/
Dimsclient_fuzzer.cpp55 size_t length = std::min(static_cast<size_t>(sizeof(callInfo.phoneNum) - 1), size); in TestImsCallClientWithCallInfo()
133 size_t length = std::min(static_cast<size_t>(sizeof(transferInfo.transferNum) - 1), size); in TestImsCallClientWithSettingFunction()
173 size_t length = std::min(static_cast<size_t>(sizeof(callInfo.phoneNum) - 1), size); in TestImsCallProxyWithCallInfo()
248 size_t length = std::min(static_cast<size_t>(sizeof(transferInfo.transferNum) - 1), size); in TestImsCallProxyWithSettingFunction()
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/encode/
Draw_data_builder.cpp109 auto resetPos = std::min(domain.length(), static_cast<size_t>(MAX_DOMAIN_LENGTH)); in AppendDomain()
120 auto resetPos = std::min(name.length(), static_cast<size_t>(MAX_EVENT_NAME_LENGTH)); in AppendName()

123