/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/skia_txt/impl/ |
H A D | paragraph_builder_impl.cpp | 165 if (txt.customSpTextStyle) { in TextStyleToSkStyle() 169 textStyle.setFontStyle(MakeFontStyle(txt.fontWeight, txt.fontWidth, txt.fontStyle)); in TextStyleToSkStyle() 180 …strutStyle.setFontStyle(MakeFontStyle(txt.strutFontWeight, txt.strutFontWidth, txt.strutFontStyle)… in TextStyleToSkStyle() 205 if (!txt.hintingIsOn) { in TextStyleToSkStyle() 226 skStyle.setColor(txt.color); in ConvertTextStyleToSkStyle() 231 skStyle.setFontStyle(MakeFontStyle(txt.fontWeight, txt.fontWidth, txt.fontStyle)); in ConvertTextStyleToSkStyle() 235 std::transform(txt.fontFamilies.begin(), txt.fontFamilies.end(), std::back_inserter(fonts), in ConvertTextStyleToSkStyle() 247 skStyle.setLocale(SkString(txt.locale.empty() ? DefaultLocale() : txt.locale.c_str())); in ConvertTextStyleToSkStyle() 249 skStyle.setBackgroundRect({ txt.backgroundRect.color, txt.backgroundRect.leftTopRadius, in ConvertTextStyleToSkStyle() 250 txt.backgroundRect.rightTopRadius, txt.backgroundRect.rightBottomRadius, in ConvertTextStyleToSkStyle() [all …]
|
H A D | paragraph_impl.cpp | 294 TextStyle txt; in SkStyleToTextStyle() local 295 txt.color = skStyle.getColor(); in SkStyleToTextStyle() 297 txt.decorationColor = skStyle.getDecorationColor(); in SkStyleToTextStyle() 306 txt.fontFamilies.emplace_back(fontFamily.c_str()); in SkStyleToTextStyle() 312 txt.height = SkScalarToDouble(skStyle.getHeight()); in SkStyleToTextStyle() 314 txt.locale = skStyle.getLocale().c_str(); in SkStyleToTextStyle() 318 txt.background = paints_[backgroundId]; in SkStyleToTextStyle() 326 txt.foreground = paints_[foregroundId]; in SkStyleToTextStyle() 332 txt.textShadows.clear(); in SkStyleToTextStyle() 338 txt.textShadows.emplace_back(shadow); in SkStyleToTextStyle() [all …]
|
/ohos5.0/docs/zh-cn/device-dev/kernel/ |
H A D | kernel-small-debug-shell-file-mv.md | 47 - mv -i test.txt testpath/ 49 - mv test?.txt testpath/ (移动 test3.txt testA.txt test_.txt) 58 OHOS:/$ touch test.txt 60 OHOS:/$ touch testpath/test.txt 61 OHOS:/$ mv -i test.txt testpath/ 66 OHOS:/$ cp testpath/test.txt ./ 70 OHOS:/$ mv -i test.txt testpath/ 82 bin etc proc storage test.txt testA.txt testpath usr 83 dev lib sdcard system test3.txt test_.txt userdata vendor 84 OHOS:/$ mv test?.txt testpath/ [all …]
|
H A D | kernel-small-debug-shell-file-chmod.md | 36 举例:修改hello-openharmony.txt 文件权限为644和777。 41 **示例** 修改/dev目录下 hello-openharmony.txt 文件的权限 44 OHOS:/dev$ chmod 644 hello-openharmony.txt 45 OHOS:/dev$ ll hello-openharmony.txt 46 -rw-r--r-- 0 0 0 0 1970-01-01 00:00 hello-openharmony.txt 47 OHOS:/dev$ chmod 777 hello-openharmony.txt 48 OHOS:/dev$ ll hello-openharmony.txt 49 -rwxrwxrwx 0 0 0 0 1970-01-01 00:00 hello-openharmony.txt
|
H A D | kernel-small-debug-shell-file-cp.md | 45 举例:cp hello-OHOS.txt hello-openharmony.txt ./tmp/ 54 bin hello-OHOS.txt proc system vendor 55 dev hello-openharmony.txt sdcard userdata 58 OHOS:/$ cp hello-OHOS.txt hello-openharmony.txt tmp/ 61 -rwxrwxrwx 1 0 0 0 1979-12-31 00:00 hello-OHOS.txt* 62 -rwxrwxrwx 1 0 0 0 1979-12-31 00:00 hello-openharmony.txt*
|
/ohos5.0/docs/en/device-dev/kernel/ |
H A D | kernel-small-debug-shell-file-mv.md | 47 - mv -i test.txt testpath/ 49 - mv test?.txt testpath/ (Move **test3.txt**, **testA.txt**, and **test_.txt**) 58 OHOS:/$ touch test.txt 60 OHOS:/$ touch testpath/test.txt 61 OHOS:/$ mv -i test.txt testpath/ 66 OHOS:/$ cp testpath/test.txt ./ 70 OHOS:/$ mv -i test.txt testpath/ 82 bin etc proc storage test.txt testA.txt testpath usr 83 dev lib sdcard system test3.txt test_.txt userdata vendor 84 OHOS:/$ mv test?.txt testpath/ [all …]
|
H A D | kernel-small-debug-shell-file-cp.md | 45 Run **cp hello-OHOS.txt hello-openharmony.txt ./tmp/**. 50 Copy **hello-OHOS.txt** and **hello-openharmony.txt** to **/tmp/**. 54 bin hello-OHOS.txt proc system vendor 55 dev hello-openharmony.txt sdcard userdata 58 OHOS:/$ cp hello-OHOS.txt hello-openharmony.txt tmp/ 61 -rwxrwxrwx 1 0 0 0 1979-12-31 00:00 hello-OHOS.txt* 62 -rwxrwxrwx 1 0 0 0 1979-12-31 00:00 hello-openharmony.txt*
|
H A D | kernel-small-debug-shell-file-chmod.md | 36 Change the permissions on the **hello-openharmony.txt** file to **644** and **777**. 41 Modify the permissions on the **hello-openharmony.txt** file in the **/dev** directory. 44 OHOS:/dev$ chmod 644 hello-openharmony.txt 45 OHOS:/dev$ ll hello-openharmony.txt 46 -rw-r--r-- 0 0 0 0 1970-01-01 00:00 hello-openharmony.txt 47 OHOS:/dev$ chmod 777 hello-openharmony.txt 48 OHOS:/dev$ ll hello-openharmony.txt 49 -rwxrwxrwx 0 0 0 0 1970-01-01 00:00 hello-openharmony.txt
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/font/ |
H A D | constants_converter.cpp | 46 txt::FontWeight convertValue; in ConvertTxtFontWeight() 50 convertValue = txt::FontWeight::w100; in ConvertTxtFontWeight() 138 txt::FontStyle convertValue; in ConvertTxtFontStyle() 176 txt::TextBaseline convertValue; in ConvertTxtTextBaseline() 212 txt::TextAlign convertValue; in ConvertTxtTextAlign() 346 txt::TextDirection convertValue; in ConvertTxtTextDirection() 385 txt::TextDecoration convertValue = txt::TextDecoration::kNone; in ConvertTxtTextDecoration() 432 txt::TextDecorationStyle convertValue = txt::TextDecorationStyle::kSolid; in ConvertTxtTextDecorationStyle() 534 txt::TextShadow txtShadow; in ConvertTxtStyle() 573 txt::FontFeatures features; in ConvertTxtStyle() [all …]
|
H A D | constants_converter.h | 34 namespace txt { 80 txt::FontWeight ConvertTxtFontWeight(FontWeight fontWeight); 82 txt::FontStyle ConvertTxtFontStyle(FontStyle fontStyle); 84 txt::TextBaseline ConvertTxtTextBaseline(TextBaseline textBaseline); 86 txt::TextAlign ConvertTxtTextAlign(TextAlign textAlign); 90 txt::Paragraph::RectWidthStyle ConvertTxtRectWidthStyle(RectWidthStyle widthStyle); 92 txt::TextDirection ConvertTxtTextDirection(TextDirection textDirection); 94 txt::TextDecoration ConvertTxtTextDecoration(TextDecoration textDecoration); 100 void ConvertTxtStyle(const TextStyle& textStyle, txt::TextStyle& txtStyle); 102 void ConvertSymbolTxtStyle(const TextStyle& textStyle, txt::TextStyle& txtStyle); [all …]
|
/ohos5.0/base/startup/init/test/moduletest/ |
H A D | chipset.init.test.cfg | 8 "write /data/test_verdor_init/test.txt 1", 12 "symlink /data/test_verdor_init/test.txt /data/test_verdor_init/test_link.txt", 13 "chmod 0666 /data/test_verdor_init/test.txt", 14 "chown shell shell /data/test_verdor_init/test.txt", 15 "symlink /data/test_verdor_init/test.txt /data/test_verdor_init/test_link2.txt", 16 "copy /data/test_verdor_init/test.txt /data/test_verdor_init/test2.txt", 25 "rm /data/test_verdor_init/test.txt ", 26 "rm /data/test_verdor_init/test2.txt",
|
/ohos5.0/build/docs/ |
H A D | 标准系统如何修改镜像文件的打包参数.md | 6 每个系统镜像文件都是由一个image_conf.txt描述文件来描述的,其示例格式如下: 18 如果要修改某个镜像的打包参数,只需要修改//build/ohos/images/mkimage目录下对应的{镜像名}_image_config.txt文件即可。 20 如果要修改asan版本某个镜像的打包参数,只需要修改//build/ohos/images/mkimage/asan目录下对应的{镜像名}_image_config.txt文件即可。 23 //build/ohos/images/mkimage目录下的{镜像名}_image_config.txt文件是系统默认的镜像打包参数,修改后会影响所有平台所有产品的镜像默认打包行为。 24 …如果需要修改单个平台或产品的系统镜像打包参数。只需要在对应平台或产品目录下创建定制的{镜像名}_image_config.txt文件,并安装到${product_output_dir}/image… 30 "system_image_conf.txt", 31 "userdata_image_conf.txt",
|
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/hdi_client/hdi_interface/ |
H A D | wifi_hdi_common_test.cpp | 153 char txt[10]; variable 155 HdiBufEncode(txt, sizeof(txt), data, sizeof(data)); 163 HdiBufEncode(txt, sizeof(txt), data, sizeof(data)); 171 HdiBufEncode(txt, sizeof(txt), data, sizeof(data)); 179 HdiBufEncode(txt, sizeof(txt), data, sizeof(data)); 187 HdiBufEncode(txt, sizeof(txt), data, sizeof(data)); 195 HdiBufEncode(txt, sizeof(txt), data, sizeof(data)); 203 HdiBufEncode(txt, sizeof(txt), data, sizeof(data)); 211 HdiBufEncode(txt, sizeof(txt), data, sizeof(data)); 219 HdiBufEncode(txt, sizeof(txt), data, sizeof(data)); [all …]
|
/ohos5.0/base/request/request/test/unittest/js_test/requestAgentTaskTest/entry/src/main/ets/test/ |
H A D | RequestCreateTask.test.ets | 49 path: `./test.txt` 917 path: `./test.txt` 1031 path: `./test.txt` 1150 path: `./test.txt` 1183 path: `./test.txt` 1376 path: `./test.txt`, 1406 path: `./test.txt`, 1436 path: `./test.txt`, 1437 filename: 'a.txt' 1800 path: `./test.txt` [all …]
|
H A D | RequestDownloadFile.test.ets | 38 fs.unlinkSync(cacheDir + '/test.txt'); 121 filePath: 'test.txt', 146 filePath: 'test.txt', 237 filePath: 'testV9_file02.txt' 260 let filePath = cacheDir + '/test.txt'; 288 let filePath = cacheDir + '/test.txt'; 341 let filePath = cacheDir + '/test.txt'; 372 let filePath = cacheDir + '/test.txt'; 404 let filePath = cacheDir + '/test.txt'; 434 let filePath = cacheDir + '/test.txt'; [all …]
|
H A D | RequestOperateTask.test.ets | 52 path: `./test.txt` 72 saveas: 'testStartTask001.txt', 96 saveas: 'testStartTask002.txt', 123 saveas: 'testStartTask003.txt', 147 saveas: 'testStartTask004.txt', 174 saveas: 'testStartTask005.txt', 257 saveas: `test.txt`, 349 saveas: `test.txt`, 1080 saveas: 'testOnTask001.txt', 1107 saveas: 'testOnTask002.txt', [all …]
|
H A D | RequestUploadFile.test.ets | 37 if (fs.accessSync(cacheDir + '/test.txt')) { 38 fs.unlinkSync(cacheDir + '/test.txt'); 57 uri: 'internal://cache/test.txt', 58 type: 'txt' 64 uri: 'internal://cache/test1.txt', 65 type: 'txt' 71 uri: 'internal://cache/test2.txt', 72 type: 'txt' 661 type: 'txt' 700 type: 'txt' [all …]
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text_input/ |
H A D | text_input_emoji_test.cpp | 85 std::string txt = ""; variable 86 CreateTextField(txt, "", [](TextFieldModelNG model) { in __anon3cb9275c0202() 132 CreateTextField(txt, "", [](TextFieldModelNG model) { in __anon3cb9275c0302() 188 CreateTextField(txt, "", [](TextFieldModelNG model) { in __anon3cb9275c0402() 244 CreateTextField(txt, "", [](TextFieldModelNG model) { in __anon3cb9275c0502() 304 CreateTextField(txt, "", [](TextFieldModelNG model) { in __anon3cb9275c0602() 364 CreateTextField(txt, "", [](TextFieldModelNG model) { in __anon3cb9275c0702() 416 const std::string txt = "1\n23\n45\r\n6\n78\n9"; variable 417 CreateTextField(txt, "", [](TextFieldModelNG model) { in __anon3cb9275c0802() 461 CreateTextField(txt, "", [](TextFieldModelNG model) { in __anon3cb9275c0902() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/text_field/ |
H A D | rosen_render_text_field.h | 45 namespace txt { 101 std::unique_ptr<txt::ParagraphStyle> CreateParagraphStyle(bool isErrorText = false); 119 …const std::unique_ptr<txt::ParagraphStyle>& paragraphStyle, std::unique_ptr<txt::TextStyle>& txtSt… 133 void SetShaderIfNeeded(std::unique_ptr<txt::ParagraphStyle> paragraphStyle, 134 std::unique_ptr<txt::TextStyle> txtStyle, double textAreaWidth); 145 std::shared_ptr<txt::FontCollection> GetFontCollection(); 187 std::unique_ptr<txt::Paragraph> paragraph_; 188 std::unique_ptr<txt::Paragraph> errorParagraph_; 189 std::unique_ptr<txt::Paragraph> countParagraph_; 190 std::unique_ptr<txt::Paragraph> placeholderParagraph_; [all …]
|
/ohos5.0/docs/zh-cn/application-dev/file-management/ |
H A D | native-fileuri-guidelines.md | 33 CMakeLists.txt中添加以下lib。 35 ```txt 51 char *path = "/data/storage/el2/base/files/test.txt"; 56 …athUri=%s", uriResult); // 应用a获取到的URI为:file://com.example.demo/data/storage/el2/base/files/test.txt 70 char *uri = "file://com.example.demo/data/storage/el2/base/files/test.txt"; 75 … printf("pathResult=%s", pathResult); // PathResult值为:/data/storage/el2/base/files/test.txt 89 char *uri = "file://com.example.demo/data/storage/el2/base/files/test.txt"; 108 char *uri = "file://com.example.demo/data/storage/el2/base/files/test.txt"; 121 char *uri = "file://com.example.demo/data/storage/el2/base/files/test.txt"; 126 printf("pathUri=%s",uriResult);//获取到URI中的文件名:test.txt
|
H A D | app-file-access.md | 61 let file = fs.openSync(filesDir + '/test.txt', fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE); 97 let srcFile = fs.openSync(filesDir + '/test.txt', fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE); 129 以下示例代码演示了如何使用流接口读取test.txt的文件内容并写入到destFile.txt文件中。 142 let inputStream = fs.createStreamSync(filesDir + '/test.txt', 'r+'); 144 let outputStream = fs.createStreamSync(filesDir + '/destFile.txt', "w+"); 191 suffix: [".png", ".jpg", ".txt"], 219 const rs = fs.createReadStream(`${filesDir}/read.txt`); 221 const ws = fs.createWriteStream(`${filesDir}/write.txt`); 234 const rs = fs.createReadStream(`${filesDir}/read.txt`); 236 const ws = fs.createWriteStream(`${filesDir}/write.txt`); [all …]
|
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p/ |
H A D | abstract_ui.h | 40 virtual void SetInputBox(const std::string txt) in SetInputBox() argument 42 LOGI("value:%{private}s", txt.c_str()); in SetInputBox() 44 virtual std::string GetInputBox(const std::string txt) in GetInputBox() argument 46 LOGI("value:%{private}s", txt.c_str()); in GetInputBox() 50 … const std::string txt, std::function<void(AlertDialog &, std::any)> &buttonEvent, std::any ctx) in SetButton() argument 52 LOGI("value:%{public}s", txt.c_str()); in SetButton()
|
/ohos5.0/docs/zh-cn/application-dev/application-models/ |
H A D | capi_nativechildprocess_development_guideline.md | 30 ```txt 72 修改CMakeList.txt文件,编译为动态链接库(假设需要编译出的库文件名称为libchildprocesssample.so),并添加IPC动态库依赖。 74 ```txt 131 修改CMaklist.txt添加必要的依赖库,假设主进程所在的so名称为libmainprocesssample.so(主进程和子进程的实现也可以选择编译到同一个动态库文件)。 133 ```txt 161 ```txt 203 修改CMakeList.txt文件,编译为动态链接库(假设需要编译出的库文件名称为libchildprocesssample.so),并添加元能力动态库依赖。 205 ```txt 247 … int32_t fd = open("/data/storage/el2/base/haps/entry/files/test.txt", O_RDWR | O_CREAT, 0644); 274 修改CMaklist.txt添加必要的依赖库,假设主进程所在的so名称为libmainprocesssample.so(主进程和子进程的实现也可以选择编译到同一个动态库文件)。 [all …]
|
/ohos5.0/docs/zh-cn/application-dev/arkts-utils/ |
H A D | source-obfuscation.md | 95 "files": ["./obfuscation-rules.txt"], 112 * `obfuscation-rules.txt` 115 * `consumer-rules.txt` 129 * `obfuscation.txt` 130 …配置文件,`obfuscation.txt`是在编译构建HAR时根据`consumer-rules.txt`和依赖模块的混淆规则文件自动生成的文件,它作为一种编译产物存在于发布的HAR包中,用于在… 136 | obfuscation-rules.txt | 自定义 | 是 | 是 | 否 | 137 | consumer-rules.txt | 自定义 | 是 | 否 | 是 | 787 构建HAR时,注释不会被合并到最后的`obfuscation.txt`文件中。 795 * 远程依赖的HAR包中的`obfuscation.txt`文件 853 如果构建的是HAR,那么最终的`obfuscation.txt`文件内容来自于自身和本地依赖的library的`consumerFiles`选项,以及依赖的HAR的`obfuscation.txt`… [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/calendar/ |
H A D | rosen_render_calendar.h | 74 …void PaintDay(SkCanvas* canvas, const Offset& offset, const CalendarDay& day, txt::TextStyle& text… 76 …SkCanvas* canvas, const Offset& offset, const CalendarDay& day, const txt::TextStyle& textStyle) c… 85 … RSCanvas* canvas, const Offset& offset, const CalendarDay& day, txt::TextStyle& textStyle) const; 87 const txt::TextStyle& textStyle) const; 96 …void SetNonFocusStyle(const CalendarDay& day, txt::TextStyle& dateTextStyle, txt::TextStyle& lunar… 112 void InitTextStyle(txt::TextStyle& dateTextStyle, txt::TextStyle& lunarTextStyle); 125 …const CalendarDay& day, const Offset& offset, txt::TextStyle& workStateStyle, Rect& boxRect) const; 133 …const CalendarDay& day, SkColor workColor, SkColor offColor, txt::TextStyle& workStateStyle) const; 141 RSColorQuad offColor, txt::TextStyle& workStateStyle) const;
|