/build/make/tools/releasetools/ |
D | ota_package_parser.py | 36 logging.info("already stashed {}: {}".format(SHA1, blocks)) 44 assert self.stash_map.has_key(SHA1), "stash {} not found".format(SHA1) 69 return "{} bytes".format(size) 72 return "{:.1f}{}".format(size / base, units) 78 logging.info("\nSimulating commands in '{}':".format(name)) 81 "4 lines, it has {}".format(name, len(lines)) 83 logging.info("(version: {})".format(lines[0])) 92 assert len(cmd_list) == 2, "command format error: {}".format(line) 98 assert len(cmd_list) >= 5, "command format error: {}".format(line) 110 assert len(cmd_list) >= 8, "command format error: {}".format(line) [all …]
|
D | build_super_image.py | 65 "{}:readonly:{}:{}".format(partition, image_size, group)] 67 cmd += ["--image", "{}={}".format(partition, image)] 98 size = info_dict["super_{}_device_size".format(device)] 99 cmd += ["--device", "{}:{}".format(device, size)] 104 group_size = info_dict["super_{}_group_size".format(group)] 106 cmd += ["--group", "{}_a:{}".format(group, group_size), 107 "--group", "{}_b:{}".format(group, group_size)] 109 cmd += ["--group", "{}:{}".format(group, group_size)] 112 info_dict["super_{}_partition_list".format(group)].strip()) 115 image = info_dict.get("{}_image".format(partition)) [all …]
|
D | check_partition_sizes.py | 60 msg = "{} is greater than {}:\n{} == {} > {} == {}".format(*format_args) 73 msg = "{} is greater than or equal to {}:\n{} == {} >= {} == {}".format( 86 raise RuntimeError("{} does not equal {}:\n{} == {} != {} == {}".format( 152 size_list = [int(info_dict.get("super_{}_device_size".format(b), "0")) 165 sum_size = Expression("sum of sizes of {}".format(partition_names), 218 "BOARD_SUPER_PARTITION_SIZE{}".format(size_limit_suffix), 221 "BOARD_SUPER_PARTITION_WARN_LIMIT{}".format(size_limit_suffix), 224 "BOARD_SUPER_PARTITION_ERROR_LIMIT{}".format(size_limit_suffix), 240 if "super_{}_group_size".format(group) in info_dict and \ 241 "super_{}_partition_list".format(group) in info_dict: [all …]
|
D | validate_target_files.py | 67 'SHA-1 mismatches for {}. actual {}, expected {}'.format( 197 assert len(lines) == 10, "Invalid line count: {}".format(lines) 202 "Failed to parse target line \"{}\"".format(lines[4]) 207 "Mismatching targets: {} vs {}".format( 215 assert len(lines) == 11, "Invalid line count: {}".format(lines) 220 "Failed to parse source line \"{}\"".format(lines[4]) 225 "Invalid source partition: {}".format(source_partition) 233 "Failed to parse target line \"{}\"".format(lines[5]) 238 "Mismatching targets: {} vs {}".format( 243 "Invalid target partition: {}".format(target_partition) [all …]
|
D | edify_generator.py | 90 '{get_prop_command} + "\\".");').format( 126 '+ getprop("ro.build.thumbprint") + ".");').format(fp=fp, tp=tp) 176 source = '{}:{}:{}:{}'.format(tokens[0], tokens[1], tokens[2], tokens[3]) 177 target = '{}:{}:{}:{}'.format(tokens[0], tokens[1], tokens[4], tokens[5]) 207 'unexpected contents."));').format( 306 "Found mismatching values for source SHA-1: {} vs {}".format( 309 "Found mismatching values for target size: {} vs {}".format( 312 "Found mismatching values for target SHA-1: {} vs {}".format( 315 source = '{}:{}:{}:{}'.format(tokens[0], tokens[1], tokens[2], tokens[3]) 316 target = '{}:{}:{}:{}'.format(tokens[0], tokens[1], tokens[4], tokens[5]) [all …]
|
D | apex_utils.py | 83 "Path {} does not exist. ".format(self.debugfs_path) + 100 .format(entry, self.apex_path)) 119 "Path {} does not exist. ".format(self.debugfs_path) + 124 "Path {} does not exist. ".format(self.fsckerofs_path) + 159 cmd.extend(['--signing_args', '"{}"'.format(signing_args)]) 177 assert os.path.exists(filename), 'file {} not found'.format(filename) 201 ['--signing_args', '"{}"'.format(signing_args)]) 228 '--prop', 'apex.key:{}'.format(payload_key_name), 241 'Failed to sign APEX payload {} with {}:\n{}'.format( 259 'Failed to validate payload signing for {} with {}:\n{}'.format( [all …]
|
/build/make/tools/ |
D | find_static_candidates.py | 75 " modules.".format(MAX_SHARED_INCLUSIONS) 84 " modules.".format(MIN_STATIC_INCLUSIONS) 144 print("Module {} does not exist".format(args.module)) 190 " device:".format(MAX_SHARED_INCLUSIONS) 194 print("{}: {} included by: {}".format(name, len(libs), libs)) 199 " device:".format(MIN_STATIC_INCLUSIONS) 203 print("{}: {} included by: {}".format(name, len(libs), libs)) 212 " processes:\n {}\n\n".format("\n".join(sorted(allIncludedBothly))) 215 …"List of libraries used both statically and shared in any processes:\n {}".format("\n".join(sorted… 220 "{} is included in shared_libs {} times by these modules: {}".format( [all …]
|
/build/make/tools/aconfig/aconfig/src/ |
D | dump.rs | 45 pub fn dump_parsed_flags<I>(parsed_flags_iter: I, format: DumpFormat) -> Result<Vec<u8>> in dump_parsed_flags() 50 match format { in dump_parsed_flags() 62 DumpFormat::Custom(format) => { in dump_parsed_flags() 64 dump_custom_format(&flag, &format, &mut output); in dump_parsed_flags() 71 fn dump_custom_format(flag: &ProtoParsedFlag, format: &str, output: &mut Vec<u8>) { in dump_custom_format() 76 format!( in dump_custom_format() 92 format!("{:?}", metadata.purpose()) in dump_custom_format() 95 let mut str = format in dump_custom_format() 102 .replace("{state}", &format!("{:?}", flag.state())) in dump_custom_format() 103 .replace("{state:bool}", &format!("{}", flag.state() == ProtoFlagState::ENABLED)) in dump_custom_format() [all …]
|
/build/soong/aconfig/build_flags/ |
D | init.go | 31 ` --format pb` + 42 Command: `${buildFlagDeclarations} --format=textproto` + 44 ` --format textproto` + 55 Command: `${buildFlagDeclarations} ${intermediates} --format pb --output ${out}`, 63 Command: `${buildFlagDeclarations} --intermediate ${in} --format textproto --output ${out}`,
|
/build/soong/ui/terminal/ |
D | format.go | 26 format string member 35 func newFormatter(format string, quiet bool) formatter { 37 format: format, 62 if s.format == "" { 73 for i := 0; i < len(s.format); i++ { 74 c := s.format[i] 81 if i == len(s.format) { 86 c = s.format[i]
|
/build/make/tools/aconfig/printflags/src/ |
D | main.rs | 34 "true" => format!("{:?} (device_config)", State::ENABLED), in parse_device_config() 35 "false" => format!("{:?} (device_config)", State::DISABLED), in parse_device_config() 47 v.push(format!("{:02x}", byte)); in xxd() 53 format!("[{}{}]", v.join(" "), trailer) in xxd() 61 Some(code) => format!("exit code {}", code), in main() 86 let path = format!("/{}/etc/aconfig_flags.pb", mount_point); in main() 93 format!("failed to parse {} ({}, {} byte(s))", path, xxd(&bytes), bytes.len()) in main() 96 let key = format!("{}/{}.{}", flag.namespace(), flag.package(), flag.name()); in main() 97 let value = format!("{:?} + {:?} ({})", flag.permission(), flag.state(), mount_point); in main()
|
/build/soong/cmd/release_config/release_config_lib/ |
D | util.go | 63 format := filepath.Ext(path) 64 if len(format) > 1 { 66 format = format[1:] 68 return WriteFormattedMessage(path, format, message) 85 func WriteFormattedMessage(path, format string, message proto.Message) (err error) { 92 switch format { 162 func warnf(format string, args ...any) (n int, err error) { 164 return fmt.Printf(format, args...)
|
/build/soong/ui/logger/ |
D | logger.go | 50 Printf(format string, v ...interface{}) 57 Verbosef(format string, v ...interface{}) 64 Fatalf(format string, v ...interface{}) 69 Panicf(format string, v ...interface{}) 267 func (s *stdLogger) Printf(format string, v ...interface{}) { 268 output := fmt.Sprintf(format, v...) 288 func (s *stdLogger) Verbosef(format string, v ...interface{}) { 289 output := fmt.Sprintf(format, v...) 310 func (s *stdLogger) Fatalf(format string, v ...interface{}) { 311 output := fmt.Sprintf(format, v...) [all …]
|
/build/make/tools/aconfig/aconfig_protos/protos/ |
D | aconfig.proto | 24 // The following format requirements apply across various message fields: 28 // format: a lowercase string in snake_case format, no consecutive underscores, and no leading 34 // format: a lowercase string in snake_case format, no consecutive underscores, and no leading 39 // format: lowercase strings in snake_case format, delimited by dots, no consecutive underscores 54 // format: lowercase strings in snake_case format, delimited by dots if multiple, no consecutive 74 // See # name for format detail 78 // See # namespace for format detail 116 // See # package for format detail 123 // See # container for format detail 129 // See # package for format detail [all …]
|
/build/bazel/rules/ |
D | linker_config_test.bzl | 25 asserts.equals(env, 1, len(actions), "expected 1 action got {}".format(actions)) 29 asserts.equals(env, 1, len(out_files), "expected 1 out file got {}".format(out_files)) 35 "expected source file {} got {}".format(SRC, in_file.basename), 41 "expected out file {} got {}".format(OUT_EXP, out_files[0].basename), 51 …"expected PrebuiltFileInfo filename to be {} but got {}".format("linkerconfig.pb", prebuilt_file_… 57 "expected PrebuiltFileInfo dir to be {} but got {}".format("etc", prebuilt_file_info.dir), 63 … "expected PrebuiltFileInfo src to be {} but got {}".format(out_files[0], prebuilt_file_info.src), 91 asserts.true(env, len(in_files) > 0, "expected at least 1 input file got {}".format(in_files)) 94 asserts.equals(env, 6, len(args), "expected 4 args got {}".format(args))
|
/build/bazel/rules/java/ |
D | java_sysprop_library_test.bzl | 77 "{}.jar".format(stubs_prefix), 78 "{}.jdeps".format(stubs_prefix), 108 expr = "rm command for {}".format(name), 115 "{}.sysprop.srcjar.tmp".format(name), 121 expr = "mkdir command for {}".format(name), 128 "{}.sysprop.srcjar.tmp".format(name), 134 expr = "sysprop command for {}".format(name), 145 "{}.sysprop.srcjar.tmp".format(name), 149 "{}.sysprop".format(name), 155 "{}.sysprop.srcjar.tmp".format(name), [all …]
|
/build/soong/cmd/release_config/release_config_proto/ |
D | build_flags_declarations.proto | 26 // The following format requirements apply across various message fields: 30 // format: an uppercase string in SNAKE_CASE format starting with RELEASE_, 37 // format: lowercase strings in snake_case format, delimited by dots, no 44 // See # name for format detail 48 // See # namespace for format detail
|
D | build_flags_src.proto | 26 // The following format requirements apply across various message fields: 30 // format: an uppercase string in SNAKE_CASE format starting with RELEASE_, 37 // format: a lowercase string in snake_case format, no consecutive underscores, and no leading 42 // format: lowercase strings in snake_case format, delimited by dots, no 60 // See # name for format detail 64 // See # namespace for format detail 90 // See # name for format detail 104 // See # name for format detail
|
/build/make/tools/aconfig/aconfig_protos/src/ |
D | lib.rs | 411 format!("{}.{}", self.package(), self.name()) in fully_qualified_name() 493 assert_eq!(format!("{:?}", error), "bad flag declarations: missing package"); in test_flag_declarations_try_from_text_proto() 512 assert_eq!(format!("{:?}", error), "bad flag declaration: missing namespace"); in test_flag_declarations_try_from_text_proto() 532 assert!(format!("{:?}", error).contains("bad flag declarations: bad package")); in test_flag_declarations_try_from_text_proto() 552 assert!(format!("{:?}", error).contains("bad flag declaration: bad name")); in test_flag_declarations_try_from_text_proto() 567 assert!(format!("{:?}", error).contains("bad flag declaration: exactly one bug required")); in test_flag_declarations_try_from_text_proto() 584 assert!(format!("{:?}", error).contains("bad flag declaration: exactly one bug required")); in test_flag_declarations_try_from_text_proto() 601 assert!(format!("{:?}", error).contains("bad flag declarations: bad container")); in test_flag_declarations_try_from_text_proto() 649 assert!(format!("{:?}", error).contains("bad flag value: bad package")); in test_flag_values_try_from_text_proto() 663 assert!(format!("{:?}", error).contains("bad flag value: bad name")); in test_flag_values_try_from_text_proto() [all …]
|
/build/soong/scripts/ |
D | list_image.sh | 7 function die() { format=$1; shift; printf "$format\n" "$@"; exit 1; }
|
/build/make/tools/aconfig/aconfig_storage_read_api/src/ |
D | flag_value_query.rs | 68 format!("{:?}", error), in test_boolean_out_of_range() 81 format!("{:?}", error), in test_higher_version_storage_file() 82 format!( in test_higher_version_storage_file()
|
/build/make/tools/aconfig/overrideflags/ |
D | overrideflags.py | 67 map(f'"{_ACONFIG_VALUES_NAME_SUFFIX}"'.format, packages) 71 android_bp += _VALUE_LIST_TEMPLATE.format(value_list) + "\n" 74 android_bp += _ACONFIG_VALUES_TEMPLATE.format( 75 _ACONFIG_VALUES_NAME_SUFFIX.format(package), package, file_name
|
/build/soong/cmd/release_config/build_flag_declarations/ |
D | main.go | 20 format string member 43 flag.StringVar(&flags.format, "format", "pb", "output file format") 77 err = rc_lib.WriteFormattedMessage(flags.output, flags.format, message)
|
/build/bazel/scripts/ |
D | apex_compare.sh | 31 function die() { format=$1; shift; printf "$format\n" $@; exit 1; }
|
/build/make/tools/aconfig/aconfig_storage_write_api/src/ |
D | flag_value_update.rs | 78 format!("{:?}", error), in test_boolean_out_of_range() 91 format!("{:?}", error), in test_higher_version_storage_file() 92 format!( in test_higher_version_storage_file()
|