Searched refs:default_value (Results 1 - 25 of 27) sorted by relevance

12

/system/bt/osi/src/
H A Dproperties.c23 int osi_property_get(const char *key, char *value, const char *default_value) { argument
27 if (!default_value)
30 len = strlen(default_value);
34 memcpy(value, default_value, len);
38 return property_get(key, value, default_value);
/system/core/include/cutils/
H A Dproperties.h46 int property_get(const char *key, char *value, const char *default_value);
62 int8_t property_get_bool(const char *key, int8_t default_value);
83 int64_t property_get_int64(const char *key, int64_t default_value);
104 int32_t property_get_int32(const char *key, int32_t default_value);
119 int property_get(const char *key, char *value, const char *default_value) { argument
124 return __property_get_real(key, value, default_value);
/system/bt/osi/include/
H A Dproperties.h31 // If the property read fails or returns an empty value, the |default_value|
33 int osi_property_get(const char *key, char *value, const char *default_value);
/system/core/libcutils/
H A Dproperties.c33 int8_t property_get_bool(const char *key, int8_t default_value) { argument
35 return default_value;
38 int8_t result = default_value;
62 intmax_t default_value) {
64 return default_value;
67 intmax_t result = default_value;
80 result = default_value;
81 ALOGV("%s(%s,%" PRIdMAX ") - overflow", __FUNCTION__, key, default_value);
84 result = default_value;
85 ALOGV("%s(%s,%" PRIdMAX ") - out of range", __FUNCTION__, key, default_value);
61 property_get_imax(const char *key, intmax_t lower_bound, intmax_t upper_bound, intmax_t default_value) argument
99 property_get_int64(const char *key, int64_t default_value) argument
103 property_get_int32(const char *key, int32_t default_value) argument
115 property_get(const char *key, char *value, const char *default_value) argument
[all...]
/system/core/debuggerd/test/
H A Dproperty_fake.cpp34 extern "C" int property_get(const char* key, char* value, const char* default_value) { argument
36 if (default_value == nullptr) {
39 strncpy(value, default_value, PROP_VALUE_MAX-1);
/system/connectivity/shill/test-rpc-proxy/
H A Dproxy_util.h44 bool default_value,
49 int default_value,
54 double default_value,
59 const std::string& default_value,
64 const std::vector<std::string>& default_value,
H A Dproxy_util.cc139 ValueType default_value,
142 *value_out = default_value;
165 std::vector<ElementType> default_value,
168 *value_out = default_value;
291 bool default_value,
294 xml_rpc_value_in, member_name, default_value, value_out);
300 int default_value,
303 xml_rpc_value_in, member_name, default_value, value_out);
309 double default_value,
312 xml_rpc_value_in, member_name, default_value, value_ou
136 GetValueFromXmlRpcValueStructMember( XmlRpc::XmlRpcValue* xml_rpc_value_in, const std::string& member_name, ValueType default_value, ValueType* value_out) argument
162 GetVectorFromXmlRpcValueStructMember( XmlRpc::XmlRpcValue* xml_rpc_value_in, const std::string& member_name, std::vector<ElementType> default_value, std::vector<ElementType>* value_out) argument
288 GetBoolValueFromXmlRpcValueStructMember( XmlRpc::XmlRpcValue* xml_rpc_value_in, const std::string& member_name, bool default_value, bool* value_out) argument
297 GetIntValueFromXmlRpcValueStructMember( XmlRpc::XmlRpcValue* xml_rpc_value_in, const std::string& member_name, int default_value, int* value_out) argument
306 GetDoubleValueFromXmlRpcValueStructMember( XmlRpc::XmlRpcValue* xml_rpc_value_in, const std::string& member_name, double default_value, double* value_out) argument
315 GetStringValueFromXmlRpcValueStructMember( XmlRpc::XmlRpcValue* xml_rpc_value_in, const std::string& member_name, const std::string& default_value, std::string* value_out) argument
324 GetStringVectorFromXmlRpcValueStructMember( XmlRpc::XmlRpcValue* xml_rpc_value_in, const std::string& member_name, const std::vector<std::string>& default_value, std::vector<std::string>* value_out) argument
[all...]
/system/extras/perfprofd/
H A Dconfigreader.h53 unsigned default_value,
56 void addStringEntry(const char *key, const char *default_value);
H A Dconfigreader.cc126 unsigned default_value,
140 u_entries[ks] = default_value;
143 void ConfigReader::addStringEntry(const char *key, const char *default_value) argument
151 if (default_value == nullptr) {
155 s_entries[ks] = std::string(default_value);
125 addUnsignedEntry(const char *key, unsigned default_value, unsigned min_value, unsigned max_value) argument
/system/update_engine/
H A Dimage_properties_android.cc44 const std::string& default_value) {
49 << default_value; local
50 return default_value;
42 GetStringWithDefault(const brillo::OsReleaseReader& osrelease, const std::string& key, const std::string& default_value) argument
H A Dimage_properties_chromeos.cc51 const std::string& default_value) {
56 << default_value; local
57 return default_value;
49 GetStringWithDefault(const brillo::KeyValueStore& store, const std::string& key, const std::string& default_value) argument
H A Domaha_request_action.h46 const std::string& default_value);
/system/connectivity/shill/test-scripts/
H A Dcrypto_util_pb2.py83 has_default_value=False, default_value="",
90 has_default_value=False, default_value="",
118 has_default_value=False, default_value=0,
125 has_default_value=False, default_value="",
153 has_default_value=False, default_value="",
160 has_default_value=False, default_value="",
167 has_default_value=False, default_value="",
174 has_default_value=False, default_value="",
202 has_default_value=False, default_value=0,
/system/connectivity/shill/
H A Dproperty_accessor.h220 // Either |clearer| or |default_value|, but not both, must be non-NULL.
225 const T* default_value)
232 DCHECK(clearer || default_value);
233 DCHECK(!clearer || !default_value);
234 if (default_value) {
235 default_value_ = *default_value;
222 CustomWriteOnlyAccessor(C* target, bool(C::*setter)(const T& value, Error* error), void(C::*clearer)(Error* error), const T* default_value) argument
H A Dkey_value_store.h131 // |default_value|.
132 bool LookupBool(const std::string& name, bool default_value) const;
133 int LookupInt(const std::string& name, int default_value) const;
135 const std::string& default_value) const;
H A Dkey_value_store.cc380 bool KeyValueStore::LookupBool(const string& name, bool default_value) const {
383 return default_value;
389 int KeyValueStore::LookupInt(const string& name, int default_value) const {
392 return default_value;
399 const string& default_value) const {
402 return default_value;
H A Dproperty_accessor_unittest.cc462 const string default_value = "default value"; local
464 &wrapper, &StringWrapper::Set, nullptr, &default_value);
473 const string default_value = "default value"; local
476 &wrapper, &StringWrapper::Set, nullptr, &default_value);
489 const string default_value = "default value"; local
491 &wrapper, &StringWrapper::Set, nullptr, &default_value);
496 EXPECT_EQ(default_value, wrapper.value_);
H A Deap_credentials.h146 // calling |set| with |default_value| (whichever is non-NULL). It
148 // |default_value| non-NULL.
154 const std::string* default_value);
H A Deap_credentials.cc518 const string* default_value) {
523 this, set, clear, default_value)));
513 HelpRegisterWriteOnlyDerivedString( PropertyStore* store, const string& name, bool(EapCredentials::*set)(const string&, Error*), void(EapCredentials::*clear)(Error* error), const string* default_value) argument
H A Dproperty_store_unittest.cc270 const bool default_value = kDefaults[i]; local
271 bool flag = default_value;
275 EXPECT_EQ(default_value, flag);
H A Dservice.h515 // not exist, assign |default_value| to |value|.
519 const std::string& default_value,
/system/update_engine/scripts/
H A Dbrillo_update_payload203 # read_option_int <file.txt> <option_key> [default_value]
207 # the |default_value|.
211 local default_value="${3:-}"
219 echo "${default_value}"
/system/core/init/
H A Dinit.cpp424 const char *default_value; member in struct:__anon1603
435 property_set(prop_map[i].dst_prop, (!value.empty()) ? value.c_str() : prop_map[i].default_value);
/system/connectivity/shill/wifi/
H A Dwifi_service.h252 const std::string* default_value);
H A Dwifi_service.cc565 const string* default_value) {
570 this, set, clear, default_value)));
561 HelpRegisterWriteOnlyDerivedString( const string& name, bool(WiFiService::*set)(const string&, Error*), void(WiFiService::*clear)(Error* error), const string* default_value) argument

Completed in 1378 milliseconds

12