Home
last modified time | relevance | path

Searched refs:file (Results 1 – 25 of 703) sorted by relevance

12345678910>>...29

/test/vts/utils/python/coverage/
Dsancov_utils.py174 file = None
180 file = entry_parts[-1].rsplit(':')[0]
182 if file.startswith(path):
183 file = None
186 elif len(entry_parts) == 3 and file is not None:
192 if file not in file_vectors:
193 file_vectors[file] = [-1] * line
194 if line > len(file_vectors[file]):
195 file_vectors[file].extend(
196 [-2] * (line - len(file_vectors[file])))
[all …]
DREADME.md12 src_file_name: string, the source file name.
13 src_file_content: string, the C/C++ source file content.
14 gcov_file_content: string, the raw gcov binary file content.
15 gcda_file_content: string, the raw gcda binary file content.
Dcoverage_report_test.py37 with open(gcno_path, 'rb') as file:
38 gcno_summary = gcno_parser.GCNOParser(file).Parse()
40 with open(gcda_path, 'rb') as file:
41 parser = gcda_parser.GCDAParser(file)
/test/suite_harness/common/util/tests/src/com/android/compatibility/common/util/
DDynamicConfigTest.java91 File file = createFileFromStr(CORRECT_CONFIG); in testCorrectConfig() local
93 config.initializeConfig(file); in testCorrectConfig()
100 FileUtil.deleteFile(file); in testCorrectConfig()
106 File file = createFileFromStr(CONFIG_WRONG_NODE_NAME); in testConfigWithWrongNodeName() local
108 config.initializeConfig(file); in testConfigWithWrongNodeName()
113 FileUtil.deleteFile(file); in testConfigWithWrongNodeName()
118 File file = File.createTempFile("test", "dynamic"); in createFileFromStr() local
119 FileOutputStream stream = new FileOutputStream(file); in createFileFromStr()
123 return file; in createFileFromStr()
DBusinessLogicTest.java132 File file = createFileFromStr(CORRECT_LOGIC); in testCorrectLogic() local
134 BusinessLogic bl = BusinessLogicFactory.createFromFile(file); in testCorrectLogic()
230 FileUtil.deleteFile(file); in testCorrectLogic()
236 File file = createFileFromStr(CORRECT_LOGIC.replace("testName", "testNam3")); in testLogicWithWrongNodeName() local
238 BusinessLogic bl = BusinessLogicFactory.createFromFile(file); in testLogicWithWrongNodeName()
240 FileUtil.deleteFile(file); in testLogicWithWrongNodeName()
245 File file = File.createTempFile("test", "bl"); in createFileFromStr() local
246 FileOutputStream stream = new FileOutputStream(file); in createFileFromStr()
250 return file; in createFileFromStr()
/test/vts/drivers/hal/libcodecoverage/
DGcdaFile.cpp31 if (gcov_var_.file) return false; in Open()
36 gcov_var_.file = fopen(filename_.c_str(), "rb"); in Open()
37 if (!gcov_var_.file) return false; in Open()
39 setbuf(gcov_var_.file, (char*)0); in Open()
44 if (gcov_var_.file) { in Close()
45 fclose(gcov_var_.file); in Close()
46 gcov_var_.file = 0; in Close()
57 if (!gcov_var_.file) return; in Sync()
64 fseek(gcov_var_.file, base << 2, SEEK_SET); in Sync()
65 gcov_var_.start = ftell(gcov_var_.file) >> 2; in Sync()
[all …]
/test/suite_harness/common/util/src/com/android/compatibility/common/util/
DZipUtil.java67 public static void addToZip(ZipOutputStream out, File file, List<String> relativePathSegs) in addToZip() argument
69 relativePathSegs.add(file.getName()); in addToZip()
70 if (file.isDirectory()) { in addToZip()
76 if (file.isFile()) { in addToZip()
77 writeToStream(file, out); in addToZip()
80 if (file.isDirectory()) { in addToZip()
82 File[] subFiles = file.listFiles(); in addToZip()
85 file.getAbsolutePath())); in addToZip()
119 private static void writeToStream(File file, OutputStream out) throws IOException { in writeToStream() argument
122 inputStream = new BufferedInputStream(new FileInputStream(file)); in writeToStream()
DChecksumReporter.java105 File file = new File(directory, ChecksumReporter.NAME); in ChecksumReporter() local
106 try (FileInputStream fileStream = new FileInputStream(file); in ChecksumReporter()
160 public void addFile(File file, String path) { in addFile() argument
163 crc = calculateFileChecksum(file); in addFile()
167 String key = path + SEPARATOR + file.getName(); in addFile()
172 public boolean containsFile(File file, String path) { in containsFile() argument
173 String key = path + SEPARATOR + file.getName(); in containsFile()
177 byte[] crc = calculateFileChecksum(file); in containsFile()
254 File file = new File(directory, NAME); in saveToFile() local
256 try (FileOutputStream fileStream = new FileOutputStream(file, false); in saveToFile()
[all …]
/test/suite_harness/common/util/tests/
Dgen_elf_golden_files.sh9 echo Generating ELF golden sample file for test via readelf
11 for file in $targetFile; do
12 echo Processing $file
13 readelf -a -p .rodata ./assets/$file > ./assets/${file/.so/}.txt
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/result/suite/
DCertificationChecksumHelper.java94 File file = new File(directory, NAME); in CertificationChecksumHelper() local
95 try (FileInputStream fileStream = new FileInputStream(file); in CertificationChecksumHelper()
146 File file = new File(directory, NAME); in saveToFile() local
148 try (FileOutputStream fileStream = new FileOutputStream(file, false); in saveToFile()
258 private void addFile(File file, String path) { in addFile() argument
261 crc = calculateFileChecksum(file); in addFile()
265 String key = path + SEPARATOR + file.getName(); in addFile()
273 boolean containsFile(File file, String path) { in containsFile() argument
274 String key = path + SEPARATOR + file.getName(); in containsFile()
277 byte[] crc = calculateFileChecksum(file); in containsFile()
[all …]
/test/mlts/benchmark/tools/
Dgen_tflite_visualization.sh26 for file in "$MODEL_DIR"/*.tflite
28 if [ -f "$file" ]; then
29 filename=`basename $file`
31 bazel run //tensorflow/lite/tools:visualize $file $HTML_DIR/$modelname.html
/test/vts/proto/
DVtsReportMessage.proto4 // you may not use this file except in compliance with the License.
135 // coverage report per file
141 // systrace report message per file
188 // the path to the source file from the project root.
191 // the name of the project where the file can be found
208 // the directory path of a source file.
212 // the name of the source file.
249 // URL of a produced log file (e.g., stdout, stderr).
252 // Name of a log file.
261 // message). This can be used to store a log file or an XML (or HTML) report
[all …]
DVtsResourceControllerMessage.proto4 // you may not use this file except in compliance with the License.
89 // Create a handle object for a single file.
91 // Read from a handle object with one file.
93 // Write to a handle object with one file.
186 // number of bytes to read from the file
190 // data to be written into file
200 // data read from the file
202 // number of bytes written into the file if the request is a write operation
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/presubmit/
DDupFileTest.java72 String file = entry.getKey(); in testDupFilesExist() local
77 dupedFilesSummary.append(file + ": " + jarFiles.toString() + "\n"); in testDupFilesExist()
104 for (String file : jarFileList) { in getMapOfFilesAndJars()
105 if (!map.containsKey(file)) { in getMapOfFilesAndJars()
106 map.put(file, new LinkedList<String>()); in getMapOfFilesAndJars()
109 map.get(file).add(jar.getName()); in getMapOfFilesAndJars()
/test/vts/utils/python/web/
Ddashboard_rest_client.py102 with tempfile.NamedTemporaryFile(delete=False) as file:
103 file.write(post_bytes)
105 self.post_cmd.format(path=file.name),
110 os.remove(file.name)
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/util/
DDynamicConfigFileReader.java42 public static String getValueFromConfig(File file, String key) in getValueFromConfig() argument
45 config.initializeConfig(file); in getValueFromConfig()
57 public static List<String> getValuesFromConfig(File file, String key) in getValuesFromConfig() argument
60 config.initializeConfig(file); in getValuesFromConfig()
DCollectorUtil.java115 private static String readFile(File file) throws IOException { in readFile() argument
117 try (BufferedReader reader = new BufferedReader(new FileReader(file))) { in readFile()
133 private static void writeFile(File file, String jsonString) throws IOException { in writeFile() argument
134 file.createNewFile(); in writeFile()
135 try (BufferedWriter writer = new BufferedWriter(new FileWriter(file))) { in writeFile()
/test/vts-testcase/nbu/src/
DREADME.md29 This is a zip file that you have downloaded.
31 The zip file includes:
33 * this README file
50 #### Create a test config file
52 Based on the two devices' serial numbers, we need to create a config file.
54 Create a plain text file `config.yaml` in the following format, with the `<>`
87 First, you need to put the file `config.yaml` in the same directory as the
/test/vti/test_serving/configs/infra/prod/vtslab-config-prod/
Dacl.cfg1 # Schema for this file:
4 # This file is sensitive. project_access_group specifies a super group
6 # This file is cached in process memory of instances for 10min
/test/vti/test_serving/configs/infra/test/vtslab-config-test/
Dacl.cfg1 # Schema for this file:
4 # This file is sensitive. project_access_group specifies a super group
6 # This file is cached in process memory of instances for 10min
/test/mlts/benchmark/src/com/android/nn/benchmark/core/
DTestModelsListLoader.java170 for (String file : assetManager.list(MODELS_LIST_ROOT)) { in parseFromAssets()
171 if (!file.endsWith(".json")) { in parseFromAssets()
176 assetManager.open(MODELS_LIST_ROOT + "/" + file))); in parseFromAssets()
178 throw new IOException("JSON error in " + file, e); in parseFromAssets()
181 throw new IOException("Error while parsing " + file, e); in parseFromAssets()
/test/vti/dashboard/gradle/
Dprofiles.gradle16 apply from: rootProject.file('gradle/profile_prod.gradle');
21 apply from: rootProject.file('gradle/profile_staging.gradle');
26 apply from: rootProject.file('gradle/profile_default.gradle');
/test/suite_harness/common/host-side/util/tests/src/com/android/compatibility/common/util/
DDynamicConfigHandlerTest.java126 File file = File.createTempFile(module, "dynamic"); in createFileFromStr() local
129 stream = new FileOutputStream(file); in createFileFromStr()
135 return file; in createFileFromStr()
/test/vts/utils/native/trace_processor/
DVtsTraceProcessor.cpp238 struct dirent* file; in CleanupTraces() local
239 while ((file = readdir(dir)) != NULL) { in CleanupTraces()
240 if (file->d_type == DT_REG) { in CleanupTraces()
245 trace_file += file->d_name; in CleanupTraces()
318 struct dirent* file; in DedupTraces() local
321 while ((file = readdir(dir)) != NULL) { in DedupTraces()
322 if (file->d_type == DT_REG) { in DedupTraces()
328 trace_file += file->d_name; in DedupTraces()
383 struct dirent* file; in SelectTraces() local
384 while ((file = readdir(coverage_dir)) != NULL) { in SelectTraces()
[all …]
/test/mts/tools/mts-tradefed/res/config/
DOWNERS1 per-file mts-sdkextensions.xml = file: platform/frameworks/base:/apex/sdkextensions/OWNERS

12345678910>>...29