/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/ |
H A D | string_util.h | 36 inline void CopyStringToArray(const BASE_NS::string_view source, char* target, size_t maxLength) in CopyStringToArray() argument 38 if (source.size() > maxLength) { in CopyStringToArray() 39 CORE_LOG_W("CopyStringToArray: string (%zu) longer than %zu", source.size(), maxLength); in CopyStringToArray() 41 size_t const length = source.copy(target, maxLength); in CopyStringToArray()
|
/foundation/arkui/ace_engine_lite/test/moduletest/common/ |
H A D | base_test.cpp | 123 uint8_t maxLength = 9; in SetCompnentNameId() local 124 char *tarComponentName = reinterpret_cast<char *>(malloc(maxLength)); in SetCompnentNameId() 132 if (strcpy_s(tarComponentName, maxLength, "progress") == 0) in SetCompnentNameId() 135 if (strcpy_s(tarComponentName, maxLength, "chart") == 0) in SetCompnentNameId() 138 if (strcpy_s(tarComponentName, maxLength, "marquee") == 0) in SetCompnentNameId()
|
/foundation/graphic/graphic_3d/lume/LumeRender/src/util/ |
H A D | string_util.h | 38 inline void CopyStringToArray(const BASE_NS::string_view source, char* target, size_t maxLength) in CopyStringToArray() argument 40 if (source.size() > maxLength) { in CopyStringToArray() 41 PLUGIN_LOG_W("CopyStringToArray: string (%zu) longer than %zu", source.size(), maxLength); in CopyStringToArray() 43 size_t const length = source.copy(target, maxLength); in CopyStringToArray()
|
/foundation/graphic/graphic_3d/lume/LumeEngine/src/util/ |
H A D | string_util.h | 39 inline void CopyStringToArray(const BASE_NS::string_view source, char* target, size_t maxLength) in CopyStringToArray() argument 41 if (source.size() > maxLength) { in CopyStringToArray() 42 CORE_LOG_W("CopyStringToArray: string (%zu) longer than %zu", source.size(), maxLength); in CopyStringToArray() 44 size_t const length = source.copy(target, maxLength); in CopyStringToArray()
|
/foundation/arkui/ace_engine_lite/frameworks/src/core/base/ |
H A D | number_parser.cpp | 41 constexpr uint16_t maxLength = 16; in ParsePercentValue() local 42 if (ensuredStrLength > maxLength) { in ParsePercentValue()
|
/foundation/graphic/graphic_3d/lume/Lume_3D/src/ecs/systems/ |
H A D | animation_playback.cpp | 124 float maxLength = 0.f; in GetAnimationLength() local 132 maxLength = Math::max(maxLength, inputData->timestamps.back()); in GetAnimationLength() 138 return maxLength; in GetAnimationLength()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/patternlock/ |
H A D | patternlock_layout_algorithm.cpp | 38 float maxLength = std::min(selfIdealWidth, selfIdealHeight); in MeasureContent() local 39 length = std::min(maxLength, length); in MeasureContent()
|
/foundation/multimedia/media_foundation/src/common/ |
H A D | share_memory.cpp | 79 size_t maxLength = size; in Read() local 82 maxLength = size - start; in Read() 84 size_t length = std::min(readSize, maxLength); in Read()
|
/foundation/multimedia/media_foundation/engine/plugin/common/ |
H A D | share_memory.cpp | 73 size_t maxLength = size; in Read() local 76 maxLength = size - start; in Read() 78 size_t length = std::min(readSize, maxLength); in Read()
|
H A D | plugin_buffer.cpp | 76 size_t maxLength = size; in Read() local 79 maxLength = size - start; in Read() 81 size_t length = std::min(readSize, maxLength); in Read()
|
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | node_drag_modifier.cpp | 73 int32_t maxLength = 0; in SetDragEventProperty() local 76 maxLength = std::max(maxLength, keyLength); in SetDragEventProperty() 82 event.dragEvent.dataTypesMaxStrLength = maxLength + 1; in SetDragEventProperty() 259 int32_t maxLength = 0; in SetOnDragEnd() 264 maxLength = std::max(maxLength, keyLength); in SetOnDragEnd() 270 event.dragEvent.dataTypesMaxStrLength = maxLength + 1; in SetOnDragEnd()
|
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/common/src/ |
H A D | av_trans_buffer.cpp | 144 size_t maxLength = size_;
in Read() local 147 maxLength = size_ - start;
in Read() 149 size_t length = std::min(readSize, maxLength);
in Read()
|
/foundation/arkui/ui_lite/frameworks/components/ |
H A D | ui_edit_text.cpp | 241 uint16_t maxLength = GetMaxLength(); in UpdateTextString() local 242 if (textLen > maxLength) { in UpdateTextString() 243 textLen = maxLength; in UpdateTextString() 685 void UIEditText::SetMaxLength(uint16_t maxLength) in SetMaxLength() argument 688 if (maxLength > MAX_TEXT_LENGTH) { in SetMaxLength() 689 maxLength = MAX_TEXT_LENGTH; in SetMaxLength() 691 maxLength_ = maxLength; in SetMaxLength() 692 if (textStr_.length() > maxLength) { in SetMaxLength() 693 SetText(textStr_.substr(0, maxLength)); in SetMaxLength()
|
H A D | ui_arc_label.cpp | 325 uint32_t UIArcLabel::GetLineEnd(int16_t maxLength) in GetLineEnd() argument 333 arcLabelText_->GetFontSize(), style_->letterSpace_, maxLength); in GetLineEnd() 374 float maxLength = static_cast<float>((UI_PI * radius_ * arcAngle) / SEMICIRCLE_IN_DEGREE); in OnMeasureArcTextInfo() local 378 rect.SetWidth(static_cast<int16_t>(maxLength)); in OnMeasureArcTextInfo() 381 arcTextInfo_.lineEnd = GetLineEnd(static_cast<int16_t>(maxLength)); in OnMeasureArcTextInfo() 386 if ((arcLabelText_->GetHorAlign() != TEXT_ALIGNMENT_LEFT) && (actLength < maxLength)) { in OnMeasureArcTextInfo() 387 float gapLength = maxLength - actLength; in OnMeasureArcTextInfo()
|
/foundation/arkui/ace_engine/frameworks/core/common/ime/ |
H A D | text_input_configuration.h | 37 uint32_t maxLength; member
|
H A D | text_input_configuration.cpp | 32 const char MAX_LENGTH[] = "maxLength"; 55 json->Put(MAX_LENGTH, static_cast<int32_t>(maxLength)); in ToJsonString()
|
/foundation/arkui/ace_engine/frameworks/core/components_v2/list/ |
H A D | list_component.h | 136 void SetLaneConstrain(const Dimension& minLength, const Dimension& maxLength) in SetLaneConstrain() argument 138 laneContrain_.emplace(minLength, maxLength); in SetLaneConstrain()
|
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/include/ |
H A D | gt_bundle_parser.h | 71 #define CHECK_LENGTH(length, maxLength, errorCode) \ 73 if ((length) > (maxLength)) { \
|
H A D | bundle_parser.h | 79 #define CHECK_LENGTH(length, maxLength, errorCode) \ 81 if ((length) > (maxLength)) { \
|
/foundation/systemabilitymgr/samgr/interfaces/innerkits/dynamic_cache/include/ |
H A D | dynamic_cache.h | 105 int32_t maxLength = 256; in SetKey() local 106 if (key.size() == 0 || (int32_t)key.size() > maxLength) { in SetKey()
|
/foundation/multimedia/media_foundation/src/plugin/ |
H A D | plugin_buffer.cpp | 75 size_t maxLength = size; in Read() local 78 maxLength = size - start; in Read() 80 size_t length = std::min(readSize, maxLength); in Read()
|
/foundation/multimedia/media_foundation/src/buffer/avsharedmemory/ |
H A D | avsharedmemorybase.cpp | 185 int32_t maxLength = size_; in Read() local 188 maxLength = size_ - start; in Read() 190 int32_t length = std::min(readSize, maxLength); in Read()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/ |
H A D | content_controller.cpp | 67 auto maxLength = static_cast<uint32_t>(textField->GetMaxLength()); in PreprocessString() local 71 addLength = std::min(addLength, maxLength - curLength + delLength); in PreprocessString() 196 auto maxLength = in FilterValue() local 199 if (GreatNotEqual(textWidth, maxLength)) { in FilterValue() 201 auto subWstring = TextEmojiProcessor::SubWstring(0, maxLength, GetWideText()); in FilterValue()
|
/foundation/multimedia/audio_framework/services/audio_service/server/include/ |
H A D | i_renderer_stream.h | 57 virtual int32_t UpdateMaxLength(uint32_t maxLength) = 0;
|
/foundation/multimedia/media_foundation/src/buffer/avbuffer/ |
H A D | avmemory.cpp | 363 int32_t maxLength = size_; in Read() local 366 maxLength = size_ - start; in Read() 368 int32_t length = std::min(readSize, maxLength); in Read()
|