/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/ |
DocumentsClientTestCase.java | 101 ByteArrayOutputStream bytes = new ByteArrayOutputStream(); local 105 bytes.write(buffer, 0, count); 107 return bytes.toByteArray();
|
/dalvik/dx/src/com/android/dx/cf/code/ |
BasicBlocker.java | 272 BytecodeArray bytes = method.getCode(); local 273 ByteBlock[] bbs = new ByteBlock[bytes.size()]; 328 BytecodeArray bytes = method.getCode(); local 346 bytes.processWorkSet(workSet, this); 389 * @param length length of the instruction, in bytes 422 * @param length length of the instruction, in bytes
|
/development/samples/ApiDemos/src/com/example/android/apis/content/ |
DocumentsSample.java | 360 ByteArrayOutputStream bytes = new ByteArrayOutputStream(); local 364 bytes.write(buffer, 0, count); 366 return bytes.toByteArray();
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/ |
CertBlacklist.java | 97 ByteArrayOutputStream bytes = new ByteArrayOutputStream((int) f.length()); local 102 return bytes; 104 bytes.write(buffer, 0, byteCount);
|
/external/conscrypt/src/platform/java/org/conscrypt/ |
CertBlacklist.java | 96 ByteArrayOutputStream bytes = new ByteArrayOutputStream((int) f.length()); local 101 return bytes; 103 bytes.write(buffer, 0, byteCount);
|
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g2d/ |
Gdx2DPixmap.java | 103 ByteArrayOutputStream bytes = new ByteArrayOutputStream(1024);
local 108 bytes.write(buffer, 0, readBytes);
111 buffer = bytes.toByteArray();
|
/external/protobuf/java/src/test/java/com/google/protobuf/ |
LazyMessageLiteTest.java | 273 ByteString bytes = outer.toByteString(); local 274 assertEquals(bytes.size(), outer.getSerializedSize()); 276 LazyMessageLite deserialized = LazyMessageLite.parseFrom(bytes); 292 assertEquals(bytes, deserialized.toByteString()); 304 ByteString bytes = outer.toByteString(); local 313 LazyMessageLite deserialized = LazyMessageLite.parseFrom(bytes);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
CharsetEncoder2Test.java | 155 * Test reserve bytes encode(CharBuffer,ByteBuffer,boolean) 162 ByteBuffer bytes = ByteBuffer.allocate(4); local 166 CoderResult result = encoder.encode(char1, bytes, false); 169 assertEquals(4, bytes.remaining()); 171 result = encoder.encode(char2, bytes, true); 175 assertEquals(0, bytes.remaining()); 178 assertEquals(4, bytes.limit()); 179 assertEquals((byte) 0xf0, bytes.get(0)); 180 assertEquals((byte) 0x90, bytes.get(1)); 181 assertEquals((byte) 0x80, bytes.get(2)) [all...] |
/art/runtime/gc/accounting/ |
space_bitmap.h | 48 // heap_begin of heap_capacity bytes, where objects are guaranteed to be kAlignment-aligned. 159 // Size in bytes of the memory that the bitmaps spans. 164 void SetHeapSize(size_t bytes) { 166 bitmap_size_ = OffsetToIndex(bytes) * sizeof(intptr_t); 167 CHECK_EQ(HeapSize(), bytes); local
|
/art/runtime/gc/space/ |
region_space-inl.h | 157 uint64_t bytes = 0; local 166 bytes += r->BytesAllocated(); 170 bytes += r->BytesAllocated(); 175 bytes += r->BytesAllocated(); 180 bytes += r->BytesAllocated(); 187 return bytes; 192 uint64_t bytes = 0; local 201 bytes += r->ObjectsAllocated(); 205 bytes += r->ObjectsAllocated(); 210 bytes += r->ObjectsAllocated() [all...] |
/art/runtime/native/ |
org_apache_harmony_dalvik_ddmc_DdmVmInternal.cc | 100 * (1b) bytes per entry 121 std::vector<uint8_t>& bytes = *reinterpret_cast<std::vector<uint8_t>*>(context); local 122 JDWP::Append4BE(bytes, t->GetThreadId()); 123 JDWP::Append1BE(bytes, Dbg::ToJdwpThreadStatus(t->GetState())); 124 JDWP::Append4BE(bytes, t->GetTid()); 125 JDWP::Append4BE(bytes, utime); 126 JDWP::Append4BE(bytes, stime); 127 JDWP::Append1BE(bytes, t->IsDaemon()); 131 std::vector<uint8_t> bytes; local 140 JDWP::Append1BE(bytes, kThstHeaderLen) [all...] |
/art/runtime/ |
thread-inl.h | 236 inline mirror::Object* Thread::AllocTlab(size_t bytes) { 237 DCHECK_GE(TlabSize(), bytes); local 240 tlsPtr_.thread_local_pos += bytes;
|
/bionic/libc/kernel/uapi/linux/netfilter/ |
xt_sctp.h | 51 #define bytes(type) (sizeof(type) * 8) macro 52 #define SCTP_CHUNKMAP_SET(chunkmap,type) do { (chunkmap)[type / bytes(__u32)] |= 1 << (type % bytes(__u32)); } while(0) 54 #define SCTP_CHUNKMAP_CLEAR(chunkmap,type) do { (chunkmap)[type / bytes(__u32)] &= ~(1 << (type % bytes(__u32))); } while(0) 56 ({ ((chunkmap)[type / bytes(__u32)] & (1 << (type % bytes(__u32)))) ? 1 : 0; \
|
/bionic/tests/ |
wchar_test.cpp | 33 char bytes[] = { 'h', 'e', 'l', 'l', 'o', '\0' }; local 34 EXPECT_EQ(0U, mbrlen(&bytes[0], 0, NULL)); 35 EXPECT_EQ(1U, mbrlen(&bytes[0], 1, NULL)); 37 EXPECT_EQ(1U, mbrlen(&bytes[4], 1, NULL)); 38 EXPECT_EQ(0U, mbrlen(&bytes[5], 1, NULL)); 48 char bytes[MB_LEN_MAX]; local 51 EXPECT_EQ(1, wctomb(bytes, L'\0')); 52 EXPECT_EQ(1U, wcrtomb(bytes, L'\0', NULL)); 55 memset(bytes, 0, sizeof(bytes)); 119 char bytes[BUFSIZ]; local [all...] |
/bionic/tools/relocation_packer/src/ |
elf_file_unittest.cc | 52 size_t bytes; local 54 bytes = fread(buffer, 1, sizeof(buffer), testfile); 55 ASSERT_EQ(bytes, fwrite(buffer, 1, bytes, temporary)); 56 } while (bytes > 0);
|
/dalvik/dexgen/src/com/android/dexgen/util/ |
ByteArray.java | 31 private final byte[] bytes; field in class:ByteArray 36 /** {@code >= 0, <= bytes.length}; size computed as 43 * @param bytes {@code non-null;} the underlying array 45 * @param end {@code >= start, <= bytes.length;} end index of 48 public ByteArray(byte[] bytes, int start, int end) { 49 if (bytes == null) { 50 throw new NullPointerException("bytes == null"); 61 if (end > bytes.length) { 62 throw new IllegalArgumentException("end > bytes.length"); 65 this.bytes = bytes [all...] |
/dalvik/dx/src/com/android/dx/cf/direct/ |
AttributeListParser.java | 57 * @param offset offset in {@code bytes} to the start of the list 126 ByteArray bytes = cf.getBytes(); local 129 observer.parsed(bytes, offset, 2, 136 observer.parsed(bytes, at, 0, 149 observer.parsed(bytes, at, 0,
|
CodeObserver.java | 40 private final ByteArray bytes; field in class:CodeObserver 48 * @param bytes {@code non-null;} actual array of bytecode 51 public CodeObserver(ByteArray bytes, ParseObserver observer) { 52 if (bytes == null) { 53 throw new NullPointerException("bytes == null"); 60 this.bytes = bytes; 66 observer.parsed(bytes, offset, length, header(offset)); 71 observer.parsed(bytes, offset, length, header(offset)); 91 observer.parsed(bytes, offset, length [all...] |
/dalvik/dx/src/com/android/dx/command/dump/ |
DotDumper.java | 44 private final byte[] bytes; field in class:DotDumper 50 static void dump(byte[] bytes, String filePath, Args args) { 51 new DotDumper(bytes, filePath, args).run(); 54 DotDumper(byte[] bytes, String filePath, Args args) { 55 this.bytes = bytes; 63 ByteArray ba = new ByteArray(bytes); 93 public void parsed(ByteArray bytes, int offset, int len, String human) { 98 public void startParsingMember(ByteArray bytes, int offset, String name, 103 public void endParsingMember(ByteArray bytes, int offset, String name [all...] |
/dalvik/dx/src/com/android/dx/util/ |
ByteArray.java | 31 private final byte[] bytes; field in class:ByteArray 36 /** {@code >= 0, <= bytes.length}; size computed as 43 * @param bytes {@code non-null;} the underlying array 45 * @param end {@code >= start, <= bytes.length;} end index of 48 public ByteArray(byte[] bytes, int start, int end) { 49 if (bytes == null) { 50 throw new NullPointerException("bytes == null"); 61 if (end > bytes.length) { 62 throw new IllegalArgumentException("end > bytes.length"); 65 this.bytes = bytes [all...] |
/development/ndk/platforms/android-21/include/linux/netfilter/ |
xt_sctp.h | 51 #define bytes(type) (sizeof(type) * 8) macro 52 #define SCTP_CHUNKMAP_SET(chunkmap, type) do { (chunkmap)[type / bytes(__u32)] |= 1 << (type % bytes(__u32)); } while (0) 54 #define SCTP_CHUNKMAP_CLEAR(chunkmap, type) do { (chunkmap)[type / bytes(__u32)] &= ~(1 << (type % bytes(__u32))); } while (0) 55 #define SCTP_CHUNKMAP_IS_SET(chunkmap, type) ({ ((chunkmap)[type / bytes (__u32)] & (1 << (type % bytes (__u32)))) ? 1: 0; })
|
/development/ndk/platforms/android-3/include/linux/netfilter/ |
xt_sctp.h | 49 #define bytes(type) (sizeof(type) * 8) macro 51 #define SCTP_CHUNKMAP_SET(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] |= 1 << (type % bytes(u_int32_t)); } while (0) 53 #define SCTP_CHUNKMAP_CLEAR(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] &= ~(1 << (type % bytes(u_int32_t))); } while (0) 55 #define SCTP_CHUNKMAP_IS_SET(chunkmap, type) ({ (chunkmap[type / bytes (u_int32_t)] & (1 << (type % bytes (u_int32_t)))) ? 1: 0; })
|
/development/ndk/platforms/android-3/include/linux/netfilter_ipv4/ |
ipt_sctp.h | 47 #define bytes(type) (sizeof(type) * 8) macro 49 #define SCTP_CHUNKMAP_SET(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] |= 1 << (type % bytes(u_int32_t)); } while (0) 51 #define SCTP_CHUNKMAP_CLEAR(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] &= ~(1 << (type % bytes(u_int32_t))); } while (0) 53 #define SCTP_CHUNKMAP_IS_SET(chunkmap, type) ({ (chunkmap[type / bytes (u_int32_t)] & (1 << (type % bytes (u_int32_t)))) ? 1: 0; })
|
/device/google/dragon/lights/ |
lights.c | 74 int fd, bytes, amt, ret = 0; local 76 bytes = snprintf(path, sizeof(path), "%s/brightness", 78 if (bytes < 0 || (size_t)bytes >= sizeof(path)) { 80 "failed to create brightness path %d\n", bytes); 91 bytes = snprintf(buffer, sizeof(buffer), "%d\n", brightness); 92 if (bytes < 0 || (size_t)bytes >= sizeof(buffer)) { 95 brightness, bytes); 99 amt = write(fd, buffer, bytes); 116 int ret = 0, fd, bytes; local [all...] |
/device/lge/bullhead/liblight/ |
lights.c | 67 int bytes = snprintf(buffer, sizeof(buffer), "%d\n", value); local 68 int amt = write(fd, buffer, bytes); 88 int bytes = snprintf(buffer, sizeof(buffer), "%d %d\n", on, off); local 89 int amt = write(fd, buffer, bytes);
|