/base/update/updateservice/services/core/ability/utils/include/ |
D | encrypt_utils.h | 33 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/ |
D | measure_format_patterns.txt | 1 …min|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/ |
D | util.h | 54 …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/ |
D | parameters.h | 42 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/ |
D | huks_adapter.h | 44 #define CHECK_LEN_LOWER_RETURN(len, min, paramTag) \ argument 46 if ((len) < (min)) { \
|
/base/update/update_app/common/src/main/ets/util/ |
D | FormatUtils.ts | 42 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/ |
D | param_wrapper.cpp | 40 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/ |
D | dfx_memory.cpp | 32 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/ |
D | sec_comp_tool.cpp | 64 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/ |
D | utils_datetime.h | 28 uint16_t min; member
|
/base/msdp/device_status/tools/vdev/src/ |
D | virtual_touchscreen.cpp | 105 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/ |
D | batch.cpp | 23 : 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/ |
D | cm_x509.h | 53 uint32_t min; member
|
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/cleaner/ |
D | app_event_log_cleaner.cpp | 56 nowSize -= std::min(delFileSize, nowSize); in ClearSpace()
|
/base/powermgr/display_manager/service/etc/ |
D | display.para | 15 const.display.brightness.min=5
|
/base/location/frameworks/location_common/common/source/ |
D | common_utils.cpp | 278 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/ |
D | common_utils.h | 176 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/ |
D | dcm_attest.h | 73 uint32_t min; member
|
/base/security/device_security_level/baselib/utils/src/ |
D | utils_datetime.c | 68 datetime->min = (uint16_t)tm.tm_min; in GetDateTimeByMillisecondSince1970()
|
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/ |
D | hisysevent_record.cpp | 37 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/ |
D | flash_commander.cpp | 104 auto writeSize = std::min(static_cast<size_t>(payloadSize), fileSize_ - currentSize_); in DoFlash()
|
/base/update/updater/services/flow_update/update_bin/ |
D | bin_flow_update.cpp | 88 …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/ |
D | log_display.cpp | 133 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/ |
D | imsclient_fuzzer.cpp | 55 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/ |
D | raw_data_builder.cpp | 109 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()
|