Home
last modified time | relevance | path

Searched defs:buffer (Results 1 – 25 of 46) sorted by relevance

12

/bootable/libbootloader/gbl/libbootparams/src/
Dbootconfig.rs24 buffer: &'a mut [u8], field
202 let mut buffer = [0u8; TEST_CONFIG.len() + TEST_CONFIG_TRAILER.len()]; in test_add() localVariable
213 let mut buffer = [0u8; TEST_CONFIG.len() + TEST_CONFIG_TRAILER.len()]; in test_add_incremental() localVariable
227 let mut buffer = [0u8; TEST_CONFIG.len() + TEST_CONFIG_TRAILER.len()]; in test_add_with_incremental() localVariable
253 let mut buffer = [0u8; TEST_CONFIG.len() + TEST_CONFIG_TRAILER.len()]; in test_add_incremental_via_fmt_write() localVariable
266 let mut buffer = [0u8; BOOTCONFIG_TRAILER_SIZE - 1]; in test_new_buffer_too_small() localVariable
272 let mut buffer = [0u8; BOOTCONFIG_TRAILER_SIZE + 1]; in test_add_buffer_too_small() localVariable
279 let mut buffer = [0u8; BOOTCONFIG_TRAILER_SIZE + 1]; in test_add_empty_string() localVariable
286 let mut buffer = [0u8; BOOTCONFIG_TRAILER_SIZE + 1]; in test_add_with_error() localVariable
Dcommandline.rs26 buffer: &'a mut [u8], field
202 let mut buffer = [0u8; TEST_COMMANDLINE.len() + 1]; in test_add_incremental() localVariable
219 let mut buffer = [0u8; TEST_COMMANDLINE.len() + 1]; in test_add_incremental_via_fmt_write() localVariable
236 let mut buffer = [0u8; TEST_COMMANDLINE.len() + 1]; in test_add_with_incremental() localVariable
268 let mut buffer = [0u8; NODE_TO_ADD.len() + COMMANDLINE_TRAILING_SIZE + 1]; in test_add_single_node_to_full_buffer() localVariable
279 let mut buffer = [0u8; NODE_TO_ADD.len() + COMMANDLINE_TRAILING_SIZE + 1]; in test_add_with_single_node_to_full_buffer() localVariable
311 let mut buffer = [0u8; COMMANDLINE_TRAILING_SIZE]; in test_add_to_empty_not_enough_space() localVariable
323 let mut buffer = [0u8; COMMANDLINE_TRAILING_SIZE]; in test_add_with_to_empty_not_enough_space_requested_space_for_separator() localVariable
334 let mut buffer = [0u8; COMMANDLINE_TRAILING_SIZE]; in test_empty_add_with_to_empty_succeed() localVariable
342 let mut buffer = TEST_COMMANDLINE.to_vec(); in test_add_with_null_terminator_invalid_input() localVariable
/bootable/libbootloader/gbl/libgbl/src/
Ddevice_tree.rs318 let mut buffer = vec![0u8; 2 * 1024 * 1024]; // 2 MB in test_components_registry_append_component() localVariable
346 let mut buffer = vec![0u8; 2 * 1024 * 1024]; // 2 MB in test_components_registry_append_component_with_tail() localVariable
373 let mut buffer = vec![0u8; 2 * 1024 * 1024]; // 2 MB in test_components_registry_append_too_many_components() localVariable
394 let mut buffer = vec![0u8; 2 * 1024 * 1024]; // 2 MB in test_components_append_from_dttable() localVariable
422 let mut buffer = vec![0u8; 2 * 1024 * 1024]; // 2 MB in test_components_returns_selected() localVariable
456 let mut buffer = vec![0u8; 2 * 1024 * 1024]; // 2 MB in test_components_returns_selected_no_overlays() localVariable
484 let mut buffer = vec![0u8; 2 * 1024 * 1024]; // 2 MB in test_components_returns_no_base_device_tree_failed() localVariable
511 let mut buffer = vec![0u8; 2 * 1024 * 1024]; // 2 MB in test_components_returns_multiple_base_device_trees_failed() localVariable
538 let mut buffer = vec![0u8; 2 * 1024 * 1024]; // 2 MB in test_components_autoselect() localVariable
564 let mut buffer = vec![0u8; 2 * 1024 * 1024]; // 2 MB in test_components_autoselect_no_overlays() localVariable
[all …]
/bootable/libbootloader/gbl/libc/src/
Dformat.c76 static size_t format_number_unsigned(unsigned long long value, char *buffer, in format_number_unsigned()
106 static size_t format_number_signed(long long value, char *buffer, in format_number_signed()
127 static size_t format_string(const char *s, char *buffer, size_t buffer_len) { in format_string()
138 static size_t format_character(char c, char *buffer, size_t buffer_len) { in format_character()
238 static size_t append_cannot_handle_error(char *buffer, size_t buffer_len, in append_cannot_handle_error()
252 static void gbl_printf_buffer(const char *fmt, va_list args, char *buffer, in gbl_printf_buffer()
/bootable/recovery/minadbd/
Dfuse_adb_provider.cpp26 bool FuseAdbDataProvider::ReadBlockAlignedData(uint8_t* buffer, uint32_t fetch_size, in ReadBlockAlignedData()
/bootable/libbootloader/gbl/efi/src/
Dandroid_boot.rs55 let buffer = fastboot_buffer_info.get_or_insert_with(|| { in efi_android_load() localVariable
59 let buffer = match buffer { in efi_android_load() localVariable
Dutils.rs187 let buffer = buffer.take(); in get_platform_buffer_info() localVariable
Dops.rs954 let mut buffer = [0u8; EXPECTED_LEN]; in ops_avb_read_persistent_value_success() localVariable
968 let mut buffer = [0u8; 0]; in ops_avb_read_persistent_value_error() localVariable
983 let mut buffer = [0u8; 0]; in ops_avb_read_persistent_value_protocol_not_found() localVariable
1454 let mut buffer = vec![0u8; 2 * 1024 * 1024]; // 2 MB in test_select_device_tree_components_select_base_and_overlay() localVariable
1550 let mut buffer = vec![0u8; 2 * 1024 * 1024]; // 2 MB in test_select_device_tree_protocol_not_found() localVariable
/bootable/recovery/fuse_sideload/
Dfuse_provider.cpp57 bool FuseFileDataProvider::ReadBlockAlignedData(uint8_t* buffer, uint32_t fetch_size, in ReadBlockAlignedData()
93 bool FuseBlockDataProvider::ReadBlockAlignedData(uint8_t* buffer, uint32_t fetch_size, in ReadBlockAlignedData()
/bootable/recovery/tests/unit/
Dpackage_test.cpp66 std::vector<uint8_t> buffer(file_content_.size()); in TEST_F() local
77 std::vector<uint8_t> buffer(file_content_.size()); in TEST_F() local
/bootable/recovery/otautil/
Dpackage.cpp176 bool MemoryPackage::ReadFullyAtOffset(uint8_t* buffer, uint64_t byte_count, uint64_t offset) { in ReadFullyAtOffset()
227 bool FilePackage::ReadFullyAtOffset(uint8_t* buffer, uint64_t byte_count, uint64_t offset) { in ReadFullyAtOffset()
253 std::vector<uint8_t> buffer(read_size); in UpdateHashAtOffset() local
Drangeset.cpp124 RangeSet buffer; in Split() local
/bootable/deprecated-ota/updater/
Dblockimg.cpp223 static void allocate(size_t size, std::vector<uint8_t>* buffer) { in allocate()
426 uint8_t buffer[buffer_size]; in receive_brotli_new_data() local
482 static int ReadBlocks(const RangeSet& src, std::vector<uint8_t>* buffer, int fd) { in ReadBlocks()
502 static int WriteBlocks(const RangeSet& tgt, const std::vector<uint8_t>& buffer, int fd) { in WriteBlocks()
545 std::vector<uint8_t> buffer; member
553 const std::vector<uint8_t>& buffer) { in PrintHashForCorruptedSourceBlocks()
620 const std::vector<uint8_t>& buffer, in PrintHashForCorruptedStashedBlocks()
645 std::vector<uint8_t> buffer(src.blocks() * BLOCKSIZE); in PrintHashForMissingStashedBlocks() local
653 static int VerifyBlocks(const std::string& expected, const std::vector<uint8_t>& buffer, in VerifyBlocks()
736 std::vector<uint8_t>* buffer, bool printnoent) { in LoadStash()
[all …]
Dcommands.cpp331 std::vector<uint8_t>* buffer, size_t block_size, in ReadAll()
359 void SourceInfo::DumpBuffer(const std::vector<uint8_t>& buffer, size_t block_size) const { in DumpBuffer() argument
Dinstall.cpp91 std::string buffer = android::base::Join(args, ""); in UIPrintFn() local
175 std::string buffer; in PackageExtractFileFn() local
570 std::string buffer; in FileGetPropFn() local
/bootable/libbootloader/gbl/libefi/src/protocol/
Dgbl_efi_image_loading.rs49 buffer: Option<&'static mut [MaybeUninit<u8>]>, field
63 pub fn buffer(&mut self) -> Option<&mut [MaybeUninit<u8>]> { in buffer() method
266 let mut buffer = [0u8; 100]; in test_partition_name_get_str() localVariable
304 let mut buffer = [0u8; 8]; in test_partition_name_get_str_small_buffer() localVariable
828 let buffer = unsafe { buffer.as_mut() }.unwrap(); in test_proto_get_buffer_return_alloc_size() localVariable
861 let buffer = unsafe { buffer.as_mut() }.unwrap(); in test_proto_get_buffer_zero_size() localVariable
903 let buffer = unsafe { buffer.as_mut() }.unwrap(); in test_proto_get_buffer_small() localVariable
943 let buffer = unsafe { buffer.as_mut() }.unwrap(); in test_proto_get_buffer() localVariable
988 let buffer = unsafe { buffer.as_mut() }.unwrap(); in test_proto_get_buffer_image_type() localVariable
1035 let buffer = unsafe { buffer.as_mut() }.unwrap(); in test_proto_get_buffer_double_call() localVariable
[all …]
Dsimple_text_output.rs55 let mut buffer = [0u16; 3]; in write_str() localVariable
/bootable/recovery/otautil/include/private/
Dasn1_decoder.h25 asn1_context(const uint8_t* buffer, size_t length) : p_(buffer), length_(length), app_type_(0) {} in asn1_context()
/bootable/libbootloader/libxbc/
Dlibxbc.c33 static uint32_t checksum(const unsigned char* const buffer, uint32_t size) { in checksum()
/bootable/deprecated-ota/applypatch/
Dapplypatch.cpp82 std::vector<unsigned char> buffer(partition.size); in ReadPartitionToBuffer() local
189 unsigned char buffer[4096]; in WriteBufferToPartition() local
Dimgpatch.cpp87 std::vector<uint8_t> buffer(buffer_size); in ApplyBSDiffPatchAndStreamOutput() local
/bootable/deprecated-ota/tests/unit/
Dcommands_test.cpp447 std::vector<uint8_t> buffer(source.blocks() * kBlockSize); in TEST() local
469 std::vector<uint8_t> buffer(source.blocks() * kBlockSize); in TEST() local
483 std::vector<uint8_t> buffer(source.blocks() * kBlockSize - 1); in TEST() local
491 std::vector<uint8_t> buffer(source.blocks() * kBlockSize); in TEST() local
/bootable/recovery/
Drecovery-persist.cpp98 std::string buffer(buf, len); in logsave() local
/bootable/recovery/install/
Dadb_install.cpp159 char buffer[kMinadbdMessageSize]; in HandleMessageFromMinadbd() local
/bootable/libbootloader/gbl/libgbl/src/fastboot/
Dsparse.rs198 let buffer = fill_buffer.get(v, sz)?; in write_sparse_image() localVariable
222 buffer: &'a mut [u8], field

12