/base/telephony/core_service/utils/codec/include/ |
H A D | asn1_constants.h | 28 const uint32_t MAX_UINT8 = std::numeric_limits<uint8_t>::max(); 29 const uint32_t MAX_UINT16 = std::numeric_limits<uint16_t>::max(); 30 const uint32_t MAX_UINT24 = (std::numeric_limits<uint32_t>::max() >> 8); 31 const uint32_t MAX_INT8 = std::numeric_limits<int8_t>::max(); 32 const uint32_t MAX_INT16 = std::numeric_limits<int16_t>::max(); 33 const uint32_t MAX_INT24 = (std::numeric_limits<int32_t>::max() >> 8);
|
/base/startup/init/interfaces/innerkits/include/syspara/ |
H A 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/asset/frameworks/js/napi/src/ |
H A D | asset_napi_check.cpp | 53 bool CheckArraySize(const napi_env env, const AssetAttr &attr, uint32_t min, uint32_t max) in CheckArraySize() argument 55 if (attr.value.blob.size > max || attr.value.blob.size <= min) { in CheckArraySize() 58 attr.value.blob.size, TAG_MAP.at(attr.tag), min + 1, max); in CheckArraySize() 76 bool CheckNumberRange(const napi_env env, const AssetAttr &attr, uint32_t min, uint32_t max) in CheckNumberRange() argument 78 if (attr.value.u32 > max || attr.value.u32 <= min) { in CheckNumberRange() 81 attr.value.u32, TAG_MAP.at(attr.tag), min, max); in CheckNumberRange() 113 uint32_t max; member 189 uint32_t max = CHECK_CONTINOUS_RANGE_FUNC_MAP.at(attr.tag).max; in CheckAssetValueValidity() local 190 return funcPtr(env, attr, min, max); in CheckAssetValueValidity() [all...] |
/base/security/security_component_manager/frameworks/common/src/ |
H A D | sec_comp_tool.cpp | 65 double max = MaxValue(red, green, blue); in RgbToHsv() local 67 double delta = max - min; in RgbToHsv() 68 if (max == min) { in RgbToHsv() 70 } else if (max == red) { in RgbToHsv() 73 } else if (max == green) { in RgbToHsv() 75 } else if (max == blue) { in RgbToHsv() 79 if (max == 0) { in RgbToHsv() 82 hsv.s = delta / max; in RgbToHsv() 85 hsv.v = max; in RgbToHsv()
|
/base/startup/init/interfaces/innerkits/syspara/ |
H A D | param_wrapper.cpp | 41 bool StringToInt(const std::string& str, T min, T max, T& out) in StringToInt() argument 47 if (result < min || max < result) { in StringToInt() 55 bool StringToUint(const std::string& str, T max, T& out) in StringToUint() argument 61 if (max < result) { in StringToUint() 123 T GetIntParameter(const std::string& key, T def, T min, T max) in GetIntParameter() argument 130 if (!value.empty() && StringToInt(value, min, max, result)) { in GetIntParameter() 142 T GetUintParameter(const std::string& key, T def, T max) in GetUintParameter() argument 149 if (!value.empty() && StringToUint(value, max, result)) { in GetUintParameter()
|
/base/web/webview/ohos_adapter/camera_adapter/src/ |
H A D | video_capture_range_adapter_impl.cpp | 45 void VideoCaptureRangeAdapterImpl::SetMax(double max) in SetMax() argument 47 max_ = max; in SetMax()
|
H A D | video_capture_range_adapter_mock.cpp | 44 void VideoCaptureRangeAdapterImpl::SetMax(double max) in SetMax() argument
|
/base/security/huks/test/unittest/huks_standard_test/module_test/framework_test/common_test/src/ |
H A D | hks_template_test.cpp | 151 const uint32_t max = 10; in TestLogBreak() local 154 for (; i < max; ++i) { in TestLogBreak() 198 const uint32_t max = 10; in TestBreak() local 201 for (; i < max; ++i) { in TestBreak()
|
/base/security/device_auth/deps_adapter/key_management_adapter/interfaces/ |
H A D | huks_adapter.h | 52 #define CHECK_LEN_HIGHER_RETURN(len, max, paramTag) \ 54 if ((len) > (max)) { \
|
/base/telephony/core_service/utils/common/src/ |
H A D | tel_event_queue.cpp | 126 if (handleTime == AppExecFwk::InnerEvent::TimePoint::max()) { in SubmitInner() 151 SetCurHandleTime(AppExecFwk::InnerEvent::TimePoint::max()); in SubmitToFFRT() 190 SetCurHandleTime(AppExecFwk::InnerEvent::TimePoint::max()); in RemoveEvent() 216 SetCurHandleTime(AppExecFwk::InnerEvent::TimePoint::max()); in RemoveAllEvents() 235 SetCurHandleTime(AppExecFwk::InnerEvent::TimePoint::max()); in PopEvent() 243 SetCurHandleTime(AppExecFwk::InnerEvent::TimePoint::max()); in PopEvent() 252 return AppExecFwk::InnerEvent::TimePoint::max(); in GetHandleTime() 260 AppExecFwk::InnerEvent::TimePoint needWakeUpTime = AppExecFwk::InnerEvent::TimePoint::max(); in GetPriorityIndex()
|
/base/startup/appspawn/test/unittest/app_spawn_client_test/ |
H A D | app_spawn_client_test.cpp | 188 uint32_t max = sizeof(testFlags) / sizeof(testFlags[0]); in HWTEST_F() local 189 for (size_t i = 0; i < max; i++) { in HWTEST_F() 204 for (size_t i = 0; i < max; i++) { in HWTEST_F() 685 int max = GetMaxPermissionIndex(clientHandle); in HWTEST_F() local 686 for (int i = 0; i < max; i++) { in HWTEST_F() 695 for (size_t i = 0; i < max; i++) { in HWTEST_F() 1054 int32_t max = GetPermissionMaxCount(); in HWTEST_F() local 1055 EXPECT_EQ(max >= 0, 1); in HWTEST_F() 1075 int32_t max = GetPermissionMaxCount(); in HWTEST_F() local 1076 EXPECT_EQ(max > in HWTEST_F() 1124 int32_t max = GetPermissionMaxCount(); HWTEST_F() local 1158 int32_t max = GetPermissionMaxCount(); HWTEST_F() local 1201 int max = GetMaxPermissionIndex(clientHandle); HWTEST_F() local [all...] |
/base/msdp/device_status/tools/vdev/include/ |
H A D | virtual_touchscreen.h | 51 int32_t screenWidth_ { std::numeric_limits<int32_t>::max() }; 52 int32_t screenHeight_ { std::numeric_limits<int32_t>::max() };
|
/base/msdp/device_status/utils/common/include/ |
H A D | util.h | 102 return AddInt(op1, op2, std::numeric_limits<int32_t>::min(), std::numeric_limits<int32_t>::max(), res); in AddInt32() 107 return AddInt(op1, op2, std::numeric_limits<int64_t>::min(), std::numeric_limits<int64_t>::max(), res); in AddInt64() 140 return MultiplyInt(op1, op2, std::numeric_limits<int32_t>::min(), std::numeric_limits<int32_t>::max(), res); in MultiplyInt32() 145 return MultiplyInt(op1, op2, std::numeric_limits<int64_t>::min(), std::numeric_limits<int64_t>::max(), res); in MultiplyInt64()
|
H A D | id_factory.h | 56 const T maxLimit_ = std::numeric_limits<T>::max();
|
/base/hiviewdfx/hiview/base/test/unittest/common/ |
H A D | sys_event_test.cpp | 61 jsonStr.append(std::to_string(std::numeric_limits<int64_t>::max())); in GetOriginTestString() 67 jsonStr.append(std::to_string(std::numeric_limits<uint64_t>::max())); in GetOriginTestString() 73 jsonStr.append(std::to_string((static_cast<double>(std::numeric_limits<uint64_t>::max()) * SCALE_FACTOR))); in GetOriginTestString() 161 jsonStr.append(std::to_string(std::numeric_limits<int64_t>::max())); in HWTEST_F() 165 jsonStr.append(std::to_string(std::numeric_limits<uint64_t>::max())); in HWTEST_F() 177 ASSERT_EQ(dest, std::numeric_limits<int64_t>::max()); in HWTEST_F() 204 jsonStr.append(std::to_string(std::numeric_limits<int64_t>::max())); in HWTEST_F() 208 jsonStr.append(std::to_string(std::numeric_limits<uint64_t>::max())); in HWTEST_F() 220 ASSERT_EQ(dest, static_cast<uint64_t>(std::numeric_limits<int64_t>::max())); in HWTEST_F() 228 ASSERT_EQ(dest, std::numeric_limits<uint64_t>::max()); in HWTEST_F() [all...] |
/base/startup/appspawn/test/unittest/app_spawn_standard_test/ |
H A D | app_spawn_sandboxmgr_test.cpp | 454 std::vector<uint8_t> buffer(1024 * 2); // 1024 * 2 max buffer in TestCreateAppSpawningCtx() 666 int32_t max = GetPermissionMaxCount(); in HWTEST_F() local 667 EXPECT_EQ(max >= 0, 1); in HWTEST_F() 681 int32_t max = GetPermissionMaxCount(); in HWTEST_F() local 682 EXPECT_EQ(max >= 0, 1); in HWTEST_F() 688 max = GetMaxPermissionIndex(clientHandle); in HWTEST_F() 691 EXPECT_EQ(index < max, 1); in HWTEST_F() 708 int32_t max = GetPermissionMaxCount(); 709 EXPECT_EQ(max >= 0, 1); 716 max 741 int32_t max = GetPermissionMaxCount(); HWTEST_F() local [all...] |
H A D | app_spawn_cgroup_test.cpp | 56 appInfo->max = 0; in CreateTestAppInfo() 291 * @brief in appspawn service, max write 304 appInfo->max = 10; // 10 test max in HWTEST_F() 305 ret = GetTestCGroupFilePath(appInfo, "pids.max", path, true); in HWTEST_F() 312 ret = GetTestCGroupFilePath(appInfo, "pids.max", path, false); in HWTEST_F() 317 uint32_t max = 0; in HWTEST_F() local 319 while (fscanf_s(file, "%d\n", &max) == 1 && max > 0) { in HWTEST_F() 320 APPSPAWN_LOGV("max in HWTEST_F() [all...] |
/base/msdp/device_status/tools/vdev/src/ |
H A D | virtual_touchscreen.cpp | 68 ((screenWidth_ == std::numeric_limits<int32_t>::max()) || in QueryScreenSize() 77 ((screenHeight_ == std::numeric_limits<int32_t>::max()) || in QueryScreenSize() 110 slots_[slot].coord.x = std::min(std::max(x, 0), screenWidth_ - 1); in DownButton() 111 slots_[slot].coord.y = std::min(std::max(y, 0), screenHeight_ - 1); in DownButton() 172 .x = std::min(std::max(slots_[slot].coord.x + dx, 0), screenWidth_ - 1), in Move() 173 .y = std::min(std::max(slots_[slot].coord.y + dy, 0), screenHeight_ - 1) in Move()
|
/base/security/asset/services/crypto_manager/src/ |
H A D | crypto_manager.rs | 19 cmp::max, 88 max_time = max(crypto.valid_time() as u64 - crypto.start_time().elapsed().as_secs(), max_time) in max_crypto_expire_duration()
|
/base/security/asset/services/core_service/src/operations/common/ |
H A D | argument_check.rs | 54 fn check_array_size(tag: &Tag, value: &Value, min: usize, max: usize) -> Result<()> { in check_array_size() 58 if v.len() > max || v.len() <= min { in check_array_size() 100 fn check_number_range(tag: &Tag, value: &Value, min: u32, max: u32) -> Result<()> { in check_number_range() 104 if *n <= min || *n > max { in check_number_range()
|
/base/sensors/sensor/vibration_convert/core/native/src/ |
H A D | audio_parsing.cpp | 125 audioData_.max = *std::max_element(audioData_.audioDatas.begin(), audioData_.audioDatas.end()); in ParseAudioFile() 172 data.max = audioData_.max; in GetAudioData() 174 SEN_HILOGD("min:%{public}lf, max:%{public}lf, audioDatas.size():%{public}zu", in GetAudioData() 175 data.min, data.max, data.audioDatas.size()); in GetAudioData()
|
/base/web/webview/ohos_adapter/camera_adapter/include/ |
H A D | video_capture_range_adapter_impl.h | 37 void SetMax(double max);
|
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
H A D | notification_multiline_content_test.cpp | 163 int max = 7;
in HWTEST_F() local 164 for (int i = 0; i < max; i++) {
in HWTEST_F() 168 EXPECT_EQ(result.size(), max);
in HWTEST_F()
|
/base/startup/appspawn/modules/common/ |
H A D | appspawn_cgroup.c | 53 char pidName[32] = {0}; // 32 max len in WriteToFile() 80 static int WritePidMax(const char *path, uint32_t max) in WritePidMax() argument 86 cJSON_AddNumberToObject(encaps, APP_PIDS_MAX_OHOS_ENCAPS_FORK_KEV, max); in WritePidMax() 104 char value[32] = {0}; // 32 max len in WritePidMax() 110 ret = snprintf_s(value, sizeof(value), sizeof(value) - 1, "%u\n", max); in WritePidMax() 213 if (appInfo->max != 0) { in ProcessMgrAddApp() 215 ret = strcat_s(path, sizeof(path), "pids.max"); in ProcessMgrAddApp() 217 ret = WritePidMax(path, appInfo->max); in ProcessMgrAddApp() 218 APPSPAWN_CHECK(ret == 0, return ret, "write max to pids.max fai in ProcessMgrAddApp() [all...] |
/base/sensors/miscdevice/services/miscdevice_service/haptic_matcher/src/ |
H A D | custom_vibration_matcher.cpp | 198 outputEvents.back().duration = std::max(outputEvents.back().duration, 0);
in MixedWaveProcess() 205 .duration = std::max(lastEvent.time + lastEvent.duration, event.time + event.duration)
in MixedWaveProcess() 237 event.duration = std::max(event.duration, CONTINUOUS_VIBRATION_DURATION_MIN);
in PreProcessEvent() 242 curvePoint.intensity = std::max(curvePoint.intensity, INTENSITY_MIN);
in PreProcessEvent() 245 curvePoint.frequency = std::max(curvePoint.frequency, FREQUENCY_MIN);
in PreProcessEvent() 259 int32_t overlapLeft = std::max(curveLeft.front().time, curveRight.front().time);
in MergeCurve() 283 newCurvePoint.intensity = std::max(curveLeft[i].intensity, intensity);
in MergeCurve() 292 newCurvePoint.intensity = std::max(curveRight[j].intensity, intensity);
in MergeCurve() 297 newCurvePoint.intensity = std::max(curveLeft[i].intensity, curveRight[j].intensity);
in MergeCurve()
|