/system/bt/osi/src/ |
H A D | properties.c | 23 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 D | properties.h | 46 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 D | properties.h | 31 // 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 D | properties.c | 33 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 D | property_fake.cpp | 34 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 D | proxy_util.h | 44 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 D | proxy_util.cc | 139 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 D | configreader.h | 53 unsigned default_value, 56 void addStringEntry(const char *key, const char *default_value);
|
H A D | configreader.cc | 126 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 D | image_properties_android.cc | 44 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 D | image_properties_chromeos.cc | 51 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 D | omaha_request_action.h | 46 const std::string& default_value);
|
/system/connectivity/shill/test-scripts/ |
H A D | crypto_util_pb2.py | 83 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 D | property_accessor.h | 220 // 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 D | key_value_store.h | 131 // |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 D | key_value_store.cc | 380 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 D | property_accessor_unittest.cc | 462 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 D | eap_credentials.h | 146 // calling |set| with |default_value| (whichever is non-NULL). It 148 // |default_value| non-NULL. 154 const std::string* default_value);
|
H A D | eap_credentials.cc | 518 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 D | property_store_unittest.cc | 270 const bool default_value = kDefaults[i]; local 271 bool flag = default_value; 275 EXPECT_EQ(default_value, flag);
|
H A D | service.h | 515 // not exist, assign |default_value| to |value|. 519 const std::string& default_value,
|
/system/update_engine/scripts/ |
H A D | brillo_update_payload | 203 # 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 D | init.cpp | 424 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 D | wifi_service.h | 252 const std::string* default_value);
|
H A D | wifi_service.cc | 565 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
|