/external/mesa3d/src/mesa/math/ |
D | m_xform_tmp.h | 74 TAG(transform_points1_general)( GLvector4f *to_vec, in TAG() 80 GLfloat (*to)[4] = (GLfloat (*)[4])to_vec->start; in TAG() 94 to_vec->size = 4; in TAG() 95 to_vec->flags |= VEC_SIZE_4; in TAG() 96 to_vec->count = from_vec->count; in TAG() 100 TAG(transform_points1_identity)( GLvector4f *to_vec, in TAG() 107 GLfloat (*to)[4] = (GLfloat (*)[4])to_vec->start; in TAG() 110 if (to_vec == from_vec) return; in TAG() 114 to_vec->size = 1; in TAG() 115 to_vec->flags |= VEC_SIZE_1; in TAG() [all …]
|
/external/rust/crates/coset/src/mac/ |
D | tests.rs | 55 let got = mac.clone().to_vec().unwrap(); in test_cose_mac_decode() 161 .payload(b"This is the content.".to_vec()) in test_rfc8152_cose_mac_decode() 168 .key_id(b"our-secret".to_vec()) in test_rfc8152_cose_mac_decode() 200 .payload(b"This is the content.".to_vec()) in test_rfc8152_cose_mac_decode() 207 .key_id(b"meriadoc.brandybuck@buckland.example".to_vec()) in test_rfc8152_cose_mac_decode() 210 Value::Bytes(b"peregrin.took@tuckborough.example".to_vec()) in test_rfc8152_cose_mac_decode() 246 .payload(b"This is the content.".to_vec()) in test_rfc8152_cose_mac_decode() 253 .key_id(b"018c0ae5-4d9b-471b-bfd6-eef314bc7037".to_vec()) in test_rfc8152_cose_mac_decode() 281 .payload(b"This is the content.".to_vec()) in test_rfc8152_cose_mac_decode() 293 .key_id(b"bilbo.baggins@hobbiton.example".to_vec()) in test_rfc8152_cose_mac_decode() [all …]
|
/external/rust/crates/serde_cbor/tests/ |
D | ser.rs | 48 use serde_cbor::{from_slice, to_vec}; 54 assert_eq!(&to_vec(&value).unwrap()[..], b"ffoobar"); in test_string() 60 assert_eq!(&to_vec(&value).unwrap()[..], b"\x83\x01\x02\x03"); in test_list() 71 let vec = to_vec(&object).unwrap(); in test_object() 85 let vec = to_vec(&serde_cbor::value::to_value(object.clone()).unwrap()).unwrap(); in test_object_list_keys() 115 let vec = to_vec(&serde_cbor::value::to_value(object.clone()).unwrap()).unwrap(); in test_object_object_keys() 129 let vec = to_vec(&12.3f64).unwrap(); in test_float() 135 let vec = to_vec(&4000.5f32).unwrap(); in test_f32() 141 let vec = to_vec(&::std::f64::INFINITY).unwrap(); in test_infinity() 147 let vec = to_vec(&::std::f64::NEG_INFINITY).unwrap(); in test_neg_infinity() [all …]
|
D | enum.rs | 36 use serde_cbor::{from_slice, to_vec}; 61 let raw = &to_vec(&enum_struct).unwrap(); in test_enum() 82 let re: ReprEnumStruct = from_slice(&to_vec(&repr_enum_struct).unwrap()).unwrap(); in test_repr_enum() 96 let re_a: DataEnum = from_slice(&to_vec(&data_enum_a).unwrap()).unwrap(); in test_data_enum() 99 let re_b: DataEnum = from_slice(&to_vec(&data_enum_b).unwrap()).unwrap(); in test_data_enum() 105 println!("{:?}", &to_vec(&data_enum_c).unwrap()); in test_data_enum() 106 let re_c: DataEnum = from_slice(&to_vec(&data_enum_c).unwrap()).unwrap(); in test_data_enum() 128 assert_eq!(to_vec(&142u8).unwrap(), to_vec(&Newtype(142u8)).unwrap()); in test_newtype_struct() 190 let empty_s = to_vec(&Bar::Empty).unwrap(); in test_enum_as_map() 194 let number_s = to_vec(&Bar::Number(42)).unwrap(); in test_enum_as_map() [all …]
|
/external/rust/crates/coset/src/sign/ |
D | tests.rs | 100 let got = sig.clone().to_vec().unwrap(); in test_cose_signature_encode() 379 let got = sign.clone().to_vec().unwrap(); in test_cose_sign_encode() 605 .payload(b"This is the content.".to_vec()) in test_rfc8152_cose_sign_decode() 609 .unprotected(HeaderBuilder::new().key_id(b"11".to_vec()).build()) in test_rfc8152_cose_sign_decode() 630 .payload(b"This is the content.".to_vec()) in test_rfc8152_cose_sign_decode() 634 .unprotected(HeaderBuilder::new().key_id(b"11".to_vec()).build()) in test_rfc8152_cose_sign_decode() 643 … .unprotected(HeaderBuilder::new().key_id(b"bilbo.baggins@hobbiton.example".to_vec()).build()) in test_rfc8152_cose_sign_decode() 672 … .unprotected(HeaderBuilder::new().key_id(b"11".to_vec()).build()) in test_rfc8152_cose_sign_decode() 679 .payload(b"This is the content.".to_vec()) in test_rfc8152_cose_sign_decode() 683 .unprotected(HeaderBuilder::new().key_id(b"11".to_vec()).build()) in test_rfc8152_cose_sign_decode() [all …]
|
/external/rust/crates/openssl/src/ |
D | base64.rs | 114 assert_eq!(b"".to_vec(), decode_block("").unwrap()); in test_decode_block() 115 assert_eq!(b"f".to_vec(), decode_block("Zg==").unwrap()); in test_decode_block() 116 assert_eq!(b"fo".to_vec(), decode_block("Zm8=").unwrap()); in test_decode_block() 117 assert_eq!(b"foo".to_vec(), decode_block("Zm9v").unwrap()); in test_decode_block() 118 assert_eq!(b"foob".to_vec(), decode_block("Zm9vYg==").unwrap()); in test_decode_block() 119 assert_eq!(b"fooba".to_vec(), decode_block("Zm9vYmE=").unwrap()); in test_decode_block() 120 assert_eq!(b"foobar".to_vec(), decode_block("Zm9vYmFy").unwrap()); in test_decode_block() 125 assert_eq!(b"foobar".to_vec(), decode_block(" Zm9vYmFy\n").unwrap()); in test_strip_whitespace() 126 assert_eq!(b"foob".to_vec(), decode_block(" Zm9vYg==\n").unwrap()); in test_strip_whitespace()
|
D | sign.rs | 729 b"Hi There".to_vec(), in hmac_md5() 733 b"Jefe".to_vec(), in hmac_md5() 734 b"what do ya want for nothing?".to_vec(), in hmac_md5() 749 b"Test With Truncation".to_vec(), in hmac_md5() 754 b"Test Using Larger Than Block-Size Key - Hash Key First".to_vec(), in hmac_md5() 761 .to_vec(), in hmac_md5() 776 b"Hi There".to_vec(), in hmac_sha1() 780 b"Jefe".to_vec(), in hmac_sha1() 781 b"what do ya want for nothing?".to_vec(), in hmac_sha1() 796 b"Test With Truncation".to_vec(), in hmac_sha1() [all …]
|
/external/rust/crates/tokio-util/tests/ |
D | framed_read.rs | 73 Ok(b"\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x02".to_vec()), in read_multi_frame_in_packet() 89 Ok(b"\x00\x00\x00\x00".to_vec()), in read_multi_frame_across_packets() 90 Ok(b"\x00\x00\x00\x01".to_vec()), in read_multi_frame_across_packets() 91 Ok(b"\x00\x00\x00\x02".to_vec()), in read_multi_frame_across_packets() 107 Ok(b"\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x08".to_vec()), in read_multi_frame_in_packet_after_codec_changed() 126 Ok(b"\x00\x00\x00\x00".to_vec()), in read_not_ready() 127 Ok(b"\x00\x00\x00\x01".to_vec()), in read_not_ready() 143 Ok(b"\x00\x00".to_vec()), in read_partial_then_not_ready() 145 Ok(b"\x00\x00\x00\x00\x00\x01\x00\x00\x00\x02".to_vec()), in read_partial_then_not_ready() 181 Ok(b"\x00\x00".to_vec()), in read_partial_then_err() [all …]
|
D | codecs.rs | 243 let mut codec = AnyDelimiterCodec::new(b",;\n\r".to_vec(), b",".to_vec()); in any_delimiters_decoder_any_character() 265 AnyDelimiterCodec::new_with_max_length(b",;\n\r".to_vec(), b",".to_vec(), MAX_LENGTH); in any_delimiters_decoder_max_length() 356 AnyDelimiterCodec::new_with_max_length(b",;\n\r".to_vec(), b",".to_vec(), MAX_LENGTH); in any_delimiter_decoder_max_length_underrun() 378 AnyDelimiterCodec::new_with_max_length(b",;\n\r".to_vec(), b",".to_vec(), MAX_LENGTH); in any_delimiter_decoder_max_length_underrun_twice() 396 AnyDelimiterCodec::new_with_max_length(b",;\n\r".to_vec(), b",".to_vec(), MAX_LENGTH); in any_delimiter_decoder_max_length_bursts() 413 AnyDelimiterCodec::new_with_max_length(b",;\n\r".to_vec(), b",".to_vec(), MAX_LENGTH); in any_delimiter_decoder_max_length_big_burst() 428 AnyDelimiterCodec::new_with_max_length(b",;\n\r".to_vec(), b",".to_vec(), MAX_LENGTH); in any_delimiter_decoder_max_length_delimiter_between_decodes() 444 AnyDelimiterCodec::new_with_max_length(b",;\n\r".to_vec(), b",".to_vec(), MAX_LENGTH); in any_delimiter_decoder_discard_repeat() 456 let mut codec = AnyDelimiterCodec::new(b",".to_vec(), b";--;".to_vec()); in any_delimiter_encoder()
|
D | io_sink_writer.rs | 28 assert_eq!(data.to_vec(), rx.recv().await.unwrap().to_vec()); in test_copied_sink_writer() 67 writer.into_inner().write_buffer().to_vec().as_slice(), in test_direct_sink_writer()
|
/external/rust/crates/coset/src/key/ |
D | tests.rs | 210 let got = key.clone().to_vec().unwrap(); in test_cose_key_encode() 223 let got_data = keyset.clone().to_vec().unwrap(); in test_cose_key_encode() 240 ).key_id(b"meriadoc.brandybuck@buckland.example".to_vec()).build(), in test_rfc8152_public_cose_key_decode() 255 ).key_id(b"11".to_vec()).build(), in test_rfc8152_public_cose_key_decode() 270 b"bilbo.baggins@hobbiton.example".to_vec()).build(), in test_rfc8152_public_cose_key_decode() 284 ).key_id(b"peregrin.took@tuckborough.example".to_vec()).build(), in test_rfc8152_public_cose_key_decode() 295 let got = key.clone().to_vec().unwrap(); in test_rfc8152_public_cose_key_decode() 308 let got = keyset.to_vec().unwrap(); in test_rfc8152_public_cose_key_decode() 323 ).key_id(b"meriadoc.brandybuck@buckland.example".to_vec()).build(), in test_rfc8152_private_cose_key_decode() 340 ).key_id(b"11".to_vec()).build(), in test_rfc8152_private_cose_key_decode() [all …]
|
/external/rust/crates/x509-cert/tests/ |
D | pkix_extensions.rs | 21 assert_eq!(ext.extn_value, decoded.to_vec().unwrap()); in spin_over_exts() 26 assert_eq!(ext.extn_value, decoded.to_vec().unwrap()); in spin_over_exts() 31 assert_eq!(ext.extn_value, decoded.to_vec().unwrap()); in spin_over_exts() 36 assert_eq!(ext.extn_value, decoded.to_vec().unwrap()); in spin_over_exts() 41 assert_eq!(ext.extn_value, decoded.to_vec().unwrap()); in spin_over_exts() 46 assert_eq!(ext.extn_value, decoded.to_vec().unwrap()); in spin_over_exts() 51 assert_eq!(ext.extn_value, decoded.to_vec().unwrap()); in spin_over_exts() 56 assert_eq!(ext.extn_value, decoded.to_vec().unwrap()); in spin_over_exts() 61 assert_eq!(ext.extn_value, decoded.to_vec().unwrap()); in spin_over_exts() 66 assert_eq!(ext.extn_value, decoded.to_vec().unwrap()); in spin_over_exts() [all …]
|
D | certificate.rs | 116 let reencoded_tbs = parsed_tbs.to_vec().unwrap(); in reencode_cert() 120 let reencoded_sigalg = parsed_sigalg.to_vec().unwrap(); in reencode_cert() 124 let reencoded_sig = parsed_sig.to_vec().unwrap(); in reencode_cert() 132 let encoded_serial = parsed_tbs.serial_number.to_vec().unwrap(); in reencode_cert() 135 let encoded_signature = parsed_tbs.signature.to_vec().unwrap(); in reencode_cert() 138 let encoded_issuer = parsed_tbs.issuer.to_vec().unwrap(); in reencode_cert() 141 let encoded_validity = parsed_tbs.validity.to_vec().unwrap(); in reencode_cert() 144 let encoded_subject = parsed_tbs.subject.to_vec().unwrap(); in reencode_cert() 147 let encoded_subject_public_key_info = parsed_tbs.subject_public_key_info.to_vec().unwrap(); in reencode_cert() 155 let encoded_extensions = parsed_tbs.extensions.to_vec().unwrap(); in reencode_cert() [all …]
|
D | trust_anchor_format.rs | 15 let reencoded_tac = tac.to_vec().unwrap(); in decode_ta1() 114 let reencoded_cert = cert_path.certificate.to_vec().unwrap(); in decode_ta1() 130 let reencoded_tac = tac.to_vec().unwrap(); in decode_ta2() 217 let reencoded_cert = cert_path.certificate.to_vec().unwrap(); in decode_ta2() 233 let reencoded_tac = tac.to_vec().unwrap(); in decode_ta3() 327 let reencoded_cert = cert_path.certificate.to_vec().unwrap(); in decode_ta3() 343 let reencoded_tac = tac.to_vec().unwrap(); in decode_ta4() 392 let reencoded_cert = cert_path.certificate.to_vec().unwrap(); in decode_ta4()
|
/external/rust/crates/octets/src/ |
D | lib.rs | 309 pub fn to_vec(&self) -> Vec<u8> { in to_vec() method 310 self.as_ref().to_vec() in to_vec() 650 pub fn to_vec(&self) -> Vec<u8> { in to_vec() method 651 self.as_ref().to_vec() in to_vec() 1090 let mut d = b"helloworld".to_vec(); in split() 1116 let mut d = b"helloworld".to_vec(); in split_at() 1122 let mut exp1 = b"hello".to_vec(); in split_at() 1125 let mut exp2 = b"world".to_vec(); in split_at() 1133 let mut exp1 = b"helloworld".to_vec(); in split_at() 1136 let mut exp2 = b"".to_vec(); in split_at() [all …]
|
/external/rust/crates/pkcs8/tests/ |
D | traits.rs | 35 Ok(MockKey(bytes.to_vec())) in from_pkcs8_der() 49 Ok(MockKey(pkcs8.to_vec()?)) in try_from() 77 let pem = MockKey(ED25519_DER_EXAMPLE.to_vec()) in to_pkcs8_pem() 89 MockKey(ED25519_DER_EXAMPLE.to_vec()) in write_pkcs8_der_file() 102 MockKey(ED25519_DER_EXAMPLE.to_vec()) in write_pkcs8_pem_file()
|
/external/rust/crates/spki/tests/ |
D | traits.rs | 35 Ok(MockKey(bytes.to_vec())) in from_public_key_der() 49 Ok(MockKey(spki.to_vec()?)) in try_from() 77 let pem = MockKey(ED25519_DER_EXAMPLE.to_vec()) in to_public_key_pem() 89 MockKey(ED25519_DER_EXAMPLE.to_vec()) in write_public_key_der_file() 102 MockKey(ED25519_DER_EXAMPLE.to_vec()) in write_public_key_pem_file()
|
/external/rust/crates/gdbstub/src/protocol/common/ |
D | hex.rs | 203 let mut payload = b"ffffff4".to_vec(); in decode_hex_buf_odd() 210 let mut payload = b"0123456789abcdef".to_vec(); in decode_hex_buf_even() 217 let mut payload = b"12345".to_vec(); in decode_hex_buf_odd_alt() 224 let mut payload = b"1".to_vec(); in decode_hex_buf_short() 231 let mut payload = b"".to_vec(); in decode_hex_buf_empty() 238 let mut payload = b"}\x03}\x04}]}\n".to_vec(); in decode_bin_buf_escaped()
|
/external/rust/crates/coset/src/encrypt/ |
D | tests.rs | 69 let got = recipient.clone().to_vec().unwrap(); in test_cose_recipient_decode() 176 let got = encrypt.clone().to_vec().unwrap(); in test_cose_encrypt_decode() 290 .key_id(b"meriadoc.brandybuck@buckland.example".to_vec()) in test_rfc8152_cose_encrypt_decode() 327 .key_id(b"our-secret".to_vec()) in test_rfc8152_cose_encrypt_decode() 329 Value::Bytes(b"aabbccddeeffgghh".to_vec())) in test_rfc8152_cose_encrypt_decode() 362 … .unprotected(HeaderBuilder::new().key_id(b"bilbo.baggins@hobbiton.example".to_vec()).build()) in test_rfc8152_cose_encrypt_decode() 379 .key_id(b"meriadoc.brandybuck@buckland.example".to_vec()) in test_rfc8152_cose_encrypt_decode() 431 … .key_id(b"meriadoc.brandybuck@buckland.example".to_vec()) in test_rfc8152_cose_encrypt_decode() 434 … Value::Bytes(b"peregrin.took@tuckborough.example".to_vec()) in test_rfc8152_cose_encrypt_decode() 510 let got = encrypt.clone().to_vec().unwrap(); in test_cose_encrypt0_decode() [all …]
|
/external/rust/crates/coset/examples/ |
D | cwt.rs | 26 data.to_vec() in sign() 67 .key_id(b"AsymmetricECDSA256".to_vec()) in main() 72 .payload(claims.clone().to_vec()?) in main() 77 let sign1_data = sign1.to_vec()?; in main()
|
D | signature.rs | 26 data.to_vec() in sign() 50 .key_id(b"11".to_vec()) in main() 54 .payload(pt.to_vec()) in main() 59 let sign1_data = sign1.to_vec()?; in main()
|
/external/rust/crates/coset/src/common/ |
D | tests.rs | 45 let got = label.clone().to_vec().unwrap(); in test_label_encode() 74 let left_data = left.clone().to_vec().unwrap(); in test_label_sort() 75 let right_data = right.clone().to_vec().unwrap(); in test_label_sort() 126 let got = label.clone().to_vec().unwrap(); in test_registered_label_encode() 155 let left_data = left.clone().to_vec().unwrap(); in test_registered_label_sort() 156 let right_data = right.clone().to_vec().unwrap(); in test_registered_label_sort() 230 let got = label.clone().to_vec().unwrap(); in test_registered_label_with_private_encode() 265 let left_data = left.clone().to_vec().unwrap(); in test_registered_label_with_private_sort() 266 let right_data = right.clone().to_vec().unwrap(); in test_registered_label_with_private_sort()
|
/external/uwb/src/rust/uwb_core/src/params/ |
D | utils.rs | 20 value.to_le_bytes().to_vec() in u8_to_bytes() 24 value.to_le_bytes().to_vec() in u16_to_bytes() 28 value.to_le_bytes().to_vec() in u32_to_bytes() 33 value.to_le_bytes().to_vec() in u64_to_bytes()
|
/external/rust/crates/sec1/tests/ |
D | traits.rs | 35 Ok(MockPrivateKey(bytes.to_vec())) in from_sec1_der() 69 let pem = MockPrivateKey(P256_DER_EXAMPLE.to_vec()) in to_sec1_pem() 81 MockPrivateKey(P256_DER_EXAMPLE.to_vec()) in write_sec1_der_file() 94 MockPrivateKey(P256_DER_EXAMPLE.to_vec()) in write_sec1_pem_file()
|
/external/rust/crates/pkcs1/tests/ |
D | traits.rs | 35 Ok(MockPrivateKey(bytes.to_vec())) in from_pkcs1_der() 69 let pem = MockPrivateKey(RSA_2048_PRIV_DER_EXAMPLE.to_vec()) in to_pkcs1_pem() 81 MockPrivateKey(RSA_2048_PRIV_DER_EXAMPLE.to_vec()) in write_pkcs1_der_file() 94 MockPrivateKey(RSA_2048_PRIV_DER_EXAMPLE.to_vec()) in write_pkcs1_pem_file()
|