Home
last modified time | relevance | path

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

123

/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 …]
/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/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/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 …]
Daudio_analysis.py561 def get_file_THDN(filename, q, freq=None): argument
574 audio_file = soundfile.SoundFile(filename)
590 def get_file_max_THDN(filename, step_size, window_size, q, freq=None): argument
605 audio_file = soundfile.SoundFile(filename)
625 def get_file_anomaly_durations(filename, freq=None, argument
646 audio_file = soundfile.SoundFile(filename)
/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/util/
DGCSFileDownloaderFuncTest.java173 String filename = mRemoteRoot + "/" + FILE_NAME1; in testGetRemoteFileMetaData() local
174 StorageObject object = mDownloader.getRemoteFileMetaData(BUCKET_NAME, filename); in testGetRemoteFileMetaData()
175 Assert.assertEquals(filename, object.getName()); in testGetRemoteFileMetaData()
180 String filename = mRemoteRoot + "/" + "not_exist"; in testGetRemoteFileMetaData_notExist() local
181 StorageObject object = mDownloader.getRemoteFileMetaData(BUCKET_NAME, filename); in testGetRemoteFileMetaData_notExist()
234 for (String filename : localFile.list()) { in checkDownloadedFolder()
235 if (filename.equals(FILE_NAME2)) { in checkDownloadedFolder()
239 new File(localFile.getAbsolutePath(), filename))); in checkDownloadedFolder()
240 } else if (filename.equals(FILE_NAME3)) { in checkDownloadedFolder()
244 new File(localFile.getAbsolutePath(), filename))); in checkDownloadedFolder()
[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/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/repohooks/rh/
Dconfig_unittest.py48 def _write_config(self, data, filename=None): argument
50 if filename is None:
51 filename = rh.config.PreSubmitConfig.FILENAME
52 path = os.path.join(self.tempdir, filename)
59 data, filename=rh.config.PreSubmitConfig.GLOBAL_FILENAME)
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DGTestParserTestBase.java54 protected String[] readInFile(String filename) { in readInFile() argument
58 TEST_TYPE_DIR + File.separator + filename); in readInFile()
66 CLog.e("Gest output file does not exist: " + filename); in readInFile()
69 CLog.e("Unable to read contents of gtest output file: " + filename); in readInFile()
/tools/acloud/public/actions/
Dcreate_goldfish_action.py136 def ParseBuildInfo(filename, pattern): argument
154 with open(filename) as build_info_file:
161 def _FetchBuildIdFromFile(cfg, build_target, build_id, pattern, filename): argument
181 temp_filename = os.path.join(tempdir, filename)
184 filename,
/tools/tradefederation/core/atest/proto/
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,
Dinternal_user_log_pb2.py35 filename=None,
86 filename=None,
137 filename=None,
195 filename=None,
239 filename=None,
283 filename=None,
334 filename=None,
364 filename=None,
401 filename=None,
Dclientanalytics_pb2.py33 filename=None,
85 filename=None,
116 filename=None,
147 filename=None,
/tools/test/connectivity/acts/framework/acts/test_utils/bt/loggers/protos/
Dbluetooth_metric_pb2.py31 filename=None,
65 filename=None,
91 filename=None,
118 filename=None,
198 filename=None,
243 filename=None,
337 filename=None,
431 filename=None,
484 filename=None,
543 filename=None,
[all …]
/tools/asuite/aidegen_functional_test/
Daidegen_functional_test_main.py94 def _import_project_file_xml_etree(filename): argument
102 tree = xml.etree.ElementTree.parse(filename)
114 print("{0}: import error: {1}".format(os.path.basename(filename), err))
126 for filename in filelist:
127 real_iml_file = os.path.join(abs_path, filename)
/tools/tradefederation/core/src/com/android/tradefed/util/
DGCSFileDownloader.java70 public InputStream downloadFile(String bucketName, String filename) throws IOException { in downloadFile() argument
75 getStorage().objects().get(bucketName, filename).executeMediaAsInputStream(); in downloadFile()
253 boolean isRemoteFolder(String bucketName, String filename) throws IOException { in isRemoteFolder() argument
254 filename = sanitizeDirectoryName(filename); in isRemoteFolder()
259 .setPrefix(filename) in isRemoteFolder()
/tools/test/connectivity/acts/framework/acts/test_utils/coex/
Daudio_test_utils.py108 return audio_analysis.get_file_THDN(filename=latest_file_path,
112 return audio_analysis.get_file_max_THDN(filename=latest_file_path,
143 filename=latest_file_path,
179 filename=dest_file_path,
/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/tools/
Dproto_check.py72 for filename in filenames:
73 if filename == gen_filename:
74 gen_file = os.path.join(root, filename)
/tools/tradefederation/core/src/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/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/test/
DPerformanceTest.java217 private File findApk(String filename) { in findApk() argument
218 File file = new File(mApkDir, filename); in findApk()
224 file = new File(mApkDir, Files.getNameWithoutExtension(filename) + "/" + filename); in findApk()
/tools/test/connectivity/acts/framework/acts/libs/logging/
Dlog_stream.py323 def __create_rotating_file_handler(filename): argument
326 return MovableRotatingFileHandler(filename, maxBytes=10485760,
434 filename = os.path.basename(handler.baseFilename)
435 handler.set_file(os.path.join(new_dir, filename))

123