Home
last modified time | relevance | path

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

1234

/tools/repohooks/tools/
Dcpplint.py578 def ParseNolintSuppressions(filename, raw_line, linenum, error): argument
606 error(filename, linenum, 'readability/nolint', 5,
1054 def Check(self, error, filename, linenum): argument
1076 error(filename, linenum, 'readability/fn_size', error_level,
1099 def __init__(self, filename): argument
1100 self._filename = filename
1211 def Error(filename, linenum, category, confidence, message): argument
1237 filename, linenum, category, message, confidence))
1240 filename, linenum, message, category, confidence))
1243 filename, linenum, message, category, confidence))
[all …]
Dandroid_test_mapping_format.py190 for filename in opts.files:
192 json_data = rh.git.get_file_content(opts.commit, filename)
194 with open(os.path.join(opts.project_dir, filename)) as f:
/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/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/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/tradefederation/core/tests/src/com/android/tradefed/result/
DDeviceFileReporterTest.java82 final String filename = "/data/tombstones/tombstone_00"; in testSimple() local
89 EasyMock.expect(mDevice.pullFile(EasyMock.eq(filename))) in testSimple()
90 .andReturn(new FakeFile(filename, tombstone.length())); in testSimple()
94 mListener.testLog(EasyMock.eq(filename), EasyMock.eq(LogDataType.UNKNOWN), in testSimple()
108 final String filename = "/data/tombstones/tombstone_00"; in testTrim() local
115 EasyMock.expect(mDevice.pullFile(EasyMock.eq(filename))) in testTrim()
116 .andReturn(new FakeFile(filename, tombstone.length())); in testTrim()
119 mListener.testLog(EasyMock.eq(filename), EasyMock.eq(LogDataType.UNKNOWN), in testTrim()
124 assertEquals(filename, filenames.get(0)); in testTrim()
130 final String filename = "/data/tombstones/tombstone_00"; in testLine_containingSpace() local
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/audio_analysis_lib/
Dcheck_quality.py68 def __init__(self, filename): argument
85 self._read_wave_file(filename)
91 self._convert_and_read_wav_file(filename)
93 def _convert_and_read_wav_file(self, filename): argument
114 command = ['sox', filename, '-t', 'wavpcm', converted_file.name]
119 def _read_wave_file(self, filename): argument
131 self._wave_reader = wave.open(filename, 'r')
429 def read_audio_file(filename, channel, bit_width, rate): argument
445 if filename.endswith('.wav'):
446 wavefile = WaveFile(filename)
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/gnss/
Dgnss_testlog_utils.py94 def parse_log_to_df(filename, configs, index_rownum=True): argument
136 with open(filename, 'r') as fid:
160 def parse_gpstool_ttfflog_to_df(filename): argument
173 filename=filename,
191 def parse_gpsapilog_to_df(filename): argument
222 filename=filename,
280 def parse_gpsapilog_to_df_v2(filename): argument
298 filename=filename,
/tools/test/connectivity/acts/framework/acts/test_utils/instrumentation/
Dinstrumentation_proto_parser.py45 filename = os.path.basename(source_path)
49 filename = ad.adb.shell('ls %s -t | head -n1' % default_full_proto_dir)
50 if not filename:
53 source_path = os.path.join(default_full_proto_dir, filename)
55 dest_path = os.path.join(dest_dir, filename)
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/rust/
DRustParserTestBase.java42 protected String[] readInFile(String filename) { in readInFile() argument
48 File.separator + TEST_TYPE_DIR + File.separator + filename); in readInFile()
55 CLog.e("Gest output file does not exist: " + filename); in readInFile()
57 CLog.e("Unable to read contents of rust output file: " + filename); in readInFile()
/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
94 self.tree.write(filename, encoding='utf-8', xml_declaration=True)
96 def write_device_config(self, filename): argument
98 self.strip_config_for_device().write(filename, encoding='utf-8', xml_declaration=True)
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DGTestParserTestBase.java55 protected String[] readInFile(String filename) { in readInFile() argument
59 TEST_TYPE_DIR + File.separator + filename); in readInFile()
67 CLog.e("Gest output file does not exist: " + filename); in readInFile()
70 CLog.e("Unable to read contents of gtest output file: " + filename); in readInFile()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DGCSFileDownloaderFuncTest.java175 String filename = mRemoteRoot + "/" + FILE_NAME1; in testGetRemoteFileMetaData() local
176 StorageObject object = mDownloader.getRemoteFileMetaData(BUCKET_NAME, filename); in testGetRemoteFileMetaData()
177 Assert.assertEquals(filename, object.getName()); in testGetRemoteFileMetaData()
182 String filename = mRemoteRoot + "/" + "not_exist"; in testGetRemoteFileMetaData_notExist() local
183 StorageObject object = mDownloader.getRemoteFileMetaData(BUCKET_NAME, filename); in testGetRemoteFileMetaData_notExist()
236 for (String filename : localFile.list()) { in checkDownloadedFolder()
237 if (filename.equals(FILE_NAME2)) { in checkDownloadedFolder()
241 new File(localFile.getAbsolutePath(), filename))); in checkDownloadedFolder()
242 } else if (filename.equals(FILE_NAME3)) { in checkDownloadedFolder()
246 new File(localFile.getAbsolutePath(), filename))); in checkDownloadedFolder()
[all …]
/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/trebuchet/trebuchet/startup-analyzer/src/
DStartupAnalyzer.kt109 val filename = args[0] in main() constant
111 println("Opening `$filename`") in main()
112 val trace = parseTrace(File(filename), verbose = false) in main()
/tools/test/connectivity/acts/framework/acts/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,
/tools/test/connectivity/tools/
Dproto_check.py72 for filename in filenames:
73 if filename == gen_filename:
74 gen_file = os.path.join(root, filename)
/tools/tradefederation/core/global_configuration/com/android/tradefed/config/gcs/
DGCSConfigurationFactory.java141 String getPath(String parent, String filename) { in getPath() argument
144 return filename; in getPath()
146 return parentPath.resolve(filename).normalize().toString(); in getPath()
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/dev_utils/proto/gen/
Dapollo_qa_pb2.py31 filename=None,
74 filename=None,
145 filename=None,
188 filename=None,
211 filename=None,
234 filename=None,
358 filename=None,
381 filename=None,
426 filename=None,
520 filename=None,
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/dev_utils/proto/gen/google/protobuf/
Ddescriptor_pb2.py29 filename=None,
115 filename=None,
141 filename=None,
167 filename=None,
194 filename=None,
225 filename=None,
333 filename=None,
370 filename=None,
450 filename=None,
539 filename=None,
[all …]
/tools/tradefederation/core/atest/proto/
Dclientanalytics_pb2.py33 filename=None,
85 filename=None,
116 filename=None,
147 filename=None,
Dexternal_user_log_pb2.py35 filename=None,
58 filename=None,
95 filename=None,
132 filename=None,
169 filename=None,
213 filename=None,
243 filename=None,
280 filename=None,
/tools/test/connectivity/acts/framework/acts/test_utils/instrumentation/proto/gen/
Dinstrumentation_data_pb2.py30 filename=None,
58 filename=None,
138 filename=None,
169 filename=None,
207 filename=None,
259 filename=None,
/tools/asuite/aidegen_functional_test/
Daidegen_functional_test_main.py145 def _import_project_file_xml_etree(filename): argument
171 tree = xml.etree.ElementTree.parse(filename)
185 print("{0}: import error: {1}".format(os.path.basename(filename), err))
208 def _get_unique_module_name(rel_path, filename): argument
219 code_names[-1] = filename
353 for filename in iter(_get_project_file_names(abs_path)):
354 real_iml_file = os.path.join(abs_path, filename)
355 item_name = _get_unique_module_name(rel_path, filename)
/tools/external_updater/
Darchive_utils.py88 filename = os.path.basename(parsed_url.path)
90 if filename.endswith(ext):

1234