Home
last modified time | relevance | path

Searched refs:str (Results 1 – 25 of 40) sorted by relevance

12

/bootable/libbootloader/gbl/libgbl/src/fastboot/
Dvars.rs17 use core::str::{from_utf8, Split};
31 name: &str, in get() argument
40 f: &mut dyn FnMut(&str, &[&str], &str) -> Result<(), CommandError>, in get_all() argument
45 impl Variable for (&'static str, &'static str) { implementation
49 name: &str, in get() argument
59 f: &mut dyn FnMut(&str, &[&str], &str) -> Result<(), CommandError>, in get_all() argument
71 const PARTITION_SIZE: &str = "partition-size";
72 const PARTITION_TYPE: &str = "partition-type";
77 name: &str, in get() argument
92 f: &mut dyn FnMut(&str, &[&str], &str) -> Result<(), CommandError>, in get_all() argument
[all …]
Dmod.rs17 use core::str::Split;
45 pub fn part(&self) -> &str { in part() argument
176 var: &str, in get_var() argument
189 f: &mut dyn FnMut(&str, &[&str], &str) -> Result<(), CommandError>, in get_var_all() argument
195 fn flash(&mut self, part: &str, utils: &mut FastbootUtils) -> Result<(), CommandError> { in flash() argument
217 part: &str, in fetch() argument
241 _cmd: &str, in oem() argument
274 fn check_var(gbl_fb: &mut GblFastboot, var: &str, args: &str, expected: &str) { in check_var() argument
439 part: &str, in check_gpt_upload() argument
486 fn check_flash_part(fb: &mut GblFastboot, part: &str, expected: &[u8]) { in check_flash_part() argument
/bootable/libbootloader/gbl/tools/
Dgen_gpt_disk.py73 "disk_size", type=str, help="disk size of the image. i.e. 64k, 1M etc"
77 type=str,
85 def parse_size_str(size_str: str) -> int: argument
101 def _append(src_file: str, offset: int, size: int, dst_file: str): argument
135 str(temp_disk),
171 str(temp_disk), append_offset, start - append_offset, args.out
184 str(temp_disk), append_offset, end - append_offset, args.out
189 str(temp_disk), append_offset, disk_size - append_offset, args.out
/bootable/libbootloader/gbl/libfastboot/src/
Dlib.rs70 use core::str::{from_utf8, Split};
74 const OKAY: &'static str = "OKAY"; variable
84 Others(&'static str),
181 pub fn to_str(&self) -> &str { in to_str() argument
219 var: &str, in get_var() argument
228 var: &str, in get_var_as_str() argument
232 ) -> Result<&'s str, CommandError> { in get_var_as_str() argument
274 f: &mut dyn FnMut(&str, &[&str], &str) -> Result<(), CommandError>, in get_var_all() argument
284 fn flash(&mut self, part: &str, utils: &mut FastbootUtils) -> Result<(), CommandError>; in flash() argument
329 part: &str, in fetch() argument
[all …]
/bootable/recovery/updater_sample/tools/
Dgen_update_config.py130 type=str,
145 type=str,
148 type=str,
151 type=str,
/bootable/libbootloader/gbl/libfdt/src/
Dlib.rs35 CLibError(&'static str),
67 name: &str, in fdt_add_subnode() argument
84 name: &str, in fdt_subnode_offset() argument
172 pub fn get_property<'a>(&'a self, path: &str, name: &CStr) -> Result<&'a [u8]> { in get_property() argument
198 fn find_node(&self, path: &str) -> Result<core::ffi::c_int> { in find_node()
244 pub fn set_property(&mut self, path: &str, name: &CStr, val: &[u8]) -> Result<()> { in set_property() argument
264 path: &str, in set_property_placeholder() argument
286 fn find_or_add_node(&mut self, path: &str) -> Result<core::ffi::c_int> { in find_or_add_node()
306 fn to_cstr(s: &str) -> CString { in to_cstr()
/bootable/libbootloader/gbl/libc/include/
Dstring.h22 size_t strlen(const char * str);
24 char *strrchr(const char *str, int c);
/bootable/deprecated-ota/edify/include/edify/
Dexpr.h63 Value(Type type, std::string str) : type(type), data(std::move(str)) {} in Value()
153 Value* StringValue(const char* str);
155 Value* StringValue(const std::string& str);
157 int ParseString(const std::string& str, std::unique_ptr<Expr>* root, int* error_count);
/bootable/libbootloader/gbl/libstorage/src/
Dmulti_blocks.rs24 ) -> core::result::Result<(), Option<&'static str>>; in for_each() argument
63 fn check_part(&mut self, part: &str) -> Result<(u64, Partition)> { in check_part()
78 fn find_partition(&mut self, part: &str) -> Result<Partition> { in find_partition()
86 fn read_gpt_partition(&mut self, part_name: &str, offset: u64, out: &mut [u8]) -> Result<()> { in read_gpt_partition() argument
94 fn write_gpt_partition(&mut self, part_name: &str, offset: u64, data: &mut [u8]) -> Result<()> { in write_gpt_partition() argument
104 ) -> core::result::Result<(), Option<&'static str>> { in for_each() argument
236 part: &str, in check_read_partition() argument
273 part: &str, in check_write_partition() argument
Dtestlib.rs261 Partitions(BTreeMap<&'static str, BackingStore<'a>>),
364 pub fn add_partition(mut self, name: &'static str, backing: BackingStore<'a>) -> Self { in add_partition() argument
413 fn str_to_utf16_entry_name(name: &str) -> [u16; GPT_NAME_LEN_U16] { in str_to_utf16_entry_name()
443 partitions: &BTreeMap<&'static str, BackingStore>, in partitions_to_disk_data() argument
544 ) -> core::result::Result<(), Option<&'static str>> { in for_each() argument
/bootable/deprecated-ota/edify/
Dexpr.cpp67 Value* StringValue(const char* str) { in StringValue() argument
68 if (str == nullptr) { in StringValue()
71 return new Value(Value::Type::STRING, str); in StringValue()
74 Value* StringValue(const std::string& str) { in StringValue() argument
75 return StringValue(str.c_str()); in StringValue()
84 std::string str; in ConcatFn() local
85 if (!Evaluate(state, argv[i], &str)) { in ConcatFn()
88 result += str; in ConcatFn()
Dparser.yy61 char* str;
67 %token <str> STRING BAD
142 int ParseString(const std::string& str, std::unique_ptr<Expr>* root, int* error_count) {
143 yy_switch_to_buffer(yy_scan_string(str.c_str()));
Dlexer.ll58 yylval.str = strdup(string_buffer.c_str());
97 yylval.str = strdup(yytext);
/bootable/libbootloader/gbl/libgbl/src/
Dops.rs55 pub struct GblOpsError(Option<&'static str>);
112 fn gbl_alloc_extra_action(&mut self, s: &str) -> GblResult<()> { in gbl_alloc_extra_action()
170 ) -> core::result::Result<(), Option<&'static str>> { in for_each() argument
186 fn write_str(&mut self, s: &str) -> core::fmt::Result { in write_str()
Dlib.rs328 ) -> Result<&'static str> { in ramdisk_bootconfig_load() argument
660 const TEST_ZIRCON_PARTITION_NAME: &str = "zircon_a";
661 const TEST_ZIRCON_IMAGE_PATH: &str = "zircon_a.bin";
662 const TEST_ZIRCON_VBMETA_PATH: &str = "zircon_a.vbmeta";
663 const TEST_PUBLIC_KEY_PATH: &str = "testkey_rsa4096_pub.bin";
672 fn testdata(path: &str) -> Vec<u8> { in testdata()
Dboot_reason.rs52 let str = match self { in fmt() localVariable
/bootable/libbootloader/gbl/libbootconfig/src/
Dlib.rs39 const BOOTCONFIG_MAGIC: &str = "#BOOTCONFIG\n";
97 pub fn add(&mut self, config: &str) -> Result<()> { in add()
144 fn write_str(&mut self, s: &str) -> core::fmt::Result { in write_str()
162 const TEST_CONFIG: &str = "androidboot.hardware=cutf_cvm
/bootable/libbootloader/gbl/efi/arch/riscv64/
Ddeps.cpp54 size_t strlen(const char* str) { in strlen() argument
56 for (; str[i] != 0; i++) { in strlen()
/bootable/libbootloader/gbl/efi/src/
Davb.rs29 preloaded_partitions: Option<&'b [(&'b str, &'b [u8])]>,
35 preloaded_partitions: Option<&'b [(&'b str, &'b [u8])]>, in new() argument
42 fn cstr_to_str<E>(s: &CStr, err: E) -> Result<&str, E> { in cstr_to_str() argument
/bootable/libbootloader/gbl/libgbl/src/slots/
Dpartition.rs60 pub partition: &'a str,
110 partition: &'a str, in deserialize() argument
/bootable/libbootloader/gbl/libabr/src/
Dc_staticlib.rs61 fn write_str(&mut self, s: &str) -> core::fmt::Result { in write_str()
120 fn read_abr_metadata(&mut self, out: &mut [u8]) -> Result<(), Option<&'static str>> { in read_abr_metadata() argument
134 fn write_abr_metadata(&mut self, data: &mut [u8]) -> Result<(), Option<&'static str>> { in write_abr_metadata() argument
Dlib.rs41 OpsError(Option<&'static str>),
44 impl From<Option<&'static str>> for Error {
45 fn from(val: Option<&'static str>) -> Self { in from()
54 fn read_abr_metadata(&mut self, out: &mut [u8]) -> Result<(), Option<&'static str>>; in read_abr_metadata() argument
58 fn write_abr_metadata(&mut self, data: &mut [u8]) -> Result<(), Option<&'static str>>; in write_abr_metadata() argument
/bootable/deprecated-ota/updater/
Dupdater_runtime_dynamic_partitions.cpp124 auto str = arg(pos); in uint_arg() local
126 if (!android::base::ParseUint(str, &ret)) { in uint_arg()
127 LOG(ERROR) << "Op " << op() << " expects uint64 for argument " << name << ", got " << str; in uint_arg()
/bootable/libbootloader/gbl/libefi/src/protocol/
Dsimple_text_output.rs51 fn write_str(&mut self, s: &str) -> core::fmt::Result { in write_str()
/bootable/deprecated-ota/applypatch/include/applypatch/
Dapplypatch.h46 int ParseSha1(const std::string& str, uint8_t* digest);

12