/libcore/luni/src/test/java/libcore/java/io/ |
OldByteArrayOutputStreamTest.java | 34 ByteArrayOutputStream bos = null; field in class:OldByteArrayOutputStreamTest 39 bos = new java.io.ByteArrayOutputStream(100); 40 assertEquals("Test 1: Failed to create stream;", 0, bos.size()); 43 bos = new ByteArrayOutputStream(-1); 51 bos = new ByteArrayOutputStream(); 53 bos.write(fileString.getBytes(), 0, fileString.length()); 55 bos.toString("8859_1").equals(fileString)); 57 bos.toString("8859_2").equals(fileString)); 60 bos.toString("NotAnEcoding"); 69 bos = new ByteArrayOutputStream() [all...] |
OldOutputStreamTest.java | 54 BasicOutputStream bos = new BasicOutputStream(); local 59 bos.write(shortByteArray); 65 buffer = bos.getBuffer(); 73 bos.write(longByteArray); 79 BasicOutputStream bos = new BasicOutputStream(); local 84 bos.write(shortByteArray, 6, 5); 90 buffer = bos.getBuffer(); 98 bos.write(longByteArray, 5, 20); 103 bos.write(longByteArray, -1, 10); 112 bos.write(longByteArray, 10, -1) [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
ByteArrayOutputStreamTest.java | 35 ByteArrayOutputStream bos = null; field in class:ByteArrayOutputStreamTest 45 bos.close(); 55 bos = new ByteArrayOutputStream(100); 56 assertEquals("Failed to create stream", 0, bos.size()); 63 bos = new ByteArrayOutputStream(); 64 assertEquals("Failed to create stream", 0, bos.size()); 80 * java.io.ByteArrayOutputStream bos = new 81 * java.io.ByteArrayOutputStream(); bos.write (fileString.getBytes(), 0, 82 * 100); try { bos.close(); } catch (java.io.IOException e) { 83 * fail("IOException closing stream"); } try { bos.writ 128 ByteArrayOutputStream bos = new ByteArrayOutputStream(); local 144 ByteArrayOutputStream bos = new ByteArrayOutputStream(); local 155 ByteArrayOutputStream bos = new ByteArrayOutputStream(); local 176 ByteArrayOutputStream bos = new ByteArrayOutputStream(); local 201 ByteArrayOutputStream bos = new ByteArrayOutputStream(); local [all...] |
FilterOutputStreamTest.java | 32 ByteArrayOutputStream bos; field in class:FilterOutputStreamTest 44 bos = new ByteArrayOutputStream(); 45 os = new FilterOutputStream(bos); 53 bos = new ByteArrayOutputStream(); 54 os = new FilterOutputStream(bos); 57 assertEquals("Bytes not written after flush", 500, bos.size()); 65 bos = new ByteArrayOutputStream(); 66 os = new FilterOutputStream(bos); 69 assertEquals("Bytes not written after flush", 500, bos.size()); 77 bos = new ByteArrayOutputStream() [all...] |
BufferedOutputStreamTest.java | 150 BufferedOutputStream bos = new BufferedOutputStream(mos, 3); local 151 bos.write("a".getBytes()); 152 bos.write("bcde".getBytes()); 156 bos = new BufferedOutputStream(mos, 3); 157 bos.write("ab".getBytes()); 158 bos.write("cd".getBytes()); 166 OutputStream bos = new BufferedOutputStream(new ByteArrayOutputStream()); local 171 bos.write(nullByteArray, -1, -1); 178 bos.write(nullByteArray, -1, 0); 185 bos.write(nullByteArray, -1, 1) 355 OutputStream bos = new BufferedOutputStream(null); local 426 OutputStream bos = new BufferedOutputStream(null, 1); local 497 BufferedOutputStream bos = new BufferedOutputStream(null); local 565 BufferedOutputStream bos = new BufferedOutputStream(null, 1); local 826 BufferedOutputStream bos = new BufferedOutputStream(new ByteArrayOutputStream()); local [all...] |
PrintStreamTest.java | 42 ByteArrayOutputStream bos = new ByteArrayOutputStream(); field in class:PrintStreamTest 119 PrintStream os = new PrintStream(bos); 125 os = new PrintStream(bos, true, null); 136 PrintStream os = new PrintStream(bos); 139 assertTrue("Bytes not written", bos.size() > 0); 156 ByteArrayOutputStream bos = new ByteArrayOutputStream(); local 157 PrintStream printStream = new PrintStream(bos, true /* autoFlush */, "utf-8"); 161 bos.toByteArray()); 165 ByteArrayOutputStream bos = new ByteArrayOutputStream(); local 166 PrintStream printStream = new PrintStream(bos, true /* autoFlush */, "utf-16") [all...] |
ObjectOutputStream2Test.java | 48 ByteArrayOutputStream bos = new ByteArrayOutputStream(); local 49 ObjectOutputStream os = new ObjectOutputStream(bos); 53 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
|
/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/util/ |
EnvironmentHelper.java | 37 ByteArrayOutputStream bos = null; local 39 bos = new ByteArrayOutputStream(); 40 p.store(bos, ""); 41 return new ByteArrayInputStream(bos.toByteArray()); 47 bos.close();
|
/bionic/libc/include/bits/fortify/ |
unistd.h | 75 size_t bos = __bos(buf); local 77 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) { 81 return __getcwd_chk(buf, size, bos); 91 size_t bos = __bos0(buf); local 97 return __PREAD_PREFIX(chk)(fd, buf, count, offset, bos); 105 size_t bos = __bos0(buf); local 107 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) { 111 return __pread64_chk(fd, buf, count, offset, bos); 121 size_t bos = __bos0(buf); local 123 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) 135 size_t bos = __bos0(buf); local 151 size_t bos = __bos0(buf); local 167 size_t bos = __bos0(buf); local 183 size_t bos = __bos(buf); local 197 size_t bos = __bos(buf); local 239 size_t bos = __bos(buf); variable 260 size_t bos = __bos0(buf); local 283 size_t bos = __bos0(buf); local 308 size_t bos = __bos0(buf); local 331 size_t bos = __bos0(buf); local 356 size_t bos = __bos0(buf); local 381 size_t bos = __bos0(buf); local 402 size_t bos = __bos(buf); local 425 size_t bos = __bos(buf); local [all...] |
string.h | 111 size_t bos = __bos(s); 113 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) { 117 return __memchr_chk(s, c, n, bos); 122 size_t bos = __bos(s); 124 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) { 128 return __memrchr_chk(s, c, n, bos); 165 size_t bos = __bos(dst); 167 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) { 171 return __strlcpy_chk(dst, src, size, bos); 176 size_t bos = __bos(dst) [all...] |
stdlib.h | 54 size_t bos = __bos(resolved); 56 if (bos != __BIONIC_FORTIFY_UNKNOWN_SIZE && bos < __PATH_MAX) {
|
socket.h | 49 size_t bos = __bos0(buf); 51 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) { 54 return __recvfrom_chk(fd, buf, len, bos, flags, src_addr, addr_len); 64 size_t bos = __bos0(buf); 66 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) { 69 return __sendto_chk(fd, buf, len, bos, flags, dest_addr, addr_len); 101 size_t bos = __bos0(buf); 103 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) { 107 if (__builtin_constant_p(len) && (len <= bos)) { 111 if (__builtin_constant_p(len) && (len > bos)) { [all...] |
stdio.h | 102 size_t bos = __bos0(buf); 104 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) { 107 return __fread_chk(buf, size, count, stream, bos); 117 size_t bos = __bos0(buf); variable 119 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) { 123 return __fwrite_chk(buf, size, count, stream, bos); 134 size_t bos = __bos(dest); variable 136 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) { 140 return __fgets_chk(dest, size, stream, bos); 174 size_t bos = __bos0(buf) local 198 size_t bos = __bos0(buf); local 224 size_t bos = __bos(dest); local [all...] |
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/ |
CdmaSmsCbTest.java | 87 BitwiseOutputStream bos = new BitwiseOutputStream(10); local 88 bos.write(8, SUBPARAM_MESSAGE_IDENTIFIER); 89 bos.write(8, 3); // length: 3 bytes 90 bos.write(4, BearerData.MESSAGE_TYPE_DELIVER); 91 bos.write(8, ((messageId >>> 8) & 0xff)); 92 bos.write(8, (messageId & 0xff)); 93 bos.write(1, 0); // no User Data Header 94 bos.write(3, 0); // reserved 97 bos.write(8, SUBPARAM_PRIORITY_INDICATOR); 98 bos.write(8, 1); // length: 1 byt 166 BitwiseOutputStream bos = createBearerDataStream(messageId, priority, language); local 192 BitwiseOutputStream bos = createBearerDataStream(messageId, priority, language); local 572 BitwiseOutputStream bos = createBearerDataStream(r.nextInt(65536), r.nextInt(4), local 620 BitwiseOutputStream bos = createBearerDataStream(123, -1, -1); local 662 BitwiseOutputStream bos = createBearerDataStream(456, -1, -1); local [all...] |
/external/annotation-tools/asmx/test/conform/org/objectweb/asm/xml/ |
SAXAdapterTest.java | 57 ByteArrayOutputStream bos = new ByteArrayOutputStream(); local 61 handler.setResult(new SAXResult(new ASMContentHandler(bos, false))); 66 assertEquals(cr, new ClassReader(bos.toByteArray()));
|
SAXAdapterTest.class | |
/external/caliper/examples/src/main/java/examples/ |
CompressionSizeBenchmark.java | 73 ByteArrayOutputStream bos = new ByteArrayOutputStream(); local 77 bos.write(buf, 0, count); 80 bos.close(); 83 return bos.toByteArray();
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
UiAutomatorBridge.java | 113 BufferedOutputStream bos = null; local 115 bos = new BufferedOutputStream(new FileOutputStream(storePath)); 116 if (bos != null) { 117 screenshot.compress(Bitmap.CompressFormat.PNG, quality, bos); 118 bos.flush(); 124 if (bos != null) { 126 bos.close();
|
/external/libdrm/radeon/ |
radeon_cs_space.c | 129 ret = radeon_cs_setup_bo(&cs->bos[i], &sizes); 159 bo = cs->bos[i].bo; 160 bo->space_accounted = cs->bos[i].new_accounted; 176 if (csi->bos[i].bo == boi && 177 csi->bos[i].read_domains == read_domains && 178 csi->bos[i].write_domain == write_domain) 183 csi->bos[i].bo = boi; 184 csi->bos[i].read_domains = read_domains; 185 csi->bos[i].write_domain = write_domain; 186 csi->bos[i].new_accounted = 0 [all...] |
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
DigestOutputStreamTest.java | 148 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); local 149 DigestOutputStream dos = new DigestOutputStream(bos, md); 154 assertTrue("write", Arrays.equals(MDGoldenData.getMessage(), bos.toByteArray())); 180 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); local 181 DigestOutputStream dos = new DigestOutputStream(bos, md); 191 assertTrue("write", Arrays.equals(MDGoldenData.getMessage(), bos.toByteArray())); 264 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); local 265 DigestOutputStream dos = new DigestOutputStream(bos, null); 273 assertTrue(Arrays.equals(MDGoldenData.getMessage(), bos.toByteArray())); 286 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN) local 319 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); local 356 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); local 397 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); local 486 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); local 524 ByteArrayOutputStream bos = new ByteArrayOutputStream(MY_MESSAGE_LEN); local [all...] |
/packages/apps/TV/src/com/android/tv/data/ |
InternalDataUtils.java | 77 ByteArrayOutputStream bos = new ByteArrayOutputStream(); local 78 try (ObjectOutputStream out = new ObjectOutputStream(bos)) { 82 return bos.toByteArray(); 123 ByteArrayOutputStream bos = new ByteArrayOutputStream(); local 124 try (ObjectOutputStream out = new ObjectOutputStream(bos)) { 127 return bos.toByteArray();
|
/external/ksoap2/ksoap2-base/src/main/java/org/ksoap2/transport/ |
Transport.java | 124 ByteArrayOutputStream bos = new ByteArrayOutputStream(bufferLength); local 126 bos.write(xmlVersionTag.getBytes()); 127 System.out.println("bos.write"); 130 xw.setOutput(bos, encoding); 135 bos.write('\r'); 136 bos.write('\n'); 137 bos.flush(); 138 result = bos.toByteArray(); 140 bos = null;
|
/external/droiddriver/src/io/appium/droiddriver/base/ |
BaseUiDevice.java | 96 BufferedOutputStream bos = null; local 98 bos = FileUtils.open(path); 99 screenshot.compress(format, quality, bos); 105 if (bos != null) { 107 bos.close();
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
DumpDatabaseAction.java | 55 BufferedOutputStream bos = null; local 67 bos = new BufferedOutputStream(new FileOutputStream(outFile)); 73 bos.write(buffer, 0, bytesRead); 80 if (bos != null) { 82 bos.close();
|
/external/libdrm/etnaviv/ |
etnaviv_cmd_stream.c | 134 idx = APPEND(&priv->submit, bos); 135 idx = APPEND(priv, bos); 137 priv->submit.bos[idx].flags = 0; 138 priv->submit.bos[idx].handle = bo->handle; 140 priv->bos[idx] = etna_bo_ref(bo); 163 if (priv->bos[idx] == bo) 173 priv->submit.bos[idx].flags |= ETNA_SUBMIT_BO_READ; 175 priv->submit.bos[idx].flags |= ETNA_SUBMIT_BO_WRITE; 189 .bos = VOID2U64(priv->submit.bos), [all...] |