Home
last modified time | relevance | path

Searched refs:write (Results 1 – 25 of 194) sorted by relevance

12345678

/tools/metalava/src/main/java/com/android/tools/metalava/
DSignatureWriter.kt57 fun write(text: String) { in <lambda>() method
68 write("package ") in <lambda>()
70 write("${pkg.qualifiedName()} {\n\n") in <lambda>()
74 write("}\n\n") in <lambda>()
78 write(" ctor ") in <lambda>()
82 write(constructor.containingClass().fullName()) in <lambda>()
85 write(";\n") in <lambda>()
90 write(" ") in <lambda>()
91 write(name) in <lambda>()
92 write(" ") in <lambda>()
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DModifierList.kt265 fun write( in <lambda>() method
332 writer.write("$modifier ") in <lambda>()
346 writer.write("abstract ") in <lambda>()
350 writer.write("default ") in <lambda>()
354 writer.write("static ") in <lambda>()
363 writer.write("final ") in <lambda>()
365 writer.write("open ") in <lambda>()
369 writer.write("sealed ") in <lambda>()
373 writer.write("suspend ") in <lambda>()
377 writer.write("inline ") in <lambda>()
[all …]
/tools/asuite/aidegen/lib/
Dclion_project_file_gen.py261 hfile.write(content)
271 hfile.write(_SET_C_COMPILER.format(
273 hfile.write(_SET_CXX_COMPILER.format(
290 hfile.write(_LIST_APPEND_HEADER)
291 hfile.write(_SOURCE_FILES_LINE)
295 hfile.write(''.join([_build_cmake_path(src, ' '), '\n']))
296 hfile.write(_END_WITH_ONE_BLANK_LINE)
324 hfile.write(
343 hfile.write(_FLAGS_DICT[key])
432 hfile.write(_MINI_VERSION_SUPPORT.format(_MINI_VERSION))
[all …]
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DCentralDirectory.java442 cdhs[idx].getExtraField().write(ByteBuffer.wrap(extraFields[idx])); in computeByteRepresentation()
453 F_SIGNATURE.write(out); in computeByteRepresentation()
454 F_MADE_BY.write(out, cdhs[idx].getMadeBy()); in computeByteRepresentation()
455 F_VERSION_EXTRACT.write(out, compressInfos[idx].getVersionExtract()); in computeByteRepresentation()
456 F_GP_BIT.write(out, cdhs[idx].getGpBit().getValue()); in computeByteRepresentation()
457 F_METHOD.write(out, compressInfos[idx].getMethod().methodCode); in computeByteRepresentation()
460 F_LAST_MOD_TIME.write(out, 0); in computeByteRepresentation()
461 F_LAST_MOD_DATE.write(out, 0); in computeByteRepresentation()
463 F_LAST_MOD_TIME.write(out, cdhs[idx].getLastModTime()); in computeByteRepresentation()
464 F_LAST_MOD_DATE.write(out, cdhs[idx].getLastModDate()); in computeByteRepresentation()
[all …]
DStoredEntry.java710 F_LOCAL_SIGNATURE.write(out); in toHeaderData()
711 F_VERSION_EXTRACT.write(out, compressInfo.getVersionExtract()); in toHeaderData()
712 F_GP_BIT.write(out, cdh.getGpBit().getValue()); in toHeaderData()
713 F_METHOD.write(out, compressInfo.getMethod().methodCode); in toHeaderData()
716 F_LAST_MOD_TIME.write(out, 0); in toHeaderData()
717 F_LAST_MOD_DATE.write(out, 0); in toHeaderData()
719 F_LAST_MOD_TIME.write(out, cdh.getLastModTime()); in toHeaderData()
720 F_LAST_MOD_DATE.write(out, cdh.getLastModDate()); in toHeaderData()
723 F_CRC32.write(out, cdh.getCrc32()); in toHeaderData()
724 F_COMPRESSED_SIZE.write(out, compressInfo.getCompressedSize()); in toHeaderData()
[all …]
DEocd.java256 F_SIGNATURE.write(out); in computeByteRepresentation()
257 F_NUMBER_OF_DISK.write(out); in computeByteRepresentation()
258 F_DISK_CD_START.write(out); in computeByteRepresentation()
259 F_RECORDS_DISK.write(out, totalRecords); in computeByteRepresentation()
260 F_RECORDS_TOTAL.write(out, totalRecords); in computeByteRepresentation()
261 F_CD_SIZE.write(out, directorySize); in computeByteRepresentation()
262 F_CD_OFFSET.write(out, directoryOffset); in computeByteRepresentation()
263 F_COMMENT_SIZE.write(out, comment.length); in computeByteRepresentation()
DExtraField.java207 public void write(@Nonnull ByteBuffer out) throws IOException { in write() method in ExtraField
213 s.write(out); in write()
260 void write(@Nonnull ByteBuffer out) throws IOException; in write() method
315 public void write(@Nonnull ByteBuffer out) throws IOException { in write() method in ExtraField.RawDataSegment
389 public void write(@Nonnull ByteBuffer out) throws IOException { in write() method in ExtraField.AlignmentSegment
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/utils/
DCachedFileContentsTest.java38 Files.write("abc", f, Charsets.US_ASCII); in createFileAndCheckWithNoChanges()
52 Files.write("abc", f, Charsets.US_ASCII); in createFileAndCheckChanges()
59 Files.write("def", f, Charsets.US_ASCII); in createFileAndCheckChanges()
68 Files.write("abc", f, Charsets.US_ASCII); in createFileUpdateAndCheckChanges()
75 Files.write("def", f, Charsets.US_ASCII); in createFileUpdateAndCheckChanges()
85 Files.write("bar", f, Charsets.US_ASCII); in immediateChangesDetected()
90 Files.write("xpto", f, Charsets.US_ASCII); in immediateChangesDetected()
97 Files.write("bar", f, Charsets.US_ASCII); in immediateChangesDetectedEvenWithHackedTs()
103 Files.write("xpto", f, Charsets.US_ASCII); in immediateChangesDetectedEvenWithHackedTs()
111 Files.write("bar", f, Charsets.US_ASCII); in immediateChangesWithNoContentChangeNotDetected()
[all …]
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/
DZFileTest.java91 Files.write(new byte[0], zf); in readExistingEmptyFile()
226 zos.write(new byte[] { 1, 2, 3, 4 });
313 zos.write(new byte[] { 1, 2, 3, 4, 5 });
315 zos.write(new byte[] { 6, 7, 8 });
317 zos.write(new byte[] { 9, 0, 1, 2, 3, 4 });
353 zos.write(new byte[]{1, 2, 3, 4, 5});
355 zos.write(new byte[]{6, 7, 8});
357 zos.write(new byte[]{9, 0, 1, 2, 3, 4});
395 zos.write(new byte[]{1, 2, 3, 4, 5});
397 zos.write(new byte[]{6, 7, 8});
[all …]
DExtraFieldTest.java94 zos.write(new byte[] { 1, 2, 3 }); in readEntryWithNoExtraField()
122 zos.write(new byte[] { 1, 2, 3 }); in readSingleExtraField()
134 segments.get(0).write(ByteBuffer.wrap(segData)); in readSingleExtraField()
169 zos.write(new byte[] { 1, 2, 3 }); in readMultipleExtraFields()
182 segments.get(0).write(ByteBuffer.wrap(segData)); in readMultipleExtraFields()
187 segments.get(1).write(ByteBuffer.wrap(segData)); in readMultipleExtraFields()
192 segments.get(2).write(ByteBuffer.wrap(segData)); in readMultipleExtraFields()
234 s.write(ByteBuffer.wrap(sData)); in addExtraFieldToExistingEntry()
330 s.write(ByteBuffer.wrap(sData)); in updateExtraFieldOfExistingEntry()
/tools/metalava/src/main/java/com/android/tools/metalava/stub/
DJavaStubWriter.kt109 writer.write(",\n") in <lambda>()
127 writer.write(field.name()) in <lambda>()
158 ModifierList.write( in <lambda>()
281 writer.write(", ") in <lambda>()
288 writer.write("(") in <lambda>()
294 writer.write(cast) in <lambda>()
296 writer.write(typeString) in <lambda>()
298 writer.write(")") in <lambda>()
300 writer.write("null") in <lambda>()
305 writer.write("(") in <lambda>()
[all …]
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/metric/
DGameQualificationFpsCollector.java148 outputFile.write("Vsync: " + raw[0] + "\n"); in processRawData()
149 outputFile.write("Latest Seen: " + mLatestSeen + "\n"); in processRawData()
151 outputFile.write(String.format("%20s", "Desired Present Time") + "\t"); in processRawData()
152 outputFile.write(String.format("%20s", "Actual Present Time") + "\t"); in processRawData()
153 outputFile.write(String.format("%20s", "Frame Ready Time") + "\n"); in processRawData()
165 outputFile.write(String.format("%20d", Long.parseLong(parts[0])) + "\t"); in processRawData()
166 outputFile.write(String.format("%20d", Long.parseLong(parts[1])) + "\t"); in processRawData()
167 outputFile.write(String.format("%20d", Long.parseLong(parts[2])) + "\n"); in processRawData()
174 outputFile.write("\n\n"); in processRawData()
205 outputFile.write("Loop " + runIndex + " timestamp: " + startTimestamp + " ns\n"); in processTimestampsSlice()
[all …]
DHistogram.java115 output.write("<".getBytes(StandardCharsets.UTF_8)); in plotAscii()
118 output.write(">".getBytes(StandardCharsets.UTF_8)); in plotAscii()
121 output.write(" ".getBytes(StandardCharsets.UTF_8)); in plotAscii()
129 output.write( in plotAscii()
/tools/treble/split/
Dmanifest_split_test.py32 test_config.write("""
75 repo_list_file.write("""
89 repo_list_file.write("""
110 module_info_file.write("""{
162 module_info_file.write("""{
308 repo_list_file.write("""
321 manifest_file.write("""
336 module_info_file.write("""{
383 config_file.write("""
465 manifest_file.write("""
[all …]
/tools/platform-compat/build/
Dprocess-compat-config-test.py46 self.merger.write(self.xml)
51 self.merger.write(self.xml)
57 self.merger.write(self.xml)
68 self.merger.write(self.xml)
88 self.merger.write(self.xml)
95 self.merger.write(self.xml)
101 self.merger.write(self.xml)
107 self.merger.write(self.xml)
Dprocess_compat_config.py73 self.write_errors_to.write(
79 self.write_errors_to.write(
92 def write(self, filename): member in ConfigMerger
94 self.tree.write(filename, encoding='utf-8', xml_declaration=True)
98 self.strip_config_for_device().write(filename, encoding='utf-8', xml_declaration=True)
139 config.write(args.merged_config)
/tools/treble/build/sandbox/
Doverlay_test.py128 test_config.write(
154 test_config.write(
166 test_allowed_projects.write(
184 test_config.write(
215 test_config.write(
249 test_config.write(
285 test_config.write(
310 test_config.write(
338 test_config.write(
366 test_config.write(
[all …]
Dconfig_test.py93 test_config.write(_TEST_CONFIG_XML)
110 test_config.write(_TEST_CONFIG_XML)
139 test_config.write(_TEST_CONFIG_XML)
165 test_config.write(_TEST_CONFIG_XML)
186 test_config.write(_TEST_CONTEXTS_CONFIG_XML)
228 test_config.write("""<?xml version="1.0" encoding="UTF-8" ?>
258 test_config.write(
287 test_config.write(_TEST_CONFIG_XML)
/tools/asuite/atest/
Dbazel_mode.py430 f.write('package(default_visibility = ["//visibility:public"])\n')
431 f.write('\n')
435 f.write(f'load("{bzl_package}", {symbols_text})\n')
438 f.write('\n')
704 writer.write('files = ')
708 lambda c, _: writer.write(f'glob(["{name}/{c.name}/**/*"])'),
724 writer.write(f'{attribute_name} = ')
887 self.write(text)
889 self._file.write('\n')
892 def write(self, text): member in IndentWriter
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/bits_lib/
Dbits_service.py95 f.write(dmesg.stdout)
100 f.write(free.stdout)
105 f.write(df.stdout)
142 self._output_log.write(line)
143 self._output_log.write('\n')
152 f.write(json.dumps(self.config.config_dic, indent=2))
/tools/apksig/src/main/java/com/android/apksig/internal/jar/
DManifestWriter.java71 out.write(CRLF); in writeSectionDelimiter()
96 out.write(CRLF); in writeLine()
97 out.write(' '); in writeLine()
100 out.write(lineBytes, offset, chunkLength); in writeLine()
105 out.write(CRLF); in writeLine()
/tools/security/remote_provisioning/cert_validator/src/
Dbcc.rs371 _ => write!(f, "{}", label), in write_config_desc_label()
395 write!(f, "Curve: {:?}", crv)?; in fmt()
454 _ => write!(f, "{}", label), in write_payload_label()
461 write!(f, "{}", config_desc) in write_config_desc()
467 write!(f, "{}", subject_public_key) in write_subject_public_key()
474 write!(f, "\"{}\"", text) in write_value()
476 write!(f, "{}", integer) in write_value()
478 write!(f, "{:?}", value) in write_value()
484 write!(f, "{:02x}", b)? in write_bytes_in_hex()
/tools/acloud/internal/lib/
Dota_tools.py166 output_file.write("lpmake=%s\n" % lpmake_path)
170 output_file.write(line)
176 output_file.write("%s_image=%s\n" %
247 output_file.write("%s %s %s\n" % (get_image(split_line[1]),
251 output_file.write(line)
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/power/cellular/
Dcellular_power_base_test.py102 csvfile.write('test,avg_power')
104 csvfile.write('\n{},{}'.format(test_name, value))
115 csvfile.write('band,dl_pathloss, ul_pathloss')
117 csvfile.write('\n{},{},{}'.format(
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/
DAsn1DerEncoder.java301 encodedValue.write(firstByte); in toOid()
314 encodedValue.write(node); in toOid()
318 encodedValue.write(0x80 | (node >> 7)); in toOid()
319 encodedValue.write(node & 0x7f); in toOid()
323 encodedValue.write(0x80 | (node >> 14)); in toOid()
324 encodedValue.write(0x80 | ((node >> 7) & 0x7f)); in toOid()
325 encodedValue.write(node & 0x7f); in toOid()

12345678