Home
last modified time | relevance | path

Searched refs:add_source (Results 1 – 25 of 37) sorted by relevance

12

/aosp_15_r20/external/rust/android-crates-io/crates/config/tests/
Denv.rs123 .add_source(environment) in test_parse_int()
153 .add_source(environment) in test_parse_uint()
186 .add_source(environment) in test_parse_float()
221 .add_source(environment) in test_parse_bool()
256 .add_source(environment) in test_parse_off_int()
286 .add_source(environment) in test_parse_off_float()
316 .add_source(environment) in test_parse_off_bool()
346 .add_source(environment) in test_parse_int_fail()
376 .add_source(environment) in test_parse_float_fail()
406 .add_source(environment) in test_parse_bool_fail()
[all …]
Dfile.rs8 .add_source(File::new("tests/NoSettings", FileFormat::Yaml).required(false)) in test_file_not_required()
17 .add_source(File::new("tests/NoSettings", FileFormat::Yaml)) in test_file_required_not_found()
30 .add_source(File::with_name("tests/Settings-production")) in test_file_auto()
41 .add_source(File::with_name("tests/NoSettings")) in test_file_auto_not_found()
54 .add_source(File::with_name("tests/Settings.json")) in test_file_ext()
64 .add_source(File::with_name("tests/Settings2.default")) in test_file_second_ext()
Ddatetime.rs14 .add_source(File::from_str( in make()
22 .add_source(File::from_str( in make()
28 .add_source(File::from_str( in make()
34 .add_source(File::from_str( in make()
40 .add_source(File::from_str( in make()
Dset.rs17 .add_source(File::new("tests/Settings", FileFormat::Toml)) in test_set_scalar_default()
35 .add_source(File::new("tests/Settings", FileFormat::Toml)) in test_set_scalar_path()
60 .add_source(File::new("tests/Settings", FileFormat::Toml)) in test_set_arr_path()
84 .add_source(File::from_str("{\"logLevel\": 5}", FileFormat::Json)) in test_set_capital()
Derrors.rs11 .add_source(File::new("tests/Settings", FileFormat::Toml)) in make()
19 .add_source(File::new("tests/Settings-invalid", FileFormat::Toml)) in test_error_parse()
124 .add_source(File::from_str(CFG, FileFormat::Yaml)) in error_with_path()
143 .add_source(File::from_str(r#"false"#, FileFormat::Json5)) in test_error_root_not_table()
Dinteger_range.rs6 .add_source(config::File::from_str( in wrapping_u16()
23 .add_source(config::File::from_str( in nonwrapping_u32()
41 .add_source(config::File::from_str( in invalid_signedness()
Dmerge.rs7 .add_source(File::new("tests/Settings", FileFormat::Toml)) in make()
8 .add_source(File::new("tests/Settings-production", FileFormat::Toml)) in make()
53 let config3 = builder1.add_source(config2).build().unwrap(); in test_merge_whole_config()
Dfile_json.rs33 .add_source(File::new("tests/Settings", FileFormat::Json)) in make()
79 .add_source(File::new("tests/Settings-invalid", FileFormat::Json)) in test_error_parse()
97 .add_source(File::from_str( in test_json_vec()
Dfile_ini.rs27 .add_source(File::new("tests/Settings", FileFormat::Ini)) in make()
55 .add_source(File::new("tests/Settings-invalid", FileFormat::Ini)) in test_error_parse()
Dfile_json5.rs32 .add_source(File::new("tests/Settings", FileFormat::Json5)) in make()
78 .add_source(File::new("tests/Settings-invalid", FileFormat::Json5)) in test_error_parse()
Dfile_yaml.rs33 .add_source(File::new("tests/Settings", FileFormat::Yaml)) in make()
79 .add_source(File::new("tests/Settings-invalid", FileFormat::Yaml)) in test_error_parse()
Dfile_ron.rs34 .add_source(File::new("tests/Settings", FileFormat::Ron)) in make()
81 .add_source(File::new("tests/Settings-invalid", FileFormat::Ron)) in test_error_parse()
Dfile_toml.rs42 .add_source(File::new("tests/Settings", FileFormat::Toml)) in make()
90 .add_source(File::new("tests/Settings-invalid", FileFormat::Toml)) in test_error_parse()
Dasync_builder.rs75 .add_source(config::File::new("tests/Settings", FileFormat::Json)) in test_sync_to_async_file_sources()
95 .add_source(config::File::new("tests/Settings", FileFormat::Json)) in test_async_to_sync_file_sources()
/aosp_15_r20/external/rust/android-crates-io/crates/config/examples/glob/
Dmain.rs12 .add_source(File::with_name("examples/glob/conf/00-default.toml")) in main()
13 .add_source(File::from(Path::new("examples/glob/conf/05-some.yml"))) in main()
14 .add_source(File::from(Path::new("examples/glob/conf/99-extra.json"))) in main()
30 .add_source(vec![ in main()
50 .add_source( in main()
/aosp_15_r20/external/rust/android-crates-io/crates/config/examples/hierarchical-env/
Dsettings.rs51 .add_source(File::with_name("examples/hierarchical-env/config/default")) in new()
55 .add_source( in new()
61 .add_source(File::with_name("examples/hierarchical-env/config/local").required(false)) in new()
64 .add_source(Environment::with_prefix("app")) in new()
/aosp_15_r20/external/rust/android-crates-io/crates/config/examples/simple/
Dmain.rs7 .add_source(config::File::with_name("examples/simple/Settings")) in main()
10 .add_source(config::Environment::with_prefix("APP")) in main()
/aosp_15_r20/external/rust/android-crates-io/crates/config/examples/custom_format/
Dmain.rs5 .add_source(File::from_str("bad", MyFormat)) in main()
6 .add_source(File::from_str("good", MyFormat)) in main()
/aosp_15_r20/external/python/bumble/examples/
Drun_a2dp_source.py80 protocol.add_source(packet_source.codec_capabilities, packet_pump)
104 source = protocol.add_source(packet_source.codec_capabilities, packet_pump)
/aosp_15_r20/external/mesa3d/src/amd/vpelib/src/chip/vpe10/
H A Dvpe10_cmd_builder.c210 plane_desc_writer->add_source(&vpe_priv->plane_desc_writer, &src, true); in vpe10_build_plane_descriptor()
224 plane_desc_writer->add_source(&vpe_priv->plane_desc_writer, &src, false); in vpe10_build_plane_descriptor()
238 plane_desc_writer->add_source(&vpe_priv->plane_desc_writer, &src, true); in vpe10_build_plane_descriptor()
/aosp_15_r20/external/rust/android-crates-io/crates/config/src/
Dbuilder.rs205 pub fn add_source<T>(mut self, source: T) -> Self in add_source() method
295 pub fn add_source<T>(mut self, source: T) -> Self in add_source() method
/aosp_15_r20/external/python/bumble/tests/
Da2dp_test.py227 source = client.add_source(source_codec_capabilities(), pump)
252 source = client.add_source(source_codec_capabilities(), None)
/aosp_15_r20/external/wayland/src/
H A Devent-loop.c120 add_source(struct wl_event_loop *loop, in add_source() function
191 return add_source(loop, &source->base, mask, data); in wl_event_loop_add_fd()
735 return add_source(loop, &source->base, WL_EVENT_READABLE, data); in wl_event_loop_add_signal()
/aosp_15_r20/external/rust/android-crates-io/crates/config/examples/env-list/
Dmain.rs11 .add_source( in main()
/aosp_15_r20/external/mesa3d/src/amd/vpelib/src/core/inc/
H A Dplane_desc_writer.h84 void (*add_source)( member

12