Home
last modified time | relevance | path

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

12345678910>>...123

/external/cronet/third_party/protobuf/js/experimental/runtime/kernel/
Dkernel_test.js23 function createArrayBuffer(...bytes) {
60 const bytes = createArrayBuffer(0x08, 0x01); constant
97 const bytes = createArrayBuffer(0x08, 0x01); constant
107 const bytes = createArrayBuffer(0x08, 0x01); constant
132 const bytes = createArrayBuffer(0x08, 0x01); constant
146 const bytes = createArrayBuffer(0x08, 0x01); constant
215 const bytes = createArrayBuffer(0x08, 0x01, 0x10, 0x01); constant
235 const bytes = createArrayBuffer(0x08, 0x01); constant
243 const bytes = createArrayBuffer(0x08, 0x01); constant
249 const bytes = createArrayBuffer(0x08, 0x01); constant
[all …]
/external/rust/crates/der-parser/tests/
Dprimitive.rs87 let bytes = hex!("1d 01 00"); in test_unknown_tag() localVariable
112 let bytes = hex!("80 01 00"); in test_unknown_context_specific() localVariable
127 let bytes = hex!("9f 22 01 00"); in test_unknown_long_tag() localVariable
146 let bytes = hex!("9f a2 22 01 00"); in test_unknown_longer_tag() localVariable
165 let bytes = hex!("9f a2 a2"); in test_incomplete_tag() localVariable
172 let bytes = hex!("9f a2 a2 a2 a2 a2 22 01 00"); in test_overflow_tag() localVariable
179 let bytes = hex!("30"); in test_incomplete_length() localVariable
184 let bytes = hex!("02"); in test_incomplete_length() localVariable
187 let bytes = hex!("02 05"); in test_incomplete_length() localVariable
189 let bytes = hex!("02 85"); in test_incomplete_length() localVariable
[all …]
Dder_parser.rs33 let bytes = hex!("02 03 01 00 01"); in test_der_int() localVariable
39 let bytes = hex!("04 03 41 41 41"); in test_der_int() localVariable
45 let bytes = hex!("02 0b 40 41 02 03 04 05 06 07 08 09 0a"); in test_der_int() localVariable
58 let bytes = &[0x03, 0x04, 0x06, 0x6e, 0x5d, 0xc0]; in test_der_bitstring_primitive() localVariable
67 let bytes = &[0x03, 0x04, 0x06, 0x6e, 0x5d, 0xe0]; in test_der_bitstring_primitive() localVariable
75 let bytes = &[0x03, 0x81, 0x04, 0x06, 0x6e, 0x5d, 0xc0]; in test_der_bitstring_primitive() localVariable
84 let bytes = &hex!("23 81 0c 03 03 00 0a 3b 03 05 04 5f 29 1c d0"); in test_der_bitstring_constructed() localVariable
93 let bytes = &hex!("23 80 03 03 00 0a 3b 03 05 04 5f 29 1c d0 00 00"); in test_der_indefinite_length() localVariable
103 let bytes = [0x04, 0x05, 0x41, 0x41, 0x41, 0x41, 0x41]; in test_der_octetstring_primitive() localVariable
118 let bytes = [ in test_der_oid() localVariable
[all …]
Dber_parser.rs72 let bytes = [ in test_ber_set_of() localVariable
92 let bytes = [ in test_ber_set_of_v() localVariable
137 let bytes = [0x02, 0x03, 0x01, 0x00, 0x01]; in test_ber_int() localVariable
263 let bytes = &[0x03, 0x07, 0x04, 0x0a, 0x3b, 0x5f, 0x29, 0x1c, 0xd0]; in test_ber_bitstring_primitive() localVariable
272 let bytes = &[0x03, 0x04, 0x06, 0x6e, 0x5d, 0xe0]; in test_ber_bitstring_primitive() localVariable
281 let bytes = &[0x03, 0x81, 0x04, 0x06, 0x6e, 0x5d, 0xc0]; in test_ber_bitstring_primitive() localVariable
291 let bytes = &[ in test_ber_bitstring_constructed() localVariable
304 let bytes = [0x04, 0x05, 0x41, 0x41, 0x41, 0x41, 0x41]; in test_ber_octetstring_primitive() localVariable
319 let bytes = [ in test_ber_oid() localVariable
448 let bytes = [ in test_ber_utf8string() localVariable
[all …]
/external/pigweed/pw_transfer/integration_test/
Dproxy_test.py50 async def append(list: List[bytes], data: bytes):
73 async def append(list: List[bytes], data: bytes):
99 async def append(list: List[bytes], data: bytes):
132 async def append(list: List[bytes], data: bytes):
169 async def append(list: List[bytes], data: bytes):
203 async def append(list: List[bytes], data: bytes):
Dproxy.py76 def __init__(self, send_data: Callable[[bytes], Awaitable[None]]):
81 async def process(self, data: bytes) -> None:
88 async def __call__(self, data: bytes) -> None:
100 def __init__(self, send_data: Callable[[bytes], Awaitable[None]]):
104 async def process(self, data: bytes) -> None:
118 send_data: Callable[[bytes], Awaitable[None]],
131 async def process(self, data: bytes) -> None:
167 send_data: Callable[[bytes], Awaitable[None]],
178 async def process(self, data: bytes) -> None:
204 self, send_data: Callable[[bytes], Awaitable[None]], rate: float
[all …]
/external/cbor-java/src/test/java/co/nstant/in/cbor/encoder/
DAbstractEncoderTest.java68 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/skia/fuzz/
DFuzzMain.cpp151 sk_sp<SkData> bytes(SkData::MakeFromFileName(path.c_str())); in fuzz_file() local
366 static void fuzz_json(sk_sp<SkData> bytes){ in fuzz_json()
374 static void fuzz_skottie_json(sk_sp<SkData> bytes){ in fuzz_skottie_json()
383 static void fuzz_svg_dom(sk_sp<SkData> bytes){ in fuzz_svg_dom()
391 static void fuzz_colrv1(sk_sp<SkData> bytes) { in fuzz_colrv1()
401 static uint8_t calculate_option(SkData* bytes) { in calculate_option()
417 static void fuzz_api(sk_sp<SkData> bytes, SkString name) { in fuzz_api()
440 static void fuzz_animated_img(sk_sp<SkData> bytes) { in fuzz_animated_img()
450 static void fuzz_image_decode(sk_sp<SkData> bytes) { in fuzz_image_decode()
460 static void fuzz_image_decode_incremental(sk_sp<SkData> bytes) { in fuzz_image_decode_incremental()
[all …]
/external/python/rsa/rsa/
Dpkcs1.py84 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/rust/pica/scripts/
Duci_packets.py30 def parse_all(cls, span: bytes) -> 'Packet':
358 def parse(span: bytes) -> Tuple['UciPacket', bytes]:
478 def parse(fields: dict, span: bytes) -> Tuple['UciCommand', bytes]:
532 def parse(fields: dict, span: bytes) -> Tuple['UciResponse', bytes]:
590 def parse(fields: dict, span: bytes) -> Tuple['UciNotification', bytes]:
614 def parse(fields: dict, span: bytes) -> Tuple['CoreCommand', bytes]:
638 def parse(fields: dict, span: bytes) -> Tuple['CoreResponse', bytes]:
662 def parse(fields: dict, span: bytes) -> Tuple['CoreNotification', bytes]:
680 def parse(fields: dict, span: bytes) -> Tuple['SessionCommand', bytes]:
708 def parse(fields: dict, span: bytes) -> Tuple['SessionResponse', bytes]:
[all …]
/external/rust/crates/bitreader/src/
Dtests.rs13 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
226 let bytes: Vec<u8> = (0..16).collect(); in boolean_values() localVariable
240 let bytes = &[ in read_slice() localVariable
271 let bytes = &[ in read_slice_too_much() localVariable
289 let bytes = &[ in relative_reader() localVariable
/external/rust/crates/ciborium/tests/
Drecursion.rs16 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
/external/protobuf/java/core/src/main/java/com/google/protobuf/
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 …]
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 …]
/external/cronet/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
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 …]
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 …]
/external/pigweed/pw_tokenizer/py/pw_tokenizer/
Ddetokenize.py86 encoded_message: bytes,
210 def detokenize(self, encoded_message: bytes) -> DetokenizedString:
232 prefix: Union[str, bytes] = BASE64_PREFIX, argument
252 data: Union[str, bytes], argument
271 prefix: Union[str, bytes] = BASE64_PREFIX, argument
279 def transform(data: bytes) -> bytes:
294 self, prefix: bytes, recursion: int
298 def decode_and_detokenize(match: Match[bytes]) -> bytes:
406 def __init__(self, prefix: Union[str, bytes], chars: Union[str, bytes]): argument
467 self, binary_fd: _RawIO, transform: Callable[[bytes], bytes]
[all …]
/external/webrtc/rtc_base/
Dbitstream_reader_unittest.cc30 const uint8_t bytes[32] = {}; in TEST() local
42 const uint8_t bytes[32] = {}; in TEST() local
54 const uint8_t bytes[32] = {}; in TEST() local
79 const uint8_t bytes[1] = {}; in TEST() local
89 const uint8_t bytes[] = {0b0100'0001, 0b1011'0001}; in TEST() local
120 const uint8_t bytes[] = {0b1010'1010}; in TEST() local
128 const uint8_t bytes[] = {0x0A, // in TEST() local
141 const uint8_t bytes[] = {0x0A, 0xBC, 0xDE, 0xF1, 0x23, in TEST() local
170 const uint8_t bytes[] = {0x1F, 0xDB, 0x97, 0x53, 0x0E, 0xCA, 0x86, 0x42}; in TEST() local
186 const uint8_t bytes[] = {0b010'01'101, 0b0011'00'1'0}; in TEST() local
[all …]
Dbit_buffer_unittest.cc28 uint8_t bytes[64] = {0}; in TEST() local
50 uint8_t bytes[4] = {0}; in TEST() local
90 uint8_t bytes[2] = {}; in TEST() local
107 uint8_t bytes[2] = {}; in TEST() local
145 uint8_t bytes[2] = {}; in TEST() local
155 uint8_t bytes[16] = {0}; in TEST() local
180 uint8_t bytes[16] = {0}; in TEST() local
199 uint8_t bytes[64] = {0}; in TEST() local
212 uint8_t bytes[] = {0xFF, 0xFF}; in TEST() local
/external/sl4a/Common/src/org/apache/commons/codec/binary/
DStringUtils.java183 public static String newString(byte[] bytes, String charsetName) { in newString()
204 public static String newStringIso8859_1(byte[] bytes) { in newStringIso8859_1()
218 public static String newStringUsAscii(byte[] bytes) { in newStringUsAscii()
232 public static String newStringUtf16(byte[] bytes) { in newStringUtf16()
246 public static String newStringUtf16Be(byte[] bytes) { in newStringUtf16Be()
260 public static String newStringUtf16Le(byte[] bytes) { in newStringUtf16Le()
274 public static String newStringUtf8(byte[] bytes) { in newStringUtf8()
/external/pigweed/pw_software_update/py/pw_software_update/
Dkeys.py98 def import_ecdsa_public_key(pem: bytes) -> KeyMapping:
126 def create_ecdsa_signature(data: bytes, key: bytes) -> Signature:
152 def verify_ecdsa_signature(sig: bytes, data: bytes, key: Key) -> bool:
/external/pigweed/pw_allocator/
Dblock_test.cc28 alignas(Block*) byte bytes[kN]; in TEST() local
47 alignas(Block*) byte bytes[kN]; in TEST() local
58 alignas(Block*) byte bytes[kN]; in TEST() local
68 alignas(Block*) byte bytes[kN]; in TEST() local
95 alignas(Block*) byte bytes[kN]; in TEST() local
133 alignas(Block*) byte bytes[kN]; in TEST() local
154 alignas(Block*) byte bytes[kN]; in TEST() local
169 alignas(Block*) byte bytes[kN]; in TEST() local
181 alignas(Block*) byte bytes[kN]; in TEST() local
195 alignas(Block*) byte bytes[kN]; in TEST() local
[all …]
/external/rust/crates/bytes/tests/
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
294 let mut bytes = BytesMut::with_capacity(100); in split_off_to_at_gt_len() localVariable
413 let mut bytes = BytesMut::from(&b"hello world"[..]); in fns_defined_for_bytes_mut() localVariable
426 let mut bytes = BytesMut::from(LONG); in reserve_convert() localVariable
431 let mut bytes = BytesMut::from(LONG); in reserve_convert() localVariable
[all …]
/external/rust/crates/xml-rs/src/
Dutil.rs38 let mut bytes = source.bytes(); in next_char_from() localVariable
67 let mut bytes: &[u8] = "correct".as_bytes(); // correct ASCII in test_next_char_from() localVariable
70 let mut bytes: &[u8] = "правильно".as_bytes(); // correct BMP in test_next_char_from() localVariable
73 let mut bytes: &[u8] = "��".as_bytes(); // correct non-BMP in test_next_char_from() localVariable
76 let mut bytes: &[u8] = b""; // empty in test_next_char_from() localVariable
79 let mut bytes: &[u8] = b"\xf0\x9f\x98"; // incomplete code point in test_next_char_from() localVariable
85 let mut bytes: &[u8] = b"\xff\x9f\x98\x32"; // invalid code point in test_next_char_from() localVariable
/external/jimfs/jimfs/src/test/java/com/google/common/jimfs/
DTestUtils.java40 public static byte[] bytes(int... bytes) { in bytes() argument
48 public static byte[] bytes(String bytes) { in bytes() method in TestUtils
71 public static ByteBuffer buffer(String bytes) { in buffer()
75 public static Iterable<ByteBuffer> buffers(String... bytes) { in buffers()

12345678910>>...123