/external/webkit/Source/WebCore/fileapi/ |
AsyncFileWriterClient.h | 44 virtual void didWrite(long long bytes, bool complete) = 0;
|
/external/webkit/Source/WebKit/chromium/public/ |
WebFileWriterClient.h | 43 virtual void didWrite(long long bytes, bool complete) = 0;
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/ |
Strings.java | 10 public static String fromUTF8ByteArray(byte[] bytes) 15 while (i < bytes.length) 18 if ((bytes[i] & 0xf0) == 0xf0) 24 else if ((bytes[i] & 0xe0) == 0xe0) 28 else if ((bytes[i] & 0xc0) == 0xc0) 43 while (i < bytes.length) 47 if ((bytes[i] & 0xf0) == 0xf0) 49 int codePoint = ((bytes[i] & 0x03) << 18) | ((bytes[i+1] & 0x3F) << 12) | ((bytes[i+2] & 0x3F) << 6) | (bytes[i+3] & 0x3F) [all...] |
/external/openssh/ |
bufbn.c | 56 * by (bits+7)/8 bytes of binary data, msb first. 76 /* Store the number of bits in the buffer in two bytes, msb first. */ 101 u_int bits, bytes; local 110 /* Compute the number of binary bytes that follow. */ 111 bytes = (bits + 7) / 8; 112 if (bytes > 8 * 1024) { 113 error("buffer_get_bignum_ret: cannot handle BN of size %d", bytes); 116 if (buffer_len(buffer) < bytes) { 121 if (BN_bin2bn(bin, bytes, value) == NULL) { 125 if (buffer_consume_ret(buffer, bytes) == -1) 145 u_int bytes; local [all...] |
/external/skia/legacy/src/core/ |
SkChunkAlloc.cpp | 77 SkChunkAlloc::Block* SkChunkAlloc::newBlock(size_t bytes, AllocFailType ftype) { 80 if (block && bytes <= block->fFreeSize) { 85 size_t size = bytes; 102 void* SkChunkAlloc::alloc(size_t bytes, AllocFailType ftype) { 103 bytes = SkAlign4(bytes); 107 if (block == NULL || bytes > block->fFreeSize) { 108 block = this->newBlock(bytes, ftype); 116 SkASSERT(block && bytes <= block->fFreeSize); 119 block->fFreeSize -= bytes; 125 size_t bytes = 0; local [all...] |
/frameworks/rs/ |
rsFifoSocket.cpp | 52 bool FifoSocket::writeAsync(const void *data, size_t bytes, bool waitForSpace) { 53 if (bytes == 0) { 56 //ALOGE("writeAsync %p %i", data, bytes); 57 size_t ret = ::send(sv[0], data, bytes, 0); 58 rsAssert(ret == bytes); 59 if (ret != bytes) { 60 ALOGE("writeAsync %p %zu ret %zu", data, bytes, ret); 76 size_t FifoSocket::read(void *data, size_t bytes) { 81 //ALOGE("read %p %i", data, bytes); 82 size_t ret = ::recv(sv[1], data, bytes, MSG_WAITALL) [all...] |
/external/jmonkeyengine/engine/src/core-plugins/com/jme3/export/binary/ |
ByteUtils.java | 115 * @return A short, which is the next 2 bytes converted from the InputStream 122 // Read in the next 2 bytes 177 * @return An int, which is the next 4 bytes converted from the InputStream 184 // Read in the next 4 bytes 227 byte[] bytes = new byte[8]; 229 bytes[7] = (byte) (n); 231 bytes[6] = (byte) (n); 233 bytes[5] = (byte) (n); 235 bytes[4] = (byte) (n); 237 bytes[3] = (byte) (n) [all...] |
/dalvik/dexgen/src/com/android/dexgen/rop/cst/ |
CstUtf8.java | 35 /** {@code non-null;} the UTF-8 value as bytes */ 36 private final ByteArray bytes; field in class:CstUtf8 44 * @return {@code non-null;} the UTF-8 bytes for it 48 byte[] bytes = new byte[len * 3]; // Avoid having to reallocate. 54 bytes[outAt] = (byte) c; 57 bytes[outAt] = (byte) (((c >> 6) & 0x1f) | 0xc0); 58 bytes[outAt + 1] = (byte) ((c & 0x3f) | 0x80); 61 bytes[outAt] = (byte) (((c >> 12) & 0x0f) | 0xe0); 62 bytes[outAt + 1] = (byte) (((c >> 6) & 0x3f) | 0x80); 63 bytes[outAt + 2] = (byte) ((c & 0x3f) | 0x80) [all...] |
/dalvik/dx/src/com/android/dx/rop/cst/ |
CstString.java | 36 /** {@code non-null;} the UTF-8 value as bytes */ 37 private final ByteArray bytes; field in class:CstString 44 * @return {@code non-null;} the UTF-8 bytes for it 48 byte[] bytes = new byte[len * 3]; // Avoid having to reallocate. 54 bytes[outAt] = (byte) c; 57 bytes[outAt] = (byte) (((c >> 6) & 0x1f) | 0xc0); 58 bytes[outAt + 1] = (byte) ((c & 0x3f) | 0x80); 61 bytes[outAt] = (byte) (((c >> 12) & 0x0f) | 0xe0); 62 bytes[outAt + 1] = (byte) (((c >> 6) & 0x3f) | 0x80); 63 bytes[outAt + 2] = (byte) ((c & 0x3f) | 0x80) [all...] |
/external/dexmaker/src/dx/java/com/android/dx/rop/cst/ |
CstString.java | 36 /** {@code non-null;} the UTF-8 value as bytes */ 37 private final ByteArray bytes; field in class:CstString 44 * @return {@code non-null;} the UTF-8 bytes for it 48 byte[] bytes = new byte[len * 3]; // Avoid having to reallocate. 54 bytes[outAt] = (byte) c; 57 bytes[outAt] = (byte) (((c >> 6) & 0x1f) | 0xc0); 58 bytes[outAt + 1] = (byte) ((c & 0x3f) | 0x80); 61 bytes[outAt] = (byte) (((c >> 12) & 0x0f) | 0xe0); 62 bytes[outAt + 1] = (byte) (((c >> 6) & 0x3f) | 0x80); 63 bytes[outAt + 2] = (byte) ((c & 0x3f) | 0x80) [all...] |
/external/webkit/Source/JavaScriptCore/wtf/ |
OSAllocatorSymbian.cpp | 45 static void* allocateCodeChunk(size_t bytes) 48 TInt error = c.CreateLocalCode(bytes, bytes); 88 void OSAllocator::releaseDecommitted(void* parkedBase, size_t bytes) 91 dataAllocatorInstance()->release(parkedBase, bytes); 97 void OSAllocator::commit(void* address, size_t bytes, bool, bool executable) 102 dataAllocatorInstance()->commit(address, bytes); 105 void OSAllocator::decommit(void* address, size_t bytes) 108 dataAllocatorInstance()->decommit(address, bytes); 113 void* OSAllocator::reserveAndCommit(size_t bytes, Usage usage, bool writable, bool executable [all...] |
/libcore/luni/src/main/java/java/io/ |
InputStreamReader.java | 35 * of bytes read from the source stream and converts these into characters as 47 private final ByteBuffer bytes = ByteBuffer.allocate(8192); field in class:InputStreamReader 64 * character converter that is used to decode bytes into characters is 92 bytes.limit(0); 109 bytes.limit(0); 127 bytes.limit(0); 153 * bytes, or null if this writer has been closed. Most callers should probably keep 166 * with the two higher-order bytes set to 0. Returns -1 if the end of the 168 * converting bytes in this reader's buffer or by first filling the buffer 191 * been reached. The bytes are either obtained from converting bytes in thi [all...] |
/dalvik/dx/src/com/android/dx/command/dump/ |
ClassDumper.java | 33 * @param bytes {@code non-null;} bytes of the (alleged) class file 40 public static void dump(byte[] bytes, PrintStream out, 43 new ClassDumper(bytes, out, filePath, args); 51 private ClassDumper(byte[] bytes, PrintStream out, 53 super(bytes, out, filePath, args); 60 byte[] bytes = getBytes(); 61 ByteArray ba = new ByteArray(bytes); 70 if (at != bytes.length) { 71 parsed(ba, at, bytes.length - at, "<extra data at end of file>") [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/ |
PBEParametersGenerator.java | 24 * @param password the password converted into bytes (see below). 108 byte[] bytes = new byte[password.length]; 110 for (int i = 0; i != bytes.length; i++) 112 bytes[i] = (byte)password[i]; 115 return bytes; 138 * PKCS12 (unicode, big endian, 2 zero pad bytes at the end). 148 // +1 for extra 2 pad bytes. 149 byte[] bytes = new byte[(password.length + 1) * 2]; 153 bytes[i * 2] = (byte)(password[i] >>> 8); 154 bytes[i * 2 + 1] = (byte)password[i] [all...] |
/external/chromium/net/tools/flip_server/ |
buffer_interface.h | 14 // Returns the bytes which can be read from the buffer. There is no 15 // guarantee that the bytes are contiguous. 25 // returns the number of bytes free in this buffer. 27 // number of bytes free. 43 // appends up-to-'size' bytes to the buffer. 45 // bytes - bytes which are read, and copied into the buffer. 46 // size - number of bytes which are read and copied. 48 virtual int Write(const char* bytes, int size) = 0; 58 // size - the amount of data (in bytes) that it is safe to write to ptr [all...] |
/external/elfutils/libdw/ |
dwarf_nextcu.c | 87 char *bytes = (char *) dwarf->sectiondata[IDX_debug_info]->d_buf + off; local 110 4. A 1-byte unsigned integer representing the size in bytes of 114 uint64_t length = read_4ubyte_unaligned_inc (dwarf, bytes); 138 length = read_8ubyte_unaligned_inc (dwarf, bytes); 142 read_2ubyte_unaligned_inc (dwarf, bytes); 148 abbrev_offset = read_4ubyte_unaligned_inc (dwarf, bytes); 150 abbrev_offset = read_8ubyte_unaligned_inc (dwarf, bytes); 155 uint8_t address_size = *bytes++; 165 *header_sizep = (bytes
|
/external/qemu/hw/ |
msmouse.c | 38 unsigned char bytes[4] = { 0x40, 0x00, 0x00, 0x00 }; local 41 bytes[0] |= (MSMOUSE_HI2(dy) << 2) | MSMOUSE_HI2(dx); 42 bytes[1] |= MSMOUSE_LO6(dx); 43 bytes[2] |= MSMOUSE_LO6(dy); 46 bytes[0] |= (buttons_state & 0x01 ? 0x20 : 0x00); 47 bytes[0] |= (buttons_state & 0x02 ? 0x10 : 0x00); 48 bytes[3] |= (buttons_state & 0x04 ? 0x20 : 0x00); 53 qemu_chr_read(chr, bytes, 4);
|
/external/smali/dexlib/src/main/java/org/jf/dexlib/Util/ |
Input.java | 35 * bytes read from this instance. 118 * @param bytes non-null; the buffer to read the data into 119 * @param offset >= 0; offset into <code>bytes</code> for the first 121 * @param length >= 0; number of bytes to read 123 public void read(byte[] bytes, int offset, int length); 127 * a convenient shorthand for <code>read(bytes, 0, bytes.length)</code>. 129 * @param bytes non-null; the buffer to read the data into 131 public void read(byte[] bytes); 137 * @param length >= 0; number of bytes to rea [all...] |
/external/valgrind/main/none/tests/x86-linux/ |
seg_override.stdout.exp | 2 got 65536 bytes
|
/frameworks/native/libs/utils/ |
JenkinsHash.cpp | 33 uint32_t JenkinsHashMixBytes(uint32_t hash, const uint8_t* bytes, size_t size) { 37 uint32_t data = bytes[i] | (bytes[i+1] << 8) | (bytes[i+2] << 16) | (bytes[i+3] << 24); 41 uint32_t data = bytes[i]; 42 data |= ((size & 3) > 1) ? (bytes[i+1] << 8) : 0; 43 data |= ((size & 3) > 2) ? (bytes[i+2] << 16) : 0;
|
/external/skia/src/core/ |
SkChunkAlloc.cpp | 70 SkChunkAlloc::Block* SkChunkAlloc::newBlock(size_t bytes, AllocFailType ftype) { 71 size_t size = bytes; 92 void* SkChunkAlloc::alloc(size_t bytes, AllocFailType ftype) { 93 bytes = SkAlign4(bytes); 97 if (block == NULL || bytes > block->fFreeSize) { 98 block = this->newBlock(bytes, ftype); 106 SkASSERT(block && bytes <= block->fFreeSize); 109 block->fFreeSize -= bytes; 110 block->fFreePtr = ptr + bytes; 115 size_t bytes = 0; local [all...] |
/external/skia/src/gpu/ |
GrAllocPool.cpp | 32 bool canAlloc(size_t bytes) const { 33 return bytes <= fBytesFree; 36 void* alloc(size_t bytes) { 37 GrAssert(bytes <= fBytesFree); 38 fBytesFree -= bytes; 40 fPtr += bytes; 44 size_t release(size_t bytes) { 45 GrAssert(bytes > 0); 46 size_t free = GrMin(bytes, fBytesTotal - fBytesFree); 49 return bytes - free [all...] |
/external/webkit/Source/WebCore/platform/text/ |
TextCodecUserDefined.cpp | 52 String TextCodecUserDefined::decode(const char* bytes, size_t length, bool, bool, bool&) 58 signed char c = bytes[i]; 68 char* bytes = result.data(); local 76 bytes[resultLength++] = signedByte; 82 bytes = result.data(); 83 memcpy(bytes + resultLength, replacement, replacementLength); 88 return CString(bytes, resultLength); 93 char* bytes; local 94 CString string = CString::newUninitialized(length, bytes); 100 bytes[i] = c [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
CharSequences.java | 26 * bytes. 28 * @param bytes ASCII bytes 30 public static CharSequence forAsciiBytes(final byte[] bytes) { 33 return (char) bytes[index]; 37 return bytes.length; 41 return forAsciiBytes(bytes, start, end); 45 return new String(bytes); 52 * bytes. 54 * @param bytes ASCII byte [all...] |
/dalvik/dx/src/com/android/dx/cf/direct/ |
DirectClassFile.java | 82 /** {@code non-null;} the bytes of the file */ 83 private final ByteArray bytes; field in class:DirectClassFile 168 * @param bytes {@code non-null;} the bytes of the file 176 public DirectClassFile(ByteArray bytes, String filePath, 178 if (bytes == null) { 179 throw new NullPointerException("bytes == null"); 187 this.bytes = bytes; 195 * @param bytes {@code non-null;} the bytes of the fil 564 private final ByteArray bytes; field in class:DirectClassFile.DcfTypeList [all...] |