/external/cronet/stable/base/numerics/ |
D | byte_conversions_unittest.cc | 23 constexpr uint8_t bytes[] = {0x12u}; in TEST() local 29 constexpr uint8_t bytes[] = {0x12u, 0x34u}; in TEST() local 35 constexpr uint8_t bytes[] = {0x12u, 0x34u, 0x56u, 0x78u}; in TEST() local 41 constexpr uint8_t bytes[] = {0x12u, 0x34u, 0x56u, 0x78u, in TEST() local 49 constexpr uint8_t bytes[] = {0x12u}; in TEST() local 55 constexpr uint8_t bytes[] = {0x12u, 0x34u}; in TEST() local 61 constexpr uint8_t bytes[] = {0x12u, 0x34u, 0x56u, 0x78u}; in TEST() local 67 constexpr uint8_t bytes[] = {0x12u, 0x34u, 0x56u, 0x78u, in TEST() local 75 constexpr uint8_t bytes[] = {0x12u, 0x34u, 0x56u, 0x78u}; in TEST() local 86 constexpr uint8_t bytes[] = {0x12u, 0x34u, 0x56u, 0x78u, in TEST() local [all …]
|
D | byte_conversions.h | 43 std::span<const uint8_t, 1u> bytes) { in U8FromNativeEndian() 54 std::span<const uint8_t, 2u> bytes) { in U16FromNativeEndian() 65 std::span<const uint8_t, 4u> bytes) { in U32FromNativeEndian() 76 std::span<const uint8_t, 8u> bytes) { in U64FromNativeEndian() 90 inline constexpr int8_t I8FromNativeEndian(std::span<const uint8_t, 1u> bytes) { in I8FromNativeEndian() 101 std::span<const uint8_t, 2u> bytes) { in I16FromNativeEndian() 112 std::span<const uint8_t, 4u> bytes) { in I32FromNativeEndian() 123 std::span<const uint8_t, 8u> bytes) { in I64FromNativeEndian() 135 std::span<const uint8_t, 4u> bytes) { in FloatFromNativeEndian() 146 std::span<const uint8_t, 8u> bytes) { in DoubleFromNativeEndian() [all …]
|
/external/cronet/tot/base/numerics/ |
D | byte_conversions_unittest.cc | 23 constexpr uint8_t bytes[] = {0x12u}; in TEST() local 29 constexpr uint8_t bytes[] = {0x12u, 0x34u}; in TEST() local 35 constexpr uint8_t bytes[] = {0x12u, 0x34u, 0x56u, 0x78u}; in TEST() local 41 constexpr uint8_t bytes[] = {0x12u, 0x34u, 0x56u, 0x78u, in TEST() local 49 constexpr uint8_t bytes[] = {0x12u}; in TEST() local 55 constexpr uint8_t bytes[] = {0x12u, 0x34u}; in TEST() local 61 constexpr uint8_t bytes[] = {0x12u, 0x34u, 0x56u, 0x78u}; in TEST() local 67 constexpr uint8_t bytes[] = {0x12u, 0x34u, 0x56u, 0x78u, in TEST() local 75 constexpr uint8_t bytes[] = {0x12u, 0x34u, 0x56u, 0x78u}; in TEST() local 86 constexpr uint8_t bytes[] = {0x12u, 0x34u, 0x56u, 0x78u, in TEST() local [all …]
|
D | byte_conversions.h | 43 std::span<const uint8_t, 1u> bytes) { in U8FromNativeEndian() 54 std::span<const uint8_t, 2u> bytes) { in U16FromNativeEndian() 65 std::span<const uint8_t, 4u> bytes) { in U32FromNativeEndian() 76 std::span<const uint8_t, 8u> bytes) { in U64FromNativeEndian() 90 inline constexpr int8_t I8FromNativeEndian(std::span<const uint8_t, 1u> bytes) { in I8FromNativeEndian() 101 std::span<const uint8_t, 2u> bytes) { in I16FromNativeEndian() 112 std::span<const uint8_t, 4u> bytes) { in I32FromNativeEndian() 123 std::span<const uint8_t, 8u> bytes) { in I64FromNativeEndian() 135 std::span<const uint8_t, 4u> bytes) { in FloatFromNativeEndian() 146 std::span<const uint8_t, 8u> bytes) { in DoubleFromNativeEndian() [all …]
|
/external/python/bumble/bumble/ |
D | crypto.py | 63 cls, d_bytes: bytes, x_bytes: bytes, y_bytes: bytes 89 def dh(self, public_key_x: bytes, public_key_y: bytes) -> bytes: 114 def xor(x: bytes, y: bytes) -> bytes: 120 def reverse(input: bytes) -> bytes: 136 def e(key: bytes, data: bytes) -> bytes: 149 def ah(k: bytes, r: bytes) -> bytes: # pylint: disable=redefined-outer-name 161 k: bytes, 162 r: bytes, 163 preq: bytes, 164 pres: bytes, [all …]
|
/external/pigweed/pw_transfer/integration_test/ |
D | proxy_test.py | 46 async def append(list: list[bytes], data: bytes): 82 async def append(list: list[bytes], data: bytes): 108 async def append(list: list[bytes], data: bytes): 147 async def append(list: list[bytes], data: bytes): 198 async def append(list: list[bytes], data: bytes): 235 async def append(list: list[bytes], data: bytes): 269 async def append(list: list[bytes], data: bytes): 327 async def append(list: list[bytes], data: bytes): 423 async def append(list: list[bytes], data: bytes): 515 async def append(list: list[bytes], data: bytes):
|
D | proxy.py | 81 def __init__(self, send_data: Callable[[bytes], Awaitable[None]]): 85 async def process(self, data: bytes) -> None: 92 async def __call__(self, data: bytes) -> None: 104 def __init__(self, send_data: Callable[[bytes], Awaitable[None]]): 108 async def process(self, data: bytes) -> None: 122 send_data: Callable[[bytes], Awaitable[None]], 135 async def process(self, data: bytes) -> None: 171 send_data: Callable[[bytes], Awaitable[None]], 184 async def process(self, data: bytes) -> None: 217 self, send_data: Callable[[bytes], Awaitable[None]], rate: float [all …]
|
/external/rust/android-crates-io/crates/xml-rs/src/ |
D | util.rs | 112 let mut bytes = source.bytes(); in next_char_from() localVariable 221 let mut bytes: &[u8] = "correct".as_bytes(); // correct ASCII in test_next_char_from() localVariable 224 let mut bytes: &[u8] = b"\xEF\xBB\xBF\xE2\x80\xA2!"; // BOM in test_next_char_from() localVariable 227 let mut bytes: &[u8] = b"\xEF\xBB\xBFx123"; // BOM in test_next_char_from() localVariable 230 let mut bytes: &[u8] = b"\xEF\xBB\xBF"; // Nothing after BOM in test_next_char_from() localVariable 233 let mut bytes: &[u8] = b"\xEF\xBB"; // Nothing after BO in test_next_char_from() localVariable 236 let mut bytes: &[u8] = b"\xEF\xBB\x42"; // Nothing after BO in test_next_char_from() localVariable 239 let mut bytes: &[u8] = b"\xFE\xFF\x00\x42"; // UTF-16 in test_next_char_from() localVariable 242 let mut bytes: &[u8] = b"\xFF\xFE\x42\x00"; // UTF-16 in test_next_char_from() localVariable 245 let mut bytes: &[u8] = b"\xFF\xFE"; // UTF-16 in test_next_char_from() localVariable [all …]
|
/external/kotlinx.serialization/formats/cbor/commonTest/src/kotlinx/serialization/cbor/ |
D | CborNumberEncodingTest.kt | 110 val bytes = listOf(24, 255).map { it.toByte() } in testEncodingLargestPositive8BitNumber() constant 119 val bytes = listOf(24, 255).map { it.toByte() }.toByteArray() in testDecodingLargestPositive8BitNumber() constant 128 val bytes = listOf(56, 255).map { it.toByte() } in testEncodingLargestNegative8BitNumber() constant 137 val bytes = listOf(56, 255).map { it.toByte() }.toByteArray() in testDecodingLargestNegative8BitNumber() constant 146 val bytes = listOf(25, 255, 255).map { it.toByte() } in testEncodingLargestPositive16BitNumber() constant 155 val bytes = listOf(25, 255, 255).map { it.toByte() }.toByteArray() in testDecodingLargestPositive16BitNumber() constant 164 val bytes = listOf(57, 255, 255).map { it.toByte() } in testEncodingLargestNegative16BitNumber() constant 173 val bytes = listOf(57, 255, 255).map { it.toByte() }.toByteArray() in testDecodingLargestNegative16BitNumber() constant 182 val bytes = listOf(26, 255, 255, 255, 255).map { it.toByte() } in testEncodingLargestPositive32BitNumber() constant 191 val bytes = listOf(26, 255, 255, 255, 255).map { it.toByte() }.toByteArray() in testDecodingLargestPositive32BitNumber() constant [all …]
|
/external/tink/testing/cross_language/util/ |
D | _primitives.py | 56 private_keyset: bytes) -> bytes: 66 keyset: bytes) -> str: 85 encrypted_keyset: bytes, master_keyset: bytes, 86 associated_data: Optional[bytes], 102 def keyset_write_encrypted(stub: testing_api_pb2_grpc.KeysetStub, keyset: bytes, 103 master_keyset: bytes, 104 associated_data: Optional[bytes], 130 keyset: bytes) -> str: 142 keyset: bytes, annotations: Optional[Dict[str, str]]) -> None: 155 def encrypt(self, plaintext: bytes, associated_data: bytes) -> bytes: [all …]
|
/external/tink/python/tink/testing/ |
D | helper.py | 55 value: bytes = b'fakevalue', 80 def compute_mac(self, data: bytes) -> bytes: 83 def verify_mac(self, mac_value: bytes, data: bytes) -> None: 94 def encrypt(self, plaintext: bytes, associated_data: bytes) -> bytes: 97 def decrypt(self, ciphertext: bytes, associated_data: bytes) -> bytes: 112 def encrypt_deterministically(self, plaintext: bytes, 113 associated_data: bytes) -> bytes: 116 def decrypt_deterministically(self, ciphertext: bytes, 117 associated_data: bytes) -> bytes: 133 def decrypt(self, ciphertext: bytes, context_info: bytes) -> bytes: [all …]
|
/external/cbor-java/src/test/java/co/nstant/in/cbor/encoder/ |
D | AbstractEncoderTest.java | 68 assertEquals((byte) 0x9B, bytes[0]); in shallEncode32bit() local 69 assertEquals((byte) 0x00, bytes[1]); in shallEncode32bit() local 70 assertEquals((byte) 0x00, bytes[2]); in shallEncode32bit() local 71 assertEquals((byte) 0x00, bytes[3]); in shallEncode32bit() local 72 assertEquals((byte) 0x01, bytes[4]); in shallEncode32bit() local 73 assertEquals((byte) 0x00, bytes[5]); in shallEncode32bit() local 74 assertEquals((byte) 0x00, bytes[6]); in shallEncode32bit() local 75 assertEquals((byte) 0x00, bytes[7]); in shallEncode32bit() local 76 assertEquals((byte) 0x00, bytes[8]); in shallEncode32bit() local
|
/external/rust/android-crates-io/crates/etherparse/src/transport/ |
D | icmpv4_slice.rs | 351 let bytes = [0u8; 8]; in from_slice() localVariable 358 let bytes = [0u8; 8]; in from_slice() localVariable 373 let bytes = { in from_slice() localVariable 374 let mut bytes = [0u8; 26]; in from_slice() localVariable 423 let mut bytes = [0u8; 20]; in from_slice() localVariable 505 let mut bytes = base_bytes; localVariable 512 let bytes = gen_bytes(type_u8, code_u8); localVariable 540 let bytes = gen_bytes(TYPE_ECHO_REPLY, 0); localVariable 579 let bytes = gen_bytes(TYPE_DEST_UNREACH, code_u8); localVariable 590 let bytes = gen_bytes(TYPE_DEST_UNREACH, CODE_DST_UNREACH_NEED_FRAG); localVariable [all …]
|
/external/rust/android-crates-io/crates/ciborium/tests/ |
D | recursion.rs | 16 let bytes = [0x9f; 128 * 1024]; in array() localVariable 25 let bytes = [0xbf; 128 * 1024]; in map() localVariable 33 fn bytes() { in bytes() function 34 let bytes = [0x5f; 128 * 1024]; in bytes() localVariable 43 let bytes = [0x7f; 128 * 1024]; in text() localVariable 52 let bytes = [0x9f; 128 * 1024]; in array_limit() localVariable 74 let bytes = [0xbf; 128 * 1024]; in map_limit() localVariable
|
/external/rust/android-crates-io/crates/bitreader/src/ |
D | tests.rs | 13 let bytes = &[ in read_buffer() localVariable 129 let bytes = &[ in try_all_sizes() localVariable 162 let bytes = &[ in skipping_and_zero_reads() localVariable 184 let bytes = &[ in errors() localVariable 214 let bytes = &[ in signed_values() localVariable 227 let bytes: Vec<u8> = (0..16).collect(); in boolean_values() localVariable 241 let bytes = &[ in read_slice() localVariable 272 let bytes = &[ in read_slice_too_much() localVariable 290 let bytes = &[ in relative_reader() localVariable 321 let bytes = &[0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF]; in test_read_u64_max() localVariable [all …]
|
/external/python/rsa/rsa/ |
D | pkcs1.py | 84 def _pad_for_encryption(message: bytes, target_length: int) -> bytes: 130 def _pad_for_signing(message: bytes, target_length: int) -> bytes: 164 def encrypt(message: bytes, pub_key: key.PublicKey) -> bytes: 196 def decrypt(crypto: bytes, priv_key: key.PrivateKey) -> bytes: 279 def sign_hash(hash_value: bytes, priv_key: key.PrivateKey, hash_method: str) -> bytes: 312 def sign(message: bytes, priv_key: key.PrivateKey, hash_method: str) -> bytes: 334 def verify(message: bytes, signature: bytes, pub_key: key.PublicKey) -> str: 372 def find_signature_hash(signature: bytes, pub_key: key.PublicKey) -> str: 412 def compute_hash(message: typing.Union[bytes, typing.BinaryIO], method_name: str) -> bytes: 440 def _find_method_hash(clearsig: bytes) -> str:
|
/external/kotlinx.serialization/formats/protobuf/commonTest/src/kotlinx/serialization/protobuf/ |
D | ProtobufAbsenceTest.kt | 46 val bytes = ProtoBuf.encodeToByteArray(DefaultValue(42)) in testDefaultValue() constant 55 val bytes = ProtoBuf.encodeToByteArray(NullableValue(null)) in testNullableValue() constant 66 val bytes = ProtoBuf.encodeToByteArray(DefaultAndNullValue(42)) in testDefaultAndNullValue() constant 76 val bytes = ProtoBuf.encodeToByteArray(SimpleList(emptyList())) in testSimpleList() constant 85 val bytes = ProtoBuf.encodeToByteArray(DefaultList(listOf(42))) in testDefaultList() constant 96 val bytes = ProtoBuf.encodeToByteArray(NullableList(emptyList())) in testNullableList() constant 108 val bytes = ProtoBuf.encodeToByteArray(DefaultNullableList(listOf(42))) in testDefaultNullableList() constant 117 val bytes = ProtoBuf.encodeToByteArray(SimpleMap(emptyMap())) in testSimpleMap() constant 125 val bytes = ProtoBuf.encodeToByteArray(DefaultMap(mapOf(42 to 43))) in testDefaultMap() constant 135 val bytes = ProtoBuf.encodeToByteArray(NullableMap(emptyMap())) in testNullableMap() constant [all …]
|
/external/rust/android-crates-io/crates/etherparse/src/net/ |
D | lax_net_slice.rs | 71 let bytes = Ipv6Header { in debug() localVariable 83 let bytes = Ipv6Header { in clone_eq() localVariable 97 let bytes = { in ip_payload_ref() localVariable 98 let mut bytes = Vec::with_capacity(Ipv4Header::MIN_LEN + 4); in ip_payload_ref() localVariable 125 let bytes = { in ip_payload_ref() localVariable 126 let mut bytes = Vec::with_capacity(Ipv6Header::LEN + 4); in ip_payload_ref() localVariable 157 let bytes = { in from() localVariable 158 let mut bytes = Vec::with_capacity(Ipv4Header::MIN_LEN + 4); in from() localVariable 177 let bytes = { in from() localVariable 178 let mut bytes = Vec::with_capacity(Ipv4Header::MIN_LEN + 4); in from() localVariable [all …]
|
D | net_slice.rs | 73 let bytes = Ipv6Header { in debug() localVariable 85 let bytes = Ipv6Header { in clone_eq() localVariable 99 let bytes = { in ip_payload_ref() localVariable 100 let mut bytes = Vec::with_capacity(Ipv4Header::MIN_LEN + 4); in ip_payload_ref() localVariable 126 let bytes = { in ip_payload_ref() localVariable 127 let mut bytes = Vec::with_capacity(Ipv6Header::LEN + 4); in ip_payload_ref() localVariable 157 let bytes = { in from() localVariable 158 let mut bytes = Vec::with_capacity(Ipv4Header::MIN_LEN + 4); in from() localVariable 177 let bytes = { in from() localVariable 178 let mut bytes = Vec::with_capacity(Ipv4Header::MIN_LEN + 4); in from() localVariable [all …]
|
/external/python/bumble/bumble/profiles/ |
D | csip.py | 54 def s1(m: bytes) -> bytes: 61 def k1(n: bytes, salt: bytes, p: bytes) -> bytes: 69 def sef(k: bytes, r: bytes) -> bytes: 80 def sih(k: bytes, r: bytes) -> bytes: 87 def generate_rsi(sirk: bytes) -> bytes: 109 set_identity_resolving_key: bytes,
|
/external/rust/android-crates-io/crates/rustix/src/backend/linux_raw/net/ |
D | read_sockaddr.rs | 99 let bytes = &decode.sun_path[1..len - offsetof_sun_path]; in read_sockaddr() localVariable 102 let bytes = slice::from_raw_parts(bytes.as_ptr().cast::<u8>(), bytes.len()); in read_sockaddr() localVariable 108 let bytes = &decode.sun_path[..len - 1 - offsetof_sun_path]; in read_sockaddr() localVariable 111 let bytes = slice::from_raw_parts(bytes.as_ptr().cast::<u8>(), bytes.len()); in read_sockaddr() localVariable 189 let bytes = &decode.sun_path[1..len - offsetof_sun_path]; in read_sockaddr_os() localVariable 192 let bytes = slice::from_raw_parts(bytes.as_ptr().cast::<u8>(), bytes.len()); in read_sockaddr_os() localVariable 200 let bytes = &decode.sun_path[..len - 1 - offsetof_sun_path]; in read_sockaddr_os() localVariable 203 let bytes = slice::from_raw_parts(bytes.as_ptr().cast::<u8>(), bytes.len()); in read_sockaddr_os() localVariable
|
/external/rust/pica/py/pica/pica/packets/ |
D | uci.py | 15 def parse_all(cls, span: bytes) -> 'Packet': 486 def parse(span: bytes) -> Tuple['RangingRoundControl', bytes]: 499 def serialize(self, payload: bytes = None) -> bytes: 721 def parse(span: bytes) -> Tuple['ResultReportConfig', bytes]: 732 def serialize(self, payload: bytes = None) -> bytes: 1003 def parse(span: bytes) -> Tuple['CommonPacketHeader', bytes]: 1012 def serialize(self, payload: bytes = None) -> bytes: 1035 def parse(span: bytes) -> Tuple['ControlPacketHeader', bytes]: 1046 def serialize(self, payload: bytes = None) -> bytes: 1074 def parse(span: bytes) -> Tuple['DataPacketHeader', bytes]: [all …]
|
/external/cronet/stable/third_party/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | CodedInputStreamReader.java | 312 final int bytes = input.readUInt32(); in readDoubleList() local 338 final int bytes = input.readUInt32(); in readDoubleList() local 370 final int bytes = input.readUInt32(); in readFloatList() local 396 final int bytes = input.readUInt32(); in readFloatList() local 428 final int bytes = input.readUInt32(); in readUInt64List() local 454 final int bytes = input.readUInt32(); in readUInt64List() local 486 final int bytes = input.readUInt32(); in readInt64List() local 512 final int bytes = input.readUInt32(); in readInt64List() local 544 final int bytes = input.readUInt32(); in readInt32List() local 570 final int bytes = input.readUInt32(); in readInt32List() local [all …]
|
/external/cronet/tot/third_party/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | CodedInputStreamReader.java | 312 final int bytes = input.readUInt32(); in readDoubleList() local 338 final int bytes = input.readUInt32(); in readDoubleList() local 370 final int bytes = input.readUInt32(); in readFloatList() local 396 final int bytes = input.readUInt32(); in readFloatList() local 428 final int bytes = input.readUInt32(); in readUInt64List() local 454 final int bytes = input.readUInt32(); in readUInt64List() local 486 final int bytes = input.readUInt32(); in readInt64List() local 512 final int bytes = input.readUInt32(); in readInt64List() local 544 final int bytes = input.readUInt32(); in readInt32List() local 570 final int bytes = input.readUInt32(); in readInt32List() local [all …]
|
/external/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | CodedInputStreamReader.java | 312 final int bytes = input.readUInt32(); in readDoubleList() local 338 final int bytes = input.readUInt32(); in readDoubleList() local 370 final int bytes = input.readUInt32(); in readFloatList() local 396 final int bytes = input.readUInt32(); in readFloatList() local 428 final int bytes = input.readUInt32(); in readUInt64List() local 454 final int bytes = input.readUInt32(); in readUInt64List() local 486 final int bytes = input.readUInt32(); in readInt64List() local 512 final int bytes = input.readUInt32(); in readInt64List() local 544 final int bytes = input.readUInt32(); in readInt32List() local 570 final int bytes = input.readUInt32(); in readInt32List() local [all …]
|