/tools/repohooks/tools/ |
D | cpplint.py | 584 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 …]
|
D | checkpatch.pl | 839 my ($filename) = @_; 843 …l $root/scripts/get_maintainer.pl --status --nom --nol --nogit --nogit-fallback -f $filename 2>&1`; 976 for my $filename (@ARGV) { 979 open($FILE, '-|', "git format-patch -M --stdout -1 $filename") || 980 die "$P: $filename: git format-patch failed - $!\n"; 982 open($FILE, '-|', "diff -u /dev/null $filename") || 983 die "$P: $filename: diff failed - $!\n"; 984 } elsif ($filename eq '-') { 987 open($FILE, '<', "$filename") || 988 die "$P: $filename: open failed - $!\n"; [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/ |
D | DeviceFileReporterTest.java | 82 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/controllers/buds_lib/dev_utils/proto/gen/google/protobuf/ |
D | descriptor_pb2.py | 29 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/test_utils/audio_analysis_lib/ |
D | check_quality.py | 68 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 …]
|
D | audio_analysis.py | 561 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/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | GCSFileDownloaderFuncTest.java | 175 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/tradefederation/core/src/com/android/tradefed/result/ |
D | DeviceFileReporter.java | 170 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/controllers/buds_lib/dev_utils/proto/gen/ |
D | apollo_qa_pb2.py | 31 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/test_utils/gnss/ |
D | gnss_testlog_utils.py | 128 def parse_log_to_df(filename, configs, index_rownum=True): argument 170 with open(filename, 'r') as fid: 194 def parse_gpstool_ttfflog_to_df(filename): argument 207 filename=filename, 225 def parse_gpsapilog_to_df(filename): argument 258 filename=filename, 316 def parse_gpsapilog_to_df_v2(filename): argument 336 filename=filename,
|
/tools/test/connectivity/acts/framework/acts/metrics/ |
D | core.py | 188 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/ |
D | SourcePosition.java | 24 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/framework/acts/test_utils/bt/loggers/protos/ |
D | bluetooth_metric_pb2.py | 31 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/metalava/src/main/java/com/android/tools/metalava/model/text/ |
D | ApiFile.java | 105 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/tradefederation/core/atest/proto/ |
D | internal_user_log_pb2.py | 35 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,
|
D | external_user_log_pb2.py | 35 filename=None, 58 filename=None, 95 filename=None, 132 filename=None, 169 filename=None, 213 filename=None, 243 filename=None, 280 filename=None,
|
/tools/asuite/atest/proto/ |
D | internal_user_log_pb2.py | 35 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,
|
D | external_user_log_pb2.py | 35 filename=None, 58 filename=None, 95 filename=None, 132 filename=None, 169 filename=None, 213 filename=None, 243 filename=None, 280 filename=None,
|
/tools/platform-compat/build/ |
D | process_compat_config.py | 38 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/asuite/aidegen_functional_test/ |
D | aidegen_functional_test_main.py | 145 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/asuite/atest/tools/tradefederation/core/proto/ |
D | test_record_pb2.py | 34 filename=None, 69 filename=None, 132 filename=None, 169 filename=None, 206 filename=None, 314 filename=None, 355 filename=None, 407 filename=None,
|
D | metric_measurement_pb2.py | 30 filename=None, 61 filename=None, 93 filename=None, 162 filename=None, 193 filename=None, 224 filename=None, 255 filename=None,
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | InstallApexModuleTargetPreparer.java | 562 for (File filename : testFileNames) { in containsApex() 563 if (filename.getName().endsWith(APEX_SUFFIX)) { in containsApex() 576 for (File filename : testFileNames) { in containsApks() 577 if (filename.getName().endsWith(SPLIT_APKS_SUFFIX)) { in containsApks() 668 protected boolean isPersistentApk(File filename, TestInformation testInfo) in isPersistentApk() argument 670 if (!filename.getName().endsWith(APK_SUFFIX)) { in isPersistentApk() 677 filename, testInfo.getDevice().getDeviceDescriptor())); in isPersistentApk()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | GCSFileDownloader.java | 73 public InputStream downloadFile(String bucketName, String filename) throws IOException { in downloadFile() argument 78 getStorage().objects().get(bucketName, filename).executeMediaAsInputStream(); in downloadFile() 262 boolean isRemoteFolder(String bucketName, String filename) throws IOException { in isRemoteFolder() argument 263 filename = sanitizeDirectoryName(filename); in isRemoteFolder() 268 .setPrefix(filename) in isRemoteFolder()
|
/tools/repohooks/rh/ |
D | config_unittest.py | 48 def _write_config(self, data, filename=None): argument 50 if filename is None: 51 filename = rh.config.PreUploadConfig.FILENAME 52 path = os.path.join(self.tempdir, filename) 59 data, filename=rh.config.PreUploadConfig.GLOBAL_FILENAME)
|