Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/system/test/mock/
Dmock_osi_properties.h54 std::function<int(const char* key, char* value, const char* default_value)>
55 body{[this](const char* key, char* value, const char* default_value) {
58 int operator()(const char* key, char* value, const char* default_value) { in operator()
59 return body(key, value, default_value); in operator()
69 std::function<bool(const char* key, bool default_value)> body{
70 [this](const char* key, bool default_value) { return return_value; }};
71 bool operator()(const char* key, bool default_value) { in operator()
72 return body(key, default_value); in operator()
82 std::function<int32_t(const char* key, int32_t default_value)> body{
83 [this](const char* key, int32_t default_value) { return return_value; }};
[all …]
Dmock_osi_properties.cc51 int osi_property_get(const char* key, char* value, const char* default_value) { in osi_property_get() argument
54 default_value); in osi_property_get()
56 bool osi_property_get_bool(const char* key, bool default_value) { in osi_property_get_bool() argument
58 return test::mock::osi_properties::osi_property_get_bool(key, default_value); in osi_property_get_bool()
60 int32_t osi_property_get_int32(const char* key, int32_t default_value) { in osi_property_get_int32() argument
62 return test::mock::osi_properties::osi_property_get_int32(key, default_value); in osi_property_get_int32()
/packages/modules/Bluetooth/system/osi/src/
Dproperties.cc31 int osi_property_get(const char* key, char* value, const char* default_value) { in osi_property_get() argument
35 if (!default_value) return len; in osi_property_get()
37 len = strlen(default_value); in osi_property_get()
40 memcpy(value, default_value, len); in osi_property_get()
44 return property_get(key, value, default_value); in osi_property_get()
56 int32_t osi_property_get_int32(const char* key, int32_t default_value) { in osi_property_get_int32() argument
58 return default_value; in osi_property_get_int32()
60 return property_get_int32(key, default_value); in osi_property_get_int32()
64 bool osi_property_get_bool(const char* key, bool default_value) { in osi_property_get_bool() argument
66 return default_value; in osi_property_get_bool()
[all …]
/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/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()
30 const std::string& property, uint32_t default_value, int base) { 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.h31 uint32_t GetSystemPropertyUint32(const std::string& property, uint32_t default_value);
37 const std::string& property, uint32_t default_value, int base = 0);
42 bool GetSystemPropertyBool(const std::string& property, bool default_value);
/packages/modules/Bluetooth/system/osi/include/
Dproperties.h35 int osi_property_get(const char* key, char* value, const char* default_value);
46 int32_t osi_property_get_int32(const char* key, int32_t default_value);
53 bool osi_property_get_bool(const char* key, bool default_value);
/packages/modules/Bluetooth/system/gd/rust/topshim/facade/src/
Dmain.rs46 .arg(Arg::with_name("grpc-port").long("grpc-port").default_value("8899").takes_value(true)) in async_main()
50 .default_value("8897") in async_main()
56 .default_value("8895") in async_main()
66 .default_value("true") in async_main()
/packages/modules/Bluetooth/system/gd/rust/common/src/
Dinit_flags.rs17 macro_rules! default_value { macro
85 $($flag : default_value!($($type)? $(= $default)?),)*
86 $($extra_field : default_value!($extra_field_type $(= $extra_default)?),)*
115 default_value!($($type)? $(= $default)?)}),)*
/packages/modules/Bluetooth/system/gd/rust/facade/src/
Dmain.rs33 .default_value("8897") in async_main()
36 .arg(Arg::with_name("grpc-port").long("grpc-port").default_value("8899").takes_value(true)) in async_main()
40 .default_value("8895") in async_main()
/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/Bluetooth/system/test/stub/
Dosi.cc609 bool osi_property_get_bool(const char* key, bool default_value) { in osi_property_get_bool() argument
613 return default_value; in osi_property_get_bool()
620 int osi_property_get(const char* key, char* value, const char* default_value) { in osi_property_get() argument
628 int32_t osi_property_get_int32(const char* key, int32_t default_value) { in osi_property_get_int32() argument
/packages/modules/Virtualization/vm/src/
Dmain.rs75 #[structopt(long, default_value = "none", parse(try_from_str=parse_debug_level))]
156 …#[structopt(short="t", long="type", default_value="raw", parse(try_from_str=parse_partition_type))]
/packages/modules/Bluetooth/system/stack/test/sdp/
Dstack_sdp_utils_test.cc101 [](const char* key, bool default_value) { return true; }; in SetUp() argument
/packages/modules/Bluetooth/system/btif/src/
Dbtif_storage.cc592 uint8_t default_value) { in btif_storage_get_io_cap_property() argument
603 : default_value; in btif_storage_get_io_cap_property()