/test/xts/acts/graphic/acts_drawing_native/ |
D | DrawingNativePathTest.cpp | 82 OH_Drawing_Path *path = OH_Drawing_PathCreate(); variable 83 EXPECT_NE(path, nullptr); 84 OH_Drawing_PathDestroy(path); 95 OH_Drawing_Path *path = OH_Drawing_PathCreate(); variable 96 OH_Drawing_PathMoveTo(path, 20, 20); 97 OH_Drawing_PathMoveTo(path, -1, 21.5); 98 OH_Drawing_PathDestroy(path); 109 OH_Drawing_Path *path = OH_Drawing_PathCreate(); variable 110 OH_Drawing_PathLineTo(path, 50, 40); 111 OH_Drawing_PathLineTo(path, -50, 10.2); [all …]
|
/test/xts/acts/arkui/ace_standard/src/main/js/MainAbility/pages/obj_Path2D/router/ |
D | index.js | 46 var path = ctx.createPath2D("M80 20 L40 100 L120 100 Z"); variable 47 path.setTransform(0.8, 0, 0, 0.4, 0, 0); 48 ctx.stroke(path); 54 var path = ctx.createPath2D(); 55 path.moveTo(80, 40); 56 path.lineTo(120, 40); 57 path.lineTo(80, 80); 58 path.closePath(); 59 ctx.stroke(path); 64 var path = ctx.createPath2D(); [all …]
|
/test/xts/acts/arkui/ace_standard/src/main/js/default/pages/obj_Path2D/router/ |
D | index.js | 46 var path = ctx.createPath2D("M80 20 L40 100 L120 100 Z"); variable 47 path.setTransform(0.8, 0, 0, 0.4, 0, 0); 48 ctx.stroke(path); 54 var path = ctx.createPath2D(); 55 path.moveTo(80, 40); 56 path.lineTo(120, 40); 57 path.lineTo(80, 80); 58 path.closePath(); 59 ctx.stroke(path); 64 var path = ctx.createPath2D(); [all …]
|
/test/xts/acts/multimedia/media/media_js_standard/httpPlayer/src/main/js/test/ |
D | HttpPlayerCompatibilityTest.test.js | 63 let path = VIDEOPLAYER_PATH + 'mp4/h264_aac_640x320_30r.mp4'; 64 await playVideoSource(path, 640, 320, 10100, PLAY_TIME, done); 77 let path = VIDEOPLAYER_PATH + 'mp4/h264_mp3_640x480_25r.mp4'; 78 await playVideoSource(path, 640, 480, 10080, PLAY_TIME, done); 91 let path = VIDEOPLAYER_PATH + 'mpeg_ts/h264_aac_640x480_30r.ts'; 92 await playVideoSource(path, 640, 480, 10161, PLAY_TIME, done); 105 let path = VIDEOPLAYER_PATH + 'mpeg_ts/h264_mp3_640x480_25r.ts'; 106 await playVideoSource(path, 640, 480, 10169, PLAY_TIME, done); 119 let path = VIDEO_PATH + 'H264_AAC.mkv'; 120 await playVideoSource(path, 720, 480, 10057, PLAY_TIME, done); [all …]
|
/test/xts/acts/multimedia/media/media_js_standard/audioPlayer/src/main/js/test/ |
D | PlayerLocalTestAudioFormat.test.js | 61 let path = 'fd://' + fdNumber 62 playAudioSource(path, 219600, PLAY_TIME, true, done); 81 let path = 'fd://' + fdNumber; 82 playAudioSource(path, 219600, PLAY_TIME, true, done); 101 let path = 'fd://' + fdNumber; 102 playAudioSource(path, 219600, PLAY_TIME, true, done); 121 let path = 'fd://' + fdNumber 122 playAudioSource(path, 219600, PLAY_TIME, true, done); 141 let path = 'fd://' + fdNumber 142 playAudioSource(path, 219575, PLAY_TIME, true, done); [all …]
|
/test/testfwk/xdevice/plugins/devicetest/utils/ |
D | file_util.py | 39 if os.path.isabs(template_file_path) \ 40 and (not isdir and os.path.isfile(template_file_path)): 41 return os.path.abspath(template_file_path) 44 if not os.path.isfile(template_file_path) and template_file_path.startswith("/"): 49 path = template_file_path[9:] 52 folder = os.path.abspath(EnvPool.resource_path) 53 _fol = travesal_folder(folder, path, isdir) 57 path, folder)) 61 folder = os.path.abspath(ecotest_resource_path) 62 _fol = travesal_folder(folder, path, isdir) [all …]
|
/test/xts/acts/graphic/graphicnapidrawingtest/ |
D | NativeDrawingPathTest.cpp | 54 OH_Drawing_Path* path = OH_Drawing_PathCreate(); variable 55 EXPECT_EQ(path == nullptr, false); 56 OH_Drawing_PathDestroy(path); 193 OH_Drawing_Path* path = OH_Drawing_PathCreate(); variable 195 OH_Drawing_PathAddRect(path, 50, 50, 250, 250, OH_Drawing_PathDirection::PATH_DIRECTION_CW); 196 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path)->GetBounds().GetWidth(), 200.0)); 197 EXPECT_TRUE(IsScalarAlmostEqual(reinterpret_cast<Path*>(path)->GetBounds().GetHeight(), 200.0)); 198 OH_Drawing_PathDestroy(path); 210 OH_Drawing_Path* path = OH_Drawing_PathCreate(); variable 214 OH_Drawing_PathAddRoundRect(path, roundRect, OH_Drawing_PathDirection::PATH_DIRECTION_CW); [all …]
|
/test/testfwk/developer_test/src/main/ |
D | _init_global_config.py | 27 sys.framework_src_dir = os.path.abspath(os.path.dirname( 28 os.path.dirname(__file__))) 31 sys.path.insert(0, sys.framework_src_dir) 35 sys.framework_root_dir = os.path.abspath(os.path.dirname( 36 os.path.dirname(os.path.dirname(__file__)))) 39 sys.xdevice_dir = os.path.abspath(os.path.join( 44 sys.path.insert(0, sys.xdevice_dir) 47 sys.xdevice_extension_dir = os.path.abspath(os.path.join( 54 sys.path.insert(1, sys.xdevice_extension_dir) 57 sys.pytest_dir = os.path.abspath(os.path.join( [all …]
|
/test/testfwk/developer_test/src/core/build/ |
D | pretreat_targets.py | 56 path = line.split(':')[0][2:] 58 path_list.append(path) 64 for name, path in zip(name_list, path_list): 66 if self._pretreat_js_target(path, name): 67 self.path_list.append(path) 71 def _pretreat_js_target(self, path, name): argument 72 template_path = os.path.join(sys.framework_root_dir, "libs", 74 target_path = os.path.join(sys.source_code_root_path, path) 75 config_path = os.path.join(target_path, "config.json") 76 gn_path = os.path.join(target_path, "BUILD.gn") [all …]
|
/test/testfwk/developer_test/src/core/ |
D | utils.py | 28 _, fullname = os.path.split(file) 29 filename, ext = os.path.splitext(fullname) 33 def create_dir(path): argument 34 full_path = os.path.abspath(os.path.expanduser(path)) 35 if not os.path.exists(full_path): 54 def get_file_list_by_postfix(path, postfix=""): argument 56 for dirs in os.walk(path): 60 file_name = os.path.join(dirs[0], file_name) 61 if os.path.isfile(file_name): 67 log_path = os.path.join(report_path, "log") [all …]
|
/test/testfwk/developer_test/localCoverage/ |
D | coverage_tools.py | 35 all_system_info_path = os.path.join( 38 system_info_path = os.path.join( 41 if os.path.exists(all_system_info_path): 52 if os.path.exists(system_info_path): 62 coverage_path = os.path.join(developer_path, "reports/coverage") 63 code_path = os.path.join( 66 if os.path.exists(code_path): 73 …gcda_dir_path = os.path.join(developer_path, "localCoverage/codeCoverage/results/coverage/data/cxx… 74 if os.path.exists(gcda_dir_path): 76 remove_out = os.path.join(gcda_dir_path, i, "obj/out") [all …]
|
/test/testfwk/xdevice/src/xdevice/_core/report/ |
D | __init__.py | 22 sys.path.insert(0, os.path.join( 23 os.path.dirname(os.path.dirname(os.path.dirname(__file__))))) 24 sys.path.insert(1, os.path.join(os.path.dirname( 25 os.path.dirname(os.path.dirname(os.path.dirname(__file__))))))
|
/test/xts/tools/lite/build/ |
D | utils.py | 100 if not os.path.exists(input_file): 109 file_dir = os.path.dirname(os.path.abspath(output_file)) 110 if not os.path.exists(file_dir): 135 _parent_output = os.path.dirname(_output) 137 if to_dir and not os.path.exists(_output): 139 if not to_dir and not os.path.exists(_parent_output): 142 if not os.path.isdir(_output): 159 if os.path.isfile(source_file) and os.path.exists(source_file): 161 if os.path.basename(source_file) in copy_set: 162 new_output = os.path.join(output, os.path.dirname(source_file). [all …]
|
/test/testfwk/developer_test/localCoverage/push_coverage_so/ |
D | push_coverage.py | 24 sys.localcoverage_path = os.path.join(current_path, "..") 25 sys.path.insert(0, sys.localcoverage_path) 34 parts_info_json = os.path.join(out_path, "build_configs", "parts_info", "part_subsystem.json") 35 if not os.path.exists(parts_info_json): 53 parts_info_json = os.path.join(out_path, "build_configs", "parts_info", "parts_path_info.json") 54 if not os.path.exists(parts_info_json): 62 path = os.path.join(out_path, "obj", json_obj[test_part]) 63 return path 74 …subsystem_config_json = os.path.join(out_path, "build_configs", "subsystem_info", "subsystem_build… 75 if not os.path.exists(subsystem_config_json): [all …]
|
/test/testfwk/developer_test/localCoverage/codeCoverage/ |
D | mutilProcess_CodeCoverage.py | 46 sys.localcoverage_path = os.path.join(current_path, "..") 47 sys.path.insert(0, sys.localcoverage_path) 67 coverage_log_path = os.path.join( 80 subsystem_config_filepath = os.path.join(CODEPATH, SYSTEM_JSON) 81 if os.path.exists(subsystem_config_filepath): 95 for path in subsystem_path: 96 subsystem_rootpath.append(os.path.join(CODEPATH, path)) 110 if os.path.exists(subsystem_rootpath_item): 140 topdir = os.path.join(cov_path, "obj") 150 if not os.path.isfile(os.path.join(find_path, fn)): [all …]
|
/test/testfwk/xdevice/src/xdevice/ |
D | variables.py | 27 SRC_DIR = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) 28 MODULES_DIR = os.path.abspath(os.path.dirname(__file__)) 29 TOP_DIR = os.path.abspath( 30 os.path.dirname(os.path.dirname(os.path.dirname(__file__)))) 31 sys.path.insert(0, SRC_DIR) 32 sys.path.insert(1, MODULES_DIR) 33 sys.path.insert(2, TOP_DIR) 66 Variables.res_dir = os.path.abspath(os.path.join( 70 Variables.temp_dir = os.path.join(_get_temp_dir(), "xdevice_data") 71 if not os.path.exists(Variables.temp_dir): [all …]
|
/test/testfwk/developer_test/localCoverage/restore_comment/ |
D | build_before_generate.py | 28 def get_source_file_list(path): argument 34 for root, dirs, files in os.walk(path): 36 file_path = os.path.join(root, file_name) 37 _, suffix = os.path.splitext(file_name) 53 for path in source_path_list: 54 if not os.path.exists(path) or "test" in path: 56 with open(path, "r", encoding="utf-8", errors="ignore") as read_fp: 58 source_dir, suffix_name = os.path.splitext(path) 59 if os.path.exists(f"{source_dir}_bk.{suffix_name}"): 78 os.remove(path) [all …]
|
/test/xts/device_attest_lite/services/core/small/utils/ |
D | attest_utils_file_detail.c | 31 int32_t GetFileSize(const char* path, const char* fileName, uint32_t* result) in GetFileSize() argument 33 if (path == NULL || fileName == NULL || result == NULL) { in GetFileSize() 38 char* filePath = GenFilePath(path, fileName); in GetFileSize() 47 ATTEST_LOG_ERROR("[GetFileSize] Invalid path of %s/%s", path, fileName); in GetFileSize() 69 int32_t WriteFile(const char* path, const char* fileName, const char* data, uint32_t dataLen) in WriteFile() argument 71 if (path == NULL || fileName == NULL || data == NULL || dataLen == 0) { in WriteFile() 75 char* filePath = GenFilePath(path, fileName); in WriteFile() 84 ATTEST_LOG_ERROR("[WriteFile] Invalid path of %s", path); in WriteFile() 121 int32_t ReadFile(const char* path, const char* fileName, char* buffer, uint32_t bufferLen) in ReadFile() argument 123 if (path == NULL || fileName == NULL || buffer == NULL || bufferLen == 0) { in ReadFile() [all …]
|
/test/testfwk/developer_test/libs/fuzzlib/ |
D | fuzzer_helper.py | 45 CURRENT_DIR = os.path.dirname(os.path.realpath(__file__)) 46 SOURCE_ROOT_DIR = os.path.dirname( 47 os.path.dirname( 48 os.path.dirname(os.path.dirname(CURRENT_DIR)) 51 SOURCE_OUT_DIR = os.path.join(SOURCE_ROOT_DIR, "out") 53 TDD_BUILD_GN_PATH = os.path.join( 94 project_yaml_path = os.path.join( 99 if not os.path.exists(project_yaml_path): 123 project_dir_path = os.path.join(args.project_path, args.project_name) 135 file_path = os.path.join(project_dir_path, 'project.xml') [all …]
|
/test/xts/dcts/filemanagement/fileio/server/entry/src/main/ets/serviceability/ |
D | ServiceAbility.ts | 147 let path = data.readString() variable 148 console.info("The server's readString result is " + path); 149 let checkResult = checkDirExists(path); 163 let path = data.readString(); variable 164 console.info("The server's readString result is " + path); 167 let file = fs.openSync(path); 180 let path = data.readString(); variable 181 console.info("The server's readString result is " + path); 183 let checkResult = checkFileExists(path); 197 let path = data.readString(); variable [all …]
|
/test/testfwk/developer_test/libs/benchmark/report/ |
D | generate_report.py | 32 if os.path.isfile(json_file_path): 56 def get_file_list_by_postfix(path, postfix, filter_jar=""): argument 58 for dirs in os.walk(path): 64 file_path = os.path.join(dirs[0], file_path) 116 dest_path = os.path.abspath(sys.argv[2]) 121 if not os.path.exists(src_path): 125 if os.path.exists(dest_path): 129 self._generate_benchmark_summary_report(os.path.abspath(dest_path)) 130 self._generate_all_benchmark_detail(os.path.abspath(dest_path)) 242 tmpl_file_path = os.path.abspath(os.path.join( [all …]
|
/test/testfwk/developer_test/aw/python/distributed/distribute/ |
D | distribute.py | 31 sys.framework_src_dir = os.path.abspath(os.path.dirname( 32 os.path.dirname(__file__))) 33 sys.path.insert(1, sys.framework_src_dir) 34 sys.framework_root_dir = os.path.abspath(os.path.dirname( 35 os.path.dirname(os.path.dirname(os.path.dirname( 36 os.path.dirname(__file__)))))) 37 sys.xdevice_dir = os.path.abspath(os.path.join( 40 sys.path.insert(2, sys.xdevice_dir) 41 sys.xdevice_dir = os.path.abspath(os.path.join( 46 sys.path.insert(3, sys.xdevice_dir) [all …]
|
/test/xts/tools/build/ |
D | suite.py | 57 return os.path.join(xts_root, resource_reldir) 79 current_parentdir_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 80 xtstools_othersign_dir = os.path.join(current_parentdir_path, 'others', 'sign') 82 [os.path.join(xtstools_othersign_dir, "add_root.bat"), 83 os.path.join(xtstools_othersign_dir, "add_root.sh"), 84 os.path.join(xtstools_othersign_dir, "add_trust_root.py")]) 85 ohos_dir = os.path.join(self.args.source_dir, 'plugins', 'ohos') 86 gen_dir0 = os.path.join(self.args.source_dir, 'dist') 87 gen_dir1 = os.path.join(ohos_dir, 'dist') 100 [os.path.join(self.args.source_dir, "run.bat"), [all …]
|
D | utils.py | 75 if not os.path.exists(input_file): 84 file_dir = os.path.dirname(os.path.abspath(output_file)) 85 if not os.path.exists(file_dir): 110 _parent_output = os.path.dirname(_output) 112 if to_dir and not os.path.exists(_output): 114 if not to_dir and not os.path.exists(_parent_output): 117 if not os.path.isdir(_output): 131 if os.path.isfile(source_file): 138 if os.path.isdir(source_file): 147 path = "%s%s/%s" % ( [all …]
|
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/ |
D | statndk.cpp | 121 char path[] = "/data/storage/el2/base/files/Utimensat.txt"; in Utimensat() local 122 int fd = open(path, O_CREAT); in Utimensat() 126 int utimensatValue = utimensat(fd, path, times, PARAM_0); in Utimensat() 131 remove(path); in Utimensat() 139 char path[] = "/data/storage/el2/base/files/modAt.txt"; in FchModAt() local 140 int df = open(path, O_CREAT, PARAM_0777); in FchModAt() 141 int ret = fchmodat(df, path, S_IRUSR, PARAM_0); in FchModAt() 143 remove(path); in FchModAt() 151 char path[] = "/data/storage/el2/base/files/mod.txt"; in FchMod() local 152 int df = open(path, O_CREAT, PARAM_0777); in FchMod() [all …]
|