Home
last modified time | relevance | path

Searched defs:bytes (Results 1 – 25 of 7468) sorted by relevance

12345678910>>...299

/aosp_15_r20/external/cronet/base/numerics/
H A Dbyte_conversions_unittest.cc17 constexpr uint8_t bytes[] = {0x12u}; in TEST() local
23 constexpr uint8_t bytes[] = {0x12u, 0x34u}; in TEST() local
29 constexpr uint8_t bytes[] = {0x12u, 0x34u, 0x56u, 0x78u}; in TEST() local
35 constexpr uint8_t bytes[] = {0x12u, 0x34u, 0x56u, 0x78u, in TEST() local
43 constexpr uint8_t bytes[] = {0x12u}; in TEST() local
49 constexpr uint8_t bytes[] = {0x12u, 0x34u}; in TEST() local
55 constexpr uint8_t bytes[] = {0x12u, 0x34u, 0x56u, 0x78u}; in TEST() local
61 constexpr uint8_t bytes[] = {0x12u, 0x34u, 0x56u, 0x78u, in TEST() local
69 constexpr uint8_t bytes[] = {0x12u, 0x34u, 0x56u, 0x78u}; in TEST() local
80 constexpr uint8_t bytes[] = {0x12u, 0x34u, 0x56u, 0x78u, in TEST() local
[all …]
H A Dbyte_conversions.h43 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 …]
/aosp_15_r20/external/python/bumble/bumble/
Dcrypto.py63 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 …]
/aosp_15_r20/external/tink/testing/cross_language/util/
H A D_primitives.py56 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 …]
/aosp_15_r20/external/rust/pica/py/pica/pica/packets/
Duci.py15 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 …]
/aosp_15_r20/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp6/
DDhcp6PacketTest.kt44 val bytes = HexDump.hexStringToByteArray(solicitHex) in testDecodeDhcp6SolicitPacket() constant
62 val bytes = HexDump.hexStringToByteArray(solicitHex) in testDecodeDhcp6SolicitPacket_incorrectOptionLength() constant
81 val bytes = HexDump.hexStringToByteArray(solicitHex) in testDecodeDhcp6SolicitPacket_lastTruncatedOption() constant
100 val bytes = HexDump.hexStringToByteArray(solicitHex) in testDecodeDhcp6SolicitPacket_middleTruncatedOption() constant
121 val bytes = HexDump.hexStringToByteArray(advertiseHex) in testDecodeDhcp6AdvertisePacket() constant
143 val bytes = HexDump.hexStringToByteArray(advertiseHex) in testDecodeDhcp6SolicitPacket_unsupportedOption() constant
172 val bytes = HexDump.hexStringToByteArray(replyHex) in testDecodeDhcp6ReplyPacket() constant
202 val bytes = HexDump.hexStringToByteArray(replyHex) in testGetMinimalPreferredValidLifetime() constant
230 val bytes = HexDump.hexStringToByteArray(replyHex) in testStatusCodeOptionWithStatusMessage() constant
258 val bytes = HexDump.hexStringToByteArray(replyHex) in testStatusCodeOptionWithoutStatusMessage() constant
[all …]
/aosp_15_r20/external/kotlinx.serialization/formats/cbor/commonTest/src/kotlinx/serialization/cbor/
H A DCborNumberEncodingTest.kt110 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 …]
/aosp_15_r20/external/pigweed/pw_transfer/integration_test/
H A Dproxy_test.py46 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):
H A Dproxy.py81 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 …]
/aosp_15_r20/external/rust/android-crates-io/crates/xml-rs/src/
Dutil.rs112 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 …]
/aosp_15_r20/external/tink/python/tink/testing/
H A Dhelper.py55 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 …]
/aosp_15_r20/external/kotlinx.serialization/formats/protobuf/commonTest/src/kotlinx/serialization/protobuf/
H A DProtobufAbsenceTest.kt46 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 …]
/aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/bytes-1.6.0/tests/
H A Dtest_bytes.rs181 let mut bytes = BytesMut::with_capacity(1024); in split_off_uninitialized() localVariable
197 let mut bytes = Bytes::from(&s[..]); in split_off_to_loop() localVariable
206 let mut bytes = BytesMut::from(&s[..]); in split_off_to_loop() localVariable
215 let mut bytes = Bytes::from(&s[..]); in split_off_to_loop() localVariable
224 let mut bytes = BytesMut::from(&s[..]); in split_off_to_loop() localVariable
286 let mut bytes = BytesMut::with_capacity(1024); in split_to_uninitialized() localVariable
293 let mut bytes = BytesMut::with_capacity(100); in split_off_to_at_gt_len() localVariable
412 let mut bytes = BytesMut::from(&b"hello world"[..]); in fns_defined_for_bytes_mut() localVariable
425 let mut bytes = BytesMut::from(LONG); in reserve_convert() localVariable
430 let mut bytes = BytesMut::from(LONG); in reserve_convert() localVariable
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/etherparse/src/transport/
Dicmpv4_slice.rs351 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 …]
/aosp_15_r20/external/protobuf/java/core/src/main/java/com/google/protobuf/
H A DCodedInputStreamReader.java312 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 …]
H A DBinaryReader.java329 ByteString bytes = in readBytes() local
379 final int bytes = readVarint32(); in readDoubleList() local
408 final int bytes = readVarint32(); in readDoubleList() local
443 final int bytes = readVarint32(); in readFloatList() local
472 final int bytes = readVarint32(); in readFloatList() local
507 final int bytes = readVarint32(); in readUInt64List() local
536 final int bytes = readVarint32(); in readUInt64List() local
571 final int bytes = readVarint32(); in readInt64List() local
600 final int bytes = readVarint32(); in readInt64List() local
635 final int bytes = readVarint32(); in readInt32List() local
[all …]
/aosp_15_r20/external/cronet/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
H A DCodedInputStreamReader.java312 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 …]
H A DBinaryReader.java329 ByteString bytes = in readBytes() local
379 final int bytes = readVarint32(); in readDoubleList() local
408 final int bytes = readVarint32(); in readDoubleList() local
443 final int bytes = readVarint32(); in readFloatList() local
472 final int bytes = readVarint32(); in readFloatList() local
507 final int bytes = readVarint32(); in readUInt64List() local
536 final int bytes = readVarint32(); in readUInt64List() local
571 final int bytes = readVarint32(); in readInt64List() local
600 final int bytes = readVarint32(); in readInt64List() local
635 final int bytes = readVarint32(); in readInt32List() local
[all …]
/aosp_15_r20/external/llvm-libc/test/src/__support/
H A Dblock_test.cpp25 alignas(Block::ALIGNMENT) array<byte, kN> bytes; in TEST() local
50 alignas(Block::ALIGNMENT) array<byte, kN> bytes; in TEST() local
58 array<byte, 2> bytes; in TEST() local
69 alignas(Block::ALIGNMENT) array<byte, kN> bytes; in TEST() local
93 alignas(Block::ALIGNMENT) array<byte, kN> bytes; in TEST() local
134 alignas(Block::ALIGNMENT) array<byte, kN> bytes; in TEST() local
157 alignas(Block::ALIGNMENT) array<byte, kN> bytes; in TEST() local
170 alignas(Block::ALIGNMENT) array<byte, kN> bytes; in TEST() local
183 alignas(Block::ALIGNMENT) array<byte, kN> bytes; in TEST() local
196 alignas(Block::ALIGNMENT) array<byte, kN> bytes; in TEST() local
[all …]
/aosp_15_r20/system/nfc/tools/casimir/scripts/
H A Drf_packets.py15 def parse_all(cls, span: bytes) -> 'Packet':
146 def parse(span: bytes) -> Tuple['RfPacket', bytes]:
199 def serialize(self, payload: bytes = None) -> bytes:
227 def parse(fields: dict, span: bytes) -> Tuple['PollCommand', bytes]:
234 def serialize(self, payload: bytes = None) -> bytes:
254 def parse(fields: dict, span: bytes) -> Tuple['NfcAPollResponse', bytes]:
272 def serialize(self, payload: bytes = None) -> bytes:
300 def parse(fields: dict, span: bytes) -> Tuple['T4ATSelectCommand', bytes]:
309 def serialize(self, payload: bytes = None) -> bytes:
331 def parse(fields: dict, span: bytes) -> Tuple['T4ATSelectResponse', bytes]:
[all …]
/aosp_15_r20/packages/modules/Bluetooth/android/pandora/mmi2grpc/mmi2grpc/
Dgap.py51 def test_started(self, test: str, description: str, pts_addr: bytes):
70 def TSC_MMI_iut_send_hci_connect_request(self, test: str, pts_addr: bytes, **kwargs):
141 def TSC_MMI_iut_enter_handle_for_insufficient_authentication(self, pts_addr: bytes, **kwargs):
163 def TSC_MMI_the_security_id_is(self, pts_addr: bytes, passkey: str, **kwargs):
176 def TSC_MMI_iut_send_le_connect_request(self, test: str, pts_addr: bytes, **kwargs):
223 def TSC_MMI_enter_security_id(self, pts_addr: bytes, **kwargs):
241 def TSC_MMI_iut_send_att_service_request(self, pts_addr: bytes, handle: str, **kwargs):
367 def TSC_MMI_iut_start_general_inquiry_found(self, pts_addr: bytes, **kwargs):
382 def TSC_MMI_iut_send_att_read_by_type_request_name_request(self, pts_addr: bytes, **kwargs):
394 def TSC_MMI_iut_confirm_device_discovery(self, test: str, pts_addr: bytes, **kwargs):
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/bytes/tests/
Dtest_bytes.rs184 let mut bytes = BytesMut::with_capacity(1024); in split_off_uninitialized() localVariable
200 let mut bytes = Bytes::from(&s[..]); in split_off_to_loop() localVariable
209 let mut bytes = BytesMut::from(&s[..]); in split_off_to_loop() localVariable
218 let mut bytes = Bytes::from(&s[..]); in split_off_to_loop() localVariable
227 let mut bytes = BytesMut::from(&s[..]); in split_off_to_loop() localVariable
289 let mut bytes = BytesMut::with_capacity(1024); in split_to_uninitialized() localVariable
297 let mut bytes = BytesMut::with_capacity(100); in split_off_to_at_gt_len() localVariable
416 let mut bytes = BytesMut::from(&b"hello world"[..]); in fns_defined_for_bytes_mut() localVariable
429 let mut bytes = BytesMut::from(LONG); in reserve_convert() localVariable
434 let mut bytes = BytesMut::from(LONG); in reserve_convert() localVariable
[all …]
/aosp_15_r20/external/pigweed/pw_tokenizer/py/pw_tokenizer/
H A Ddetokenize.py129 encoded_message: bytes,
232 prefix: str | bytes = encode.NESTED_TOKEN_PREFIX,
279 encoded_message: bytes,
361 def transform(data: bytes) -> bytes:
397 message: str | bytes,
420 def _detokenize_scan(self, match: Match[bytes]) -> bytes:
440 self, match: Match[bytes], base: bytes, domain: str
460 match: Match[bytes],
529 prefix: str | bytes = encode.NESTED_TOKEN_PREFIX,
567 prefix: str | bytes = encode.NESTED_TOKEN_PREFIX,
[all …]
/aosp_15_r20/hardware/broadcom/wlan/bcmdhd/dhdutil/include/
Dbcmendian.h125 #define htol16_ua_store(val, bytes) ({ \ argument
132 #define htol32_ua_store(val, bytes) ({ \ argument
141 #define hton16_ua_store(val, bytes) ({ \ argument
148 #define hton32_ua_store(val, bytes) ({ \ argument
157 #define ltoh16_ua(bytes) ({ \ argument
162 #define ltoh32_ua(bytes) ({ \ argument
167 #define ntoh16_ua(bytes) ({ \ argument
172 #define ntoh32_ua(bytes) ({ \ argument
216 htol16_ua_store(uint16 val, uint8 *bytes) in htol16_ua_store()
226 htol32_ua_store(uint32 val, uint8 *bytes) in htol32_ua_store()
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/etherparse/src/net/
Dnet_slice.rs63 let bytes = Ipv6Header { in debug() localVariable
75 let bytes = Ipv6Header { in clone_eq() localVariable
89 let bytes = { in ip_payload_ref() localVariable
90 let mut bytes = Vec::with_capacity(Ipv4Header::MIN_LEN + 4); in ip_payload_ref() localVariable
116 let bytes = { in ip_payload_ref() localVariable
117 let mut bytes = Vec::with_capacity(Ipv6Header::LEN + 4); in ip_payload_ref() localVariable
147 let bytes = { in from() localVariable
148 let mut bytes = Vec::with_capacity(Ipv4Header::MIN_LEN + 4); in from() localVariable
167 let bytes = { in from() localVariable
168 let mut bytes = Vec::with_capacity(Ipv4Header::MIN_LEN + 4); in from() localVariable
[all …]

12345678910>>...299