Home
last modified time | relevance | path

Searched refs:filename (Results 1 – 25 of 112) sorted by relevance

12345

/tools/repohooks/tools/
Dcpplint.py956 def ParseNolintSuppressions(filename, raw_line, linenum, error): argument
984 error(filename, linenum, 'readability/nolint', 5,
1366 def AddJUnitFailure(self, filename, linenum, message, category, confidence): argument
1367 self._junit_failures.append((filename, linenum, message, category,
1513 def Check(self, error, filename, linenum): argument
1535 error(filename, linenum, 'readability/fn_size', error_level,
1558 def __init__(self, filename): argument
1559 self._filename = filename
1684 def Error(filename, linenum, category, confidence, message): argument
1710 filename, linenum, category, message, confidence))
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/result/
DDeviceFileReporterTest.java89 final String filename = "/data/tombstones/tombstone_00"; in testSimple() local
95 when(mDevice.pullFile(Mockito.eq(filename))) in testSimple()
96 .thenReturn(new FakeFile(filename, tombstone.length())); in testSimple()
104 Mockito.eq(filename), Mockito.eq(LogDataType.UNKNOWN), Mockito.eq(mDfrIss)); in testSimple()
113 final String filename = "/data/tombstones/tombstone_00"; in testTrim() local
119 when(mDevice.pullFile(Mockito.eq(filename))) in testTrim()
120 .thenReturn(new FakeFile(filename, tombstone.length())); in testTrim()
125 assertEquals(filename, filenames.get(0)); in testTrim()
129 Mockito.eq(filename), Mockito.eq(LogDataType.UNKNOWN), Mockito.eq(mDfrIss)); in testTrim()
134 final String filename = "/data/tombstones/tombstone_00"; in testLine_containingSpace() local
[all …]
/tools/tradefederation/core/src/com/android/tradefed/result/
DDeviceFileReporter.java170 for (String filename : line.split("\\s+")) { in run()
171 if (mSkipRepeatFiles && mReportedFiles.contains(filename)) { in run()
172 CLog.v("Skipping already-reported file %s", filename); in run()
181 filename, mDevice.getSerialNumber()); in run()
182 file = mDevice.pullFile(filename); in run()
184 final LogDataType type = getDataType(filename, pat.getValue()); in run()
188 mListener.testLog(filename, type, iss); in run()
189 filenames.add(filename); in run()
190 mReportedFiles.add(filename); in run()
206 LogDataType getDataType(String filename, LogDataType defaultType) { in getDataType() argument
[all …]
/tools/platform-compat/java/android/processor/compat/
DSourcePosition.java24 private final String filename; field in SourcePosition
30 public SourcePosition(String filename, long startLineNumber, long startColumnNumber, in SourcePosition() argument
32 this.filename = filename; in SourcePosition()
40 return filename; in getFilename()
68 && Objects.equals(filename, that.filename); in equals()
74 filename, in hashCode()
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/audio_analysis_lib/
Dcheck_quality.py63 def __init__(self, filename): argument
80 self._read_wave_file(filename)
86 self._convert_and_read_wav_file(filename)
88 def _convert_and_read_wav_file(self, filename): argument
109 command = ['sox', filename, '-t', 'wavpcm', converted_file.name]
114 def _read_wave_file(self, filename): argument
126 self._wave_reader = wave.open(filename, 'r')
420 def read_audio_file(filename, channel, bit_width, rate): argument
436 if filename.endswith('.wav'):
437 wavefile = WaveFile(filename)
[all …]
/tools/test/connectivity/acts/framework/acts/metrics/
Dcore.py188 filename = self._get_output_file(
190 dump_string_to_file(metric.get_binary(), filename, mode='wb')
199 filename = self._get_output_file(
201 dump_string_to_file(metric.get_ascii(), filename)
210 filename = self._get_output_file(
212 dump_string_to_file(metric.get_descriptor_binary(), filename, mode='wb')
221 filename = self._get_output_file(
223 dump_string_to_file(metric.get_descriptor_ascii(), filename)
225 def _get_output_file(self, output_path, filename, extension): argument
236 return os.path.join(output_path, "%s.%s" % (filename, extension))
/tools/netsim/rust/common/src/util/
Dzip_artifact.rs45 if let Some(filename) = entry in recurse_files()
51 result.push((entry.path(), filename)); in recurse_files()
69 && path.file_name().and_then(|os_name| os_name.to_str()).map_or(false, |filename| { in fetch_zip_files()
70 filename.starts_with("netsim_artifacts_") && filename.ends_with(".zip") in fetch_zip_files()
106 for (file, filename) in files { in zip_artifacts()
108 if filename.starts_with("netsim_artifacts") { in zip_artifacts()
113 zip_writer.start_file(&filename, FileOptions::default())?; in zip_artifacts()
120 if filename.starts_with("netsim_") in zip_artifacts()
121 && (filename.ends_with(".log") || filename.ends_with(".json")) in zip_artifacts()
/tools/tradefederation/core/javatests/com/android/tradefed/util/
DGCSFileDownloaderFuncTest.java212 String filename = mRemoteRoot + "/" + FILE_NAME1; in testGetRemoteFileMetaData() local
213 StorageObject object = mDownloader.getRemoteFileMetaData(BUCKET_NAME, filename); in testGetRemoteFileMetaData()
214 Assert.assertEquals(filename, object.getName()); in testGetRemoteFileMetaData()
219 String filename = mRemoteRoot + "/" + "not_exist"; in testGetRemoteFileMetaData_notExist() local
220 StorageObject object = mDownloader.getRemoteFileMetaData(BUCKET_NAME, filename); in testGetRemoteFileMetaData_notExist()
273 for (String filename : localFile.list()) { in checkDownloadedFolder()
274 if (filename.equals(FILE_NAME2)) { in checkDownloadedFolder()
278 new File(localFile.getAbsolutePath(), filename))); in checkDownloadedFolder()
279 } else if (filename.equals(FILE_NAME3)) { in checkDownloadedFolder()
283 new File(localFile.getAbsolutePath(), filename))); in checkDownloadedFolder()
[all …]
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/gnss/
Dgnss_testlog_utils.py129 def parse_log_to_df(filename, configs, index_rownum=True): argument
171 with open(filename, 'r') as fid:
195 def parse_gpstool_ttfflog_to_df(filename): argument
208 filename=filename,
228 def parse_gpsapilog_to_df(filename): argument
261 filename=filename,
319 def parse_gpsapilog_to_df_v2(filename): argument
339 filename=filename,
/tools/security/fuzzing/orphans/libufdt/
Dmkcorpus.c24 static uint32_t get_file_length(const char *filename) { in get_file_length() argument
27 if (stat(filename, &sb) == -1) { in get_file_length()
28 fprintf(stderr, "stat(%s) failed: %m\n", filename); in get_file_length()
35 static void append_file(FILE *out, const char *filename) { in append_file() argument
36 FILE *f = fopen(filename, "rbe"); in append_file()
40 fprintf(stderr, "fopen(%s) failed: %m\n", filename); in append_file()
/tools/treble/build/treble_build/report/
Dprojects.go85 func lookupProjectFile(ctx context.Context, rtx *Context, filename string) (*project, *app.GitTreeO…
86 if proj, exists := rtx.Info.FileCache[filename]; exists {
87 repoName := (filename)[len(proj.GitProj.RepoDir)+1:]
94 if realpath, err := filepath.EvalSymlinks(filename); err == nil {
95 if realpath != filename {
100 if strings.HasPrefix(filename, rtx.RepoBase) {
102 relpath := (filename)[len(rtx.RepoBase):]
106 return unknownProject, &app.GitTreeObj{Filename: filename, Sha: ""}
/tools/platform-compat/build/
Dprocess_compat_config.py38 if info.filename.endswith("_compat_config.xml"):
39 with jar.open(info.filename, 'r') as xml:
40 yield XmlContent(xml, info.filename)
92 def write(self, filename): argument
95 self.tree.write(filename, encoding='utf-8', xml_declaration=True)
97 def write_device_config(self, filename): argument
99 self.strip_config_for_device().write(filename, encoding='utf-8', xml_declaration=True)
/tools/netsim/scripts/tasks/
Dinstall_emulator_task.py137 for filename in os.listdir(EMULATOR_ARTIFACT_PATH):
140 rf"^sdk-repo-{os_name_artifact}-emulator-\d+\.zip$", filename
144 with zipfile.ZipFile(EMULATOR_ARTIFACT_PATH / filename, "r") as zip_ref:
148 filename = EMULATOR_ARTIFACT_PATH / info.filename
151 os.chmod(filename, original_permissions)
/tools/security/fuzzing/llm/tinyxml2_fuzzer/
Dgen_corpus.py23 def create_corpus_file(filename, content): argument
24 with open(filename, "w") as file:
34 filename = os.path.join(corpus_dir, f"xml_{i}.xml")
35 create_corpus_file(filename, xml_content)
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/rust/
DRustParserTestBase.java44 protected String[] readInFile(String filename) { in readInFile() argument
50 File.separator + TEST_TYPE_DIR + File.separator + filename); in readInFile()
57 CLog.e("Gest output file does not exist: " + filename); in readInFile()
59 CLog.e("Unable to read contents of rust output file: " + filename); in readInFile()
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/
DGTestParserTestBase.java57 protected String[] readInFile(String filename) { in readInFile() argument
61 TEST_TYPE_DIR + File.separator + filename); in readInFile()
69 CLog.e("Gest output file does not exist: " + filename); in readInFile()
72 CLog.e("Unable to read contents of gtest output file: " + filename); in readInFile()
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/dev_utils/proto/gen/google/protobuf/
Ddescriptor_pb2.py32 filename=None,
135 filename=None,
163 filename=None,
191 filename=None,
220 filename=None,
250 filename=None,
357 filename=None,
393 filename=None,
472 filename=None,
560 filename=None,
[all …]
/tools/test/connectivity/acts/framework/tests/
Dtest_suite.py44 for filename in files:
45 if filename.endswith('_test.py'):
46 test_files.append(os.path.join(root, filename))
48 suite.addTest(loader.discover(root, filename))
/tools/repohooks/rh/
Dconfig_unittest.py53 def _write_config(self, data, filename='temp.cfg'): argument
59 path = os.path.join(self.tempdir, filename)
67 data, filename=rh.config.LocalPreUploadFile.FILENAME)
72 data, filename=rh.config.GlobalPreUploadFile.FILENAME)
/tools/trebuchet/trebuchet/viewer/src/main/kotlin/traceviewer/ui/components/
DChooseTrace.kt32 val filename = fd.file in selectFile() constant
33 if (filename != null) { in selectFile()
34 val file = File(fd.directory, filename) in selectFile()
/tools/tradefederation/core/javatests/com/android/tradefed/device/
DTestDeviceFileFuncTest.java188 final String filename = "this_file_does_not_exist.txt"; in testPush_NoExist() local
192 remotePath = String.format("%s/%s", mInternalStorage, filename); in testPush_NoExist()
193 boolean didPushFile = mTestDevice.pushFile(new File(filename), remotePath); in testPush_NoExist()
298 final String filename = "testDoesFileExist"; in testDoesFileExist_Basic() local
300 remotePath = String.format("%s/%s", mInternalStorage, filename); in testDoesFileExist_Basic()
318 final String filename = String.format("%s%s", testTag, ".txt"); in testDeleteFile_Basic() local
320 remotePath = String.format("%s/%s", mInternalStorage, filename); in testDeleteFile_Basic()
342 final String filename = String.format("%s%s", testTag, ".txt"); in testDeleteFile_ExtStorage() local
344 remotePath = String.format("%s/%s", mExternalStorage, filename); in testDeleteFile_ExtStorage()
/tools/security/fuzzing/fuzzer_parser/
Dfuzzparser.go42 func processFile(filename string, out io.Writer) error {
43 f, err := os.Open(filename)
49 return processReader(filename, f, out)
52 func processReader(filename string, in io.Reader, out io.Writer) error {
59 file, errs := parser.ParseAndEval(filename, r, parser.NewScope(nil))
/tools/acloud/public/actions/
Dcreate_goldfish_action.py176 def ParseBuildInfo(filename): argument
195 with open(filename) as build_info_file:
203 def _FetchBuildIdFromFile(cfg, build_target, build_id, filename): argument
222 temp_filename = os.path.join(tempdir, filename)
225 filename,
/tools/asuite/aidegen_functional_test/
Daidegen_functional_test_main.py160 def _import_project_file_xml_etree(filename): argument
186 tree = xml.etree.ElementTree.parse(filename)
200 print("{0}: import error: {1}".format(os.path.basename(filename), err))
224 def _get_unique_module_name(rel_path, filename): argument
235 code_names[-1] = filename
369 for filename in iter(_get_project_file_names(abs_path)):
370 real_iml_file = os.path.join(abs_path, filename)
371 item_name = _get_unique_module_name(rel_path, filename)
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/coex/
Daudio_test_utils.py102 return audio_analysis.get_file_THDN(filename=self.path,
106 return audio_analysis.get_file_max_THDN(filename=self.path,
136 return audio_analysis.get_file_anomaly_durations(filename=self.path,
160 quality_analysis(filename=self.path,

12345