HomeSort by relevance Sort by last modified time
    Searched refs:bos (Results 1 - 25 of 328) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /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 34 ByteArrayOutputStream bos = new ByteArrayOutputStream(); field in class:PrintStreamTest
100 PrintStream os = new PrintStream(bos);
106 os = new PrintStream(bos, true, null);
117 PrintStream os = new PrintStream(bos);
120 assertTrue("Bytes not written", bos.size() > 0);
175 PrintStream os = new PrintStream(bos);
177 bos.close();
185 PrintStream os = new PrintStream(bos);
188 assertEquals("Bytes not written after flush", 501, bos.size());
189 bos.close()
    [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();
  /frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/
CdmaSmsCbTest.java 89 BitwiseOutputStream bos = new BitwiseOutputStream(10); local
90 bos.write(8, SUBPARAM_MESSAGE_IDENTIFIER);
91 bos.write(8, 3); // length: 3 bytes
92 bos.write(4, BearerData.MESSAGE_TYPE_DELIVER);
93 bos.write(8, ((messageId >>> 8) & 0xff));
94 bos.write(8, (messageId & 0xff));
95 bos.write(1, 0); // no User Data Header
96 bos.write(3, 0); // reserved
99 bos.write(8, SUBPARAM_PRIORITY_INDICATOR);
100 bos.write(8, 1); // length: 1 byt
171 BitwiseOutputStream bos = createBearerDataStream(messageId, priority, language); local
197 BitwiseOutputStream bos = createBearerDataStream(messageId, priority, language); local
575 BitwiseOutputStream bos = createBearerDataStream(r.nextInt(65536), r.nextInt(4), local
625 BitwiseOutputStream bos = createBearerDataStream(123, -1, -1); local
667 BitwiseOutputStream bos = createBearerDataStream(456, -1, -1); local
    [all...]
  /bionic/libc/include/
string.h 150 size_t bos = __bos(s); local
153 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) {
157 if (__builtin_constant_p(n) && (n > bos)) {
161 if (__builtin_constant_p(n) && (n <= bos)) {
166 return __memchr_chk(s, c, n, bos);
171 size_t bos = __bos(s); local
174 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) {
178 if (__builtin_constant_p(n) && (n > bos)) {
182 if (__builtin_constant_p(n) && (n <= bos)) {
187 return __memrchr_chk(s, c, n, bos);
269 size_t bos = __bos(dest); local
290 size_t bos = __bos(dest); local
310 size_t bos = __bos(s); local
329 size_t bos = __bos(s); local
348 size_t bos = __bos(s); local
    [all...]
unistd.h 299 size_t bos = __bos(buf); local
309 bos = __BIONIC_FORTIFY_UNKNOWN_SIZE;
312 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) {
316 if (__builtin_constant_p(size) && (size > bos)) {
320 if (__builtin_constant_p(size) && (size <= bos)) {
325 return __getcwd_chk(buf, size, bos);
336 size_t bos = __bos0(buf); local
343 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) {
347 if (__builtin_constant_p(count) && (count > bos)) {
351 if (__builtin_constant_p(count) && (count <= bos)) {
361 size_t bos = __bos0(buf); local
392 size_t bos = __bos0(buf); local
417 size_t bos = __bos0(buf); local
442 size_t bos = __bos0(buf); local
467 size_t bos = __bos0(buf); local
494 size_t bos = __bos(buf); local
519 size_t bos = __bos(buf); local
    [all...]
  /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/droiddriver/src/io/appium/droiddriver/base/
BaseUiDevice.java 90 BufferedOutputStream bos = null; local
92 bos = FileUtils.open(path);
93 screenshot.compress(format, quality, bos);
99 if (bos != null) {
101 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...]
  /development/ndk/platforms/android-21/include/
string.h 189 size_t bos = __bos(dest); local
193 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) {
199 if (__builtin_constant_p(size) && (size <= bos)) {
204 return __strlcpy_chk(dest, src, size, bos);
214 size_t bos = __bos(dest); local
218 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) {
224 if (__builtin_constant_p(size) && (size <= bos)) {
229 return __strlcat_chk(dest, src, size, bos);
234 size_t bos = __bos(s); local
238 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE)
253 size_t bos = __bos(s); local
272 size_t bos = __bos(s); local
    [all...]
  /prebuilts/ndk/current/platforms/android-21/arch-arm/usr/include/
string.h 189 size_t bos = __bos(dest); local
193 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) {
199 if (__builtin_constant_p(size) && (size <= bos)) {
204 return __strlcpy_chk(dest, src, size, bos);
214 size_t bos = __bos(dest); local
218 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) {
224 if (__builtin_constant_p(size) && (size <= bos)) {
229 return __strlcat_chk(dest, src, size, bos);
234 size_t bos = __bos(s); local
238 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE)
253 size_t bos = __bos(s); local
272 size_t bos = __bos(s); local
    [all...]
  /prebuilts/ndk/current/platforms/android-21/arch-arm64/usr/include/
string.h 189 size_t bos = __bos(dest); local
193 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) {
199 if (__builtin_constant_p(size) && (size <= bos)) {
204 return __strlcpy_chk(dest, src, size, bos);
214 size_t bos = __bos(dest); local
218 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) {
224 if (__builtin_constant_p(size) && (size <= bos)) {
229 return __strlcat_chk(dest, src, size, bos);
234 size_t bos = __bos(s); local
238 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE)
253 size_t bos = __bos(s); local
272 size_t bos = __bos(s); local
    [all...]
  /prebuilts/ndk/current/platforms/android-21/arch-mips/usr/include/
string.h 189 size_t bos = __bos(dest); local
193 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) {
199 if (__builtin_constant_p(size) && (size <= bos)) {
204 return __strlcpy_chk(dest, src, size, bos);
214 size_t bos = __bos(dest); local
218 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) {
224 if (__builtin_constant_p(size) && (size <= bos)) {
229 return __strlcat_chk(dest, src, size, bos);
234 size_t bos = __bos(s); local
238 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE)
253 size_t bos = __bos(s); local
272 size_t bos = __bos(s); local
    [all...]
  /prebuilts/ndk/current/platforms/android-21/arch-mips64/usr/include/
string.h 189 size_t bos = __bos(dest); local
193 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) {
199 if (__builtin_constant_p(size) && (size <= bos)) {
204 return __strlcpy_chk(dest, src, size, bos);
214 size_t bos = __bos(dest); local
218 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) {
224 if (__builtin_constant_p(size) && (size <= bos)) {
229 return __strlcat_chk(dest, src, size, bos);
234 size_t bos = __bos(s); local
238 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE)
253 size_t bos = __bos(s); local
272 size_t bos = __bos(s); local
    [all...]
  /prebuilts/ndk/current/platforms/android-21/arch-x86/usr/include/
string.h 189 size_t bos = __bos(dest); local
193 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) {
199 if (__builtin_constant_p(size) && (size <= bos)) {
204 return __strlcpy_chk(dest, src, size, bos);
214 size_t bos = __bos(dest); local
218 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) {
224 if (__builtin_constant_p(size) && (size <= bos)) {
229 return __strlcat_chk(dest, src, size, bos);
234 size_t bos = __bos(s); local
238 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE)
253 size_t bos = __bos(s); local
272 size_t bos = __bos(s); local
    [all...]
  /prebuilts/ndk/current/platforms/android-21/arch-x86_64/usr/include/
string.h 189 size_t bos = __bos(dest); local
193 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) {
199 if (__builtin_constant_p(size) && (size <= bos)) {
204 return __strlcpy_chk(dest, src, size, bos);
214 size_t bos = __bos(dest); local
218 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) {
224 if (__builtin_constant_p(size) && (size <= bos)) {
229 return __strlcat_chk(dest, src, size, bos);
234 size_t bos = __bos(s); local
238 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE)
253 size_t bos = __bos(s); local
272 size_t bos = __bos(s); local
    [all...]
  /prebuilts/ndk/current/platforms/android-23/arch-arm/usr/include/
string.h 189 size_t bos = __bos(dest); local
193 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) {
199 if (__builtin_constant_p(size) && (size <= bos)) {
204 return __strlcpy_chk(dest, src, size, bos);
214 size_t bos = __bos(dest); local
218 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) {
224 if (__builtin_constant_p(size) && (size <= bos)) {
229 return __strlcat_chk(dest, src, size, bos);
234 size_t bos = __bos(s); local
238 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE)
253 size_t bos = __bos(s); local
272 size_t bos = __bos(s); local
    [all...]
  /prebuilts/ndk/current/platforms/android-23/arch-arm64/usr/include/
string.h 189 size_t bos = __bos(dest); local
193 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) {
199 if (__builtin_constant_p(size) && (size <= bos)) {
204 return __strlcpy_chk(dest, src, size, bos);
214 size_t bos = __bos(dest); local
218 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) {
224 if (__builtin_constant_p(size) && (size <= bos)) {
229 return __strlcat_chk(dest, src, size, bos);
234 size_t bos = __bos(s); local
238 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE)
253 size_t bos = __bos(s); local
272 size_t bos = __bos(s); local
    [all...]
  /prebuilts/ndk/current/platforms/android-23/arch-mips/usr/include/
string.h 189 size_t bos = __bos(dest); local
193 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) {
199 if (__builtin_constant_p(size) && (size <= bos)) {
204 return __strlcpy_chk(dest, src, size, bos);
214 size_t bos = __bos(dest); local
218 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) {
224 if (__builtin_constant_p(size) && (size <= bos)) {
229 return __strlcat_chk(dest, src, size, bos);
234 size_t bos = __bos(s); local
238 if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE)
253 size_t bos = __bos(s); local
272 size_t bos = __bos(s); local
    [all...]

Completed in 2942 milliseconds

1 2 3 4 5 6 7 8 91011>>