/base/startup/init/interfaces/innerkits/include/syspara/ |
D | parameters.h | 43 T max = std::numeric_limits<T>::max()); 51 T GetUintParameter(const std::string& key, T def, T max = std::numeric_limits<T>::max());
|
/base/security/security_component_manager/frameworks/common/src/ |
D | sec_comp_tool.cpp | 63 double max = MaxValue(red, green, blue); in RgbToHsv() local 65 double delta = max - min; in RgbToHsv() 66 if (max == min) { in RgbToHsv() 68 } else if (max == red) { in RgbToHsv() 71 } else if (max == green) { in RgbToHsv() 73 } else if (max == blue) { in RgbToHsv() 77 if (max == 0) { in RgbToHsv() 80 hsv.s = delta / max; in RgbToHsv() 83 hsv.v = max; in RgbToHsv()
|
/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() 54 bool StringToUint(const std::string& str, T max, T& out) in StringToUint() argument 60 if (max < result) { in StringToUint() 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() 141 T GetUintParameter(const std::string& key, T def, T max) in GetUintParameter() argument 148 if (!value.empty() && StringToUint(value, max, result)) { in GetUintParameter()
|
/base/hiviewdfx/faultloggerd/test/unittest/callstack/ |
D | register_test.cpp | 68 std::numeric_limits<uint64_t>::max()); 69 EXPECT_EQ(GetSupportedRegMask(static_cast<ArchType>(-1)), std::numeric_limits<uint64_t>::max()); 96 EXPECT_EQ(RegisterGetSP(ArchType::UNSUPPORT), std::numeric_limits<size_t>::max()); 109 EXPECT_EQ(RegisterGetSP(ArchType::UNSUPPORT), std::numeric_limits<size_t>::max()); 190 unsigned max = PERF_REG_X86_64_MAX; variable 192 unsigned max = PERF_REG_ARM_MAX; 194 unsigned max = PERF_REG_ARM64_MAX; 196 for (unsigned i = 0; i < max; i++) { 199 EXPECT_EQ(LibunwindRegIdToPerfReg(max + 1) < 0, true);
|
/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() 40 return min + rand() % (max - min); in GetRand()
|
/base/security/huks/test/unittest/huks_standard_test/module_test/framework_test/common_test/src/ |
D | hks_template_test.cpp | 153 const uint32_t max = 10; in TestLogBreak() local 156 for (; i < max; ++i) { in TestLogBreak() 200 const uint32_t max = 10; in TestBreak() local 203 for (; i < max; ++i) { in TestBreak()
|
/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 …ltiplyInt(op1, op2, std::numeric_limits<int32_t>::min(), std::numeric_limits<int32_t>::max(), res); in MultiplyInt32() 97 …ltiplyInt(op1, op2, std::numeric_limits<int64_t>::min(), std::numeric_limits<int64_t>::max(), res); in MultiplyInt64()
|
D | id_factory.h | 55 const T maxLimit_ = std::numeric_limits<T>::max();
|
/base/security/device_auth/deps_adapter/key_management_adapter/interfaces/ |
D | huks_adapter.h | 52 #define CHECK_LEN_HIGHER_RETURN(len, max, paramTag) \ argument 54 if ((len) > (max)) { \
|
/base/msdp/device_status/tools/vdev/include/ |
D | virtual_touchscreen.h | 50 int32_t screenWidth_ { std::numeric_limits<int32_t>::max() }; 51 int32_t screenHeight_ { std::numeric_limits<int32_t>::max() };
|
/base/msdp/device_status/tools/vdev/src/ |
D | virtual_touchscreen.cpp | 66 ((screenWidth_ == std::numeric_limits<int32_t>::max()) || in QueryScreenSize() 75 ((screenHeight_ == std::numeric_limits<int32_t>::max()) || in QueryScreenSize() 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/msdp/device_status/frameworks/native/interaction/src/ |
D | coordination_manager_impl.cpp | 82 if (userData_ == std::numeric_limits<int32_t>::max()) { in PrepareCoordination() 102 if (userData_ == std::numeric_limits<int32_t>::max()) { in UnprepareCoordination() 123 if (userData_ == std::numeric_limits<int32_t>::max()) { in ActivateCoordination() 144 if (userData_ == std::numeric_limits<int32_t>::max()) { in DeactivateCoordination() 165 if (userData_ == std::numeric_limits<int32_t>::max()) { in GetCoordinationState()
|
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
D | notification_multiline_content_test.cpp | 163 int max = 7; variable 164 for (int i = 0; i < max; i++) { 168 EXPECT_EQ(result.size(), max);
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/callstack/src/ |
D | register.cpp | 52 result = std::numeric_limits<uint64_t>::max(); in GetSupportedRegMask() 150 return std::numeric_limits<size_t>::max(); in RegisterGetIP() 165 return std::numeric_limits<size_t>::max(); in RegisterGetSP()
|
/base/time/time_service/services/timer/src/ |
D | batch.cpp | 24 end_ {std::chrono::steady_clock::time_point::max()}, 87 auto newEnd = std::chrono::steady_clock::time_point::max(); in Remove()
|
/base/startup/init/test/benchmark/ |
D | benchmark_fwk.h | 57 void CreateLocalParameterTest(int max);
|
D | parameter_benchmark.cpp | 114 void CreateLocalParameterTest(int max) in CreateLocalParameterTest() argument 116 g_maxCount = max > 0 ? max : g_maxCount; in CreateLocalParameterTest()
|
/base/notification/eventhandler/test/fuzztest/eventqueue_fuzzer/ |
D | eventqueue_fuzzer.cpp | 40 AppExecFwk::InnerEvent::TimePoint nextExpiredTime = AppExecFwk::InnerEvent::TimePoint::max(); in DoSomethingInterestingWithMyAPI()
|
/base/powermgr/display_manager/service/etc/ |
D | display.para | 17 const.display.brightness.max=255
|
/base/update/update_app/common/src/main/ets/util/ |
D | FormatUtils.ts | 43 let point: number = Math.min(Math.max(decimalPoint, DOWN_POINT), UP_POINT);
|
/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/global/i18n/frameworks/intl/src/ |
D | plural_rules.cpp | 95 … int maxFractionDefault = std::max(3, minFraction); // 3 is the default value of minFraction in ParseAllOptions() 96 int maxFractionMin = std::max(1, minFraction); // 1 is the min value of minFraction in ParseAllOptions()
|
/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/hiviewdfx/hisysevent/test/moduletest/common/ |
D | hisysevent_encoded_test.cpp | 205 uint64_t id = std::numeric_limits<uint64_t>::max(); 208 uint64_t traceId = std::numeric_limits<uint64_t>::max();
|