| /build/make/tools/aconfig/aflags/src/ |
| D | main.rs | 123 (FlagPermission::ReadOnly, _) => "-".to_string(), in display_staged_value() 124 (FlagPermission::ReadWrite, None) => "-".to_string(), in display_staged_value() 221 let val = flag.value.to_string(); in format_flag_row() 227 let value_picked_from = flag.value_picked_from.to_string(); in format_flag_row() 230 let perm = flag.permission.to_string(); in format_flag_row() 270 longest_val_col: flags.iter().map(|f| f.value.to_string().len()).max().unwrap_or(0), in list() 278 .map(|f| f.value_picked_from.to_string().len()) in list() 283 .map(|f| f.permission.to_string().len()) in list() 298 "aconfig_storage".to_string() in display_which_backing() 300 "device_config".to_string() in display_which_backing() [all …]
|
| D | load_protos.rs | 19 .to_string() in infer_container() 23 let namespace = flag.namespace().to_string(); in convert_parsed_flag() 24 let package = flag.package().to_string(); in convert_parsed_flag() 25 let name = flag.name().to_string(); in convert_parsed_flag()
|
| D | device_config_source.rs | 33 capture.get(1).ok_or(anyhow!("invalid device_config output"))?.as_str().to_string(); in parse_device_config() 54 None => "terminated by signal".to_string(), in read_device_config_output() 58 Ok(str::from_utf8(&output.stdout)?.to_string()) in read_device_config_output() 149 ("namespace_one/com.foo.bar.flag_one".to_string(), FlagValue::Enabled), in test_parse_device_config() 150 ("namespace_one/com.foo.bar.flag_two".to_string(), FlagValue::Disabled), in test_parse_device_config() 151 ("namespace_two/android.flag_one".to_string(), FlagValue::Enabled), in test_parse_device_config()
|
| D | aconfig_storage_source.rs | 94 .unwrap_or_else(|| "<no container>".to_string()) in convert() 95 .to_string(), in convert() 97 namespace: "-".to_string(), in convert()
|
| /build/make/tools/aconfig/aconfig/src/ |
| D | test.rs | 261 source: "tests/read_only_test.aconfig".to_string(), in parse_read_only_test_flags() 265 source: "tests/read_only_test.values".to_string(), in parse_read_only_test_flags() 280 source: "tests/test.aconfig".to_string(), in parse_test_flags() 285 source: "tests/first.values".to_string(), in parse_test_flags() 289 source: "tests/second.values".to_string(), in parse_test_flags() 305 source: "tests/test_second_package.aconfig".to_string(), in parse_second_package_flags() 309 source: "tests/third.values".to_string(), in parse_second_package_flags() 356 …al String FOO = "FOO";' vs 'private static final String FOO = "BAR";'"#.to_string()), first_signif… in test_first_significant_code_diff() 358 Some("LHS trailing data: 'b'".to_string()), in test_first_significant_code_diff() 362 Some("RHS trailing data: 'b'".to_string()), in test_first_significant_code_diff()
|
| D | commands.rs | 109 parsed_flag.set_container(c.to_string()); in parse_flags() 111 parsed_flag.set_package(package.to_string()); in parse_flags() 222 let package = package.to_string(); in create_java_lib() 249 let package = package.to_string(); in create_cpp_lib() 265 let package = package.to_string(); in create_rust_lib() 414 flag_ids.insert(pf.name().to_string(), flag_idx as u16); in assign_flag_ids() 453 let should_filter_container = pf.container == Some("vendor".to_string()) in should_include_flag() 454 || pf.container == Some("system".to_string()) in should_include_flag() 455 || pf.container == Some("system_ext".to_string()) in should_include_flag() 456 || pf.container == Some("product".to_string()); in should_include_flag() [all …]
|
| /build/make/tools/aconfig/convert_finalized_flags/src/ |
| D | lib.rs | 127 flag_file.clone().rsplitn(3, '/').map(|s| s.to_string()).collect(); in read_files_to_map_using_path() 185 Ok(FinalizedFlag { flag_name: flag_name.to_string(), package_name: package_name.to_string() }) in build_finalized_flag() 200 FinalizedFlag { flag_name: "name1".to_string(), package_name: "package1".to_string() }, in create_test_flags() 201 FinalizedFlag { flag_name: "name2".to_string(), package_name: "package2".to_string() }, in create_test_flags() 202 FinalizedFlag { flag_name: "name3".to_string(), package_name: "package3".to_string() }, in create_test_flags() 227 let flag_file_path = file_path.to_string_lossy().to_string(); in test_read_flags_one_file() 258 let flag_file_path1 = file_path1.to_string_lossy().to_string(); in test_read_flags_two_files() 259 let flag_file_path2 = file_path2.to_string_lossy().to_string(); in test_read_flags_two_files() 295 let flag_file_path1 = file_path1.to_string_lossy().to_string(); in test_read_flags_full_numbers() 296 let flag_file_path2 = file_path2.to_string_lossy().to_string(); in test_read_flags_full_numbers() [all …]
|
| D | main.rs | 63 let json_str = serde_json::to_string(&finalized_flags_map)?; in main()
|
| /build/make/tools/aconfig/aconfig/src/codegen/ |
| D | rust.rs | 42 let container = (template_flags.first().expect("zero template flags").container).to_string(); in generate_rust_code() 44 package: package.to_string(), in generate_rust_code() 46 modules: package.split('.').map(|s| s.to_string()).collect::<Vec<_>>(), in generate_rust_code() 106 ProtoFlagState::ENABLED => "true".to_string(), in new() 107 ProtoFlagState::DISABLED => "false".to_string(), in new() 109 name: pf.name().to_string(), in new() 110 container: pf.container().to_string(), in new() 112 device_config_namespace: pf.namespace().to_string(), in new()
|
| D | java.rs | 61 let container = (flag_elements.first().expect("zero template flags").container).to_string(); in generate_java_code() 70 package_name: package.to_string(), in generate_java_code() 138 namespace: namespace.to_string(), in gen_flags_by_namespace() 214 flag_name: pf.name().to_string(), in create_flag_element() 215 package_name: package.to_string(), in create_flag_element() 222 container: pf.container().to_string(), in create_flag_element() 224 device_config_namespace: pf.namespace().to_string(), in create_flag_element() 226 flag_name: pf.name().to_string(), in create_flag_element() 636 let expect_flags_content = EXPECTED_FLAG_COMMON_CONTENT.to_string() in test_generate_java_code_production() 1220 flag_name: "disabled_rw_exported".to_string(), in test_generate_java_code_new_exported_with_sdk_check() [all …]
|
| D | cpp.rs | 155 "true".to_string() in create_class_element() 157 "false".to_string() in create_class_element() 159 flag_name: pf.name().to_string(), in create_class_element() 162 device_config_namespace: pf.namespace().to_string(), in create_class_element() 165 container: pf.container().to_string(), in create_class_element()
|
| /build/make/tools/aconfig/exported_flag_check/src/ |
| D | utils.rs | 118 "record_finalized_flags.test.foo".to_string(), in test_extract_flagged_api_flags() 119 "this.flag.is.not.used".to_string(), in test_extract_flagged_api_flags() 131 "record_finalized_flags.test.bar".to_string(), in test_read_finalized_flags() 132 "record_finalized_flags.test.baz".to_string(), in test_read_finalized_flags() 144 "record_finalized_flags.test.foo".to_string(), in test_disabled_or_read_write_flags_are_ignored() 145 "record_finalized_flags.test.not_enabled".to_string() in test_disabled_or_read_write_flags_are_ignored()
|
| /build/make/tools/record-finalized-flags/src/ |
| D | finalized_flags.rs | 42 "record_finalized_flags.test.bar".to_string(), in test() 43 "record_finalized_flags.test.baz".to_string(), in test()
|
| D | api_signature_files.rs | 44 "record_finalized_flags.test.foo".to_string(), in test() 45 "this.flag.is.not.used".to_string(), in test()
|
| D | main.rs | 128 "record_finalized_flags.test.foo".to_string(), in test() 129 "record_finalized_flags.test.bar".to_string(), in test() 130 "record_finalized_flags.test.baz".to_string(), in test()
|
| D | flag_values.rs | 51 assert_eq!(flags, HashSet::from_iter(vec!["record_finalized_flags.test.foo".to_string()])); in test_disabled_or_read_write_flags_are_ignored()
|
| /build/make/tools/aconfig/aconfig_storage_write_api/src/ |
| D | mapped_file.rs | 61 let flag_val = rw_val_file.path().display().to_string(); in test_mapped_file_contents() 62 let flag_info = rw_info_file.path().display().to_string(); in test_mapped_file_contents() 88 let flag_val = ro_val_file.path().display().to_string(); in test_mapped_read_only_file()
|
| D | test_utils.rs | 26 let file_name = file.path().display().to_string(); in copy_to_temp_file()
|
| /build/bazel/examples/rust/src/ |
| D | greeter.rs | 32 Greeter { greeting: greeting.to_string() } in new()
|
| /build/make/tools/aconfig/aconfig/ |
| D | build.rs | 70 flag_files.push(path.to_string()); in read_files_to_map_using_env() 87 let json_str = serde_json::to_string(&finalized_flags_map.unwrap()).unwrap(); in main()
|
| /build/make/tools/aconfig/aconfig_storage_write_api/tests/ |
| D | storage_write_api_test.rs | 42 let flag_value_path = flag_value_file.path().display().to_string(); in test_boolean_flag_value_update() 63 let flag_info_path = flag_info_file.path().display().to_string(); in test_set_flag_has_server_override() 85 let flag_info_path = flag_info_file.path().display().to_string(); in test_set_flag_has_local_override()
|
| /build/make/tools/aconfig/aconfig_storage_read_api/srcs/ |
| D | lib.rs | 55 env.throw(("java/io/IOException", errmsg.to_string())).expect("failed to throw"); in Java_android_aconfig_storage_AconfigStorageReadAPI_getPackageReadContextImpl() 113 env.throw(("java/io/IOException", errmsg.to_string())).expect("failed to throw"); in Java_android_aconfig_storage_AconfigStorageReadAPI_getFlagReadContextImpl() 158 env.throw(("java/io/IOException", errmsg.to_string())).expect("failed to throw"); in Java_android_aconfig_storage_AconfigStorageReadAPI_getBooleanFlagValue() 175 env.throw(("java/io/IOException", errmsg.to_string())).expect("failed to throw"); in Java_android_aconfig_storage_AconfigStorageReadAPI_hash()
|
| /build/make/tools/aconfig/aconfig/src/storage/ |
| D | mod.rs | 79 if (parsed_flag.container == Some("system".to_string()) in group_flags_by_package() 80 || parsed_flag.container == Some("vendor".to_string()) in group_flags_by_package() 81 || parsed_flag.container == Some("product".to_string())) in group_flags_by_package() 178 source: format!("tests/{}", aconfig_file).to_string(), in parse_all_test_flags() 182 source: format!("tests/{}", value_file).to_string(), in parse_all_test_flags()
|
| /build/make/tools/aconfig/aconfig_device_paths/src/ |
| D | lib.rs | 29 .map(|s| PathBuf::from(s.to_string())) in read_partition_paths()
|
| /build/make/tools/aconfig/aconfig_storage_file/src/ |
| D | lib.rs | 337 flag_value: flag_value.to_string(), in list_flags() 387 flag_value: flag_value.to_string(), in list_flags_with_info() 549 let package_table_path = package_table.path().display().to_string(); in test_list_flag() 550 let flag_table_path = flag_table.path().display().to_string(); in test_list_flag() 551 let flag_value_list_path = flag_value_list.path().display().to_string(); in test_list_flag() 626 let package_table_path = package_table.path().display().to_string(); in test_list_flag_with_info() 627 let flag_table_path = flag_table.path().display().to_string(); in test_list_flag_with_info() 628 let flag_value_list_path = flag_value_list.path().display().to_string(); in test_list_flag_with_info() 629 let flag_info_list_path = flag_info_list.path().display().to_string(); in test_list_flag_with_info()
|