Lines Matching refs:download_buffer

401     download_buffer: &'a mut [u8],  field
411 download_buffer: &'a mut [u8], in new()
415 Self { download_buffer, download_data_size, fb_info } in new()
420 &mut self.download_buffer[..*self.download_data_size] in download_data()
430 (self.download_buffer, download_data_size) in take_download_buffer()
584 download_buffer: &'a mut [u8], field
591 pub fn new(download_buffer: &'a mut [u8]) -> Self { in new()
594 download_buffer: download_buffer, in new()
650 let (_, remains) = &mut self.download_buffer[..self.total_download_size] in process_next_packet()
736 return transport.send_packet(fastboot_okay!(res, "{:#x}", self.download_buffer.len())); in get_var()
768 f(MAX_DOWNLOAD_SIZE_NAME, &[], snprintf!(size_str, "{:#x}", self.download_buffer.len()))?; in get_var_all_with_native()
813 if total_download_size > self.download_buffer.len() { in download()
915 FastbootUtils::new(self.download_buffer, &mut self.total_download_size, info.map(|v| v)) in utils()
1165 let mut download_buffer = vec![0u8; 1024]; in test_non_exist_command() localVariable
1166 let mut fastboot = Fastboot::new(&mut download_buffer[..]); in test_non_exist_command()
1176 let mut download_buffer = vec![0u8; 1024]; in test_non_ascii_command_string() localVariable
1177 let mut fastboot = Fastboot::new(&mut download_buffer[..]); in test_non_ascii_command_string()
1187 let mut download_buffer = vec![0u8; 1024]; in test_get_var_max_download_size() localVariable
1188 let mut fastboot = Fastboot::new(&mut download_buffer[..]); in test_get_var_max_download_size()
1206 let mut download_buffer = vec![0u8; 1024]; in test_get_var() localVariable
1207 let mut fastboot = Fastboot::new(&mut download_buffer[..]); in test_get_var()
1243 let mut download_buffer = vec![0u8; 1024]; in test_get_var_all() localVariable
1244 let mut fastboot = Fastboot::new(&mut download_buffer[..]); in test_get_var_all()
1264 let mut download_buffer = vec![0u8; 1024]; in test_download() localVariable
1266 (0..download_buffer.len()).into_iter().map(|v| v as u8).collect(); in test_download()
1267 let mut fastboot = Fastboot::new(&mut download_buffer[..]); in test_download()
1279 assert_eq!(download_buffer, download_content); in test_download()
1285 let mut download_buffer = vec![0u8; 1024]; in test_download_not_enough_args() localVariable
1286 let mut fastboot = Fastboot::new(&mut download_buffer[..]); in test_download_not_enough_args()
1296 let mut download_buffer = vec![0u8; 1024]; in test_download_invalid_hex_string() localVariable
1297 let mut fastboot = Fastboot::new(&mut download_buffer[..]); in test_download_invalid_hex_string()
1307 let mut download_buffer = vec![0u8; download_buffer_size]; in test_download_size() localVariable
1310 let mut fastboot = Fastboot::new(&mut download_buffer[..]); in test_download_size()
1328 let mut download_buffer = vec![0u8; 1024]; in test_download_more_than_expected() localVariable
1329 let download_content: Vec<u8> = vec![0u8; download_buffer.len()]; in test_download_more_than_expected()
1330 let mut fastboot = Fastboot::new(&mut download_buffer[..]); in test_download_more_than_expected()
1351 let mut download_buffer = vec![0u8; DOWNLOAD_BUFFER_LEN]; in test_oem_cmd() localVariable
1353 let mut fastboot = Fastboot::new(&mut download_buffer[..]); in test_oem_cmd()
1361 assert_eq!(utils.download_buffer.len(), DOWNLOAD_BUFFER_LEN); in test_oem_cmd()
1385 let mut download_buffer = vec![0u8; DOWNLOAD_BUFFER_LEN]; in test_flash() localVariable
1387 let mut fastboot = Fastboot::new(&mut download_buffer[..]); in test_flash()
1422 let mut download_buffer = vec![0u8; DOWNLOAD_BUFFER_LEN]; in test_upload() localVariable
1424 let mut fastboot = Fastboot::new(&mut download_buffer[..]); in test_upload()
1431 assert_eq!(utils.download_buffer.len(), DOWNLOAD_BUFFER_LEN); in test_upload()
1433 let (download_buffer, download_len) = utils.take_download_buffer(); in test_upload()
1434 let to_send = &mut download_buffer[..download_len]; in test_upload()
1460 let mut download_buffer = vec![0u8; 2048]; in test_upload_not_enough_data() localVariable
1461 let mut fastboot = Fastboot::new(&mut download_buffer[..]); in test_upload_not_enough_data()
1477 let mut download_buffer = vec![0u8; 2048]; in test_upload_more_data() localVariable
1478 let mut fastboot = Fastboot::new(&mut download_buffer[..]); in test_upload_more_data()
1494 let mut download_buffer = vec![0u8; 2048]; in test_fetch() localVariable
1495 let mut fastboot = Fastboot::new(&mut download_buffer[..]); in test_fetch()
1526 let mut download_buffer = vec![0u8; 2048]; in test_fetch_invalid_args() localVariable
1527 let mut fastboot = Fastboot::new(&mut download_buffer[..]); in test_fetch_invalid_args()
1547 let mut download_buffer = vec![0u8; 1024]; in test_fastboot_tcp() localVariable
1549 (0..download_buffer.len()).into_iter().map(|v| v as u8).collect(); in test_fastboot_tcp()
1550 let mut fastboot = Fastboot::new(&mut download_buffer[..]); in test_fastboot_tcp()
1567 assert_eq!(download_buffer, download_content); in test_fastboot_tcp()
1573 let mut download_buffer = vec![0u8; 1024]; in test_fastboot_tcp_invalid_handshake() localVariable
1574 let mut fastboot = Fastboot::new(&mut download_buffer[..]); in test_fastboot_tcp_invalid_handshake()
1586 let mut download_buffer = vec![0u8; 1024]; in test_fastboot_tcp_packet_size_exceeds_maximum() localVariable
1587 let mut fastboot = Fastboot::new(&mut download_buffer[..]); in test_fastboot_tcp_packet_size_exceeds_maximum()