Home
last modified time | relevance | path

Searched refs:default_value (Results 1 – 25 of 31) sorted by relevance

12

/packages/services/Car/tools/emulator/
DVehicleHalProto_pb2.py200 has_default_value=False, default_value=0,
207 has_default_value=False, default_value=0,
214 has_default_value=False, default_value=0,
221 has_default_value=False, default_value=0,
228 has_default_value=False, default_value=0,
235 has_default_value=False, default_value=float(0),
242 has_default_value=False, default_value=float(0),
273 has_default_value=False, default_value=0,
280 has_default_value=False, default_value=0,
287 has_default_value=False, default_value=0,
[all …]
/packages/modules/Bluetooth/system/osi/src/
Dproperties.cc37 int osi_property_get(const char* key, char* value, const char* default_value) { in osi_property_get() argument
43 } else if (default_value) { in osi_property_get()
44 int len = std::min(strlen(default_value), (size_t)(PROPERTY_VALUE_MAX - 1)); in osi_property_get()
45 memcpy(value, default_value, len); in osi_property_get()
58 int32_t osi_property_get_int32(const char* key, int32_t default_value) { in osi_property_get_int32() argument
63 return default_value; in osi_property_get_int32()
67 bool osi_property_get_bool(const char* key, bool default_value) { in osi_property_get_bool() argument
72 return default_value; in osi_property_get_bool()
77 const std::vector<uint32_t> default_value) { in osi_property_get_uintlist() argument
80 return default_value; in osi_property_get_uintlist()
[all …]
/packages/modules/Bluetooth/system/test/mock/
Dmock_osi_properties.h39 std::function<int(const char* key, char* value, const char* default_value)> body{
43 int operator()(const char* key, char* value, const char* default_value) { in operator()
44 return body(key, value, default_value); in operator()
54 std::function<bool(const char* key, bool default_value)> body{
56 bool operator()(const char* key, bool default_value) { return body(key, default_value); } in operator()
65 std::function<int32_t(const char* key, int32_t default_value)> body{
67 int32_t operator()(const char* key, int32_t default_value) { return body(key, default_value); } in operator()
Dmock_osi_properties.cc49 int osi_property_get(const char* key, char* value, const char* default_value) { in osi_property_get() argument
51 return test::mock::osi_properties::osi_property_get(key, value, default_value); in osi_property_get()
53 bool osi_property_get_bool(const char* key, bool default_value) { in osi_property_get_bool() argument
55 return test::mock::osi_properties::osi_property_get_bool(key, default_value); in osi_property_get_bool()
57 int32_t osi_property_get_int32(const char* key, int32_t default_value) { in osi_property_get_int32() argument
59 return test::mock::osi_properties::osi_property_get_int32(key, default_value); in osi_property_get_int32()
62 std::vector<uint32_t> default_value) { in osi_property_get_uintlist() argument
64 return default_value; in osi_property_get_uintlist()
/packages/modules/Bluetooth/system/gd/rust/topshim/src/
Dsysprop.rs27 let (key, default_value) = match self { in into()
50 (CString::new(key).expect("CString::new failed on sysprop key"), default_value) in into()
56 let (key, default_value): (CString, i32) = prop.into(); in get_i32()
60 unsafe { bindings::osi_property_get_int32(key_cptr.into(), default_value) } in get_i32()
81 let (key, default_value) = match self { in into()
93 (CString::new(key).expect("CString::new failed on sysprop key"), default_value) in into()
99 let (key, default_value): (CString, bool) = prop.into(); in get_bool()
103 unsafe { bindings::osi_property_get_bool(key_cptr.into(), default_value) } in get_bool()
/packages/modules/Bluetooth/system/gd/os/
Dsystem_properties_common.cc25 uint32_t GetSystemPropertyUint32(const std::string& property, uint32_t default_value) { in GetSystemPropertyUint32() argument
26 return GetSystemPropertyUint32Base(property, default_value, 10); in GetSystemPropertyUint32()
29 uint32_t GetSystemPropertyUint32Base(const std::string& property, uint32_t default_value, in GetSystemPropertyUint32Base() argument
35 return default_value; in GetSystemPropertyUint32Base()
38 bool GetSystemPropertyBool(const std::string& property, bool default_value) { in GetSystemPropertyBool() argument
49 return default_value; in GetSystemPropertyBool()
Dsystem_properties.h38 uint32_t GetSystemPropertyUint32(const std::string& property, uint32_t default_value);
43 uint32_t GetSystemPropertyUint32Base(const std::string& property, uint32_t default_value,
49 bool GetSystemPropertyBool(const std::string& property, bool default_value);
/packages/modules/Bluetooth/system/osi/include/
Dproperties.h36 int osi_property_get(const char* key, char* value, const char* default_value);
47 int32_t osi_property_get_int32(const char* key, int32_t default_value);
54 bool osi_property_get_bool(const char* key, bool default_value);
60 std::vector<uint32_t> default_value);
/packages/modules/Nfc/libnfc-nci/src/adaptation/
Dnfc_config.cc113 std::string default_value) { in getString() argument
115 return default_value; in getString()
123 unsigned default_value) { in getUnsigned() argument
125 return default_value; in getUnsigned()
/packages/modules/Bluetooth/floss/libflags/
Dget_flags.cc25 const std::string& default_value) { in GetServerConfigurableFlag() argument
28 return bluetooth::os::GetSystemProperty(prop_name).value_or(default_value); in GetServerConfigurableFlag()
/packages/modules/Bluetooth/floss/android-base/
Dproperties.cc24 std::string GetProperty(const std::string& key, const std::string& default_value) { in GetProperty() argument
25 return bluetooth::os::GetSystemProperty(key).value_or(default_value); in GetProperty()
/packages/modules/ConfigInfrastructure/aconfigd/src/
Dstorage_files_manager.rs774 default_value: String::from("true"), in test_apply_all_staged_overrides()
793 default_value: String::from("false"), in test_apply_all_staged_overrides()
855 default_value: String::from("true"), in test_override_flag_server_on_reboot()
892 default_value: String::from("true"), in test_override_flag_local_on_reboot()
929 default_value: String::from("true"), in test_override_flag_local_immediate()
1090 default_value: String::from("false"), in test_remove_local_override()
1137 default_value: String::from("false"), in test_remove_all_local_override()
1156 default_value: String::from("false"), in test_remove_all_local_override()
1184 default_value: String::from("false"), in test_list_flags_in_package()
1199 default_value: String::from("true"), in test_list_flags_in_package()
[all …]
Dstorage_files.rs121 pub default_value: String, field
871 let default_value = self.get_default_flag_value(&context)?; in get_flag_snapshot() localVariable
880 default_value, in get_flag_snapshot()
917 default_value: String::new(), in list_flags_in_package()
977 snapshots[*index].default_value = f.flag_value.clone(); in list_flags_in_package()
1014 default_value: String::new(), in list_all_flags()
1072 snapshots[*index].default_value = f.flag_value.clone(); in list_all_flags()
1617 default_value: String::from("false"), in test_get_flag_snapshot()
1654 default_value: String::from("false"), in test_list_flags_in_package()
1669 default_value: String::from("true"), in test_list_flags_in_package()
[all …]
/packages/modules/Bluetooth/framework/tests/util/src/android/bluetooth/cts/
DTestUtils.java82 boolean default_value = true; in isProfileEnabled()
84 default_value = false; in isProfileEnabled()
86 return BluetoothProperties.isProfileAshaCentralEnabled().orElse(default_value); in isProfileEnabled()
/packages/modules/Nfc/libnfc-nci/src/fuzzers/integration/fakes/
Dnfc_config_fakes.cc15 unsigned NfcConfig::getUnsigned(const std::string&, unsigned default_value) { in getUnsigned() argument
18 return default_value; in getUnsigned()
/packages/modules/Bluetooth/system/stack/fuzzers/
Dl2cap_fuzzer.cc74 uint32_t GetSystemPropertyUint32Base(const std::string& /*property*/, uint32_t default_value, in GetSystemPropertyUint32Base() argument
76 return default_value; in GetSystemPropertyUint32Base()
78 uint32_t GetSystemPropertyUint32(const std::string& /*property*/, uint32_t default_value) { in GetSystemPropertyUint32() argument
79 return default_value; in GetSystemPropertyUint32()
Dgatt_fuzzer.cc51 bool GetSystemPropertyBool(const std::string& property, bool default_value) { in GetSystemPropertyBool() argument
52 return default_value; in GetSystemPropertyBool()
54 uint32_t GetSystemPropertyUint32(const std::string& property, uint32_t default_value) { in GetSystemPropertyUint32() argument
55 return default_value; in GetSystemPropertyUint32()
/packages/modules/Nfc/libnfc-nci/src/include/
Dnfc_config.h81 std::string default_value);
83 static unsigned getUnsigned(const std::string& key, unsigned default_value);
/packages/modules/Virtualization/guest/trusty/security_vm/launcher/src/
Dmain.rs45 #[arg(long, default_value = "trusty_security_vm_launcher")]
53 #[arg(long, default_value = "one-cpu", value_parser = parse_cpu_topology)]
/packages/modules/ConfigInfrastructure/aflags/src/
Daconfig_storage_source.rs68 let default_value = msg.default_flag_value.unwrap_or("".to_string()); in convert() localVariable
72 } else if msg.has_boot_local_override.unwrap_or(false) && boot_value != default_value { in convert()
73 Some(FlagValue::try_from(default_value.as_str())?) in convert()
/packages/modules/NeuralNetworks/driver/cache/BlobCache/
DBlobCache.cpp32 static int property_get(const char* key, char* value, const char* default_value) { in property_get() argument
37 if (default_value) { in property_get()
38 const size_t len = std::max(strlen(default_value) + 1, size_t(PROPERTY_VALUE_MAX)); in property_get()
39 memcpy(value, default_value, len); in property_get()
/packages/modules/Virtualization/android/composd_cmd/
Dcomposd_cmd.rs44 #[clap(long, default_value = "microdroid")]
55 #[clap(long, default_value = "microdroid")]
/packages/modules/Virtualization/android/vm/src/
Dmain.rs46 #[arg(long, default_value = "one_cpu", value_parser = parse_cpu_topology)]
106 #[arg(long, default_value = "full", value_parser = parse_debug_level)]
324 #[arg(short = 't', long = "type", default_value = "raw",
/packages/modules/Bluetooth/system/test/stub/
Dosi.cc552 bool osi_property_get_bool(const char* key, bool default_value) { in osi_property_get_bool() argument
557 return default_value; in osi_property_get_bool()
564 int osi_property_get(const char* key, char* value, const char* default_value) { in osi_property_get() argument
572 int32_t osi_property_get_int32(const char* key, int32_t default_value) { in osi_property_get_int32() argument
/packages/modules/Bluetooth/floss/libflags/include/server_configurable_flags/
Dget_flags.h25 const std::string& default_value);

12