/external/conscrypt/src/platform/java/org/conscrypt/ |
Hex.java | 30 public static String bytesToHexString(byte[] bytes) { 31 char[] buf = new char[bytes.length * 2]; 33 for (byte b : bytes) {
|
/external/dbus/dbus/ |
dbus-memory.h | 43 void* dbus_malloc (size_t bytes); 48 void* dbus_malloc0 (size_t bytes); 54 size_t bytes);
|
/external/emma/core/java12/com/vladium/jcd/cls/constant/ |
CONSTANT_ref_info.java | 62 protected CONSTANT_ref_info (final UDataInputStream bytes) 65 m_class_index = bytes.readU2 (); 66 m_name_and_type_index = bytes.readU2 ();
|
/external/icu/icu4c/as_is/ |
bomlist.py | 35 bytes=f.read(3) variable 36 if bytes and (bytes == bom):
|
/external/nanohttpd/webserver/src/test/java/fi/iki/elonen/ |
AbstractTestHttpServer.java | 52 byte[] bytes; 60 bytes = out.toByteArray(); 64 return bytes;
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/ |
BinaryJavaBeanTest.java | 24 byte[] bytes = new byte[] { 1, 7, 9, 31, 65 }; 25 bean.setData(bytes); 33 assertEquals(new String(bytes), new String(bean2.getData()));
|
/external/sonic/ |
wave.c | 23 int bytesWritten; /* The number of bytes written so far, including header */ 31 void *bytes, 39 bytesWritten = fwrite(bytes, sizeof(char), length, file->soundFile); 60 char bytes[4]; local 64 bytes[i] = value; 67 writeBytes(file, bytes, 4); 75 char bytes[2]; local 79 bytes[i] = value; 82 writeBytes(file, bytes, 2); 85 /* Read bytes from the input file. Return the number of bytes actually read. * 119 unsigned char bytes[4]; local 134 unsigned char bytes[2]; local 332 unsigned char bytes[WAVE_BUF_LEN]; local 356 unsigned char bytes[WAVE_BUF_LEN]; local [all...] |
/external/valgrind/memcheck/tests/ |
leak-tree.stderr.exp | 1 leaked: 64 bytes in 4 blocks 2 dubious: 0 bytes in 0 blocks 3 reachable: 48 bytes in 3 blocks 4 suppressed: 0 bytes in 0 blocks 5 16 bytes in 1 blocks are definitely lost in loss record ... of ... 11 48 (16 direct, 32 indirect) bytes in 1 blocks are definitely lost in loss record ... of ...
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
RandomImpl.java | 40 protected void engineNextBytes(byte[] bytes) { 42 for (int i = 0; i < bytes.length; i++) { 43 bytes[i] = (byte)(i + 0xF1);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/ |
Strings.java | 46 public static String fromUTF8ByteArray(byte[] bytes) 51 while (i < bytes.length) 54 if ((bytes[i] & 0xf0) == 0xf0) 60 else if ((bytes[i] & 0xe0) == 0xe0) 64 else if ((bytes[i] & 0xc0) == 0xc0) 79 while (i < bytes.length) 83 if ((bytes[i] & 0xf0) == 0xf0) 85 int codePoint = ((bytes[i] & 0x03) << 18) | ((bytes[i + 1] & 0x3F) << 12) | ((bytes[i + 2] & 0x3F) << 6) | (bytes[i + 3] & 0x3F) [all...] |
/system/bt/service/common/bluetooth/binder/ |
parcel_helpers.cpp | 87 // a second 64-bit integer. This is the same as writing the raw-bytes in 90 UUID::UUID128Bit bytes = uuid.GetFullBigEndian(); local 93 ((((uint64_t) bytes[0]) << 56) | 94 (((uint64_t) bytes[1]) << 48) | 95 (((uint64_t) bytes[2]) << 40) | 96 (((uint64_t) bytes[3]) << 32) | 97 (((uint64_t) bytes[4]) << 24) | 98 (((uint64_t) bytes[5]) << 16) | 99 (((uint64_t) bytes[6]) << 8) | 100 bytes[7]) 118 UUID::UUID128Bit bytes; local [all...] |
/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/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...] |
/external/dexmaker/src/dx/java/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...] |
/external/google-breakpad/src/third_party/libdisasm/ |
x86_disasm.c | 20 unsigned char bytes[MAX_INSTRUCTION_SIZE]; local 44 /* copy enough bytes for disassembly into buffer : this 46 memset( bytes, 0, MAX_INSTRUCTION_SIZE ); 47 memcpy( bytes, &buf[offset], (len < MAX_INSTRUCTION_SIZE) ? len : 52 size = ia32_disasm_addr( bytes, len, insn); 63 MAKE_INVALID( insn, bytes ); 67 /* fill bytes field of insn */ 68 memcpy( insn->bytes, bytes, size ); 77 unsigned int buf_len, size, count = 0, bytes = 0 local 135 unsigned int size, count = 0, bytes = 0, cont = 1; local [all...] |
/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/nio/ |
DirectByteBuffer.java | 170 int bytes = 0; local 173 bytes = bytes << 8; 174 bytes = bytes | (byteArray.get(baseOffset + i) & 0xFF); 178 bytes = bytes << 8; 179 bytes = bytes | (byteArray.get(baseOffset + i) & 0xFF); 182 return bytes; 186 long bytes = 0; local 202 short bytes = 0; local [all...] |
HeapByteBuffer.java | 161 int bytes = 0; local 164 bytes = bytes << 8; 165 bytes = bytes | (backingArray[baseOffset + i] & 0xFF); 169 bytes = bytes << 8; 170 bytes = bytes | (backingArray[baseOffset + i] & 0xFF); 173 return bytes; 178 long bytes = 0; local 195 short bytes = 0; local [all...] |
/libcore/ojluni/src/main/java/sun/security/util/ |
ManifestDigester.java | 39 /** the raw bytes of the manifest */ 58 * raw bytes of the next section. 62 * @returns false if end of bytes has been reached, otherwise returns 108 public ManifestDigester(byte bytes[]) 110 rawBytes = bytes; 131 if (isNameAttr(bytes, start)) { 136 new String(bytes, start+6, len-6, "UTF8")); 140 if (bytes[i] == '\r') { 148 if (bytes[i++] == ' ') { 152 && (bytes[i++] != '\n')) [all...] |
/prebuilts/go/darwin-x86/src/runtime/ |
string_test.go | 14 bytes := []byte("Hello Gophers!") 15 s1, s2 := string(bytes), string(bytes) 54 bytes := make([]byte, 0, 1<<20) 55 for len(bytes) < 1<<20 { 56 bytes = append(bytes, "Hello Gophers!"...) 58 s1, s2 := string(bytes), "hello"+string(bytes) 68 bytes := make([]byte, 0, 1<<20 [all...] |
/prebuilts/go/linux-x86/src/runtime/ |
string_test.go | 14 bytes := []byte("Hello Gophers!") 15 s1, s2 := string(bytes), string(bytes) 54 bytes := make([]byte, 0, 1<<20) 55 for len(bytes) < 1<<20 { 56 bytes = append(bytes, "Hello Gophers!"...) 58 s1, s2 := string(bytes), "hello"+string(bytes) 68 bytes := make([]byte, 0, 1<<20 [all...] |
/external/emma/core/java12/com/vladium/emma/rt/ |
IClassLoadHook.java | 26 // * returns false, the current loader will load the class bytes itself and 62 * class definition in 'bytes' ('out' could be backed by the same array as 63 * 'bytes') 68 byte [] bytes, int length,
|
/external/guava/guava-tests/test/com/google/common/io/ |
TestByteSink.java | 32 private final ByteArrayOutputStream bytes = new ByteArrayOutputStream(); field in class:TestByteSink 43 return bytes.toByteArray(); 59 bytes.reset(); // truncate 66 super(bytes, options);
|
/external/libweave/third_party/chromium/base/ |
guid.h | 25 std::string RandomDataToGUIDString(const uint64_t bytes[2]);
|
rand_util_posix.cc | 32 bool ReadFromFD(int fd, char* buffer, size_t bytes) { 34 while (total_read < bytes) { 36 HANDLE_EINTR(read(fd, buffer + total_read, bytes - total_read)); 41 return total_read == bytes;
|
/external/protobuf/java/src/main/java/com/google/protobuf/ |
LiteralByteString.java | 45 * single array of bytes, contiguous in memory. It supports substring by 54 protected final byte[] bytes; field in class:LiteralByteString 60 * @param bytes array to wrap 62 LiteralByteString(byte[] bytes) { 63 this.bytes = bytes; 71 return bytes[index]; 76 return bytes.length; 103 result = new BoundedByteString(bytes, getOffsetIntoBytes() + beginIndex, 117 System.arraycopy(bytes, sourceOffset, target, targetOffset, numberToCopy) [all...] |