Home
last modified time | relevance | path

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

123

/base/startup/init/interfaces/innerkits/include/syspara/
Dparameters.h43 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/
Dsec_comp_tool.cpp63 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/
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()
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/
Dregister_test.cpp68 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/
Dencrypt_utils.h33 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/
Dhks_template_test.cpp153 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/
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 …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()
Did_factory.h55 const T maxLimit_ = std::numeric_limits<T>::max();
/base/security/device_auth/deps_adapter/key_management_adapter/interfaces/
Dhuks_adapter.h52 #define CHECK_LEN_HIGHER_RETURN(len, max, paramTag) \ argument
54 if ((len) > (max)) { \
/base/msdp/device_status/tools/vdev/include/
Dvirtual_touchscreen.h50 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/
Dvirtual_touchscreen.cpp66 ((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/
Dcoordination_manager_impl.cpp82 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/
Dnotification_multiline_content_test.cpp163 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/
Dregister.cpp52 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/
Dbatch.cpp24 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/
Dbenchmark_fwk.h57 void CreateLocalParameterTest(int max);
Dparameter_benchmark.cpp114 void CreateLocalParameterTest(int max) in CreateLocalParameterTest() argument
116 g_maxCount = max > 0 ? max : g_maxCount; in CreateLocalParameterTest()
/base/notification/eventhandler/test/fuzztest/eventqueue_fuzzer/
Deventqueue_fuzzer.cpp40 AppExecFwk::InnerEvent::TimePoint nextExpiredTime = AppExecFwk::InnerEvent::TimePoint::max(); in DoSomethingInterestingWithMyAPI()
/base/powermgr/display_manager/service/etc/
Ddisplay.para17 const.display.brightness.max=255
/base/update/update_app/common/src/main/ets/util/
DFormatUtils.ts43 let point: number = Math.min(Math.max(decimalPoint, DOWN_POINT), UP_POINT);
/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/global/i18n/frameworks/intl/src/
Dplural_rules.cpp95 … 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/
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/hiviewdfx/hisysevent/test/moduletest/common/
Dhisysevent_encoded_test.cpp205 uint64_t id = std::numeric_limits<uint64_t>::max();
208 uint64_t traceId = std::numeric_limits<uint64_t>::max();

123