/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/chromium_org/third_party/tlslite/tlslite/utils/ |
RSAKey.py | 62 def hashAndSign(self, bytes): 63 """Hash and sign the passed-in bytes. 68 @type bytes: str or L{array.array} of unsigned bytes 69 @param bytes: The value which will be hashed and signed. 71 @rtype: L{array.array} of unsigned bytes. 74 if not isinstance(bytes, type("")): 75 bytes = bytesToString(bytes) 76 hashBytes = stringToBytes(sha.sha(bytes).digest() [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...] |
/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...] |
/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/command/dump/ |
ClassDumper.java | 32 * @param bytes {@code non-null;} bytes of the (alleged) class file 39 public static void dump(byte[] bytes, PrintStream out, 42 new ClassDumper(bytes, out, filePath, args); 50 private ClassDumper(byte[] bytes, PrintStream out, 52 super(bytes, out, filePath, args); 59 byte[] bytes = getBytes(); 60 ByteArray ba = new ByteArray(bytes); 69 if (at != bytes.length) { 70 parsed(ba, at, bytes.length - at, "<extra data at end of file>") [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);
|
/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; 145 * PKCS12 (unicode, big endian, 2 zero pad bytes at the end). 155 // +1 for extra 2 pad bytes. 156 byte[] bytes = new byte[(password.length + 1) * 2]; 160 bytes[i * 2] = (byte)(password[i] >>> 8); 161 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/chromium_org/net/tools/balsa/ |
buffer_interface.h | 13 // Returns the bytes which can be read from the buffer. There is no 14 // guarantee that the bytes are contiguous. 24 // returns the number of bytes free in this buffer. 26 // number of bytes free. 42 // appends up-to-'size' bytes to the buffer. 44 // bytes - bytes which are read, and copied into the buffer. 45 // size - number of bytes which are read and copied. 47 virtual int Write(const char* bytes, int size) = 0; 57 // size - the amount of data (in bytes) that it is safe to write to ptr [all...] |
/external/chromium_org/skia/ext/ |
bitmap_platform_device.h | 31 int64_t bytes = (int64_t)width * height * bytesPerPixel; local 32 return bytes > SKIA_EXT_RASTER_DEVICE_ALLOCATION_MAX;
|
/external/chromium_org/third_party/leveldatabase/src/util/ |
arena.cc | 24 char* Arena::AllocateFallback(size_t bytes) { 25 if (bytes > kBlockSize / 4) { 27 // to avoid wasting too much space in leftover bytes. 28 char* result = AllocateNewBlock(bytes); 37 alloc_ptr_ += bytes; 38 alloc_bytes_remaining_ -= bytes; 42 char* Arena::AllocateAligned(size_t bytes) { 47 size_t needed = bytes + slop; 55 result = AllocateFallback(bytes);
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/radeon/ |
radeon_llvm_emit.h | 38 unsigned char ** bytes, unsigned * byte_count, 43 unsigned char ** bytes,
|
/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/mesa3d/src/gallium/drivers/radeon/ |
radeon_llvm_emit.h | 38 unsigned char ** bytes, unsigned * byte_count, 43 unsigned char ** 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
|
/libcore/benchmarks/src/benchmarks/regression/ |
CharsetBenchmark.java | 44 byte[] bytes = makeBytes(makeString(length)); 46 new String(bytes, name); 51 byte[] bytes = makeBytes(makeString(length)); 53 new String(bytes, 0, bytes.length); 58 byte[] bytes = makeBytes(makeString(length)); 60 new String(bytes, 0, bytes.length, name);
|
/system/core/libutils/ |
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/chromium_org/third_party/WebKit/Source/wtf/text/ |
TextCodecUTF16.cpp | 69 String TextCodecUTF16::decode(const char* bytes, size_t length, bool, bool, bool&) 76 const unsigned char* p = reinterpret_cast<const unsigned char*>(bytes); 124 // character buffer, each character is two bytes, and we know 130 char* bytes; local 131 CString result = CString::newUninitialized(length * 2, bytes); 138 bytes[i * 2] = c; 139 bytes[i * 2 + 1] = c >> 8; 144 bytes[i * 2] = c >> 8; 145 bytes[i * 2 + 1] = c; 157 char* bytes; local [all...] |
/external/chromium_org/third_party/protobuf/java/src/test/java/com/google/protobuf/ |
IsValidUtf8Test.java | 46 * bytes and will return false for any sequence that will not round trip. 90 // Bad trailing bytes 127 private byte[] toByteArray(int... bytes) { 128 byte[] realBytes = new byte[bytes.length]; 129 for (int i = 0; i < bytes.length; i++) { 130 realBytes[i] = (byte) bytes[i]; 135 private ByteString toByteString(int... bytes) { 136 return ByteString.copyFrom(toByteArray(bytes)); 139 private void assertValidUtf8(int[] bytes, boolean not) { 140 byte[] realBytes = toByteArray(bytes); [all...] |
/external/chromium_org/third_party/skia/src/gpu/ |
GrAllocPool.cpp | 31 bool canAlloc(size_t bytes) const { 32 return bytes <= fBytesFree; 35 void* alloc(size_t bytes) { 36 SkASSERT(bytes <= fBytesFree); 37 fBytesFree -= bytes; 39 fPtr += bytes; 43 size_t release(size_t bytes) { 44 SkASSERT(bytes > 0); 45 size_t free = GrMin(bytes, fBytesTotal - fBytesFree); 48 return bytes - free [all...] |