Home
last modified time | relevance | path

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

12345678

/tools/repohooks/tools/
Dandroid_test_mapping_format_unittest.py201 f.write(VALID_TEST_MAPPING)
208 f.write(BAD_JSON)
217 f.write(BAD_TEST_WRONG_KEY)
227 f.write(BAD_TEST_WRONG_HOST_VALUE)
237 f.write(BAD_TEST_WRONG_PREFERRED_TARGETS_VALUE_NONE_LIST)
244 f.write(BAD_TEST_WRONG_PREFERRED_TARGETS_VALUE_WRONG_TYPE)
254 f.write(BAD_TEST_WRONG_OPTION)
264 f.write(BAD_IMPORT_WRONG_KEY)
274 f.write(BAD_IMPORT_WRONG_IMPORT_VALUE)
284 f.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/tradefederation/core/python-lib/tradefed_py/
Dtf_runner.py51 self.stream.write('TEST_RUN_STARTED %s\n' % json.dumps(resp))
61 self.stream.write('TEST_STARTED %s\n' % json.dumps(resp))
71 self.stream.write('TEST_ENDED %s\n' % json.dumps(resp))
82 self.stream.write('TEST_FAILED %s\n' % json.dumps(resp))
84 self.stream.write('TEST_ENDED %s\n' % json.dumps(resp))
95 self.stream.write('TEST_IGNORED %s\n' % json.dumps(resp))
97 self.stream.write('TEST_ENDED %s\n' % json.dumps(resp))
108 self.stream.write('TEST_ASSUMPTION_FAILURE %s\n' % json.dumps(resp))
110 self.stream.write('TEST_ENDED %s\n' % json.dumps(resp))
120 self.stream.write('TEST_ASSUMPTION_FAILURE %s\n' % json.dumps(resp))
[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 …]
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()
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 …]
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/asuite/aidegen/lib/
Dclion_project_file_gen.py236 hfile.write(content)
246 hfile.write(_SET_C_COMPILER.format(
248 hfile.write(_SET_CXX_COMPILER.format(
264 hfile.write(_LIST_APPEND_HEADER)
265 hfile.write(_SOURCE_FILES_LINE)
267 hfile.write(''.join([_build_cmake_path(src, ' '), '\n']))
268 hfile.write(_END_WITH_ONE_BLANK_LINE)
296 hfile.write(
315 hfile.write(_FLAGS_DICT[key])
404 hfile.write(_MINI_VERSION_SUPPORT.format(_MINI_VERSION))
[all …]
/tools/tradefederation/core/src/com/android/tradefed/util/
DShellOutputReceiverStream.java41 public void write(int b) { in write() method in ShellOutputReceiverStream
50 public void write(byte[] b) { in write() method in ShellOutputReceiverStream
51 write(b, 0, b.length); in write()
55 public void write(byte[] b, int off, int len) { in write() method in ShellOutputReceiverStream
DSizeLimitedOutputStream.java180 public synchronized void write(int data) throws IOException { in write() method in SizeLimitedOutputStream
184 mCurrentOutputStream.write(data); in write()
191 public synchronized void write(byte[] b, int off, int len) throws IOException { in write() method in SizeLimitedOutputStream
203 mCurrentOutputStream.write(b, off, (int)sizeToWrite); in write()
/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.py31 test_config.write("""
46 repo_list_file.write("""
59 module_info_file.write("""{
80 module_info_file.write("""{
205 repo_list_file.write("""
214 manifest_file.write("""
225 module_info_file.write("""{
264 config_file.write("""
/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/tradefederation/core/tests/src/com/android/tradefed/util/
DFixedByteArrayOutputStreamTest.java53 mOutStream.write(text.getBytes()); in writeTextIntoStreamAndReturn()
103 mOutStream.write(prefix.getBytes()); in testWriteWithWrap()
115 mOutStream.write(text.getBytes(), offset, text.length() - offset); in testLessThanBufferWithOffset()
133 mOutStream.write(prefix.getBytes()); in testWriteWithOffsetAndWrap()
134 mOutStream.write(followup.getBytes(), offset, followup.length() - offset); in testWriteWithOffsetAndWrap()
/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/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/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/
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()
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 …]
/tools/platform-compat/javatest/android/processor/compat/changeid/
DXmlWriterTest.java37 writer.write(mOutputStream); in testNoChanges()
53 writer.write(mOutputStream); in testOneChange()
97 writer.write(mOutputStream); in testSomeChanges()
/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()
/tools/acloud/internal/lib/
Dota_tools.py167 output_file.write("lpmake=%s\n" % lpmake_path)
171 output_file.write(line)
177 output_file.write("%s_image=%s\n" %
249 output_file.write("%s %s %s\n" % (get_image(split_line[1]),
253 output_file.write(line)
/tools/tradefederation/core/test_framework/
DREADME.md3 This is the top-layer provided to write and run tests against.
6 write and execute tests.
/tools/tradefederation/core/src/com/android/tradefed/log/
DConsoleReaderOutputStream.java110 public synchronized void write(byte[] b, int off, int len) throws IOException { in write() method in ConsoleReaderOutputStream
135 public synchronized void write(int b) throws IOException { in write() method in ConsoleReaderOutputStream

12345678