/frameworks/volley/src/com/android/volley/toolbox/ |
BasicNetwork.java | 202 PoolingByteArrayOutputStream bytes = local 213 bytes.write(buffer, 0, count); 215 return bytes.toByteArray(); 226 bytes.close();
|
/art/test/NativeAllocations/ |
NativeAllocations.java | 28 private int bytes; field in class:NativeAllocations.NativeAllocation 30 NativeAllocation(int bytes) throws Exception { 31 this.bytes = bytes; 32 register_native_allocation.invoke(runtime, bytes); 34 nativeBytes += bytes; 43 nativeBytes -= bytes; 45 register_native_free.invoke(runtime, bytes);
|
/dalvik/dx/src/com/android/dx/cf/direct/ |
AttributeFactory.java | 56 * Parses and makes an attribute based on the bytes at the 64 * @param offset offset into {@code dcf}'s {@code bytes} 82 ByteArray bytes = cf.getBytes(); local 84 int nameIdx = bytes.getUnsignedShort(offset); 85 int length = bytes.getInt(offset + 2); 90 observer.parsed(bytes, offset, 2, 92 observer.parsed(bytes, offset + 2, 4, 115 * @param offset offset into {@code bytes} to start parsing at; this 124 ByteArray bytes = cf.getBytes(); local 126 Attribute result = new RawAttribute(name, bytes, offset, length, pool) [all...] |
/dalvik/tests/098-native-allocations/src/ |
Main.java | 28 private int bytes; field in class:Main.NativeAllocation 30 NativeAllocation(int bytes) throws Exception { 31 this.bytes = bytes; 32 register_native_allocation.invoke(runtime, bytes); 34 nativeBytes += bytes; 43 nativeBytes -= bytes; 45 register_native_free.invoke(runtime, bytes);
|
/development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/ |
ChatManager.java | 37 int bytes; local 44 bytes = iStream.read(buffer); 45 if (bytes == -1) { 49 // Send the obtained bytes to the UI Activity 52 bytes, -1, buffer).sendToTarget();
|
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/ |
CTarget.java | 196 String bytes; local 262 bytes = buf.toString(); 263 index = strings.indexOf(bytes); 266 strings.add(bytes); 267 index = strings.indexOf(bytes);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
DEREnumerated.java | 11 byte[] bytes; field in class:DEREnumerated 74 bytes = BigInteger.valueOf(value).toByteArray(); 80 bytes = value.toByteArray(); 84 byte[] bytes) 86 this.bytes = bytes; 91 return new BigInteger(bytes); 101 return 1 + StreamUtil.calculateBodyLength(bytes.length) + bytes.length; 108 out.writeEncoded(BERTags.ENUMERATED, bytes); [all...] |
/external/chromium/android/net/ |
android_network_library_impl.cc | 16 // Convert X509 chain to DER format bytes. 38 jbyte* bytes = env->GetByteArrayElements(byte_array, NULL); local 39 DCHECK(bytes); 40 size_t copied = cert_chain[i].copy(reinterpret_cast<char*>(bytes), len); 42 env->ReleaseByteArrayElements(byte_array, bytes, 0);
|
/external/chromium/net/tools/dump_cache/ |
cache_dumper.cc | 185 // we know that the last two bytes are CRLF. 195 DWORD bytes; local 196 if (!WriteFile(entry_, data, len, &bytes, 0)) 199 return bytes;
|
/external/chromium_org/base/android/ |
jni_array.cc | 15 JNIEnv* env, const uint8* bytes, size_t len) { 21 memcpy(elements, bytes, len); 128 jbyte* bytes = env->GetByteArrayElements(byte_array, NULL); local 129 out->insert(out->end(), bytes, bytes + len); 130 env->ReleaseByteArrayElements(byte_array, bytes, JNI_ABORT); 179 jbyte* bytes = env->GetByteArrayElements(bytes_array, NULL); local 180 (*out)[i].assign(reinterpret_cast<const char*>(bytes), bytes_len); 181 env->ReleaseByteArrayElements(bytes_array, bytes, JNI_ABORT);
|
/external/chromium_org/base/strings/ |
string_number_conversions_unittest.cc | 708 unsigned char bytes[] = {0x01, 0xff, 0x02, 0xfe, 0x03, 0x80, 0x81}; local 709 hex = HexEncode(bytes, sizeof(bytes));
|
/external/chromium_org/content/browser/webui/ |
web_ui_data_source_unittest.cc | 37 base::RefCountedStaticMemory* bytes = NULL; variable 39 bytes = new base::RefCountedStaticMemory( 43 bytes = new base::RefCountedStaticMemory( 47 return bytes;
|
/external/chromium_org/net/base/ |
upload_element.h | 30 const char* bytes() const { return bytes_start_ ? bytes_start_ : &buf_[0]; } function in class:net::UploadElement 40 void SetToBytes(const char* bytes, int bytes_len) { 42 buf_.assign(bytes, bytes + bytes_len); 48 void SetToSharedBytes(const char* bytes, int bytes_len) { 50 bytes_start_ = bytes; 91 memcmp(a.bytes(), b.bytes(), b.bytes_length()) == 0;
|
/external/chromium_org/net/tools/dump_cache/ |
cache_dumper.cc | 193 // we know that the last two bytes are CRLF. 206 DWORD bytes; local 207 if (!WriteFile(entry_, data, len, &bytes, 0)) 210 return bytes;
|
/external/chromium_org/third_party/WebKit/Source/core/svg/ |
SVGPathByteStream.h | 32 unsigned char bytes[sizeof(bool)]; member in union:WebCore::__anon12736 37 unsigned char bytes[sizeof(float)]; member in union:WebCore::__anon12737 42 unsigned char bytes[sizeof(unsigned short)]; member in union:WebCore::__anon12738
|
/external/chromium_org/third_party/WebKit/Source/wtf/text/ |
TextCodecLatin1.cpp | 121 String TextCodecLatin1::decode(const char* bytes, size_t length, bool, bool, bool&) 128 const uint8_t* source = reinterpret_cast<const uint8_t*>(bytes); 129 const uint8_t* end = reinterpret_cast<const uint8_t*>(bytes + length); 219 char* bytes = result.data(); local 236 bytes = result.data(); 237 memcpy(bytes + resultLength, replacement, replacementLength); 242 bytes[resultLength++] = b; 245 return CString(bytes, resultLength); 252 char* bytes; local 253 CString string = CString::newUninitialized(length, bytes); [all...] |
/external/chromium_org/third_party/icu/source/tools/toolutil/ |
unewdata.c | 41 uint8_t bytes[16]; local 130 /* write padding bytes to align the data section to 16 bytes */ 134 uprv_memset(bytes, 0, headerSize); 135 T_FileStream_write(pData->file, bytes, headerSize);
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/tgsi/ |
tgsi_parse.c | 309 unsigned bytes = n * sizeof(struct tgsi_token); local 310 struct tgsi_token *new_tokens = (struct tgsi_token *) MALLOC(bytes); 312 memcpy(new_tokens, tokens, bytes); 323 unsigned bytes = num_tokens * sizeof(struct tgsi_token); local 324 return (struct tgsi_token *) MALLOC(bytes);
|
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/nouveau/ |
nouveau_util.h | 84 GLubyte bytes[4]; local 85 _mesa_unclamped_float_rgba_to_ubyte(bytes, c); 86 return pack_rgba_i(f, bytes);
|
/external/chromium_org/third_party/protobuf/java/src/test/java/com/google/protobuf/ |
CodedOutputStreamTest.java | 51 * Helper to construct a byte array from a bunch of bytes. The inputs are 55 private byte[] bytes(int... bytesAsInts) { method in class:CodedOutputStreamTest 56 byte[] bytes = new byte[bytesAsInts.length]; 58 bytes[i] = (byte) bytesAsInts[i]; 60 return bytes; 64 private List<Byte> toList(byte[] bytes) { 66 for (byte b : bytes) { 78 * checks that the result matches the given bytes. 131 assertWriteVarint(bytes(0x00), 0); 132 assertWriteVarint(bytes(0x01), 1) [all...] |
/external/chromium_org/third_party/re2/util/ |
benchmark.cc | 34 static int64 bytes; variable 40 bytes = x; 67 bytes = 0; 121 if(ns > 0 && bytes > 0) 122 snprintf(mb, sizeof mb, "\t%7.2f MB/s", ((double)bytes/1e6)/((double)ns/1e9));
|
/external/chromium_org/third_party/skia/src/core/ |
SkChunkAlloc.cpp | 72 SkChunkAlloc::Block* SkChunkAlloc::newBlock(size_t bytes, AllocFailType ftype) { 73 size_t size = bytes; 94 void* SkChunkAlloc::alloc(size_t bytes, AllocFailType ftype) { 95 fTotalUsed += bytes; 97 bytes = SkAlign4(bytes); 101 if (block == NULL || bytes > block->fFreeSize) { 102 block = this->newBlock(bytes, ftype); 110 SkASSERT(block && bytes <= block->fFreeSize); 113 block->fFreeSize -= bytes; 119 size_t bytes = 0; local [all...] |
/external/chromium_org/third_party/skia/src/images/ |
SkImageDecoder_wbmp.cpp | 77 int bytes = bits >> 3; local 79 for (int i = 0; i < bytes; i++) {
|
SkJpegUtility.cpp | 46 size_t bytes = src->fStream->read(src->fBuffer, skjpeg_source_mgr::kBufferSize); local 49 if (bytes == 0) { 54 src->current_offset += bytes; 57 src->bytes_in_buffer = bytes; 67 long bytes = (long)src->fStream->skip(bytesToSkip); local 68 if (bytes <= 0 || bytes > bytesToSkip) { 69 // SkDebugf("xxxxxxxxxxxxxx failure to skip request %d returned %d\n", bytesToSkip, bytes); 74 src->current_offset += bytes; 76 bytesToSkip -= bytes; [all...] |
/external/chromium_org/third_party/sqlite/src/src/ |
test5.c | 36 char *bytes; local 40 bytes = Tcl_GetStringFromObj(objv[1], &len); 41 pRet = Tcl_NewByteArrayObj((u8*)bytes, len+1);
|