Home
last modified time | relevance | path

Searched refs:maxLength (Results 1 - 25 of 64) sorted by relevance

123

/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/
H A Dstring_util.h36 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 Dbase_test.cpp123 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 Dstring_util.h38 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 Dstring_util.h39 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 Dnumber_parser.cpp41 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 Danimation_playback.cpp124 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 Dpatternlock_layout_algorithm.cpp38 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 Dshare_memory.cpp79 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 Dshare_memory.cpp73 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 Dplugin_buffer.cpp76 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 Dnode_drag_modifier.cpp73 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 Dav_trans_buffer.cpp144 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 Dui_edit_text.cpp241 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 Dui_arc_label.cpp325 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 Dtext_input_configuration.h37 uint32_t maxLength; member
H A Dtext_input_configuration.cpp32 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 Dlist_component.h136 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 Dgt_bundle_parser.h71 #define CHECK_LENGTH(length, maxLength, errorCode) \
73 if ((length) > (maxLength)) { \
H A Dbundle_parser.h79 #define CHECK_LENGTH(length, maxLength, errorCode) \
81 if ((length) > (maxLength)) { \
/foundation/systemabilitymgr/samgr/interfaces/innerkits/dynamic_cache/include/
H A Ddynamic_cache.h105 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 Dplugin_buffer.cpp75 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 Davsharedmemorybase.cpp185 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 Dcontent_controller.cpp67 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 Di_renderer_stream.h57 virtual int32_t UpdateMaxLength(uint32_t maxLength) = 0;
/foundation/multimedia/media_foundation/src/buffer/avbuffer/
H A Davmemory.cpp363 int32_t maxLength = size_; in Read() local
366 maxLength = size_ - start; in Read()
368 int32_t length = std::min(readSize, maxLength); in Read()

Completed in 11 milliseconds

123