Home
last modified time | relevance | path

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

1234567

/tools/repohooks/tools/
Dandroid_test_mapping_format_unittest.py202 file.write(_VALID_TEST_MAPPING)
209 file.write(_BAD_JSON)
218 file.write(_BAD_TEST_WRONG_KEY)
228 file.write(_BAD_TEST_WRONG_HOST_VALUE)
238 file.write(_BAD_TEST_WRONG_PREFERRED_TARGETS_VALUE_NONE_LIST)
245 file.write(_BAD_TEST_WRONG_PREFERRED_TARGETS_VALUE_WRONG_TYPE)
255 file.write(_BAD_TEST_WRONG_OPTION)
265 file.write(_BAD_IMPORT_WRONG_KEY)
275 file.write(_BAD_IMPORT_WRONG_IMPORT_VALUE)
285 file.write(_BAD_FILE_PATTERNS)
[all …]
/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/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 …]
/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/platform-compat/build/
Dprocess-compat-config-test.py47 self.merger.write(self.xml)
52 self.merger.write(self.xml)
58 self.merger.write(self.xml)
69 self.merger.write(self.xml)
89 self.merger.write(self.xml)
96 self.merger.write(self.xml)
102 self.merger.write(self.xml)
108 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/split/
Dmanifest_split_test.py32 test_config.write("""
75 repo_list_file.write("""
89 repo_list_file.write("""
110 module_info_file.write("""{
161 module_info_file.write("""{
305 repo_list_file.write("""
318 manifest_file.write("""
333 module_info_file.write("""{
380 config_file.write("""
462 manifest_file.write("""
[all …]
/tools/treble/build/sandbox/
Dconfig_test.py92 test_config.write(_TEST_CONFIG_XML)
109 test_config.write(_TEST_CONFIG_XML)
138 test_config.write(_TEST_CONFIG_XML)
164 test_config.write(_TEST_CONFIG_XML)
189 test_config.write(_TEST_CONTEXTS_CONFIG_XML)
231 test_config.write("""<?xml version="1.0" encoding="UTF-8" ?>
261 test_config.write(
290 test_config.write(_TEST_CONFIG_XML)
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 …]
Drbe.py151 t.write(w + '\n')
161 new_conf.write(new_conf_contents)
162 new_conf.write('\nPort %i\n' % port)
/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()
DZipMergeTest.java100 fooOut.write(wBytes); in mergeZipWithDeferredCrc()
132 fooOut.write(wBytes); in mergeZipKeepsDeflatedAndStored()
138 fooOut.write(lBytes); in mergeZipKeepsDeflatedAndStored()
180 fooOut.write(wBytes); in mergeZipWithSorting()
186 fooOut.write(lBytes); in mergeZipWithSorting()
/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/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/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/util/
DOutputStreamDataSink.java53 mOut.write(buf, offset, length); in consume()
63 mOut.write( in consume()
73 mOut.write(tmp, 0, chunkSize); in consume()
/tools/acloud/internal/lib/
Dota_tools.py203 output_file.write(b("lpmake=%s\n" % lpmake_path))
207 output_file.write(b(line))
213 output_file.write(b("%s_image=%s\n" %
285 output_file.write(b("%s %s %s\n" % (get_image(split_line[1]),
289 output_file.write(b(line))
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
DFatFile.java144 public void write(long offset, ByteBuffer srcBuf) in write() method in FatFile
160 private void updateTimeStamps(boolean write) { in updateTimeStamps() argument
164 if (write) { in updateTimeStamps()
DAbstractDirectory.java87 protected abstract void write(ByteBuffer data) throws IOException; in write() method in AbstractDirectory
221 entry.write(data); in flush()
231 labelEntry.write(data); in flush()
240 write(data); in flush()
/tools/platform-compat/javatest/android/processor/compat/changeid/
DXmlWriterTest.java37 writer.write(mOutputStream); in testNoChanges()
53 writer.write(mOutputStream); in testOneChange()
104 writer.write(mOutputStream); in testSomeChanges()
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/ber/
DInputStreamBerDataValueReader.java253 mBuf.write(b); in read()
262 mBuf.write(b, 0, len); in read()
271 mBuf.write(b, off, len); in read()
285 mBuf.write(buf, 0, len); in skip()
/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()

1234567