/external/jmdns/src/javax/jmdns/impl/ |
DNSRecord.java | 89 abstract DNSOutgoing addAnswer(JmDNSImpl dns, DNSIncoming in, InetAddress addr, int port, DNSOutgoing out) throws IOException; 171 abstract void write(MessageOutputStream out); 184 void write(MessageOutputStream out) { 197 out.writeBytes(buffer, 0, length); 226 void write(MessageOutputStream out) { 242 out.writeBytes(buffer, 0, length); 384 DNSOutgoing addAnswer(JmDNSImpl dns, DNSIncoming in, InetAddress addr, int port, DNSOutgoing out) throws IOException { 385 return out; 444 void write(MessageOutputStream out) { 445 out.writeName(_alias) [all...] |
/external/libgdx/extensions/gdx-setup/src/com/badlogic/gdx/setup/ |
GdxSetup.java | 243 System.out.println("Android SDK location '" + sdkLocation + "' doesn't contain an SDK");
373 File out = new File(outputDir);
local 374 if (!out.exists() && !out.mkdirs()) {
375 throw new RuntimeException("Couldn't create output directory '" + out.getAbsolutePath() + "'");
379 copyFile(file, out, values);
444 OutputStream out = null;
local 447 out = new BufferedOutputStream(new FileOutputStream(outFile));
448 out.write(bytes);
452 if (out != null) try { [all...] |
/external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/hiero/ |
Kerning.java | 356 ByteArrayOutputStream out = new ByteArrayOutputStream();
local 360 out.write(buffer, 0, numRead);
362 return out.toByteArray();
|
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/ |
PixmapIO.java | 59 * pixmap vertically, and to write out multiple PNGs with minimal allocation. */
81 DataOutputStream out = null;
local 86 out = new DataOutputStream(deflaterOutputStream);
87 out.writeInt(pixmap.getWidth());
88 out.writeInt(pixmap.getHeight());
89 out.writeInt(Format.toGdx2DPixmapFormat(pixmap.getFormat()));
101 out.write(writeBuffer);
105 out.write(writeBuffer, 0, remainingBytes);
115 StreamUtils.closeQuietly(out);
174 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN [all...] |
/external/mockwebserver/src/main/java/com/google/mockwebserver/ |
MockWebServer.java | 284 serverSocket.close(); // should cause acceptConnections() to break out 327 OutputStream out = new BufferedOutputStream(socket.getOutputStream()); 329 while (processOneRequest(socket, in, out)) { 337 out.close(); 360 private boolean processOneRequest(Socket socket, InputStream in, OutputStream out) 362 RecordedRequest request = readRequest(socket, in, out, sequenceNumber); 373 writeResponse(out, response); 393 out.close(); 428 private RecordedRequest readRequest(Socket socket, InputStream in, OutputStream out, 462 out.write(("HTTP/1.1 100 Continue\r\n").getBytes(StandardCharsets.US_ASCII)) [all...] |
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/ |
MockSpdyPeer.java | 138 // Bail out now if this instance was closed while waiting for the socket to accept. 146 OutputStream out = socket.getOutputStream(); local 174 out.write(outBytes, (int) start, length);
|
/frameworks/base/core/tests/coretests/src/android/net/ |
NetworkStatsHistoryTest.java | 387 final ByteArrayOutputStream out = new ByteArrayOutputStream(); local 388 before.writeToStream(new DataOutputStream(out)); 389 out.close(); 391 final ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray()); 495 final ByteArrayOutputStream out = new ByteArrayOutputStream(); local 496 writeVarLong(new DataOutputStream(out), before); 498 final ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray());
|
/frameworks/base/obex/javax/obex/ |
ServerOperation.java | 30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 119 * @param out the output stream to write to 366 ByteArrayOutputStream out = new ByteArrayOutputStream(); local 435 out.write(headerArray); 486 out.write(0x49); 488 out.write((byte)(bodyLength >> 8)); 489 out.write((byte)bodyLength); 490 out.write(body); 494 out.write(0x48); 496 out.write((byte)(bodyLength >> 8)) [all...] |
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/services/ |
CopyJob.java | 450 ParcelFileDescriptor.AutoCloseOutputStream out = null; local 487 out = new ParcelFileDescriptor.AutoCloseOutputStream(dstFile); 497 out.write(buffer, 0, len); 536 IoUtils.closeQuietly(out);
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
PackageManagerBackupAgent.java | 285 // metadata again. In either case, take it out of mExisting so that 435 private static void writeSignatureHashArray(DataOutputStream out, ArrayList<byte[]> hashes) 438 out.writeInt(hashes.size()); 442 out.writeInt(buffer.length); 443 out.write(buffer); 494 // Util: parse out an existing state file into a usable structure 581 // Util: write out our new backup state file 586 DataOutputStream out = new DataOutputStream(outbuf); local 591 out.writeUTF(STATE_FILE_HEADER); 592 out.writeInt(STATE_FILE_VERSION) [all...] |
/frameworks/data-binding/compilationTests/src/test/java/android/databinding/compilationTest/ |
BaseCompilationTest.java | 166 StringBuilder out = new StringBuilder(contents.length()); local 172 out.append(contents, location, start); 177 out.append(replacement); 182 out.append(contents, location, contents.length()); 185 FileUtils.writeStringToFile(targetFile, out.toString());
|
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/ |
RecurrenceProcessorTest.java | 38 String[] out = new String[dates.length]; local 42 out[i] = time.format2445(); 45 return out; 48 private static void printLists(String[] expected, String[] out) { 49 Log.i(TAG, " expected out"); 51 for (i = 0; i < expected.length && i < out.length; i++) { 53 + " " + out[i]); 58 for (; i < out.length; i++) { 59 Log.i(TAG, " [" + i + "] " + out[i]); 109 long[] out = rp.expand(dtstart, recur, rangeStart.toMillis(false /* use isDst */) local 2458 TreeSet<Long> out = new TreeSet<Long>(); local [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
OutputStreamWriterTest.java | 40 private ByteArrayOutputStream out; field in class:OutputStreamWriterTest 63 out = new ByteArrayOutputStream(); 64 writer = new OutputStreamWriter(out, "utf-8"); 103 String result = out.toString("utf-8"); 161 assertEquals("hi", out.toString("utf-8")); 164 assertEquals("hi" + source, out.toString("utf-8")); 182 String str = new String(out.toByteArray(), "utf-8"); 187 str = new String(out.toByteArray(), "utf-8"); 192 str = new String(out.toByteArray(), "utf-8"); 197 str = new String(out.toByteArray(), "utf-8") 643 OutputStreamWriter out = new OutputStreamWriter( local [all...] |
PipedInputStreamTest.java | 38 e.printStackTrace(System.out); 39 System.out.println("Could not write bytes"); 332 PipedOutputStream out; field in class:PipedInputStreamTest.Worker 335 this.out = pos; 340 out.write(20); 341 out.close(); 350 PipedOutputStream out = new PipedOutputStream(); local 351 in.connect(out); 352 Thread worker = new Worker(out); 362 out.close() [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
ControlTest.java | 392 Writer out = new FileWriter(copy); local 395 out.write(c); 398 out.close();
|
/libcore/luni/src/test/java/tests/security/cert/ |
X509CRLSelector2Test.java | 561 DerOutputStream out = new DerOutputStream(); local 563 out.putOctetString((new CRLNumberExtension(crlNumber)).getExtensionValue()); 567 return out.toByteArray();
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
X509CertInfo.java | 176 * @param out an output stream to which the certificate is appended. 180 public void encode(OutputStream out) 187 out.write(rawCertInfo.clone()); 328 DerOutputStream out = new DerOutputStream(); local 329 out.putOctetString(extValue); 330 extValue = out.toByteArray(); 754 private void emit(DerOutputStream out) 798 out.write(DerValue.tag_Sequence, tmp); [all...] |
/packages/apps/Camera2/src/com/android/camera/ |
Storage.java | 354 FileOutputStream out = null; local 356 out = new FileOutputStream(path); 357 out.write(data); 363 out.close();
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
AttachmentUtilities.java | 385 private static long copyFile(InputStream in, OutputStream out) throws IOException { 386 long size = IOUtils.copy(in, out); 388 out.flush(); 389 out.close();
|
/packages/apps/Email/provider_src/com/android/email/ |
LegacyConversions.java | 334 FileOutputStream out = null; local 338 out = new FileOutputStream(saveAs); 339 copySize = IOUtils.copyLarge(in, out); 344 if (out != null) { 345 out.close();
|
/packages/apps/Email/tests/src/com/android/emailcommon/internet/ |
MimeMessageTest.java | 415 ByteArrayOutputStream out = new ByteArrayOutputStream(); local 416 message.writeTo(out); 417 out.close(); 424 byte[] actual = out.toByteArray(); 434 * The lines up to Content-Type were copied directly out of RFC 2822
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
Attachment.java | 268 final OutputStream out = resolver.openOutputStream(uri, "rwt"); local 269 size = IOUtils.copy(in, out); 272 out.close();
|
/system/extras/verity/ |
Utils.java | 295 FileOutputStream out = new FileOutputStream(fname); local 296 out.write(data); 297 out.close();
|
/art/test/005-annotations/src/android/test/anno/ |
TestAnnotations.java | 40 System.out.println(prefix + " " + a); 41 System.out.println(prefix + " " + a.annotationType()); 50 System.out.println("annotations on TYPE " + clazz + 53 System.out.println(); 57 System.out.println(" annotations on CTOR " + c + ":"); 60 System.out.println(" constructor parameter annotations:"); 68 System.out.println(" annotations on METH " + m + ":"); 71 System.out.println(" method parameter annotations:"); 79 System.out.println(" annotations on FIELD " + f + ":"); 85 System.out.println(" aff: " + aff + " / " + Proxy.isProxyClass(aff.getClass())) [all...] |
/art/test/020-string/src/ |
Main.java | 37 System.out.println("testStr is '" + testStr + "'"); 41 System.out.print(testStr.charAt(i)); 42 System.out.print("\n"); 46 System.out.println("WARNING: stringTest length mismatch"); 48 System.out.println("Compare result is " + testStr.compareTo(testStr2)); 53 System.out.println("Compare unicode: " + s1.compareTo(s2)); 57 System.out.println("GLITCH: expected exception"); 59 System.out.println("Got expected exception"); 68 System.out.println("subStr is '" + subStr + "'"); 70 System.out.println("Indexes are: " [all...] |