Home
last modified time | relevance | path

Searched refs:file_name (Results 1 – 25 of 29) sorted by relevance

12

/test/vts/utils/python/coverage/
Dcoverage_report.py50 file_name = func.src_file_name
51 if GEN_TAG in file_name:
52 logging.debug("Skip generated source file %s.", file_name)
56 if file_name.startswith(path):
60 logging.debug("Skip excluded source file %s.", file_name)
63 src_lines_counts = coverage_dict[file_name] if file_name in coverage_dict else []
72 coverage_dict[file_name] = src_lines_counts
Dcoverage_utils.py337 file_name = os.path.join(self.local_coverage_path, basename)
340 "adb -s %s pull %s %s " % (serial, gcda, file_name))
346 dut.adb.pull("%s %s" % (gcda, file_name))
347 gcda_content = open(file_name, "rb").read()
431 file_name = gcda_name.rsplit(".", 1)[0]
437 gcno_summary = self._FindGcnoSummary(file_name, gcno_file_parsers)
560 file_name = os.path.basename(file_name_path)
571 gcda_name = file_name + GCDA_SUFFIX
577 gcno_summary, file_name)
Dsancov_parser.py93 def ParseSancovFile(file_name): argument
102 with open(file_name, 'rb') as stream:
Dgcda_parser.py168 def ParseGcdaFile(file_name, file_summary): argument
183 with open(file_name, 'rb') as stream:
Dgcno_parser.py221 def ParseGcnoFile(file_name): argument
235 with open(file_name, 'rb') as stream:
/test/framework/harnesses/host_controller/utils/ipc/
Dfile_lock.py35 def __init__(self, file_name=None, mode=None): argument
49 if file_name:
50 file_list = [file_name]
52 file_list = [file_name for file_name in os.listdir(self._devlock_dir)]
55 for file_name in file_list:
56 if os.path.isfile(os.path.join(self._devlock_dir, file_name)):
57 self._OpenFile(file_name, mode)
/test/framework/harnesses/host_controller/command_processor/
Dcommand_test.py82 for file_name in os.listdir(self._result_dir):
83 shutil.rmtree(os.path.join(self._result_dir, file_name))
184 os.path.join(dir_name, file_name)
185 for dir_name, file_name in utils.iterate_files(result_dir)
186 if file_name.startswith("log-result")
187 and file_name.endswith(".zip")
209 os.path.join(dir_name, file_name)
210 for dir_name, file_name in utils.iterate_files(result_dir)
211 if file_name.endswith(".zip")
Dcommand_repack.py94 file_name = os.path.basename(file_path)
97 file_name)
100 os.path.join(common._ADDITIONAL_FILES_DIR, file_name),
/test/vts/utils/python/archive/
Darchive_parser_test.py53 file_name = 'test_file'
54 content += file_name + ' ' * (archive_parser.Archive.FILE_ID_LENGTH -
55 len(file_name))
69 self.assertIn(file_name, archive.files)
70 self.assertEquals(archive.files[file_name], message)
/test/framework/harnesses/host_controller/build/
Dbuild_provider.py264 for dir_name, file_name in utils.iterate_files(dir_path):
265 full_path = os.path.join(dir_name, file_name)
287 file_name = os.path.basename(file_path)
291 self.SetDeviceImage(file_name, file_path)
292 elif re.match("android-[vcgs]ts.zip", file_name):
293 test_suite = (file_name.split("-")[-1]).split(".")[0]
295 elif file_name == "android-vtslab.zip":
297 elif file_name.startswith("vti-global-config"):
299 "prod" if "prod" in file_name else "test", file_path)
/test/vts-testcase/vndk/golden/
Ddump_abi.py111 for file_name in file_names:
112 if file_name.endswith(".so"):
113 lib_names.append(file_name)
115 with open(file_name, "r") as txt_file:
Dextract_lsdump.py65 def _OpenFileOrGzipped(file_name): argument
80 if file_name.endswith('.gz'):
81 return gzip.open(file_name, 'rt')
82 return open(file_name, 'r')
/test/vts-testcase/fuzz/script/config/
Dconfig_gen.py83 for file_name in files:
84 file_path = os.path.join(base_dir, file_name)
85 if file_name == 'AndroidTest.xml':
87 if file_name in ('AndroidTest.xml', 'Android.bp'):
/test/vts/compilation_tools/vtsc/
DVtsCompilerUtils.cpp538 string PathJoin(const char* dir_path, const char* file_name) { in PathJoin() argument
542 if (!file_name) return result; in PathJoin()
543 } else if (!file_name) return result; in PathJoin()
545 if (file_name[0] != '.') { in PathJoin()
550 result += file_name; in PathJoin()
DVtsCompilerUtils.h62 string PathJoin(const char* dir_path, const char* file_name);
/test/vts-testcase/hal/script/build/
Dbuild_rule_gen.py229 [dir_name, file_name] = os.path.split(abs_file_path)
230 if file_name != 'Android.bp':
/test/vts-testcase/kernel/ltp/testcase/tools/
Dltp_test_cases.py79 file_name = ltp_configs.LTP_CONFIG_TEMPLATE_FILE_NAME
80 … file_path = os.path.join(self._android_build_top, ltp_configs.LTP_CONFIG_TEMPLATE_DIR, file_name)
/test/vts/runners/host/
Dutils.py213 for file_name in file_names:
214 yield root_dir, file_name
Dbase_test.py1503 file_name = (_BUG_REPORT_FILE_PREFIX
1508 file_path = os.path.join(parent_dir, file_name)
1591 file_name = (_LOGCAT_FILE_PREFIX
1597 file_path = os.path.join(parent_dir, file_name)
/test/vts-testcase/vndk/dependency/
Dvts_vndk_dependency_test.py214 for file_name in file_names:
215 yield os.path.join(root_dir, file_name)
DVtsVndkDependencyTest.py227 for root_dir, file_name in utils.iterate_files(host_dir):
228 full_path = os.path.join(root_dir, file_name)
/test/vts/compilation_tools/vtsc/test/golden/DRIVER/
DBar.driver.cpp1161 string file_name = fd_val.file_name(); in CallFunction() local
1168 while((pos=file_name.find_first_of('/', pre)) != string::npos){ in CallFunction()
1169 dir = file_name.substr(0, pos++); in CallFunction()
1177 … int fd = open(file_name.c_str(), fd_val.flags() | O_CREAT, fd_val.mode()); in CallFunction()
1179 … LOG(ERROR) << "Failed to open file: " << file_name << " error: " << errno; in CallFunction()
1188 if (!stat(file_name.c_str(), &st)) { in CallFunction()
1189 mkdir(file_name.c_str(), fd_val.mode()); in CallFunction()
1191 … handle->data[fd_index] = open(file_name.c_str(), O_DIRECTORY, fd_val.mode()); in CallFunction()
1196 if(file_name == "/dev/ashmem") { in CallFunction()
/test/vts/utils/python/controllers/
Dandroid_device.py1298 map(lambda file_name: 'chmod 755 {path}/{bit}/{file_name}{bit};'.format(
1301 file_name=file_name),
/test/vts/utils/python/mirror/
Dresource_mirror.py700 fd_message.file_name = filepath
/test/suite_harness/common/util/src/com/android/compatibility/common/util/
DReadElf.java278 VerNeed(String file_name, String lib_name, int ndx) { in VerNeed() argument
279 this.vn_file_name = file_name.toLowerCase(); in VerNeed()

12