/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 | 280 final OutputStream out = resolver.openOutputStream(uri, "rwt"); local 281 size = IOUtils.copy(in, out); 284 out.close();
|
/system/extras/verity/ |
Utils.java | 295 FileOutputStream out = new FileOutputStream(fname); local 296 out.write(data); 297 out.close();
|
/tools/tradefederation/core/prod-tests/src/com/android/framework/tests/ |
BandwidthMicroBenchMarkTest.java | 141 // Collect bandwidth metrics from the instrumentation test out. 331 BufferedWriter out = null; local 336 out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(filteredEventLog))); 341 out.write(str); 345 out.flush(); 354 StreamUtil.close(out);
|
/art/compiler/optimizing/ |
ssa_liveness_analysis.cc | 55 if (locations != nullptr && locations->Out().IsValid()) { 73 if (locations != nullptr && locations->Out().IsValid()) { 113 bool has_out_location = input->GetLocations()->Out().IsValid(); 213 DCHECK(!current->GetLocations()->Out().IsValid()); 438 Location out = locations->Out(); local 439 if (out.IsUnallocated() && out.GetPolicy() == Location::kSameAsFirstInput) { 503 return defined_by->GetLocations()->Out();
|
/art/runtime/mirror/ |
string.cc | 115 uint8_t* out = string->value_compressed_; local 117 std::transform(src->value_compressed_, src->value_compressed_ + length, out, replace); 119 std::transform(src->value_, src->value_ + length, out, replace); 121 DCHECK(kUseStringCompression && AllASCII(out, length)); 126 uint16_t* out = string->value_; local 128 std::transform(src->value_compressed_, src->value_compressed_ + length, out, replace); 130 std::transform(src->value_, src->value_ + length, out, replace); 132 DCHECK(!kUseStringCompression || !AllASCII(out, length));
|
/art/runtime/ |
native_stack_dump.cc | 76 : in(in_fd, false), out(out_fd, false), file(file_name), child_pid(pid), odd(true) {} 83 File out; // The file descriptor that is connected to the input of addr2line. member in struct:art::Addr2linePipe 252 if (!pipe_ptr->out.WriteFully(hex_offset.data(), hex_offset.length())) { 312 // Try to run it to see whether we have it. Push an argument so that it doesn't assume a.out 373 // There's no point showing that we're reading our stack out of /proc!
|
/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"); 50 System.out.println("Compare result is greater than zero"); 52 System.out.println("Compare result is equal to zero"); 54 System.out.println("Compare result is less than zero"); 60 System.out.println("Compare unicode: " + s1.compareTo(s2)); 64 System.out.println("GLITCH: expected exception"); 66 System.out.println("Got expected exception") [all...] |
/art/test/122-npe/src/ |
Main.java | 555 System.out.print("Got to line "); 556 System.out.print(firstLine); 557 System.out.println();
|
/art/test/141-class-unload/src/ |
Main.java | 53 e.printStackTrace(System.out); 70 System.out.println(line); 74 System.out.println("Number of loaded unload-ex maps " + count); 102 System.out.println(klass.get()); 103 System.out.println(klass2.get()); 112 System.out.println(loader.get()); 124 System.out.println("class null " + isNull + " " + throwable.getMessage()); 132 System.out.println(loader.get()); 162 System.out.println("loader null " + isNull); 173 System.out.println((int) getValue.invoke(intHolder)) [all...] |
/art/test/626-const-class-linking/src/ |
Main.java | 32 System.out.println("JNI_OnLoad called"); 57 System.out.println("test1 disappeared"); 61 System.out.println("test2 disappeared"); 64 System.out.println("test1 != test2"); 67 System.out.println("testClearDexCache done"); 85 System.out.println("test1 disappeared"); 89 System.out.println("test2 disappeared"); 92 System.out.println("test1 != test2"); 95 System.out.println("testMultiDex done"); 115 System.out.println(ite.getCause().getClass().getName() + ": " + message) [all...] |
/bionic/tests/ |
time_test.cpp | 622 timespec out; local 623 ASSERT_EQ(EINVAL, clock_nanosleep(-1, 0, &in, &out));
|
/bootable/recovery/ |
fuse_sideload.cpp | 124 struct fuse_init_out out; local 139 out.minor = MIN(req->minor, FUSE_KERNEL_MINOR_VERSION); 140 fuse_struct_size = sizeof(out); 152 out.major = FUSE_KERNEL_VERSION; 153 out.max_readahead = req->max_readahead; 154 out.flags = 0; 155 out.max_background = 32; 156 out.congestion_threshold = 32; 157 out.max_write = 4096; 158 fuse_reply(fd, hdr->unique, &out, fuse_struct_size) 178 struct fuse_attr_out out; local 198 struct fuse_entry_out out; local 225 struct fuse_open_out out; local [all...] |
/cts/apps/VpnApp/src/com/android/cts/vpnfirewall/ |
Ipv4Packet.java | 124 StringBuilder out = new StringBuilder(256); local 126 out.append("IPv4 Packet {"); 127 out.append("\n Version: ").append(version); 128 out.append("\n Header length: ").append(headerLength); 129 out.append("\n Type: ").append(type); 130 out.append("\n Total length: ").append(totalLength); 131 out.append("\n Identification: ").append(identification); 132 out.append("\n Flags + offset: ").append(flagsAndOffset); 133 out.append("\n Time to live: ").append(timeToLive); 134 out.append("\n Protocol: ").append(protocol) [all...] |
/cts/hostsidetests/appsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/ |
Utils.java | 208 public static int copy(InputStream in, OutputStream out) throws IOException { 214 out.write(buffer, 0, c);
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
RectFTest.java | 495 Parcel out = Parcel.obtain(); local 496 rectOut.writeToParcel(out, 0); 497 out.setDataPosition(0); 499 rectIn.readFromParcel(out);
|