/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/common/ime/ |
H A D | ime_test.cpp | 166 textEditingValue.selection.baseOffset = 10; 485 textEditingValue.selection.baseOffset = 20; 502 textEditingValue.selection.baseOffset = -1; 631 textEditingValue.selection.baseOffset = 5; 659 textEditingValue.selection.Update(-1); 727 newValue.selection.extentOffset = 10; 750 newValue.selection.extentOffset = 10; 773 newValue.selection.extentOffset = 0; 793 newValue.selection.extentOffset = 0; 813 newValue.selection.extentOffset = 0; [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/common/ime/ |
H A D | text_editing_value.cpp | 57 if (selection != other.selection) { in operator ==() 76 if (selection.extentOffset <= 1) { in MoveLeft() 77 selection.Update(0); in MoveLeft() 106 selection.Update(0); in MoveToPosition() 114 selection.Update(position); in MoveToPosition() 130 selection.Update(start, end); in UpdateSelection() 149 int32_t end = selection.GetEnd(); in SelectionAwareTextManipulation() 177 if (selection.baseOffset > selection.extentOffset) { in SelectionAwareTextManipulation() 207 int32_t end = selection.GetEnd(); in GetSelectedText() 246 int32_t end = selection.GetEnd(); in GetAfterSelection() [all …]
|
H A D | text_edit_controller.h | 34 value.selection.Update(static_cast<int32_t>(value.GetWideText().length())); 46 void SetSelection(const TextSelection& selection) in SetSelection() argument 49 value.selection = selection; in SetSelection() 65 return GetValue().selection; in GetSelection()
|
H A D | text_input_formatter.cpp | 52 int32_t removeBeforeExtent = std::min(exceedLen, newValue.selection.extentOffset); in Format() 55 int32_t eraseStart = newValue.selection.extentOffset - removeBeforeExtent; in Format() 67 newValue.selection.Update(eraseStart); in Format()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/ |
H A D | rich_editor_paint_method.cpp | 45 const auto& selection = richEditorPattern->GetTextSelector(); in UpdateOverlayModifier() local 46 …if (richEditorPattern->GetTextContentLength() > 0 && selection.GetTextStart() != selection.GetText… in UpdateOverlayModifier() 47 …overlayMod->SetSelectedRects(pManager_->GetRects(selection.GetTextStart(), selection.GetTextEnd())… in UpdateOverlayModifier() 60 const auto& selection = richEditorPattern->GetTextSelector(); in UpdateOverlayModifier() local 61 …if (richEditorPattern->GetTextContentLength() > 0 && selection.GetTextStart() != selection.GetText… in UpdateOverlayModifier() 62 selectedRects = pManager_->GetRects(selection.GetTextStart(), selection.GetTextEnd()); in UpdateOverlayModifier()
|
H A D | selection_info.h | 168 int32_t selection[2] = { 0, 0 }; 187 selection_.selection[RichEditorSpanRange::RANGESTART] = start; in SetSelectionStart() 192 selection_.selection[RichEditorSpanRange::RANGEEND] = end; in SetSelectionEnd()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/text/ |
H A D | text_utils.h | 78 TextSelection selection = TextSelection(position, position); in GetRangeOfSameType() local 83 selection.extentOffset = position + 1; in GetRangeOfSameType() 84 return selection; in GetRangeOfSameType() 87 selection.baseOffset = FindSameCharTypeStart(wstring, position, type); in GetRangeOfSameType() 88 selection.extentOffset = FindSameCharTypeEnd(wstring, position, length, type); in GetRangeOfSameType() 89 return selection; in GetRangeOfSameType()
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ohos-arkui-advanced-SelectionMenu.md | 132 let selection = this.controller.getSelection(); 133 let spans = selection.spans 158 let spans = selection.spans 184 let spans = selection.spans 216 let spans = selection.spans 308 let spans = selection.spans 316 this.start = selection.selection[0] 317 this.end = selection.selection[1] 387 if (value.selection[0] == -1 && value.selection[1] == -1) { 390 this.start = value.selection[0] [all …]
|
H A D | ts-basic-components-richeditor.md | 1902 this.end = value.selection[1]; 2116 if (value.selection[0] == -1 && value.selection[1] == -1) { 2119 this.start = value.selection[0] 2120 this.end = value.selection[1] 2501 this.start = selection.selection[0] 2502 this.end = selection.selection[1] 2712 this.end = value.selection[1]; 3443 console.info("selection start " + select.selection[0] + " end " + select.selection[1]) 3494 this.end = value.selection[1]; 4216 @State selection: string = ""; [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ohos-arkui-advanced-SelectionMenu.md | 42 Defines the options of the context menu on selection. 131 let spans = selection.spans 156 let spans = selection.spans 182 let spans = selection.spans 214 let spans = selection.spans 306 let spans = selection.spans 314 this.start = selection.selection[0] 315 this.end = selection.selection[1] 385 if (value.selection[0] == -1 && value.selection[1] == -1) { 388 this.start = value.selection[0] [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/text_field/ |
H A D | render_text_field.cpp | 442 StringUtils::Str8ToStr16(value.text), value.selection.GetStart(), value.selection.GetEnd()); in UpdateCaretInfoToController() 851 UpdateSelection(selection.GetStart(), selection.GetEnd()); in OnDoubleClick() 853 selection.ToString().c_str()); in OnDoubleClick() 1617 if (valueToUpdate.selection.baseOffset > valueToUpdate.selection.extentOffset) { in KeyboardEditingValueFilter() 1680 (valueNeedToUpdate.selection.baseOffset == valueNeedToUpdate.selection.extentOffset && in UpdateEditingValue() 2096 temp.selection.Update(AdjustCursorAndSelection(temp.selection.GetEnd())); in OnValueChanged() 2219 StringUtils::Str8ToStr16(value.text), value.selection.GetStart(), value.selection.GetEnd()); in UpdateRemoteEditing() 2302 if (GetEditingValue().selection.GetStart() != GetEditingValue().selection.GetEnd()) { in SetIsOverlayShowed() 2822 … start = std::min(GetEditingValue().selection.GetStart(), GetEditingValue().selection.GetEnd()); in GetLeftTextOfCursor() 2832 … end = std::max(GetEditingValue().selection.GetStart(), GetEditingValue().selection.GetEnd()); in GetRightTextOfCursor() [all …]
|
H A D | on_text_changed_listener_impl.cpp | 54 textEditingValue->UpdateSelection(std::max(value.selection.GetStart(), 0) + text.length()); in InsertText() 77 auto start = value.selection.GetStart(); in DeleteForward() 78 auto end = value.selection.GetEnd(); in DeleteForward() 147 auto start = value.selection.GetStart(); in DeleteBackward() 148 auto end = value.selection.GetEnd(); in DeleteBackward()
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text_input/ |
H A D | text_input_test.cpp | 678 TextSelection selection; variable 681 value.selection = selection; 707 TextSelection selection; variable 710 value.selection = selection; 757 TextSelection selection; variable 760 value.selection = selection; 1306 TextSelection selection; variable 1309 value.selection = selection; 1830 TextSelection selection; variable 1833 value.selection = selection; [all …]
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/rich_editor/ |
H A D | rich_editor_overlay_test_ng.cpp | 226 EXPECT_EQ(richEditorSelection.selection[0], 0); 227 EXPECT_EQ(richEditorSelection.selection[1], 0); 237 EXPECT_EQ(richEditorSelection2.selection[0], 0); 238 EXPECT_EQ(richEditorSelection2.selection[1], 1); 245 EXPECT_EQ(richEditorSelection3.selection[0], 1); 246 EXPECT_EQ(richEditorSelection3.selection[1], 1); 343 EXPECT_EQ(richEditorSelection.selection[0], 0); 344 EXPECT_EQ(richEditorSelection.selection[1], 0); 1030 SelectionInfo selection; variable 1140 EXPECT_EQ(selection.baseOffset, -1); [all …]
|
H A D | rich_editor_base_test_ng.cpp | 922 EXPECT_EQ(info1.selection_.selection[0], 1); 926 EXPECT_EQ(info2.selection_.selection[0], 1); 929 EXPECT_EQ(info3.selection_.selection[0], 0); 932 EXPECT_EQ(info4.selection_.selection[0], 0); 933 EXPECT_EQ(info4.selection_.selection[1], 1); 1377 EXPECT_EQ(info1.selection_.selection[0], 2); 1378 EXPECT_EQ(info1.selection_.selection[1], 5); 1382 EXPECT_EQ(info2.selection_.selection[0], 2); 1383 EXPECT_EQ(info2.selection_.selection[1], 5); 1387 EXPECT_EQ(info3.selection_.selection[0], 0); [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/ |
H A D | text_paint_method.cpp | 130 const auto& selection = textPattern->GetTextSelector(); in UpdateOverlayModifier() local 133 if (selection.GetTextStart() != selection.GetTextEnd()) { in UpdateOverlayModifier() 134 auto rects = pManager->GetParagraphsRects(selection.GetTextStart(), selection.GetTextEnd()); in UpdateOverlayModifier()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_file_extension/src/ |
H A D | media_file_extention_utils.cpp | 500 selection += ") "; in GetListFilePredicates() 511 selection += ") "; in GetListFilePredicates() 535 predicates.SetWhereClause(selection); in GetResult() 595 return GetResult(uri, uriType, selection, selectionArgs); in GetListRootResult() 601 return GetResult(uri, uriType, selection, selectionArgs); in GetListRootResult() 608 string selection; in GetListDirResult() local 624 string selection; in GetListAlbumResult() local 806 predicates.SetWhereClause(selection); in GetScanFileResult() 846 string selection = MEDIA_DATA_DB_FILE_PATH + " LIKE ? "; in SetScanFileSelection() local 856 selection += ")"; in SetScanFileSelection() [all …]
|
/ohos5.0/foundation/multimedia/media_library/ |
H A D | README_zh.md | 52 2. 在 **selection** 内设置音频文件的扫描目录。selection 代表媒体公共根目录的相对路径, i.e. "/storage/media/local/files"。接口会在指定目… 54 string selection = "audios/audio1"; 59 …vector<unique_ptr<AudioAsset>> audioAssets = mediaLibClientInstance->GetAudioAssets(selection, sel…
|
/ohos5.0/docs/en/design/ux-design/ |
H A D | multimodal-state-button.md | 4 State buttons allow users to select from a group of options and may display the selection result in… 12 …The selected options are displayed in real time on the screen or submitted as the selection result. 18 - State buttons can be used for single selection. In this case, only one option can be selected. Th…
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/text_overlay/ |
H A D | text_overlay_manager.cpp | 453 const auto& selection = textValue_.selection; local 454 if (textValue_.text.empty() || selection.GetStart() == selection.GetEnd()) { 458 const auto& boxes = paragraph_->GetRectsForRange(selection.GetStart(), selection.GetEnd(), 461 const auto& boxes = paragraph_->GetTextRectsByBoundary(selection.GetStart(), selection.GetEnd(), 627 … return (tempText >= textValue_.selection.GetStart() && tempText <= textValue_.selection.GetEnd());
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/ |
H A D | medialibrary_file_operations.cpp | 371 static void ReplaceSelectionAndArgsInQuery(string &selection, vector<string> &selectionArgs, in ReplaceSelectionAndArgsInQuery() argument 374 if (selection.empty()) { in ReplaceSelectionAndArgsInQuery() 379 pos = selection.find(key, pos); in ReplaceSelectionAndArgsInQuery() 384 selection.replace(pos, key.length(), keyInstead); in ReplaceSelectionAndArgsInQuery() 386 size_t argPos = selection.find('?', pos); in ReplaceSelectionAndArgsInQuery() 392 if (selection[i] == '?') { in ReplaceSelectionAndArgsInQuery() 398 selection.c_str()); in ReplaceSelectionAndArgsInQuery()
|
/ohos5.0/foundation/arkui/ace_engine/advanced_ui_component/selectionmenu/interfaces/ |
H A D | selectionmenu.js | 297 let start = richEditorSelection.selection[0]; 298 let end = richEditorSelection.selection[1]; 395 let start = richEditorSelection.selection[0]; 396 let end = richEditorSelection.selection[1]; 563 let start = richEditorSelection.selection[0]; 564 let end = richEditorSelection.selection[1]; 607 start: richEditorSelection.selection[0], 608 end: richEditorSelection.selection[1]
|
/ohos5.0/foundation/arkui/ace_engine/advanced_ui_component/selectionmenu/source/ |
H A D | selectionmenu.ets | 119 let start = richEditorSelection.selection[0] 120 let end = richEditorSelection.selection[1] 202 let start = richEditorSelection.selection[0] 203 let end = richEditorSelection.selection[1] 353 start: richEditorSelection.selection[0], 354 end: richEditorSelection.selection[1] 432 let start = richEditorSelection.selection[0] 433 let end = richEditorSelection.selection[1]
|
/ohos5.0/docs/en/application-dev/reference/apis-ability-kit/ |
H A D | js-apis-continuation-continuationExtraParams.md | 3 The ContinuationExtraParams module provides the filter parameters required by the device selection … 11 Describes the extra parameters required by the device selection module in the continuation manageme…
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_3.2.8.3/ |
H A D | changelog-dmsfwk.md | 10 - The device selection event name of **continuationManager.on** and **continuationManager.off** is … 46 Device selection event of **continuationManager.on**: 64 Device selection event of **continuationManager.off**:
|