/external/proguard/src/proguard/classfile/constant/ |
Utf8Constant.java | 54 // Initially, we're storing the UTF-8 bytes in a byte array. 59 private byte[] bytes; field in class:Utf8Constant 78 this.bytes = null; 84 * Initializes the UTF-8 data with an array of bytes. 86 public void setBytes(byte[] bytes) 88 this.bytes = bytes; 94 * Returns the UTF-8 data as an array of bytes. 107 return bytes; 116 this.bytes = null [all...] |
/external/valgrind/none/tests/s390x/ |
troo.stdout.exp | 1 0 bytes translated 3 0 bytes translated 5 5 bytes translated 7 10 bytes translated 9 0 bytes translated 11 1 bytes translated 13 8 bytes translated
|
/libcore/luni/src/test/java/libcore/java/io/ |
OutputStreamWriterTest.java | 66 byte[] bytes = baos.toByteArray(); 67 assertEquals(8196, bytes.length); 70 assertEquals((byte) 0, bytes[i++]); 71 assertEquals((byte) 0, bytes[i++]); 72 assertEquals((byte) 0, bytes[i++]); 73 assertEquals((byte) 'x', bytes[i++]); 77 assertEquals((byte) 0x00, bytes[i++]); 78 assertEquals((byte) 0x02, bytes[i++]); 79 assertEquals((byte) 0x0b, bytes[i++]); 80 assertEquals((byte) 0x9f, bytes[i++]) [all...] |
/external/protobuf/java/src/main/java/com/google/protobuf/ |
Internal.java | 57 * To get around this, protoc instead embeds the UTF-8 bytes into the 63 * in each value. This is much less efficient than just embedding the bytes 66 * generates a string literal corresponding to the bytes. The easiest way 71 * So we have a string literal which represents a set of bytes which 76 public static String stringDefaultValue(String bytes) { 78 return new String(bytes.getBytes("ISO-8859-1"), "UTF-8"); 88 * Helper called by generated code to construct default values for bytes 91 * This is a lot like {@link #stringDefaultValue}, but for bytes fields. 93 * embed raw bytes as a string literal with ISO-8859-1 encoding. 95 public static ByteString bytesDefaultValue(String bytes) { [all...] |
/external/webrtc/webrtc/base/ |
stream_unittest.cc | 78 size_t bytes; local 82 EXPECT_EQ(stream->Read(buffer, kBufSize, &bytes, NULL), SR_SUCCESS); 83 EXPECT_EQ(bytes, kBufSize); 85 EXPECT_TRUE(stream->GetPosition(&bytes)); 86 EXPECT_EQ(13U, bytes); 90 EXPECT_EQ(stream->Read(buffer, kBufSize, &bytes, NULL), SR_SUCCESS); 91 EXPECT_EQ(bytes, kBufSize); 93 EXPECT_TRUE(stream->GetPosition(&bytes)); 94 EXPECT_EQ(20U, bytes); 103 size_t bytes; local [all...] |
/external/google-breakpad/src/common/linux/ |
guid_creator.cc | 49 static uint32_t BytesToUInt32(const uint8_t bytes[]) { 50 return ((uint32_t) bytes[0] 51 | ((uint32_t) bytes[1] << 8) 52 | ((uint32_t) bytes[2] << 16) 53 | ((uint32_t) bytes[3] << 24)); 56 static void UInt32ToBytes(uint8_t bytes[], uint32_t n) { 57 bytes[0] = n & 0xff; 58 bytes[1] = (n >> 8) & 0xff; 59 bytes[2] = (n >> 16) & 0xff; 60 bytes[3] = (n >> 24) & 0xff [all...] |
/external/valgrind/gdbserver_tests/ |
mcleak.stderr.exp | 2 expecting details 10 bytes reachable 3 10 bytes in 1 blocks are still reachable in loss record ... of ... 8 expecting details +10 bytes lost, +21 bytes reachable 9 expecting details +65 bytes reachable 11 expecting details +10 bytes reachable 12 expecting details -10 bytes reachable, +10 bytes lost 13 expecting details -10 bytes lost, +10 bytes reachabl [all...] |
/hardware/broadcom/wlan/bcmdhd/dhdutil/include/ |
bcmendian.h | 29 /* Reverse the bytes in a 16-bit value */ 34 /* Reverse the bytes in a 32-bit value */ 125 #define htol16_ua_store(val, bytes) ({ \ 127 uint8 *_bytes = (uint8 *)(bytes); \ 132 #define htol32_ua_store(val, bytes) ({ \ 134 uint8 *_bytes = (uint8 *)(bytes); \ 141 #define hton16_ua_store(val, bytes) ({ \ 143 uint8 *_bytes = (uint8 *)(bytes); \ 148 #define hton32_ua_store(val, bytes) ({ \ 150 uint8 *_bytes = (uint8 *)(bytes); \ [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
ASN1Enumerated.java | 14 private final byte[] bytes; field in class:ASN1Enumerated 80 bytes = BigInteger.valueOf(value).toByteArray(); 91 bytes = value.toByteArray(); 97 * @param bytes the value of this enumerated as an encoded BigInteger (signed). 100 byte[] bytes) 102 this.bytes = bytes; 107 return new BigInteger(bytes); 117 return 1 + StreamUtil.calculateBodyLength(bytes.length) + bytes.length [all...] |
/external/emma/core/java12/com/vladium/jcd/cls/constant/ |
CONSTANT_info.java | 60 public static CONSTANT_info new_CONSTANT_info (final UDataInputStream bytes) 63 byte tag = bytes.readByte (); 68 return new CONSTANT_Utf8_info (bytes); 71 return new CONSTANT_Integer_info (bytes); 74 return new CONSTANT_Float_info (bytes); 77 return new CONSTANT_Long_info (bytes); 80 return new CONSTANT_Double_info (bytes); 84 return new CONSTANT_Class_info (bytes); 87 return new CONSTANT_String_info (bytes); 91 return new CONSTANT_Fieldref_info (bytes); [all...] |
/external/jetty/src/java/org/eclipse/jetty/server/ |
HttpWriter.java | 139 int bytes=out._bytes.getCount(); local 141 if (chars>buffer.length-bytes) 142 chars=buffer.length-bytes; 147 buffer[bytes++]=(byte)(c<256?c:'?'); // ISO-1 and UTF-8 match for 0 - 255 149 if (bytes>=0) 150 out._bytes.setCount(bytes); 158 int bytes=out._bytes.getCount(); local 160 if (bytes+chars>buffer.length) 161 chars=buffer.length-bytes; 193 if (bytes>=buffer.length [all...] |
/art/test/102-concurrent-gc/src/ |
Main.java | 24 public byte[] bytes; field in class:Main.ByteContainer 37 l[index].bytes = new byte[bufferSize]; 57 byte[] temp = l[a].bytes; 58 l[a].bytes = l[b].bytes; 59 l[b].bytes = temp;
|
/external/c-ares/ |
ares_writev.c | 32 size_t bytes = 0; local 45 if (iov[i].iov_len > INT_MAX - bytes) 50 bytes += iov[i].iov_len; 53 if (bytes == 0) 57 buffer = malloc(bytes); 72 result = swrite(s, buffer, bytes);
|
/external/clang/test/Analysis/Inputs/ |
system-header-simulator-for-malloc.h | 19 - (id)initWithBytesNoCopy:(void *)bytes length:(NSUInteger)len; 23 - (id)initWithBytesNoCopy:(void *)bytes length:(NSUInteger)len { 24 return [self initWithBytesNoCopy:bytes length:len freeWhenDone:1]; // no-warning 29 + (id)somethingNoCopy:(char *)bytes; 30 + (id)somethingNoCopy:(void *)bytes length:(NSUInteger)length freeWhenDone:(BOOL)freeBuffer; 31 + (id)something:(char *)bytes freeWhenDone:(BOOL)freeBuffer;
|
/libcore/ojluni/src/main/java/sun/net/ |
TelnetInputStream.java | 128 public int read(byte bytes[]) throws IOException { 129 return read(bytes, 0, bytes.length); 134 * bytes. 136 public int read(byte bytes[], int off, int length) throws IOException { 138 return super.read(bytes, off, length); 147 bytes[off++] = (byte)c;
|
/libcore/ojluni/src/main/native/ |
ObjectInputStream.c | 61 jbyte *bytes; local 73 bytes = (*env)->GetPrimitiveArrayCritical(env, src, NULL); 74 if (bytes == NULL) /* exception thrown */ 79 (*env)->ReleasePrimitiveArrayCritical(env, src, bytes, JNI_ABORT); 85 (*env)->ReleasePrimitiveArrayCritical(env, src, bytes, JNI_ABORT); 92 ival = ((bytes[srcpos + 0] & 0xFF) << 24) + 93 ((bytes[srcpos + 1] & 0xFF) << 16) + 94 ((bytes[srcpos + 2] & 0xFF) << 8) + 95 ((bytes[srcpos + 3] & 0xFF) << 0); 101 (*env)->ReleasePrimitiveArrayCritical(env, src, bytes, JNI_ABORT) 129 jbyte *bytes; local [all...] |
/bionic/tests/ |
uchar_test.cpp | 83 char bytes[MB_LEN_MAX]; local 84 EXPECT_EQ(1U, c16rtomb(bytes, L'\0', NULL)); 92 char bytes[MB_LEN_MAX]; local 94 memset(bytes, 0, sizeof(bytes)); 95 EXPECT_EQ(1U, c16rtomb(bytes, L'h', NULL)); 96 EXPECT_EQ('h', bytes[0]); 102 memset(bytes, 0, sizeof(bytes)); 103 EXPECT_EQ(1U, c16rtomb(bytes, L'h', NULL)) 123 char bytes[MB_LEN_MAX]; local 139 char bytes[MB_LEN_MAX]; local 281 char bytes[MB_LEN_MAX]; local [all...] |
/bionic/libc/bionic/ |
jemalloc_wrapper.cpp | 23 void* je_pvalloc(size_t bytes) { 25 size_t size = BIONIC_ALIGN(bytes, pagesize); 26 if (size < bytes) {
|
/dalvik/dexgen/src/com/android/dexgen/util/ |
Output.java | 27 * bytes written to this instance. 76 * @return {@code 1..5;} the number of bytes actually written 86 * @return {@code 1..5;} the number of bytes actually written 93 * @param bytes {@code non-null;} the array to write 95 public void write(ByteArray bytes); 100 * @param bytes {@code non-null;} the array to write 101 * @param offset {@code >= 0;} offset into {@code bytes} for the first 103 * @param length {@code >= 0;} number of bytes to write 105 public void write(byte[] bytes, int offset, int length); 109 * a convenient shorthand for {@code write(bytes, 0, bytes.length)} [all...] |
/dalvik/dx/src/com/android/dx/cf/iface/ |
ParseObserver.java | 37 * @param bytes {@code non-null;} the source that is being parsed 38 * @param offset offset into {@code bytes} for the start of the 43 public void startParsingMember(ByteArray bytes, int offset, String name, 49 * @param bytes {@code non-null;} the source that was parsed 50 * @param offset offset into {@code bytes} for the end of the 56 public void endParsingMember(ByteArray bytes, int offset, String name, 62 * @param bytes {@code non-null;} the source that was parsed 63 * @param offset offset into {@code bytes} for what was parsed 64 * @param len number of bytes parsed 67 public void parsed(ByteArray bytes, int offset, int len, String human) [all...] |
/dalvik/dx/src/com/android/dx/util/ |
Output.java | 29 * bytes written to this instance. 78 * @return {@code 1..5;} the number of bytes actually written 88 * @return {@code 1..5;} the number of bytes actually written 95 * @param bytes {@code non-null;} the array to write 97 public void write(ByteArray bytes); 102 * @param bytes {@code non-null;} the array to write 103 * @param offset {@code >= 0;} offset into {@code bytes} for the first 105 * @param length {@code >= 0;} number of bytes to write 107 public void write(byte[] bytes, int offset, int length); 111 * a convenient shorthand for {@code write(bytes, 0, bytes.length)} [all...] |
/external/dexmaker/src/dx/java/com/android/dx/util/ |
Output.java | 27 * bytes written to this instance. 76 * @return {@code 1..5;} the number of bytes actually written 86 * @return {@code 1..5;} the number of bytes actually written 93 * @param bytes {@code non-null;} the array to write 95 public void write(ByteArray bytes); 100 * @param bytes {@code non-null;} the array to write 101 * @param offset {@code >= 0;} offset into {@code bytes} for the first 103 * @param length {@code >= 0;} number of bytes to write 105 public void write(byte[] bytes, int offset, int length); 109 * a convenient shorthand for {@code write(bytes, 0, bytes.length)} [all...] |
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/ |
IsoTypeWriterVariable.java | 23 public static void write(long v, ByteBuffer bb, int bytes) { 24 switch (bytes) { 41 throw new RuntimeException("I don't know how to read " + bytes + " bytes");
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
NdefRecordTest.java | 15 byte[] bytes = "mumble".getBytes(); 16 NdefRecord ndefRecord = new NdefRecord(bytes); 18 assertSame(ndefRecord.getPayload(), bytes); local
|
/frameworks/rs/ |
rsFifoSocket.h | 37 bool writeAsync(const void *data, size_t bytes, bool waitForSpace = true); 39 size_t read(void *data, size_t bytes); 40 void readReturn(const void *data, size_t bytes);
|