Home
last modified time | relevance | path

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

1234

/tools/repohooks/tools/
Dcpplint.py584 def ParseNolintSuppressions(filename, raw_line, linenum, error): argument
612 error(filename, linenum, 'readability/nolint', 5,
1060 def Check(self, error, filename, linenum): argument
1082 error(filename, linenum, 'readability/fn_size', error_level,
1105 def __init__(self, filename): argument
1106 self._filename = filename
1217 def Error(filename, linenum, category, confidence, message): argument
1243 filename, linenum, category, message, confidence))
1246 filename, linenum, message, category, confidence))
1249 filename, linenum, message, category, confidence))
[all …]
/tools/test/connectivity/acts_tests/acts_contrib/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/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/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/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/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/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_tests/acts_contrib/test_utils/bt/protos/
Dbluetooth_pb2.py29 filename=None,
75 filename=None,
191 filename=None,
253 filename=None,
288 filename=None,
318 filename=None,
348 filename=None,
378 filename=None,
413 filename=None,
439 filename=None,
[all …]
/tools/asuite/atest/
Datest_utils.py595 def md5sum(filename): argument
604 if not os.path.isfile(filename):
606 with open(filename, 'rb') as target:
642 for filename, md5 in content.items():
643 if md5sum(filename) != md5:
644 logging.debug('%s has altered.', filename)
847 for filename in fnmatch.filter(filenames, file_name):
848 match_files.append(os.path.join(root, filename))
863 for filename in zip_file.namelist():
864 if os.path.isdir(filename):
[all …]
/tools/asuite/atest/tools/asuite/atest/tf_proto/
Dmetric_measurement_pb2.py30 filename=None,
61 filename=None,
93 filename=None,
162 filename=None,
193 filename=None,
224 filename=None,
255 filename=None,
Dtest_record_pb2.py34 filename=None,
69 filename=None,
142 filename=None,
179 filename=None,
216 filename=None,
324 filename=None,
365 filename=None,
417 filename=None,
/tools/asuite/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,
/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/asuite/atest-py2/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,
/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/acloud/public/actions/
Dcreate_goldfish_action.py175 def ParseBuildInfo(filename): argument
194 with open(filename) as build_info_file:
202 def _FetchBuildIdFromFile(cfg, build_target, build_id, filename): argument
221 temp_filename = os.path.join(tempdir, filename)
224 filename,
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DApiFile.java105 public static TextCodebase parseApi(@Nonnull String filename, @Nonnull String apiText, in parseApi() argument
107 return parseApi(filename, apiText, kotlinStyleNulls != null && kotlinStyleNulls); in parseApi()
114 public static TextCodebase parseApi(@Nonnull String filename, @Nonnull String apiText, in parseApi() argument
116 final TextCodebase api = new TextCodebase(new File(filename)); in parseApi()
117 api.setDescription("Codebase loaded from " + filename); in parseApi()
118 parseApiSingleFile(api, false, filename, apiText, kotlinStyleNulls); in parseApi()
123 …private static void parseApiSingleFile(TextCodebase api, boolean appending, String filename, Strin… in parseApiSingleFile() argument
137 api.getFormat(), format, filename)); in parseApiSingleFile()
153 throw new ApiParseException("Unknown file format of " + filename); in parseApiSingleFile()
165 final Tokenizer tokenizer = new Tokenizer(filename, apiText.toCharArray()); in parseApiSingleFile()
[all …]
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/bt/loggers/protos/
Dbluetooth_metric_pb2.py30 filename=None,
70 filename=None,
100 filename=None,
131 filename=None,
212 filename=None,
258 filename=None,
353 filename=None,
448 filename=None,
502 filename=None,
562 filename=None,
[all …]
/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/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,
/tools/test/connectivity/acts/framework/acts/controllers/monsoon_lib/sampling/engine/
Dtransformers.py32 def __init__(self, filename, measure_after_seconds=0): argument
41 self._filename = filename
91 def __init__(self, filename, measure_after_seconds=0): argument
100 self._filename = filename

1234