Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 341) sorted by relevance

12345678910>>...14

/test/xts/acts/arkui/ace_standard/src/main/js/default/pages/obj_Path2D/router/
Dindex.js46 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/
DHttpPlayerCompatibilityTest.test.js63 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/
DPlayerLocalTestAudioFormat.test.js61 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/src/xdevice/_core/report/
D__init__.py22 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/testfwk/developer_test/src/main/
D_init_global_config.py27 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/
Dpretreat_targets.py51 path = line.split(':')[0][2:]
53 path_list.append(path)
59 for name, path in zip(name_list, path_list):
61 if self._pretreat_js_target(path, name):
62 self.path_list.append(path)
66 def _pretreat_js_target(self, path, name): argument
67 template_path = os.path.join(sys.framework_root_dir, "libs",
69 target_path = os.path.join(sys.source_code_root_path, path)
70 config_path = os.path.join(target_path, "config.json")
71 gn_path = os.path.join(target_path, "BUILD.gn")
[all …]
/test/testfwk/developer_test/src/core/
Dutils.py28 _, 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 …]
Dcommon.py24 def is_source_code_root_path(path): argument
29 check_path = os.path.join(path, item)
30 if os.path.exists(check_path):
35 def get_source_code_root_path(path): argument
36 code_root_path = path
45 code_root_path = os.path.dirname(code_root_path)
/test/xts/tools/lite/build/
Dutils.py100 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/xts/dcts/filemanagement/fileio/server/src/main/js/ServiceAbility/
Dservice.js98 let path = data.readString()
99 console.info("The server's readString result is " + path);
100 let checkResult = checkDirExists(path);
114 let path = data.readString();
115 console.info("The server's readString result is " + path);
118 let dir = fileio.openDirSync(path);
131 let path = data.readString();
132 console.info("The server's readString result is " + path);
134 let checkResult = checkFileExists(path);
148 let path = data.readString();
[all …]
/test/xts/device_attest_lite/services/core/utils/
Dattest_utils_file.c52 int32_t GetFileSize(const char* path, const char* fileName, uint32_t* result) in GetFileSize() argument
54 if (path == NULL || fileName == NULL || result == NULL) { in GetFileSize()
65 int32_t WriteFile(const char* path, const char* fileName, const char* data, uint32_t dataLen) in WriteFile() argument
67 if (path == NULL || fileName == NULL || data == NULL || dataLen == 0) { in WriteFile()
97 int32_t ReadFile(const char* path, const char* fileName, char* buffer, uint32_t bufferLen) in ReadFile() argument
99 if (path == NULL || fileName == NULL || buffer == NULL || bufferLen == 0) { in ReadFile()
105 if (GetFileSize(path, fileName, &fileSize) != 0 || fileSize > bufferLen) { in ReadFile()
125 int32_t CreateFile(const char* path, const char* fileName) in CreateFile() argument
127 if (path == NULL || fileName == NULL) { in CreateFile()
139 bool IsFileExist(const char* path, const char* fileName) in IsFileExist() argument
[all …]
/test/testfwk/xdevice/src/xdevice/
Dvariables.py26 SRC_DIR = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
27 MODULES_DIR = os.path.abspath(os.path.dirname(__file__))
28 TOP_DIR = os.path.abspath(
29 os.path.dirname(os.path.dirname(os.path.dirname(__file__))))
30 sys.path.insert(0, SRC_DIR)
31 sys.path.insert(1, MODULES_DIR)
32 sys.path.insert(2, TOP_DIR)
65 Variables.res_dir = os.path.abspath(os.path.join(
69 Variables.temp_dir = os.path.join(tempfile.gettempdir(),
71 if not os.path.exists(Variables.temp_dir):
[all …]
/test/testfwk/xdevice/src/xdevice/_core/
Dcommon.py24 def is_source_code_rootpath(path): argument
27 check_path = os.path.join(path, item)
28 if not os.path.exists(check_path):
33 def get_source_code_rootpath(path): argument
34 source_code_rootpath = path
43 source_code_rootpath = os.path.dirname(source_code_rootpath)
/test/xts/device_attest_lite/services/core/include/utils/
Dattest_utils_file.h29 int32_t GetFileSize(const char* path, const char* fileName, uint32_t* result);
31 int32_t WriteFile(const char* path, const char* fileName, const char* data, uint32_t dataLen);
33 int32_t ReadFile(const char* path, const char* fileName, char* buffer, uint32_t bufferLen);
35 int32_t CreateFile(const char* path, const char* fileName);
37 bool DeleteFile(const char* path, const char* fileName);
39 bool IsFileExist(const char* path, const char* fileName);
41 int32_t ReadFileBuffer(const char* path, const char* fileName, char** outStr);
/test/xts/device_attest/services/core/utils/
Dattest_utils_file.c45 int32_t GetFileSize(const char* path, const char* fileName, uint32_t* result) in GetFileSize() argument
47 if (path == NULL || fileName == NULL || result == NULL) { in GetFileSize()
52 char* filePath = GenFilePath(path, fileName); in GetFileSize()
61 ATTEST_LOG_ERROR("[GetFileSize] Invalid path of %s/%s", path, fileName); in GetFileSize()
83 int32_t WriteFile(const char* path, const char* fileName, const char* data, uint32_t dataLen) in WriteFile() argument
85 if (path == NULL || fileName == NULL || data == NULL || dataLen == 0) { in WriteFile()
90 char* filePath = GenFilePath(path, fileName); in WriteFile()
99 ATTEST_LOG_ERROR("[WriteFile] Invalid path of %s", path); in WriteFile()
131 int32_t ReadFile(const char* path, const char* fileName, char* buffer, uint32_t bufferLen) in ReadFile() argument
133 if (path == NULL || fileName == NULL || buffer == NULL || bufferLen == 0) { in ReadFile()
[all …]
/test/testfwk/developer_test/aw/python/distributed/distribute/
Ddistribute.py27 sys.framework_src_dir = os.path.abspath(os.path.dirname(
28 os.path.dirname(__file__)))
29 sys.path.insert(1, sys.framework_src_dir)
30 sys.framework_root_dir = os.path.abspath(os.path.dirname(
31 os.path.dirname(os.path.dirname(os.path.dirname(
32 os.path.dirname(__file__))))))
33 sys.xdevice_dir = os.path.abspath(os.path.join(
36 sys.path.insert(2, sys.xdevice_dir)
37 sys.xdevice_dir = os.path.abspath(os.path.join(
42 sys.path.insert(3, sys.xdevice_dir)
[all …]
/test/xts/tools/build/
Dutils.py74 if not os.path.exists(input_file):
83 file_dir = os.path.dirname(os.path.abspath(output_file))
84 if not os.path.exists(file_dir):
109 _parent_output = os.path.dirname(_output)
111 if to_dir and not os.path.exists(_output):
113 if not to_dir and not os.path.exists(_parent_output):
116 if not os.path.isdir(_output):
130 if os.path.isfile(source_file):
137 if os.path.isdir(source_file):
146 path = "%s%s/%s" % (
[all …]
Dsuite.py57 return os.path.join(xts_root, resource_reldir)
79 ohos_dir = os.path.join(self.args.source_dir, 'plugins', 'ohos')
80 gen_dir0 = os.path.join(self.args.source_dir, 'dist')
81 gen_dir1 = os.path.join(ohos_dir, 'dist')
94 [os.path.join(self.args.source_dir, "run.bat"),
95 os.path.join(self.args.source_dir, "run.sh")])
97 dist_tools_dir = os.path.join(self.args.suite_out_dir, 'tools')
105 acts_validator_dir = os.path.join(self.args.suite_out_dir, '../acts-validator')
106 acts_validator_tools_dir = os.path.join(self.args.suite_out_dir, '../acts-validator/tools')
115 dist_configs_dir = os.path.join(self.args.suite_out_dir, 'config')
[all …]
/test/xts/device_attest/services/core/include/utils/
Dattest_utils_file.h29 int32_t GetFileSize(const char* path, const char* fileName, uint32_t* result);
31 int32_t WriteFile(const char* path, const char* fileName, const char* data, uint32_t dataLen);
33 int32_t ReadFile(const char* path, const char* fileName, char* buffer, uint32_t bufferLen);
35 int32_t CreateFile(const char* path, const char* fileName);
37 bool IsFileExist(const char* path, const char* fileName);
39 int32_t ReadFileBuffer(const char* path, const char* fileName, char** outStr);
/test/testfwk/developer_test/libs/fuzzlib/
Dfuzzer_helper.py41 CURRENT_DIR = os.path.dirname(os.path.realpath(__file__))
42 SOURCE_ROOT_DIR = os.path.dirname(
43 os.path.dirname(
44 os.path.dirname(os.path.dirname(CURRENT_DIR))
47 SOURCE_OUT_DIR = os.path.join(SOURCE_ROOT_DIR, "out")
49 TDD_BUILD_GN_PATH = os.path.join(
90 project_yaml_path = os.path.join(
95 if not os.path.exists(project_yaml_path):
119 project_dir_path = os.path.join(args.project_path, args.project_name)
131 file_path = os.path.join(project_dir_path, 'project.xml')
[all …]
/test/testfwk/developer_test/libs/benchmark/report/
Dgenerate_report.py28 if os.path.isfile(json_file_path):
53 def get_file_list_by_postfix(path, postfix, filter_jar=""): argument
55 for dirs in os.walk(path):
61 file_path = os.path.join(dirs[0], file_path)
113 dest_path = os.path.abspath(sys.argv[2])
118 if not os.path.exists(src_path):
122 if os.path.exists(dest_path):
126 self._generate_benchmark_summary_report(os.path.abspath(dest_path))
127 self._generate_all_benchmark_detail(os.path.abspath(dest_path))
239 tmpl_file_path = os.path.abspath(os.path.join(
[all …]
Dbenchmark_reporter.py41 result_path = os.path.join(result_path, "benchmark")
42 reports_dir = os.path.join(result_path, "benchmark", "report")
43 if not os.path.exists(reports_dir):
45 report_generate_tool = os.path.abspath(
46 os.path.join(os.path.dirname(os.path.realpath(__file__)),
/test/testfwk/xdevice/src/xdevice/_core/executor/
Dsource.py96 inner_testcases_dir = os.path.abspath(os.path.join(
98 if getattr(config, ConfigConst.testcases_path, "") and os.path.normcase(
99 config.testcases_path) != os.path.normcase(inner_testcases_dir):
105 if os.path.normcase(Variables.exec_dir) != os.path.normcase(
116 testcases_dirs.append(os.path.abspath(os.path.join(root, sub_dir)))
127 if not os.path.isabs(file_name):
128 file_name = os.path.join(Variables.exec_dir, file_name)
129 if os.path.isfile(file_name) and test_type_key in \
131 desc = _make_test_descriptor(os.path.abspath(file_name),
156 os.path.join(os.path.dirname(info_file), module_name)
[all …]
/test/xts/acts/security_lite/huks/common/include/
Dhks_test_file_operator.h25 int32_t HksIsFileExist(const char *path, const char *fileName);
27 uint32_t HksTestFileSize(const char *path, const char *fileName);
29 uint32_t HksTestFileRead(const char *path, const char *fileName, uint32_t offset, uint8_t *buf, uin…
31 int32_t HksTestFileWrite(const char *path, const char *fileName, uint32_t offset, const uint8_t *bu…
33 int32_t HksTestFileRemove(const char *path, const char *fileName);
/test/xts/acts/hiviewdfx/hidebugtest/hidebugtestjstest/src/main/js/test/
DHidebug.test.js123 let path = '/data/app/el2/100/base/com.hidebug.test/files/' + filename + '.json'
127 console.info('file is exists:', path);
169 let path = '/data/app/el2/100/base/com.hidebug.test/files/undefined.json'
171 fileio.accessSync(path, 0);
172 let res = fileio.unlinkSync(path);
181 console.info('file is exists:', path);
196 let path = '/data/app/el2/100/base/com.hidebug.test/files/undefined.json'
198 fileio.accessSync(path, 0);
199 let res = fileio.unlinkSync(path);
212 console.info('file is exists:', path);
[all …]

12345678910>>...14