/ohos5.0/foundation/arkui/ui_lite/test/unittest/common/ |
H A D | text_unit_test.cpp | 36 static Text* text_; member in OHOS::TextTest 43 if (text_ == nullptr) { in SetUpTestCase() 44 text_ = new Text(); in SetUpTestCase() 50 if (text_ != nullptr) { in TearDownTestCase() 51 delete text_; in TearDownTestCase() 52 text_ = nullptr; in TearDownTestCase() 64 if (text_ == nullptr) { 69 text_->SetText(text); 81 if (text_ == nullptr) { 206 text_->SetText(text); [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/option/ |
H A D | option_pattern.cpp | 377 CHECK_NULL_VOID(text_); in SetFontSize() 380 text_->MarkModifyDone(); in SetFontSize() 387 CHECK_NULL_VOID(text_); in SetItalicFontStyle() 390 text_->MarkModifyDone(); in SetItalicFontStyle() 396 CHECK_NULL_VOID(text_); in SetFontWeight() 399 text_->MarkModifyDone(); in SetFontWeight() 405 CHECK_NULL_VOID(text_); in SetFontFamily() 408 text_->MarkModifyDone(); in SetFontFamily() 414 CHECK_NULL_VOID(text_); in SetFontColor() 501 CHECK_NULL_VOID(text_); in UpdateText() [all …]
|
/ohos5.0/foundation/arkui/ui_lite/frameworks/components/ |
H A D | ui_dialog.cpp | 83 text_(nullptr), in UIDialog() 120 if (text_ != nullptr) { in ~UIDialog() 121 delete text_; in ~UIDialog() 122 text_ = nullptr; in ~UIDialog() 278 if (text_ == nullptr) { in SetTextLabel() 279 text_ = new UILabel(); in SetTextLabel() 289 text_->SetText(textText_); in SetTextLabel() 324 if (text_ != nullptr) { in AddComponents() 395 if (text_ != nullptr) { in MeasureSize() 399 text_->SetHeight(text_->GetTextHeight()); in MeasureSize() [all …]
|
/ohos5.0/foundation/arkui/ui_lite/frameworks/common/ |
H A D | text.cpp | 29 : text_(nullptr), in Text() 52 if (text_ != nullptr) { in ~Text() 53 UIFree(text_); in ~Text() 54 text_ = nullptr; in ~Text() 95 if (text_ != nullptr) { in SetText() 99 UIFree(text_); in SetText() 100 text_ = nullptr; in SetText() 107 UIFree(text_); in SetText() 108 text_ = nullptr; in SetText() 253 if ((text_ == nullptr) || (strlen(text_) == 0) || (fontSize_ == 0)) { in OnDraw() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/option/ |
H A D | option_component.cpp | 59 if (!text_ || value_.empty()) { in Initialize() 87 text_->SetTextStyle(textStyle); in Initialize() 90 text_->SetTextStyle(textStyle); in Initialize() 94 text_->SetData(value_); in Initialize() 96 textStyle = text_->GetTextStyle(); in Initialize() 127 text_->SetTextStyle(textStyle); in Initialize() 128 text_->SetFocusColor(textStyle.GetTextColor()); in Initialize() 129 AppendChild(text_); in Initialize() 143 if (!text_) { in CheckOptionModify() 150 if (text_->GetData() == lastText_) { in CheckOptionModify() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/security_component/ |
H A D | security_component_layout_algorithm.cpp | 170 double textWidth = text_.width_; in ShrinkWidth() 180 text_.ShrinkWidth(textRemain); in ShrinkWidth() 189 text_.ShrinkWidth(resIcon); in ShrinkWidth() 230 double textHeight = text_.height_; in ShrinkHeight() 240 text_.ShrinkHeight(textRemain); in ShrinkHeight() 248 text_.ShrinkHeight(resIcon); in ShrinkHeight() 324 if (icon_.width_ > text_.width_) { in UpdateVerticalOffset() 341 if (icon_.height_ > text_.height_) { in UpdateHorizontalOffset() 426 if (icon_.width_ > text_.width_) { in UpdateTextRectPoint() 443 if (icon_.height_ > text_.height_) { in UpdateTextRectPoint() [all …]
|
/ohos5.0/base/notification/distributed_notification_service/frameworks/ans/src/ |
H A D | notification_basic_content.cpp | 37 text_ = text; in SetText() 42 return text_; in GetText() 67 return "title = " + title_ + ", text = " + text_ + ", additionalText = " + additionalText_ + in Dump() 73 jsonObject["text"] = text_; in ToJson() 90 text_ = jsonObject.at("text").get<std::string>(); in ReadFromJson() 109 if (!parcel.WriteString(text_)) { in Marshalling() 142 if (!parcel.ReadString(text_)) { in ReadFromParcel()
|
H A D | notification_conversational_message.cpp | 29 : arrivedTime_(timestamp), text_(text), sender_(sender) in NotificationConversationalMessage() 34 return text_; in GetText() 66 "text = " + text_ + in Dump() 77 jsonObject["text"] = text_; in ToJson() 111 pMessage->text_ = jsonObject.at("text").get<std::string>(); in FromJson() 146 if (!parcel.WriteString(text_)) { in Marshalling() 192 if (!parcel.ReadString(text_)) { in ReadFromParcel()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/indexer/ |
H A D | indexer_item_component.cpp | 38 text_ = AceType::MakeRefPtr<TextComponent>(StringUtils::Str16ToStr8(strLabel_)); in BuildItem() 42 text_->SetTextStyle(textStyle); in BuildItem() 43 box_->SetChild(text_); in BuildItem() 67 if (!text_) { in SetTextStyle() 72 text_->SetTextStyle(activeStyle_); in SetTextStyle() 74 text_->SetTextStyle(normalStyle_); in SetTextStyle()
|
/ohos5.0/base/security/security_component_manager/frameworks/security_component/src/ |
H A D | location_button.cpp | 29 …if ((text_ <= UNKNOWN_TEXT) || (static_cast<LocationDesc>(text_) >= LocationDesc::MAX_LABEL_TYPE) … in IsTextIconTypeValid() 52 return (icon_ == otherLocationButton->icon_) && (text_ == otherLocationButton->text_) && in CompareComponentBasicInfo()
|
H A D | paste_button.cpp | 29 if ((text_ <= UNKNOWN_TEXT) || (static_cast<PasteDesc>(text_) >= PasteDesc::MAX_LABEL_TYPE) || in IsTextIconTypeValid() 53 return (icon_ == otherPasteButton->icon_) && (text_ == otherPasteButton->text_) && in CompareComponentBasicInfo()
|
H A D | save_button.cpp | 31 if ((text_ <= UNKNOWN_TEXT) || (static_cast<SaveDesc>(text_) >= SaveDesc::MAX_LABEL_TYPE) || in IsTextIconTypeValid() 66 return (icon_ == otherSaveButton->icon_) && (text_ == otherSaveButton->text_) && in CompareComponentBasicInfo()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ets/ets/testcase/interface/ |
H A D | textblobtest.ts | 65 private text_: string = 'TextBlobCreateFromString'; 77 …textBlob = drawing.TextBlob.makeFromString(this.text_, this.font_, drawing.TextEncoding.TEXT_ENCOD… 83 …const textBlob: drawing.TextBlob = drawing.TextBlob.makeFromString(this.text_, this.font_, drawing… 109 private text_: string = 'TextBlobCreateFromPosText'; 115 for (let i = 0; i !== this.text_.length; ++i) { 121 …return drawing.TextBlob.makeFromPosText(this.text_, this.points_.length, this.points_, this.font_); 137 private text_: string = 'TextBlobUniqueId'; 144 …this.textBlob_ = drawing.TextBlob.makeFromString(this.text_, this.font_, drawing.TextEncoding.TEXT…
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/text/ |
H A D | render_text.cpp | 107 textForDisplay_ = text_->GetData(); in Update() 119 onDrop_ = text_->GetOnDropId(); in Update() 149 if (text_) { in UpdateAccessibilityText() 760 if (!text_) { in HandleTouchEvent() 891 if (!text_) { in CheckIfNeedMeasure() 895 if (text_->IsChanged()) { in CheckIfNeedMeasure() 911 return text_ ? text_->GetData() : ""; in GetTextData() 916 if (text_) { in SetTextData() 917 text_->SetData(textData); in SetTextData() 924 text_.Reset(); in ClearRenderObject() [all …]
|
H A D | rosen_render_text.cpp | 101 if (text_->GetDeclarationHeight().IsValid()) { in Paint() 177 if (!text_ || CheckMeasureFlag()) { in Measure() 200 if (text_->GetMaxWidthLayout()) { in Measure() 276 if (!paragraph_ || !text_ || !text_->GetAutoMaxLines()) { in EffectAutoMaxLines() 411 text_->GetDeclarationHeight().IsValid()) { in GetSize() 420 std::string data = text_->GetData(); in ApplyWhiteSpace() 463 if (!text_) { in UpdateParagraph() 480 std::string data = text_->GetData(); in UpdateParagraph() 491 defaultTextDirection_ = text_->GetTextDirection(); in UpdateParagraph() 506 …if (!IsCompatibleVersion() && textStyle_.GetMaxLines() == UINT32_MAX && !text_->GetAutoMaxLines())… in UpdateParagraph() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/indexer/ |
H A D | indexer_item_component.cpp | 40 text_ = AceType::MakeRefPtr<TextComponent>(StringUtils::Str16ToStr8(strLabel_)); in BuildItem() 44 text_->SetTextStyle(textStyle); in BuildItem() 45 box_->SetChild(text_); in BuildItem() 46 tail = text_; in BuildItem() 277 if (!text_) { in SetTextStyle() 282 text_->SetTextStyle(activeStyle_); in SetTextStyle() 284 text_->SetTextStyle(normalStyle_); in SetTextStyle()
|
/ohos5.0/base/inputmethod/imf/test/common/src/ |
H A D | keyboard_listener_test_impl.cpp | 27 std::string KeyboardListenerTestImpl::text_; member in OHOS::MiscServices::KeyboardListenerTestImpl 61 text_ = text; in OnTextChange() 74 text_ = ""; in ResetParam() 100 kdListenerCv_.wait_for(lock, std::chrono::seconds(1), [&text]() { return text == text_; }); in WaitTextChange() 101 return text == text_; in WaitTextChange()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/navigation/ |
H A D | bar_item_node.h | 45 text_ = text; in SetTextNode() 50 return text_; in GetTextNode() 89 RefPtr<UINode> text_;
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select/ |
H A D | select_pattern.cpp | 154 CHECK_NULL_VOID(text_); in SetItemSelected() 159 text_->MarkModifyDone(); in SetItemSelected() 521 text_ = in BuildChild() 523 CHECK_NULL_VOID(text_); in BuildChild() 524 text_->SetInternal(); in BuildChild() 544 text_->MarkModifyDone(); in BuildChild() 546 text_->MountToParent(row); in BuildChild() 621 auto context = text_->GetRenderContext(); in SetFontColor() 875 CHECK_NULL_VOID(text_); in UpdateText() 884 text_->MarkModifyDone(); in UpdateText() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/picker/ |
H A D | picker_option_component.h | 58 return text_; in GetText() 62 text_ = value; in SetText() 144 std::string text_; variable
|
/ohos5.0/foundation/distributeddatamgr/pasteboard/framework/test/src/ |
H A D | paste_data_entry_test.cpp | 39 std::string text_ = "test_string"; member in OHOS::MiscServices::PasteDataEntryTest 59 udsObject->value_[UDMF::CONTENT] = text_; in InitPlaintTextEntry() 121 ASSERT_EQ(*value, text_); in CheckPlainUds() 156 EXPECT_EQ(text_, *str); 197 entry.SetValue(text_); 210 ASSERT_EQ(text_, *str);
|
H A D | pasteboard_utils_test.cpp | 61 std::string text_; member in OHOS::MiscServices::PasteboardUtilsTest 93 text_ = "helloWorld_plainText"; in InitPlainData() 107 text_ = "<div class='disable'>helloWorld</div>"; in InitHtmlData() 110 std::shared_ptr<UDMF::Html> htmlRecord = std::make_shared<UDMF::Html>(text_, extraText_); in InitHtmlData() 132 text_ = "https://www.test.com"; in InitLinkData() 314 ASSERT_EQ(link->GetContent(), text_); 326 ASSERT_EQ(newPlainText, text_); 353 ASSERT_EQ(link->GetHtmlContent(), text_); 365 ASSERT_EQ(newPlainText, text_); 390 ASSERT_EQ(link->GetUrl(), text_); [all …]
|
/ohos5.0/base/security/security_component_manager/interfaces/inner_api/security_component/test/unittest/src/ |
H A D | paste_button_test.cpp | 102 button1.text_ = UNKNOWN_TEXT; 104 button1.text_ = static_cast<int32_t>(PasteDesc::PASTE); 139 comp1.text_ = static_cast<int32_t>(PasteDesc::MAX_LABEL_TYPE); 141 comp1.text_ = static_cast<int32_t>(PasteDesc::PASTE);
|
H A D | save_button_test.cpp | 102 button1.text_ = UNKNOWN_TEXT; 104 button1.text_ = static_cast<int32_t>(SaveDesc::DOWNLOAD); 139 comp1.text_ = static_cast<int32_t>(SaveDesc::DOWNLOAD_AND_SHARE); 141 comp1.text_ = static_cast<int32_t>(SaveDesc::DOWNLOAD);
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/select/ |
H A D | select_test_ng.cpp | 1321 pattern->text_ = frameNode_; 1340 pattern->text_ = frameNode_; 1360 pattern->text_ = frameNode_; 1379 pattern->text_ = frameNode_; 1404 pattern->text_ = frameNode_; 1423 pattern->text_ = frameNode_; 1447 pattern->text_ = frameNode_; 1499 pattern->text_ = frameNode_; 1524 pattern->text_ = frameNode_; 1543 pattern->text_ = frameNode_; [all …]
|