/system/bt/osi/include/ |
H A D | properties.h | 30 // If the property read fails or returns an empty value, the |default_value| 31 // is used (if nonnull). If the |default_value| is null, zero is returned. 32 int osi_property_get(const char* key, char* value, const char* default_value); 42 // int32_t. If the property is not set, then the |default_value| is used. 43 int32_t osi_property_get_int32(const char* key, int32_t default_value); 49 // then the |default_value| is used. 50 bool osi_property_get_bool(const char* key, bool default_value)
|
/system/bt/osi/src/ |
H A D | properties.cc | 31 int osi_property_get(const char* key, char* value, const char* default_value) { argument 35 if (!default_value) return len; 37 len = strlen(default_value); 40 memcpy(value, default_value, len); 44 return property_get(key, value, default_value); 56 int32_t osi_property_get_int32(const char* key, int32_t default_value) { argument 58 return default_value; 60 return property_get_int32(key, default_value); 64 bool osi_property_get_bool(const char* key, bool default_value) { argument 66 return default_value; [all...] |
/system/core/libcutils/ |
H A D | properties.cpp | 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 114 property_get(const char *key, char *value, const char *default_value) argument [all...] |
/system/core/init/ |
H A D | host_init_stubs.cpp | 27 std::string GetProperty(const std::string&, const std::string& default_value) { argument 28 return default_value; 31 bool GetBoolProperty(const std::string&, bool default_value) { argument 32 return default_value;
|
H A D | host_init_stubs.h | 36 std::string GetProperty(const std::string& key, const std::string& default_value); 37 bool GetBoolProperty(const std::string& key, bool default_value); 39 T GetIntProperty(const std::string&, T default_value, T = std::numeric_limits<T>::min(), argument 41 return 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); 120 int property_get(const char* key, char* value, const char* default_value) 133 int property_get(const char *key, char *value, const char *default_value) { 138 return __property_get_real(key, value, default_value);
|
/system/core/libcutils/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); 120 int property_get(const char* key, char* value, const char* default_value) 133 int property_get(const char *key, char *value, const char *default_value) { 138 return __property_get_real(key, value, default_value);
|
/system/core/libcutils/include_vndk/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); 120 int property_get(const char* key, char* value, const char* default_value) 133 int property_get(const char *key, char *value, const char *default_value) { 138 return __property_get_real(key, value, default_value);
|
/system/update_engine/scripts/update_payload/ |
H A D | update_metadata_pb2.py | 88 has_default_value=False, default_value=0, 95 has_default_value=False, default_value=0, 123 has_default_value=False, default_value=0, 130 has_default_value=False, default_value="", 157 has_default_value=False, default_value=[], 185 has_default_value=False, default_value=0, 192 has_default_value=False, default_value="", 220 has_default_value=False, default_value=unicode("", "utf-8"), 227 has_default_value=False, default_value=unicode("", "utf-8"), 234 has_default_value=False, default_value [all...] |
/system/core/base/include/android-base/ |
H A D | properties.h | 34 // or `default_value` if the property is empty or doesn't exist. 35 std::string GetProperty(const std::string& key, const std::string& default_value); 38 // false for "0", "n", "no", "off", or "false", or `default_value` otherwise. 39 bool GetBoolProperty(const std::string& key, bool default_value); 43 // the optional bounds, returns `default_value`. 45 T default_value, 51 // the optional bound, returns `default_value`. 53 T default_value,
|
/system/extras/perfprofd/ |
H A D | configreader.h | 60 unsigned default_value, 63 void addStringEntry(const char *key, const char *default_value);
|
H A D | configreader.cc | 152 unsigned default_value, 164 u_entries[ks] = default_value; 167 void ConfigReader::addStringEntry(const char *key, const char *default_value) argument 173 CHECK(default_value != nullptr) << "internal error -- bad default value for key " << key; 174 s_entries[ks] = std::string(default_value); 151 addUnsignedEntry(const char *key, unsigned default_value, unsigned min_value, unsigned max_value) argument
|
/system/nfc/src/include/ |
H A D | nfc_config.h | 60 std::string default_value); 62 static unsigned getUnsigned(const std::string& key, unsigned default_value);
|
/system/nfc/src/adaptation/ |
H A D | nfc_config.cc | 79 std::string default_value) { 81 return default_value; 89 unsigned default_value) { 91 return default_value; 78 getString(const std::string& key, std::string default_value) argument 88 getUnsigned(const std::string& key, unsigned default_value) argument
|
/system/extras/simpleperf/scripts/ |
H A D | profile_pb2.py | 39 has_default_value=False, default_value=[], 46 has_default_value=False, default_value=[], 53 has_default_value=False, default_value=[], 60 has_default_value=False, default_value=[], 67 has_default_value=False, default_value=[], 74 has_default_value=False, default_value=[], 81 has_default_value=False, default_value=0, 88 has_default_value=False, default_value=0, 95 has_default_value=False, default_value=0, 102 has_default_value=False, default_value [all...] |
/system/core/base/ |
H A D | properties.cpp | 34 std::string GetProperty(const std::string& key, const std::string& default_value) { argument 36 if (pi == nullptr) return default_value; 49 return property_value.empty() ? default_value : property_value; 52 bool GetBoolProperty(const std::string& key, bool default_value) { argument 59 return default_value; 63 T GetIntProperty(const std::string& key, T default_value, T min, T max) { argument 67 return default_value; 71 T GetUintProperty(const std::string& key, T default_value, T max) { argument 75 return default_value;
|
H A D | properties_test.cpp | 54 static void CheckGetBoolProperty(bool expected, const std::string& value, bool default_value) { argument 56 ASSERT_EQ(expected, android::base::GetBoolProperty("debug.libbase.property_test", default_value));
|
/system/extras/libperfmgr/tools/ |
H A D | ConfigVerifier.cc | 49 std::string default_value = values[node->GetDefaultIndex()]; local 51 values.insert(values.begin(), default_value); 53 values.push_back(default_value);
|
/system/update_engine/ |
H A D | image_properties_chromeos.cc | 52 const std::string& default_value) { 57 << default_value; local 58 return default_value; 50 GetStringWithDefault(const brillo::KeyValueStore& store, const std::string& key, const std::string& default_value) argument
|
H A D | image_properties_android.cc | 71 const string& default_value) { 76 << default_value; local 77 return default_value; 69 GetStringWithDefault(const brillo::OsReleaseReader& osrelease, const string& key, const string& default_value) argument
|
H A D | omaha_request_action.h | 47 const std::string& default_value);
|
/system/core/toolbox/ |
H A D | getprop.cpp | 73 void PrintProperty(const char* name, const char* default_value, ResultType result_type) { argument 76 std::cout << GetProperty(name, default_value) << std::endl;
|
/system/core/debuggerd/libdebuggerd/include/libdebuggerd/ |
H A D | utility.h | 73 void read_with_default(const char* path, char* buf, size_t len, const char* default_value);
|
/system/core/debuggerd/libdebuggerd/ |
H A D | utility.cpp | 225 void read_with_default(const char* path, char* buf, size_t len, const char* default_value) { argument 239 strcpy(buf, default_value);
|
/system/update_engine/scripts/ |
H A D | brillo_update_payload | 250 # read_option_int <file.txt> <option_key> [default_value] 254 # the |default_value|. 258 local default_value="${3:-}" 266 echo "${default_value}"
|