/external/protobuf/java/src/main/java/com/google/protobuf/ |
ByteString.java | 42 * Immutable array of bytes. 48 private final byte[] bytes; field in class:ByteString 50 private ByteString(final byte[] bytes) { 51 this.bytes = bytes; 60 return bytes[index]; 64 * Gets the number of bytes. 67 return bytes.length; 74 return bytes.length == 0; 86 * Copies the given bytes into a {@code ByteString} [all...] |
Internal.java | 53 * To get around this, protoc instead embeds the UTF-8 bytes into the 59 * in each value. This is much less efficient than just embedding the bytes 62 * generates a string literal corresponding to the bytes. The easiest way 67 * So we have a string literal which represents a set of bytes which 72 public static String stringDefaultValue(String bytes) { 74 return new String(bytes.getBytes("ISO-8859-1"), "UTF-8"); 84 * Helper called by generated code to construct default values for bytes 87 * This is a lot like {@link #stringDefaultValue}, but for bytes fields. 89 * embed raw bytes as a string literal with ISO-8859-1 encoding. 91 public static ByteString bytesDefaultValue(String bytes) { [all...] |
/external/protobuf/java/src/main/java/com/google/protobuf/micro/ |
ByteStringMicro.java | 36 * Immutable array of bytes. 42 private final byte[] bytes; field in class:ByteStringMicro 44 private ByteStringMicro(final byte[] bytes) { 45 this.bytes = bytes; 54 return bytes[index]; 58 * Gets the number of bytes. 61 return bytes.length; 68 return bytes.length == 0; 80 * Copies the given bytes into a {@code ByteStringMicro} [all...] |
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/ |
CMSProcessableByteArray.java | 19 private final byte[] bytes; field in class:CMSProcessableByteArray 22 byte[] bytes) 24 this(new ASN1ObjectIdentifier(CMSObjectIdentifiers.data.getId()), bytes); 29 byte[] bytes) 32 this.bytes = bytes; 37 return new ByteArrayInputStream(bytes); 43 zOut.write(bytes); 48 return Arrays.clone(bytes);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x9/ |
X9IntegerConverter.java | 26 byte[] bytes = s.toByteArray(); 28 if (qLength < bytes.length) 32 System.arraycopy(bytes, bytes.length - tmp.length, tmp, 0, tmp.length); 36 else if (qLength > bytes.length) 40 System.arraycopy(bytes, 0, tmp, tmp.length - bytes.length, bytes.length); 45 return bytes;
|
/external/chromium_org/third_party/leveldatabase/src/util/ |
arena.h | 20 // Return a pointer to a newly allocated memory block of "bytes" bytes. 21 char* Allocate(size_t bytes); 24 char* AllocateAligned(size_t bytes); 34 char* AllocateFallback(size_t bytes); 44 // Bytes of memory in blocks allocated so far 52 inline char* Arena::Allocate(size_t bytes) { 56 assert(bytes > 0); 57 if (bytes <= alloc_bytes_remaining_) { 59 alloc_ptr_ += bytes; [all...] |
/external/protobuf/java/src/main/java/com/google/protobuf/nano/ |
UnknownFieldData.java | 45 final byte[] bytes; field in class:UnknownFieldData 47 UnknownFieldData(int tag, byte[] bytes) { 49 this.bytes = bytes; 55 size += bytes.length; 61 output.writeRawBytes(bytes); 74 return tag == other.tag && Arrays.equals(bytes, other.bytes); 81 result = 31 * result + Arrays.hashCode(bytes);
|
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/java/ |
UnsafeByteSequence.java | 31 private byte[] bytes; field in class:UnsafeByteSequence 35 this.bytes = new byte[initialCapacity]; 51 if (count + length >= bytes.length) { 53 System.arraycopy(bytes, 0, newBytes, 0, count); 54 bytes = newBytes; 56 System.arraycopy(buffer, offset, bytes, count, length); 61 if (count == bytes.length) { 63 System.arraycopy(bytes, 0, newBytes, 0, count); 64 bytes = newBytes; 66 bytes[count++] = (byte) b [all...] |
/external/javassist/sample/hotswap/ |
Test.java | 10 byte[] bytes = new byte[(int)newfile.length()]; 11 new FileInputStream(newfile).read(bytes); 14 hs.reload("HelloWorld", bytes); 18 bytes = new byte[(int)newfile.length()]; 19 new FileInputStream(newfile).read(bytes); 22 hs.reload("HelloWorld", bytes);
|
/external/chromium_org/ui/base/text/ |
bytes_formatting.cc | 37 base::string16 FormatBytesInternal(int64 bytes, 42 if (bytes < 0) { 43 NOTREACHED() << "Negative bytes value"; 48 double unit_amount = static_cast<double>(bytes); 53 if (bytes != 0 && units != DATA_UNITS_BYTE && unit_amount < 100) 66 DataUnits GetByteDisplayUnits(int64 bytes) { 68 // in unit U when kUnitThresholds[U] <= bytes < kUnitThresholds[U+1]. 79 if (bytes < 0) { 80 NOTREACHED() << "Negative bytes value"; 86 if (bytes >= kUnitThresholds[unit_index] [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
ASN1Enumerated.java | 8 ASN1Enumerated(byte[] bytes) 10 super(bytes);
|
ASN1GeneralizedTime.java | 8 ASN1GeneralizedTime(byte[] bytes) 10 super(bytes);
|
ASN1Integer.java | 8 ASN1Integer(byte[] bytes) 10 super(bytes);
|
ASN1UTCTime.java | 8 ASN1UTCTime(byte[] bytes) 10 super(bytes);
|
/external/chromium_org/third_party/skia/src/core/ |
SkDiscardableMemory.h | 24 static SkDiscardableMemory* Create(size_t bytes); 32 virtual SkDiscardableMemory* create(size_t bytes) = 0;
|
/external/lldb/include/lldb/Host/ |
Endian.h | 22 uint8_t bytes[sizeof(uint32_t)]; member in union:lldb::endian::EndianTest 25 inline ByteOrder InlHostByteOrder() { return (ByteOrder)endianTest.bytes[0]; } 27 // ByteOrder const InlHostByteOrder = (ByteOrder)endianTest.bytes[0];
|
/external/skia/src/core/ |
SkDiscardableMemory.h | 24 static SkDiscardableMemory* Create(size_t bytes); 32 virtual SkDiscardableMemory* create(size_t bytes) = 0;
|
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/ |
QuotedPrintable.java | 26 * Decodes an array quoted-printable characters into an array of original bytes. 35 * @param bytes array of quoted-printable characters 36 * @return array of original bytes, 39 public static final byte[] decodeQuotedPrintable(byte[] bytes) { 40 if (bytes == null) { 44 for (int i = 0; i < bytes.length; i++) { 45 int b = bytes[i]; 48 if('\r' == (char)bytes[i + 1] && 49 '\n' == (char)bytes[i + 2]) { 53 int u = Character.digit((char) bytes[++i], 16) [all...] |
/external/chromium_org/third_party/webrtc/base/ |
stream_unittest.cc | 77 size_t bytes; local 81 EXPECT_EQ(stream->Read(buffer, kBufSize, &bytes, NULL), SR_SUCCESS); 82 EXPECT_EQ(bytes, kBufSize); 84 EXPECT_TRUE(stream->GetPosition(&bytes)); 85 EXPECT_EQ(13U, bytes); 89 EXPECT_EQ(stream->Read(buffer, kBufSize, &bytes, NULL), SR_SUCCESS); 90 EXPECT_EQ(bytes, kBufSize); 92 EXPECT_TRUE(stream->GetPosition(&bytes)); 93 EXPECT_EQ(20U, bytes); 109 size_t bytes; local 167 size_t bytes; local 446 char bytes[100]; local [all...] |
/external/chromium_org/cc/resources/ |
resource.cc | 9 size_t Resource::bytes() const { function in class:cc::Resource
|
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/crypto/ |
ByteArrayGenerator.java | 25 byte[] bytes = new byte[numBytes]; 26 if (bytes.length != fis.read(bytes)) { 29 return bytes;
|
/external/chromium_org/crypto/ |
random.h | 14 // Fills the given buffer with |length| random bytes of cryptographically 17 CRYPTO_EXPORT void RandBytes(void *bytes, size_t length);
|
/external/chromium_org/remoting/android/java/src/org/chromium/chromoting/ |
SecureRandomInitializer.java | 26 byte[] bytes = new byte[NUM_RANDOM_BYTES]; 27 if (bytes.length != fis.read(bytes)) { 30 generator.setSeed(bytes);
|
/external/chromium_org/third_party/webrtc/modules/audio_coding/codecs/ilbc/ |
encode.h | 29 uint16_t *bytes, /* (o) encoded data bits iLBC */
|
/external/google-tv-pairing-protocol/cpp/src/polo/util/ |
poloutil.h | 29 // Converts an array of big-endian bytes to a hex string. 30 // @param bytes an array of big-endian bytes 33 static const std::string BytesToHexString(const uint8_t* bytes, 36 // Converts a hex string to an array of big-endian bytes. A new byte array 37 // is created at the given bytes pointer, and the number of bytes is returned. 38 // The byte array must be freed using: delete[] bytes. 40 // @param bytes pointer to a byte array that will be created with the 42 // @return the number of bytes in the resulting byte arra [all...] |