/external/protobuf/java/src/main/java/com/google/protobuf/ |
D | ByteString.java | 48 private final byte[] bytes; field in ByteString 50 private ByteString(final byte[] bytes) { in ByteString() argument 51 this.bytes = bytes; in ByteString() 60 return bytes[index]; in byteAt() 67 return bytes.length; in size() 74 return bytes.length == 0; in isEmpty() 88 public static ByteString copyFrom(final byte[] bytes, final int offset, in copyFrom() argument 91 System.arraycopy(bytes, offset, copy, 0, size); in copyFrom() 98 public static ByteString copyFrom(final byte[] bytes) { in copyFrom() argument 99 return copyFrom(bytes, 0, bytes.length); in copyFrom() [all …]
|
/external/bouncycastle/src/main/java/org/bouncycastle/asn1/ |
D | DERInputStream.java | 73 byte[] bytes) in readFully() argument 76 int left = bytes.length; in readFully() 85 int l = read(bytes, bytes.length - left, left); in readFully() 102 byte[] bytes) in buildObject() argument 110 ByteArrayInputStream bIn = new ByteArrayInputStream(bytes); in buildObject() 128 bIn = new ByteArrayInputStream(bytes); in buildObject() 148 return DERBoolean.getInstance(bytes); in buildObject() 151 return new DERInteger(bytes); in buildObject() 153 return new DEREnumerated(bytes); in buildObject() 155 return new DERObjectIdentifier(bytes); in buildObject() [all …]
|
D | ASN1InputStream.java | 94 byte[] bytes) in readFully() argument 97 if (Streams.readFully(this, bytes) != bytes.length) in readFully() 337 byte[] bytes) in createPrimitiveDERObject() argument 343 int padBits = bytes[0]; in createPrimitiveDERObject() 344 byte[] data = new byte[bytes.length - 1]; in createPrimitiveDERObject() 345 System.arraycopy(bytes, 1, data, 0, bytes.length - 1); in createPrimitiveDERObject() 349 return new DERBMPString(bytes); in createPrimitiveDERObject() 352 return DERBoolean.getInstance(bytes); in createPrimitiveDERObject() 355 return new DEREnumerated(bytes); in createPrimitiveDERObject() 357 return new DERGeneralizedTime(bytes); in createPrimitiveDERObject() [all …]
|
D | DERInteger.java | 11 byte[] bytes; field in DERInteger 58 bytes = BigInteger.valueOf(value).toByteArray(); in DERInteger() 64 bytes = value.toByteArray(); in DERInteger() 68 byte[] bytes) in DERInteger() argument 70 this.bytes = bytes; in DERInteger() 75 return new BigInteger(bytes); in getValue() 84 return new BigInteger(1, bytes); in getPositiveValue() 91 out.writeEncoded(INTEGER, bytes); in encode() 98 for (int i = 0; i != bytes.length; i++) in hashCode() 100 value ^= (bytes[i] & 0xff) << (i % 4); in hashCode() [all …]
|
D | DEREnumerated.java | 11 byte[] bytes; field in DEREnumerated 58 bytes = BigInteger.valueOf(value).toByteArray(); in DEREnumerated() 64 bytes = value.toByteArray(); in DEREnumerated() 68 byte[] bytes) in DEREnumerated() argument 70 this.bytes = bytes; in DEREnumerated() 75 return new BigInteger(bytes); in getValue() 82 out.writeEncoded(ENUMERATED, bytes); in encode() 95 return Arrays.areEqual(this.bytes, other.bytes); in asn1Equals() 100 return Arrays.hashCode(bytes); in hashCode()
|
D | DERBitString.java | 71 int bytes = 4; in getBytes() local 78 bytes--; in getBytes() 81 byte[] result = new byte[bytes]; in getBytes() 82 for (int i = 0; i < bytes; i++) in getBytes() 105 byte[] bytes = ((ASN1OctetString)obj).getOctets(); in getInstance() 106 int padBits = bytes[0]; in getInstance() 107 byte[] data = new byte[bytes.length - 1]; in getInstance() 109 System.arraycopy(bytes, 1, data, 0, bytes.length - 1); in getInstance() 209 byte[] bytes = new byte[getBytes().length + 1]; in encode() 211 bytes[0] = (byte)getPadBits(); in encode() [all …]
|
/external/proguard/src/proguard/classfile/constant/ |
D | Utf8Constant.java | 59 private byte[] bytes; field in Utf8Constant 78 this.bytes = null; in Utf8Constant() 86 public void setBytes(byte[] bytes) in setBytes() argument 88 this.bytes = bytes; in setBytes() 107 return bytes; in getBytes() 116 this.bytes = null; in setString() 159 if (bytes == null) in switchToByteArrayRepresentation() 161 bytes = getByteArrayRepresentation(string); in switchToByteArrayRepresentation() 174 string = getStringRepresentation(bytes); in switchToStringRepresentation() 175 bytes = null; in switchToStringRepresentation() [all …]
|
/external/chromium/net/proxy/ |
D | proxy_script_fetcher_unittest.cc | 27 std::string bytes; member 73 std::string bytes; in TEST_F() local 76 &bytes, &callback); in TEST_F() 79 EXPECT_TRUE(bytes.empty()); in TEST_F() 82 std::string bytes; in TEST_F() local 85 &bytes, &callback); in TEST_F() 88 EXPECT_EQ("-pac.txt-\n", bytes); in TEST_F() 104 std::string bytes; in TEST_F() local 106 int result = pac_fetcher->Fetch(url, &bytes, &callback); in TEST_F() 109 EXPECT_EQ("-pac.txt-\n", bytes); in TEST_F() [all …]
|
/external/protobuf/java/src/main/java/com/google/protobuf/micro/ |
D | ByteStringMicro.java | 42 private final byte[] bytes; field in ByteStringMicro 44 private ByteStringMicro(final byte[] bytes) { in ByteStringMicro() argument 45 this.bytes = bytes; in ByteStringMicro() 54 return bytes[index]; in byteAt() 61 return bytes.length; in size() 68 return bytes.length == 0; in isEmpty() 82 public static ByteStringMicro copyFrom(final byte[] bytes, final int offset, in copyFrom() argument 85 System.arraycopy(bytes, offset, copy, 0, size); in copyFrom() 92 public static ByteStringMicro copyFrom(final byte[] bytes) { in copyFrom() argument 93 return copyFrom(bytes, 0, bytes.length); in copyFrom() [all …]
|
/external/bouncycastle/src/main/java/org/bouncycastle/util/ |
D | Strings.java | 8 public static String fromUTF8ByteArray(byte[] bytes) in fromUTF8ByteArray() argument 13 while (i < bytes.length) in fromUTF8ByteArray() 16 if ((bytes[i] & 0xf0) == 0xf0) in fromUTF8ByteArray() 22 else if ((bytes[i] & 0xe0) == 0xe0) in fromUTF8ByteArray() 26 else if ((bytes[i] & 0xc0) == 0xc0) in fromUTF8ByteArray() 41 while (i < bytes.length) in fromUTF8ByteArray() 45 if ((bytes[i] & 0xf0) == 0xf0) in fromUTF8ByteArray() 47 …int codePoint = ((bytes[i] & 0x03) << 18) | ((bytes[i+1] & 0x3F) << 12) | ((bytes[i+2] & 0x3F) << … in fromUTF8ByteArray() 55 else if ((bytes[i] & 0xe0) == 0xe0) in fromUTF8ByteArray() 57 ch = (char)(((bytes[i] & 0x0f) << 12) in fromUTF8ByteArray() [all …]
|
/external/elfutils/tests/ |
D | run-show-ciefde.sh | 30 CIE[0]: bytes = 0c 04 04 88 01 00 00 32 FDE[0]: bytes = 18 00 00 00 18 00 00 00 2c 84 04 08 29 00 00 00 41 0e 08 85 02 42 0d 05 41 83 03 00 45 CIE[0]: bytes = 0c 04 04 88 01 50 CIE[1]: bytes = 0c 04 04 88 01 00 00 55 CIE[2]: bytes = 0c 04 04 88 01 00 00 60 CIE[3]: bytes = 0c 04 04 88 01 65 CIE[4]: bytes = 0c 04 04 88 01 00 00 67 FDE[0]: bytes = 2c 00 00 00 1c 00 00 00 fc 93 04 08 9a 00 00 00 41 0e 08 85 02 42 0d 05 53 2e 08 50… 71 FDE[1]: bytes = 18 00 00 00 4c 00 00 00 98 94 04 08 31 00 00 00 41 0e 08 85 02 42 0d 05 4c 2e 10 00 75 FDE[2]: bytes = 18 00 00 00 18 00 00 00 d4 94 04 08 17 00 00 00 41 0e 08 85 02 42 0d 05 41 83 03 00 [all …]
|
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/engines/ |
D | AESFastEngine.java | 752 byte[] bytes, in unpackBlock() argument 757 C0 = (bytes[index++] & 0xff); in unpackBlock() 758 C0 |= (bytes[index++] & 0xff) << 8; in unpackBlock() 759 C0 |= (bytes[index++] & 0xff) << 16; in unpackBlock() 760 C0 |= bytes[index++] << 24; in unpackBlock() 762 C1 = (bytes[index++] & 0xff); in unpackBlock() 763 C1 |= (bytes[index++] & 0xff) << 8; in unpackBlock() 764 C1 |= (bytes[index++] & 0xff) << 16; in unpackBlock() 765 C1 |= bytes[index++] << 24; in unpackBlock() 767 C2 = (bytes[index++] & 0xff); in unpackBlock() [all …]
|
D | AESEngine.java | 421 byte[] bytes, in unpackBlock() argument 426 C0 = (bytes[index++] & 0xff); in unpackBlock() 427 C0 |= (bytes[index++] & 0xff) << 8; in unpackBlock() 428 C0 |= (bytes[index++] & 0xff) << 16; in unpackBlock() 429 C0 |= bytes[index++] << 24; in unpackBlock() 431 C1 = (bytes[index++] & 0xff); in unpackBlock() 432 C1 |= (bytes[index++] & 0xff) << 8; in unpackBlock() 433 C1 |= (bytes[index++] & 0xff) << 16; in unpackBlock() 434 C1 |= bytes[index++] << 24; in unpackBlock() 436 C2 = (bytes[index++] & 0xff); in unpackBlock() [all …]
|
/external/tremolo/Tremolo/ |
D | misc.c | 58 long bytes; member 64 static void *_insert(void *ptr,long bytes,char *file,long line){ in _insert() argument 68 ((head *)ptr)->bytes=bytes-HEAD_ALIGN; in _insert() 113 file_bytes[i]+=bytes-HEAD_ALIGN; in _insert() 122 file_bytes[i]-(bytes-HEAD_ALIGN)); in _insert() 132 global_bytes+(bytes-HEAD_ALIGN)); in _insert() 137 global_bytes+=(bytes-HEAD_ALIGN); in _insert() 152 long bytes =((head *)ptr)->bytes; in _ripremove() local 159 global_bytes-((head *)ptr)->bytes); in _ripremove() 172 file_bytes[i]-bytes); in _ripremove() [all …]
|
/external/skia/src/core/ |
D | SkChunkAlloc.cpp | 80 SkChunkAlloc::Block* SkChunkAlloc::newBlock(size_t bytes, AllocFailType ftype) { in newBlock() argument 83 if (block && bytes <= block->fFreeSize) { in newBlock() 88 size_t size = SkMax32((int32_t)bytes, (int32_t)fMinSize); in newBlock() 103 void* SkChunkAlloc::alloc(size_t bytes, AllocFailType ftype) { in alloc() argument 104 bytes = SkAlign4(bytes); in alloc() 108 if (block == NULL || bytes > block->fFreeSize) { in alloc() 109 block = this->newBlock(bytes, ftype); in alloc() 117 SkASSERT(block && bytes <= block->fFreeSize); in alloc() 120 block->fFreeSize -= bytes; in alloc() 121 block->fFreePtr += bytes; in alloc() [all …]
|
/external/emma/core/java12/com/vladium/jcd/cls/constant/ |
D | CONSTANT_info.java | 60 public static CONSTANT_info new_CONSTANT_info (final UDataInputStream bytes) in new_CONSTANT_info() argument 63 …byte tag = bytes.readByte (); … in new_CONSTANT_info() 68 return new CONSTANT_Utf8_info (bytes); in new_CONSTANT_info() 71 return new CONSTANT_Integer_info (bytes); in new_CONSTANT_info() 74 return new CONSTANT_Float_info (bytes); in new_CONSTANT_info() 77 return new CONSTANT_Long_info (bytes); in new_CONSTANT_info() 80 return new CONSTANT_Double_info (bytes); in new_CONSTANT_info() 84 return new CONSTANT_Class_info (bytes); in new_CONSTANT_info() 87 return new CONSTANT_String_info (bytes); in new_CONSTANT_info() 91 return new CONSTANT_Fieldref_info (bytes); in new_CONSTANT_info() [all …]
|
/external/dbus/dbus/ |
D | dbus-memory.c | 440 dbus_malloc (size_t bytes) in dbus_malloc() argument 447 _dbus_verbose (" FAILING malloc of %ld bytes\n", (long) bytes); in dbus_malloc() 452 if (bytes == 0) /* some system mallocs handle this, some don't */ in dbus_malloc() 455 else if (fail_size != 0 && bytes > fail_size) in dbus_malloc() 461 block = malloc (bytes + GUARD_EXTRA_SIZE); in dbus_malloc() 465 return set_guards (block, bytes, SOURCE_MALLOC); in dbus_malloc() 471 mem = malloc (bytes); in dbus_malloc() 493 dbus_malloc0 (size_t bytes) in dbus_malloc0() argument 500 _dbus_verbose (" FAILING malloc0 of %ld bytes\n", (long) bytes); in dbus_malloc0() 506 if (bytes == 0) in dbus_malloc0() [all …]
|
/external/protobuf/java/src/test/java/com/google/protobuf/ |
D | CodedOutputStreamTest.java | 54 private byte[] bytes(int... bytesAsInts) { in bytes() method in CodedOutputStreamTest 55 byte[] bytes = new byte[bytesAsInts.length]; in bytes() 57 bytes[i] = (byte) bytesAsInts[i]; in bytes() 59 return bytes; in bytes() 63 private List<Byte> toList(byte[] bytes) { in toList() argument 65 for (byte b : bytes) { in toList() 130 assertWriteVarint(bytes(0x00), 0); in testWriteVarint() 131 assertWriteVarint(bytes(0x01), 1); in testWriteVarint() 132 assertWriteVarint(bytes(0x7f), 127); in testWriteVarint() 134 assertWriteVarint(bytes(0xa2, 0x74), (0x22 << 0) | (0x74 << 7)); in testWriteVarint() [all …]
|
/external/dropbear/ |
D | keyimport.c | 346 struct mpint_pos { void *start; int bytes; }; member 738 numbers[0].start = zero; numbers[0].bytes = 1; zero[0] = '\0'; in openssh_write() 749 numbers[2].bytes = buf_getint(keyblob); in openssh_write() 750 numbers[2].start = buf_getptr(keyblob, numbers[2].bytes); in openssh_write() 751 buf_incrpos(keyblob, numbers[2].bytes); in openssh_write() 754 numbers[1].bytes = buf_getint(keyblob); in openssh_write() 755 numbers[1].start = buf_getptr(keyblob, numbers[1].bytes); in openssh_write() 756 buf_incrpos(keyblob, numbers[1].bytes); in openssh_write() 759 numbers[3].bytes = buf_getint(keyblob); in openssh_write() 760 numbers[3].start = buf_getptr(keyblob, numbers[3].bytes); in openssh_write() [all …]
|
D | progressmeter.c | 77 format_rate(char *buf, int size, off_t bytes) in format_rate() argument 81 bytes *= 100; in format_rate() 82 for (i = 0; bytes >= 100*1000 && unit[i] != 'T'; i++) in format_rate() 83 bytes = (bytes + 512) / 1024; in format_rate() 86 bytes = (bytes + 512) / 1024; in format_rate() 89 (long long) (bytes + 5) / 100, in format_rate() 90 (long long) (bytes + 5) / 10 % 10, in format_rate() 96 format_size(char *buf, int size, off_t bytes) in format_size() argument 100 for (i = 0; bytes >= 10000 && unit[i] != 'T'; i++) in format_size() 101 bytes = (bytes + 512) / 1024; in format_size() [all …]
|
/external/webkit/WebKitTools/pywebsocket/mod_pywebsocket/ |
D | msgutil.py | 50 bytes = request.connection.read(length) 51 if not bytes: 55 return bytes 58 def _write(request, bytes): argument 60 request.connection.write(bytes) 100 bytes = _read_until(request, '\xff') 103 message = bytes.decode('utf-8', 'replace') 121 bytes = [] 124 bytes.append(new_bytes) 126 return ''.join(bytes) [all …]
|
/external/apache-http/src/org/apache/commons/codec/net/ |
D | QuotedPrintableCodec.java | 136 public static final byte[] encodeQuotedPrintable(BitSet printable, byte[] bytes) { in encodeQuotedPrintable() argument 137 if (bytes == null) { in encodeQuotedPrintable() 144 for (int i = 0; i < bytes.length; i++) { in encodeQuotedPrintable() 145 int b = bytes[i]; in encodeQuotedPrintable() 173 public static final byte[] decodeQuotedPrintable(byte[] bytes) throws DecoderException { in decodeQuotedPrintable() argument 174 if (bytes == null) { in decodeQuotedPrintable() 178 for (int i = 0; i < bytes.length; i++) { in decodeQuotedPrintable() 179 int b = bytes[i]; in decodeQuotedPrintable() 182 int u = Character.digit((char) bytes[++i], 16); in decodeQuotedPrintable() 183 int l = Character.digit((char) bytes[++i], 16); in decodeQuotedPrintable() [all …]
|
D | URLCodec.java | 111 public static final byte[] encodeUrl(BitSet urlsafe, byte[] bytes) in encodeUrl() argument 113 if (bytes == null) { in encodeUrl() 121 for (int i = 0; i < bytes.length; i++) { in encodeUrl() 122 int b = bytes[i]; in encodeUrl() 154 public static final byte[] decodeUrl(byte[] bytes) in decodeUrl() argument 157 if (bytes == null) { in decodeUrl() 161 for (int i = 0; i < bytes.length; i++) { in decodeUrl() 162 int b = bytes[i]; in decodeUrl() 167 int u = Character.digit((char)bytes[++i], 16); in decodeUrl() 168 int l = Character.digit((char)bytes[++i], 16); in decodeUrl() [all …]
|
/external/webkit/WebKit/mac/Misc/ |
D | WebNSDataExtras.m | 115 const UInt8 *bytes = [self bytes]; 119 const char *p = (const char *)bytes; 175 const char *bytes = [self bytes]; 177 const char *p = bytes; 201 p = bytes; 231 … if ((length >= VCARD_HEADER_LENGTH) && strncmp(bytes, "BEGIN:VCARD", VCARD_HEADER_LENGTH) == 0) { 234 …if ((length >= VCAL_HEADER_LENGTH) && strncmp(bytes, "BEGIN:VCALENDAR", VCAL_HEADER_LENGTH) == 0) { 241 char c = bytes[i]; 254 …if ((length >= JPEG_MAGIC_NUMBER_LENGTH) && strncmp(bytes, "\xFF\xD8\xFF\xE0", JPEG_MAGIC_NUMBER_L… 275 const char *bytes = [self bytes]; [all …]
|
/external/webkit/WebCore/platform/text/ |
D | TextCodecUserDefined.cpp | 52 String TextCodecUserDefined::decode(const char* bytes, size_t length, bool, bool, bool&) in decode() argument 58 signed char c = bytes[i]; in decode() 68 char* bytes = result.data(); in encodeComplexUserDefined() local 76 bytes[resultLength++] = signedByte; in encodeComplexUserDefined() 82 bytes = result.data(); in encodeComplexUserDefined() 83 memcpy(bytes + resultLength, replacement, replacementLength); in encodeComplexUserDefined() 88 return CString(bytes, resultLength); in encodeComplexUserDefined() 93 char* bytes; in encode() local 94 CString string = CString::newUninitialized(length, bytes); in encode() 100 bytes[i] = c; in encode()
|