/bootable/libbootloader/gbl/libgbl/src/ |
D | lib.rs | 77 pub struct VerifiedData<'a>(SlotVerifyData<'a>); 94 pub struct BootImage<'a>(&'a mut [u8]); 97 pub struct VendorBootImage<'a>(&'a mut [u8]); 100 pub struct InitBootImage<'a>(&'a mut [u8]); 103 pub struct KernelImage<'a>(&'a mut [u8]); 106 pub struct Ramdisk<'a>(&'a mut [u8]); 108 pub struct Bootconfig<'a>(&'a mut [u8]); 110 pub struct Dtb<'a>(&'a mut [u8]); 114 pub fn get_boot_image<'a: 'b, 'b: 'c, 'c, 'd>( in get_boot_image() 116 partitions_ram_map: &'a mut [PartitionRamMap<'b, 'c>], in get_boot_image() [all …]
|
D | ops.rs | 35 pub struct AndroidBootImages<'a> { 36 pub kernel: &'a mut [u8], 37 pub ramdisk: &'a mut [u8], 38 pub fdt: &'a mut [u8], 42 pub struct FuchsiaBootImages<'a> { 43 pub zbi_kernel: &'a mut [u8], 44 pub zbi_items: &'a mut [u8], 48 pub enum BootImages<'a> { 49 Android(AndroidBootImages<'a>), 50 Fuchsia(FuchsiaBootImages<'a>), [all …]
|
D | slots.rs | 281 pub struct SlotIterator<'a> { 283 slot_getter: &'a dyn private::SlotGet, 286 impl<'a> SlotIterator<'a> { 288 pub fn new(intf: &'a dyn private::SlotGet) -> Self { in new() 293 impl<'a> Iterator for SlotIterator<'a> { 413 pub struct Cursor<'a, B: gbl_storage::AsBlockDevice, M: Manager> { 418 pub block_dev: &'a mut B, 421 impl<'a, B: gbl_storage::AsBlockDevice, M: Manager> Drop for Cursor<'a, B, M> {
|
/bootable/libbootloader/gbl/libstorage/src/ |
D | non_blocking.rs | 179 pub enum BlockDeviceIo<'a> { 180 Blocking(&'a mut dyn BlockIo), 181 NonBlocking(&'a mut dyn NonBlockingBlockIo), 184 impl<'a> From<&'a mut dyn BlockIo> for BlockDeviceIo<'a> { 185 fn from(val: &'a mut dyn BlockIo) -> Self { in from() 190 impl<'a> From<&'a mut dyn NonBlockingBlockIo> for BlockDeviceIo<'a> { 191 fn from(val: &'a mut dyn NonBlockingBlockIo) -> Self { in from() 196 impl<'a> BlockDeviceIo<'a> { 219 enum IoBufferState<'a> { 220 Ready(&'a mut [u8], IoStatus), [all …]
|
D | testlib.rs | 245 pub enum BackingStore<'a> { 246 Data(&'a [u8]), 250 impl<'a> BackingStore<'a> { 259 enum DiskDescription<'a> { 260 Disk(BackingStore<'a>), 261 Partitions(BTreeMap<&'static str, BackingStore<'a>>), 279 pub struct TestBlockDeviceBuilder<'a> { 283 disk_description: DiskDescription<'a>, 287 impl<'a> TestBlockDeviceBuilder<'a> { 349 pub fn set_data(mut self, data: &'a [u8]) -> Self { in set_data() [all …]
|
/bootable/libbootloader/gbl/libsafemath/src/ |
D | lib.rs | 287 let a: SafeNum = 2100.into(); in test_addition() localVariable 289 assert_eq!(a + b, 2112.into()); in test_addition() 294 let a: SafeNum = 667.into(); in test_subtraction() localVariable 296 assert_eq!(a - b, 666.into()); in test_subtraction() 301 let a: SafeNum = 17.into(); in test_multiplication() localVariable 303 assert_eq!(a * b, 51.into()); in test_multiplication() 308 let a: SafeNum = 1066.into(); in test_division() localVariable 310 assert_eq!(a / b, 26.into()); in test_division() 315 let a: SafeNum = 613.into(); in test_remainder() localVariable 317 assert_eq!(a % b, 3.into()); in test_remainder() [all …]
|
/bootable/libbootloader/gbl/libefi/src/protocol/ |
D | device_path.rs | 42 impl<'a> Protocol<'a, DevicePathToTextProtocol> { 49 ) -> EfiResult<DevicePathText<'a>> { in convert_device_path_to_text() argument 66 pub struct DevicePathText<'a> { 67 text: Option<&'a [u16]>, 68 efi_entry: &'a EfiEntry, 71 impl<'a> DevicePathText<'a> { 72 pub(crate) fn new(text: *mut u16, efi_entry: &'a EfiEntry) -> Self { in new()
|
/bootable/libbootloader/gbl/efi/src/ |
D | net.rs | 52 fn reset_simple_network<'a>(snp: &Protocol<'a, SimpleNetworkProtocol>) -> Result<()> { in reset_simple_network() argument 69 pub struct EfiNetworkDevice<'a> { 70 protocol: Protocol<'a, SimpleNetworkProtocol>, 74 efi_entry: &'a EfiEntry, 77 impl<'a> EfiNetworkDevice<'a> { 80 protocol: Protocol<'a, SimpleNetworkProtocol>, in new() argument 82 efi_entry: &'a EfiEntry, in new() 119 impl<'a> Device for EfiNetworkDevice<'a> { 121 type TxToken<'b> = TxToken<'a, 'b> where Self: 'b; 162 pub struct RxToken<'a>(&'a mut [u8]); [all …]
|
D | fastboot.rs | 36 struct EfiFastbootTcpTransport<'a, 'b, 'c> { 38 socket: &'c mut EfiTcpSocket<'a, 'b>, 41 impl<'a, 'b, 'c> EfiFastbootTcpTransport<'a, 'b, 'c> { 42 fn new(socket: &'c mut EfiTcpSocket<'a, 'b>) -> Self { in new() argument 65 pub struct UsbTransport<'a, 'b> { 68 protocol: &'b Protocol<'a, AndroidBootProtocol>, 71 impl<'a, 'b> UsbTransport<'a, 'b> { 72 fn new(max_packet_size: usize, protocol: &'b Protocol<'a, AndroidBootProtocol>) -> Self { in new() argument 192 fn init_usb<'a, 'b>( in init_usb() argument 193 android_boot_protocol: &Option<&'b Protocol<'a, AndroidBootProtocol>>, in init_usb() argument [all …]
|
D | utils.rs | 64 pub struct EfiBlockIo<'a>(pub Protocol<'a, BlockIoProtocol>); 97 pub struct EfiGptDevice<'a> { 98 io: EfiBlockIo<'a>, 104 impl<'a> EfiGptDevice<'a> { 106 pub fn new(protocol: Protocol<'a, BlockIoProtocol>) -> Result<Self> { in new() argument 119 pub struct EfiMultiBlockDevices<'a>(pub alloc::vec::Vec<EfiGptDevice<'a>>); 151 pub fn get_device_path<'a>( in get_device_path() 152 entry: &'a EfiEntry, in get_device_path() 154 ) -> Result<DevicePathText<'a>> { in get_device_path() argument 174 pub fn get_efi_fdt<'a>(entry: &'a EfiEntry) -> Option<(&FdtHeader, &[u8])> { in get_efi_fdt()
|
D | avb.rs | 27 pub struct GblEfiAvbOps<'a, 'b> { 28 gpt_dev: &'b mut EfiMultiBlockDevices<'a>, 32 impl<'a, 'b> GblEfiAvbOps<'a, 'b> { 34 gpt_dev: &'b mut EfiMultiBlockDevices<'a>, in new() argument
|
/bootable/deprecated-ota/edify/ |
D | README.md | 4 Update scripts (from donut onwards) are written in a new little 6 the old one ("amend"). This is a brief overview of the new language. 8 - The entire script is a single expression. 25 - When used as a boolean, the empty string is "false" and all other 36 - ";" is a binary operator; evaluating it just means to first evaluate 51 "a b" 52 a + " " + b 53 "a" + " " + "b" 54 "a\x20b" 55 a + "\x20b" [all …]
|
/bootable/libbootloader/gbl/libefi/src/ |
D | lib.rs | 208 pub struct SystemTable<'a> { 209 efi_entry: &'a EfiEntry, 210 table: &'a EfiSystemTable, 213 impl<'a> SystemTable<'a> { 215 pub fn boot_services(&self) -> BootServices<'a> { in boot_services() argument 224 pub fn runtime_services(&self) -> RuntimeServices<'a> { in runtime_services() argument 232 pub fn con_out(&self) -> EfiResult<Protocol<'a, SimpleTextOutputProtocol>> { in con_out() argument 263 pub struct BootServices<'a> { 264 efi_entry: &'a EfiEntry, 265 boot_services: &'a EfiBootService, [all …]
|
D | protocol.rs | 38 pub struct Protocol<'a, T: ProtocolInfo> { 44 efi_entry: &'a EfiEntry, 49 impl<'a, T: ProtocolInfo> Protocol<'a, T> { 62 efi_entry: &'a EfiEntry, in new() 74 pub fn efi_entry(&self) -> &'a EfiEntry { in efi_entry()
|
/bootable/libbootloader/gbl/libfastboot/src/ |
D | lib.rs | 128 pub struct TcpTransport<'a>(&'a mut dyn TcpStream); 130 impl<'a> TcpTransport<'a> { 132 pub fn new_and_handshake(tcp_stream: &'a mut dyn TcpStream) -> Result<Self, TransportError> { in new_and_handshake() 348 fn oem<'a>( in oem() 352 res: &'a mut [u8], in oem() 353 ) -> Result<&'a [u8], CommandError>; in oem() 397 pub struct FastbootUtils<'a> { 401 download_buffer: &'a mut [u8], 403 download_data_size: &'a mut usize, 405 fb_info: Option<&'a mut dyn FastbootInfoSend>, [all …]
|
/bootable/libbootloader/gbl/smoltcp/ |
D | BUILD.smoltcp.bazel | 5 # You may obtain a copy of the License at 21 # Upstream smoltcp uses a custom script in the cargo build flow to generate a `config.rs` 22 # containing a set of configurations. We don't use cargo. Thus we use a pre-generated 48 # (or possibly abandoned http://ag/22200123). For now we use a custom implementation of the APIs as 49 # a workaround. 76 IFS=" " read -a srcs <<< "$(SRCS)" && \ 77 IFS=" " read -a outs <<< "$(OUTS)" && \
|
D | heapless.rs | 70 impl<'a, T, const N: usize> IntoIterator for &'a Vec<T, N> { 71 type Item = &'a T; 72 type IntoIter = core::slice::Iter<'a, T>;
|
/bootable/libbootloader/gbl/libgbl/src/slots/ |
D | partition.rs | 58 pub struct SlotBlock<'a, MB: MetadataBytes> { 60 pub partition: &'a str, 72 impl<'a, MB: MetadataBytes> SlotBlock<'a, MB> { 110 partition: &'a str, in deserialize()
|
/bootable/recovery/tests/testdata/ |
D | recovery_body | 198 …�ERCP ����������/fstab.U 237 …�ERCP ����������/akm8973U 243 …�ERCP ����������//adfn�… 248 …�ERCP ����������.�g/adf-interfacen… 253 …�ERCP ����������.�q/adf-overlay-engi… 258 …�ERCP ����������/android_adbU 266 …�ERCP ����������/audioU 297 �;/block/ramn�by;u:object_r:ram_device:s… 302 …ERCP ����������=/block/zramn�… 327 …�ERCP ��������� �$/graphics�� /U [all …]
|
/bootable/libbootloader/gbl/docs/ |
D | efi_protocols.md | 9 If a target supports Fastboot mode, it is also used for writing images to disk. 16 this can be implemented as a series of no-op functions. 29 This is a custom protocol intended to provide 35 The DevicePath protocol is a variable length binary structure 37 A handle representing a hardware resource is mapped 44 This is a useful proof of concept for development to demonstrate
|
D | EFI_ANDROID_BOOT_PROTOCOL.md | 22 starting/stopping a Fastboot USB interface and sending/receiving USB packets. 59 backwards compatible. If a future version is not backwards compatible, a 63 Starts a USB interface for Fastboot traffic. See 75 Sends a USB packet. See 87 Starts a USB interface for Fastboot. 110 `FastbootUsbInterfaceStart()` shoud start and expose a device mode USB inteface 123 * The USB device descriptor should provide a valid serial number string 131 how to configure a full USB. 135 present as a USB device and thus communicate with a host. Future revision of 175 Upon successful return, the device should no longer be visible as a Fastboot [all …]
|
/bootable/libbootloader/libxbc/ |
D | COPYING | 32 transformation or translation of a Source form, including but 37 Object form, made available under the License, as indicated by a 44 represent, as a whole, an original work of authorship. For the purposes 61 designated in writing by the copyright owner as "Not a Contribution." 64 on behalf of whom a Contribution has been received by Licensor and 68 this License, each Contributor hereby grants to You a perpetual, 75 this License, each Contributor hereby grants to You a perpetual, 83 institute patent litigation against any entity (including a 84 cross-claim or counterclaim in a lawsuit) alleging that the Work 85 or a Contribution incorporated within the Work constitutes direct [all …]
|
/bootable/libbootloader/ |
D | LICENSE | 32 transformation or translation of a Source form, including but 37 Object form, made available under the License, as indicated by a 44 represent, as a whole, an original work of authorship. For the purposes 61 designated in writing by the copyright owner as "Not a Contribution." 64 on behalf of whom a Contribution has been received by Licensor and 68 this License, each Contributor hereby grants to You a perpetual, 75 this License, each Contributor hereby grants to You a perpetual, 83 institute patent litigation against any entity (including a 84 cross-claim or counterclaim in a lawsuit) alleging that the Work 85 or a Contribution incorporated within the Work constitutes direct [all …]
|
/bootable/libbootloader/gbl/libbootimg/ |
D | BUILD | 5 # You may obtain a copy of the License at 22 # Newer version of `rust_bindgen` requires a `cc_library` target that actually produces a static 23 # library and instead of only headers. Thus we generate a placeholder source file to meet the 80 # environment. For now, the workaround is to copy over and wrap them under a top level crate that 94 IFS=" " read -a srcs <<< "$(SRCS)" && \ 95 IFS=" " read -a outs <<< "$(OUTS)" && \
|
/bootable/recovery/ |
D | NOTICE | 44 transformation or translation of a Source form, including but 49 Object form, made available under the License, as indicated by a 56 represent, as a whole, an original work of authorship. For the purposes 73 designated in writing by the copyright owner as "Not a Contribution." 76 on behalf of whom a Contribution has been received by Licensor and 80 this License, each Contributor hereby grants to You a perpetual, 87 this License, each Contributor hereby grants to You a perpetual, 95 institute patent litigation against any entity (including a 96 cross-claim or counterclaim in a lawsuit) alleging that the Work 97 or a Contribution incorporated within the Work constitutes direct [all …]
|