/tools/security/fuzzing/orphans/smallvec/ |
D | smallvec_fuzzer.rs | 77 let mut vec = SmallVec::<T>::new(); in do_fuzz() localVariable 81 vec.push(value); in do_fuzz() 84 vec.pop(); in do_fuzz() 87 if index < vec.len() { in do_fuzz() 88 vec.insert(index, element); in do_fuzz() 92 if index < vec.len() { in do_fuzz() 93 vec.remove(index); in do_fuzz() 97 if index < vec.len() { in do_fuzz() 98 vec.remove(index); in do_fuzz() 102 std::hint::black_box(vec.drain(..).count()); in do_fuzz() [all …]
|
/tools/netsim/rust/cli/src/ |
D | response.rs | 379 vec![capture_1(), capture_1_wifi(), capture_2(), capture_3(), capture_4_uwb()] in all_test_captures() 384 test_filter_captures_helper(vec!["test".to_string()], vec![]); in test_no_match() 389 test_filter_captures_helper(vec!["device".to_string()], all_test_captures()); in test_all_match() 394 test_filter_captures_helper(vec!["4001".to_string()], vec![capture_1()]); in test_match_capture_id() 395 test_filter_captures_helper(vec!["03".to_string()], vec![capture_2()]); in test_match_capture_id() 396 test_filter_captures_helper(vec!["40".to_string()], all_test_captures()); in test_match_capture_id() 402 vec!["device 1".to_string()], in test_match_device_name() 403 vec![capture_1(), capture_1_wifi()], in test_match_device_name() 405 test_filter_captures_helper(vec![" 2".to_string()], vec![capture_2()]); in test_match_device_name() 411 vec!["DEVICE 1".to_string()], in test_match_device_name_case_insensitive() [all …]
|
D | lib.rs | 83 vec![args::Command::Devices(args::Devices { continuous: false }).get_request_bytes()] in perform_command() 85 _ => vec![command.get_request_bytes()], in perform_command() 228 devices: vec![DeviceProto { in test_remove_device() 231 chips: vec![ChipProto { id: chip_id, ..Default::default() }], in test_remove_device() 255 devices: vec![DeviceProto { in test_remove_chip() 258 chips: vec![ in test_remove_chip() 286 devices: vec![DeviceProto { in test_remove_multiple_chips_fails() 289 chips: vec![ in test_remove_multiple_chips_fails() 313 devices: vec![DeviceProto { in test_remove_nonexistent_chip_fails() 316 chips: vec![ChipProto { in test_remove_nonexistent_chip_fails()
|
D | requests.rs | 291 chips: vec![ChipCreateProto { in get_create_device_req_bytes() 317 chips: vec![ChipProto { in get_patch_device_req_bytes() 341 let manufacturer_data = vec![0x12, 0x34]; in test_beacon_create_all_params_ble() 385 let manufacturer_data = vec![0xab, 0xcd, 0xef]; in test_beacon_patch_all_params_ble() 428 manufacturer_data: vec![0x21, 0xbe, 0xef], in test_beacon_create_scan_response() 459 manufacturer_data: vec![0x59, 0xbe, 0xac, 0x09], in test_beacon_patch_scan_response() 559 chips: vec![ChipCreateProto { in test_beacon_create_ble_with_address() 592 chips: vec![ChipProto { in test_beacon_patch_ble_with_address()
|
/tools/security/remote_provisioning/hwtrust/src/dice/ |
D | entry.rs | 410 .code_hash(vec![1; 64]) in payload_builder_valid_512_bit_hashes() 411 .authority_hash(vec![2; 64]) in payload_builder_valid_512_bit_hashes() 412 .config_hash(Some(vec![3; 64])) in payload_builder_valid_512_bit_hashes() 420 .code_hash(vec![1; 48]) in payload_builder_valid_384_bit_hashes() 421 .authority_hash(vec![2; 48]) in payload_builder_valid_384_bit_hashes() 422 .config_hash(Some(vec![3; 48])) in payload_builder_valid_384_bit_hashes() 430 .code_hash(vec![1; 32]) in payload_builder_valid_256_bit_hashes() 431 .authority_hash(vec![2; 32]) in payload_builder_valid_256_bit_hashes() 432 .config_hash(Some(vec![3; 32])) in payload_builder_valid_256_bit_hashes() 451 let err = valid_payload().code_hash(vec![1; 16]).build().unwrap_err(); in payload_builder_bad_code_hash_size() [all …]
|
D | chain.rs | 221 let payloads = vec![valid_payload(0, key).build().unwrap()]; in chain_validate_fails_when_root_key_repeated() 230 let payloads = vec![ in chain_validate_fails_with_repeated_subject_public_keys() 243 let payloads = vec![ in chain_validate_fails_with_repeated_subjects() 257 let payloads = vec![ in chain_validate_fails_with_mismatching_issuer_and_subject() 270 .code_hash(vec![0; 64]) in valid_payload() 271 .authority_hash(vec![0; 64]) in valid_payload()
|
/tools/netsim/rust/daemon/src/transport/ |
D | h4.rs | 65 let mut packet = vec![0u8; preamble_size]; in read_h4_packet() 154 let hci_cmd = vec![0x01, 0x03, 0x0c, 0x00]; in test_read_h4_cmd_packet() 163 let hci_acl = vec![ in test_read_h4_acl_packet() 175 let hci_sco = vec![0x03, 0x03, 0x0c, 0x02, 0x01, 0x02]; in test_read_h4_sco_packet() 184 let hci_evt = vec![0x04, 0x0C, 0x01, 0x10]; in test_read_h4_evt_packet() 193 let hci_iso = vec![0x05, 0x02, 0x00, 0x06, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06]; in test_read_h4_iso_packet() 204 let hci_acl: Vec<u8> = vec![]; in test_read_h4_packet_with_eof_in_type() 235 assert_eq!(packet.payload, vec![0x03, 0x0c, 0x00]); in test_h4_recovery_with_reset_first() 244 assert_eq!(packet.payload, vec![0x03, 0x0c, 0x00]); in test_h4_recovery_with_reset_after_many()
|
/tools/security/remote_provisioning/hwtrust/src/cbor/dice/ |
D | entry.rs | 401 let mut map = vec![ in to_cbor_value() 409 (Value::from(KEY_USAGE), Value::from(vec![0x20])), in to_cbor_value() 459 Value::Bytes(vec![mode]) in encode_mode() 467 fields.insert(CODE_HASH, Value::Bytes(vec![1; 32])); in valid_payload_sha256() 470 fields.insert(AUTHORITY_HASH, Value::Bytes(vec![2; 32])); in valid_payload_sha256() 480 fields.insert(CODE_HASH, Value::Bytes(vec![1; 48])); in valid_payload_sha384() 483 fields.insert(AUTHORITY_HASH, Value::Bytes(vec![2; 48])); in valid_payload_sha384() 498 fields.insert(KEY_USAGE, Value::Bytes(vec![0x20])); in key_usage_only_key_cert_sign() 506 fields.insert(KEY_USAGE, Value::Bytes(vec![0x20, 0x30, 0x40])); in key_usage_too_long() 514 fields.insert(KEY_USAGE, Value::Bytes(vec![0x10])); in key_usage_lacks_key_cert_sign() [all …]
|
D | chain.rs | 69 values: std::vec::IntoIter<Value>, in from_root_and_entries() 97 ) -> Result<(PublicKey, std::vec::IntoIter<Value>)> { in root_and_entries_from_value() 210 let mut chain = vec![root_key]; in chain_from_cbor_valid() 225 let mut chain = vec![root_key]; in chain_from_cbor_valid_with_mixed_key_types() 248 let chain = vec![root_cose_key, entry.sign(&root_key).to_cbor_value().unwrap()]; in chain_from_cbor_root_key_integer_key_ops() 261 let chain = vec![ in chain_form_from_cbor_valid_degenerate() 277 let chain = vec![ in chain_form_from_cbor_degenerate_length_but_not_self_signed() 293 .code_hash(vec![6; 64]) in valid_payload() 296 .authority_hash(vec![7; 64]) in valid_payload()
|
/tools/test/graphicsbenchmark/apps/sample_app/src/cpp/ |
D | vecmath.h | 66 Vec2(const Vec2& vec) { in Vec2() argument 67 x_ = vec.x_; in Vec2() 68 y_ = vec.y_; in Vec2() 230 Vec3(const Vec3& vec) { in Vec3() argument 231 x_ = vec.x_; in Vec3() 232 y_ = vec.y_; in Vec3() 233 z_ = vec.z_; in Vec3() 242 Vec3(const Vec2& vec, float f) { in Vec3() argument 243 x_ = vec.x_; in Vec3() 244 y_ = vec.y_; in Vec3() [all …]
|
D | vecmath.cpp | 31 Vec3::Vec3(const Vec4& vec) { in Vec3() argument 32 x_ = vec.x_; in Vec3() 33 y_ = vec.y_; in Vec3() 34 z_ = vec.z_; in Vec3() 298 Mat4 Mat4::Translation(const Vec3 vec) { in Translation() argument 303 ret.f_[12] = vec.x_; in Translation() 307 ret.f_[13] = vec.y_; in Translation() 311 ret.f_[14] = vec.z_; in Translation()
|
/tools/netsim/rust/proto/src/ |
D | packet_streamer.rs | 168 pub fn set_packet(&mut self, v: ::std::vec::Vec<u8>) { in set_packet() 173 pub fn mut_packet(&mut self) -> &mut ::std::vec::Vec<u8> { in mut_packet() 176 …t_type = ::std::option::Option::Some(packet_request::Request_type::Packet(::std::vec::Vec::new())); in mut_packet() 185 pub fn take_packet(&mut self) -> ::std::vec::Vec<u8> { in take_packet() 192 ::std::vec::Vec::new() in take_packet() 197 let mut fields = ::std::vec::Vec::with_capacity(3); in generated_message_descriptor_data() 198 let mut oneofs = ::std::vec::Vec::with_capacity(1); in generated_message_descriptor_data() 354 Packet(::std::vec::Vec<u8>), 514 pub fn set_packet(&mut self, v: ::std::vec::Vec<u8>) { in set_packet() 519 pub fn mut_packet(&mut self) -> &mut ::std::vec::Vec<u8> { in mut_packet() [all …]
|
D | frontend.rs | 51 let mut fields = ::std::vec::Vec::with_capacity(1); in generated_message_descriptor_data() 52 let mut oneofs = ::std::vec::Vec::with_capacity(0); in generated_message_descriptor_data() 173 let mut fields = ::std::vec::Vec::with_capacity(1); in generated_message_descriptor_data() 174 let mut oneofs = ::std::vec::Vec::with_capacity(0); in generated_message_descriptor_data() 296 let mut fields = ::std::vec::Vec::with_capacity(1); in generated_message_descriptor_data() 297 let mut oneofs = ::std::vec::Vec::with_capacity(0); in generated_message_descriptor_data() 419 let mut fields = ::std::vec::Vec::with_capacity(1); in generated_message_descriptor_data() 420 let mut oneofs = ::std::vec::Vec::with_capacity(0); in generated_message_descriptor_data() 541 let mut fields = ::std::vec::Vec::with_capacity(1); in generated_message_descriptor_data() 542 let mut oneofs = ::std::vec::Vec::with_capacity(0); in generated_message_descriptor_data() [all …]
|
D | startup.rs | 33 pub devices: ::std::vec::Vec<startup_info::Device>, 51 let mut fields = ::std::vec::Vec::with_capacity(1); in generated_message_descriptor_data() 52 let mut oneofs = ::std::vec::Vec::with_capacity(0); in generated_message_descriptor_data() 127 devices: ::std::vec::Vec::new(), in default_instance() 160 pub chips: ::std::vec::Vec<super::Chip>, 178 let mut fields = ::std::vec::Vec::with_capacity(2); in generated_message_descriptor_data() 179 let mut oneofs = ::std::vec::Vec::with_capacity(0); in generated_message_descriptor_data() 270 chips: ::std::vec::Vec::new(), in default_instance() 320 let mut fields = ::std::vec::Vec::with_capacity(2); in generated_message_descriptor_data() 321 let mut oneofs = ::std::vec::Vec::with_capacity(0); in generated_message_descriptor_data() [all …]
|
D | hci_packet.rs | 35 pub packet: ::std::vec::Vec<u8>, 53 let mut fields = ::std::vec::Vec::with_capacity(2); in generated_message_descriptor_data() 54 let mut oneofs = ::std::vec::Vec::with_capacity(0); in generated_message_descriptor_data() 144 packet: ::std::vec::Vec::new(), in default_instance() 266 let mut deps = ::std::vec::Vec::with_capacity(0); in file_descriptor() 267 let mut messages = ::std::vec::Vec::with_capacity(1); in file_descriptor() 269 let mut enums = ::std::vec::Vec::with_capacity(1); in file_descriptor()
|
D | stats.rs | 37 pub packet: ::std::option::Option<::std::vec::Vec<u8>>, 130 pub fn set_packet(&mut self, v: ::std::vec::Vec<u8>) { in set_packet() 136 pub fn mut_packet(&mut self) -> &mut ::std::vec::Vec<u8> { in mut_packet() 138 self.packet = ::std::option::Option::Some(::std::vec::Vec::new()); in mut_packet() 144 pub fn take_packet(&mut self) -> ::std::vec::Vec<u8> { in take_packet() 145 self.packet.take().unwrap_or_else(|| ::std::vec::Vec::new()) in take_packet() 149 let mut fields = ::std::vec::Vec::with_capacity(3); in generated_message_descriptor_data() 150 let mut oneofs = ::std::vec::Vec::with_capacity(0); in generated_message_descriptor_data() 368 pub invalid_packets: ::std::vec::Vec<InvalidPacket>, 522 let mut fields = ::std::vec::Vec::with_capacity(8); in generated_message_descriptor_data() [all …]
|
D | model.rs | 55 let mut fields = ::std::vec::Vec::with_capacity(3); in generated_message_descriptor_data() 56 let mut oneofs = ::std::vec::Vec::with_capacity(0); in generated_message_descriptor_data() 213 let mut fields = ::std::vec::Vec::with_capacity(3); in generated_message_descriptor_data() 214 let mut oneofs = ::std::vec::Vec::with_capacity(0); in generated_message_descriptor_data() 573 let mut fields = ::std::vec::Vec::with_capacity(9); in generated_message_descriptor_data() 574 let mut oneofs = ::std::vec::Vec::with_capacity(1); in generated_message_descriptor_data() 879 let mut fields = ::std::vec::Vec::with_capacity(4); in generated_message_descriptor_data() 880 let mut oneofs = ::std::vec::Vec::with_capacity(0); in generated_message_descriptor_data() 1055 let mut fields = ::std::vec::Vec::with_capacity(4); in generated_message_descriptor_data() 1056 let mut oneofs = ::std::vec::Vec::with_capacity(0); in generated_message_descriptor_data() [all …]
|
D | configuration.rs | 175 let mut fields = ::std::vec::Vec::with_capacity(6); in generated_message_descriptor_data() 176 let mut oneofs = ::std::vec::Vec::with_capacity(0); in generated_message_descriptor_data() 438 let mut fields = ::std::vec::Vec::with_capacity(3); in generated_message_descriptor_data() 439 let mut oneofs = ::std::vec::Vec::with_capacity(0); in generated_message_descriptor_data() 632 let mut fields = ::std::vec::Vec::with_capacity(2); in generated_message_descriptor_data() 633 let mut oneofs = ::std::vec::Vec::with_capacity(0); in generated_message_descriptor_data() 819 let mut fields = ::std::vec::Vec::with_capacity(5); in generated_message_descriptor_data() 820 let mut oneofs = ::std::vec::Vec::with_capacity(0); in generated_message_descriptor_data() 1029 let mut fields = ::std::vec::Vec::with_capacity(2); in generated_message_descriptor_data() 1030 let mut oneofs = ::std::vec::Vec::with_capacity(0); in generated_message_descriptor_data() [all …]
|
D | config.rs | 83 let mut fields = ::std::vec::Vec::with_capacity(17); in generated_message_descriptor_data() 84 let mut oneofs = ::std::vec::Vec::with_capacity(0); in generated_message_descriptor_data() 465 let mut fields = ::std::vec::Vec::with_capacity(3); in generated_message_descriptor_data() 466 let mut oneofs = ::std::vec::Vec::with_capacity(0); in generated_message_descriptor_data() 621 let mut fields = ::std::vec::Vec::with_capacity(2); in generated_message_descriptor_data() 622 let mut oneofs = ::std::vec::Vec::with_capacity(0); in generated_message_descriptor_data() 765 let mut fields = ::std::vec::Vec::with_capacity(3); in generated_message_descriptor_data() 766 let mut oneofs = ::std::vec::Vec::with_capacity(0); in generated_message_descriptor_data() 920 let mut fields = ::std::vec::Vec::with_capacity(1); in generated_message_descriptor_data() 921 let mut oneofs = ::std::vec::Vec::with_capacity(0); in generated_message_descriptor_data() [all …]
|
D | common.rs | 115 let mut deps = ::std::vec::Vec::with_capacity(0); in file_descriptor() 116 let mut messages = ::std::vec::Vec::with_capacity(0); in file_descriptor() 117 let mut enums = ::std::vec::Vec::with_capacity(1); in file_descriptor()
|
/tools/netsim/rust/daemon/src/bluetooth/ |
D | advertise_data.rs | 149 bytes.extend(vec![ in serialize() 159 bytes.extend(vec![2, AD_TYPE_TX_POWER, self.tx_power_level.dbm as u8]); in serialize() 175 bytes.extend(vec![ in serialize() 226 vec![(exp_name_len - 1) as u8, AD_TYPE_COMPLETE_NAME], in test_from_proto_succeeds() 228 vec![(exp_tx_power_len - 1) as u8, AD_TYPE_TX_POWER, tx_power.dbm as u8] in test_from_proto_succeeds() 276 [vec![(exp_len - 1) as u8, AD_TYPE_COMPLETE_NAME], device_name.into_bytes()].concat(), in test_set_device_name_succeeds() 302 assert_eq!(vec![(exp_len - 1) as u8, AD_TYPE_TX_POWER, tx_power.dbm as u8], bytes); in test_set_tx_power_level() 318 [vec![(exp_len - 1) as u8, AD_TYPE_MANUFACTURER_DATA], manufacturer_data.into_bytes()] in test_set_manufacturer_data_succeeds()
|
/tools/asuite/adevice/src/ |
D | tracking.rs | 164 let mut args = vec![ in ninja_args() 332 assert_eq!(vec!["another".to_string(), "supermod".to_string()], config.modules); in track_updates_config_file() 352 assert_eq!(vec!["mod_one"], config.modules); in untrack_updates_config() 360 Config { base: s("DROID"), modules: vec![s("ADEVICE_FP")], config_path: s("") }; in ninja_args_updated_based_on_config() 373 let fake_out = vec![ in ninja_output_filtered_to_android_product_out() 391 vec![ in ninja_output_filtered_to_android_product_out() 405 let config = Config { base: s("DROID"), modules: vec![s("fish")], config_path: s("") }; in check_ninja_failure_msg_for_tracked_module() 422 let config = Config { base: s("DROID"), modules: vec![s("bait")], config_path: s("") }; in check_ninja_failure_msg_unrelated()
|
D | device.rs | 181 Some(serial) => [vec!["-s".to_string(), serial.clone()], args.to_vec()].concat(), in adjust_adb_args() 198 let mut adb_args = vec![ in fingerprint_device() 221 .args(&vec!["status".to_string()]) in fingerprint_device() 292 let mut timeout_args = vec![format!("{}", time_left.as_secs()), cmd.to_string()]; in run_process_with_retry_until_timeout() 562 let mut adb_commands: Vec<AdbCommand> = vec![ in sort_many() 573 vec![ in sort_many()
|
/tools/netsim/rust/daemon/src/wifi/ |
D | hwsim_attr_set.rs | 99 let mut vec: Vec<u8> = packet.encode_to_vec().unwrap(); in extend_attributes() localVariable 100 let nla_padding = nla_align(vec.len()) - vec.len(); in extend_attributes() 101 vec.extend(vec![0; nla_padding]); in extend_attributes() 102 self.attributes.extend(vec); in extend_attributes() 349 let mod_frame = Some(vec![0, 1, 2, 3]); in test_attr_set_parse_with_frame_transmitter()
|
/tools/netsim/rust/daemon/src/http_server/ |
D | server_response.rs | 177 writer.put_ok("text/plain", "Hello World", vec![]); in test_put_ok() 188 writer.put_ok_with_length("text/plain", 100, vec![]); in test_put_ok_with_length() 199 writer.put_ok_with_vec("text/plain", SAMPLE_CHUNK.to_vec(), vec![]); in test_put_ok_with_vec() 213 writer.put_ok_switch_protocol("Websocket", vec![]); in test_put_ok_switch_protocol()
|