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

/system/bt/osi/src/
H A Dproperties.cc23 int osi_property_get(const char* key, char* value, const char* default_value) { argument
27 if (!default_value) return len;
29 len = strlen(default_value);
32 memcpy(value, default_value, len);
36 return property_get(key, value, default_value);
48 int32_t osi_property_get_int32(const char* key, int32_t default_value) { argument
50 return default_value;
52 return property_get_int32(key, default_value);
/system/bt/osi/include/
H A Dproperties.h32 // If the property read fails or returns an empty value, the |default_value|
33 // is used (if nonnull). If the |default_value| is null, zero is returned.
34 int osi_property_get(const char* key, char* value, const char* default_value);
44 // int32_t. If the property is not set, then the |default_value| is used.
45 int32_t osi_property_get_int32(const char* key, int32_t default_value);
/system/core/libcutils/
H A Dproperties.cpp33 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/include/cutils/
H A Dproperties.h46 int property_get(const char *key, char *value, const char *default_value)
67 int8_t property_get_bool(const char *key, int8_t default_value);
88 int64_t property_get_int64(const char *key, int64_t default_value);
109 int32_t property_get_int32(const char *key, int32_t default_value);
132 int property_get(const char *key, char *value, const char *default_value)
150 int property_get(const char *key, char *value, const char *default_value) {
155 return __property_get_real(key, value, default_value);
/system/core/libcutils/include/cutils/
H A Dproperties.h46 int property_get(const char *key, char *value, const char *default_value)
67 int8_t property_get_bool(const char *key, int8_t default_value);
88 int64_t property_get_int64(const char *key, int64_t default_value);
109 int32_t property_get_int32(const char *key, int32_t default_value);
132 int property_get(const char *key, char *value, const char *default_value)
150 int property_get(const char *key, char *value, const char *default_value) {
155 return __property_get_real(key, value, default_value);
/system/core/libcutils/include_vndk/cutils/
H A Dproperties.h46 int property_get(const char *key, char *value, const char *default_value)
67 int8_t property_get_bool(const char *key, int8_t default_value);
88 int64_t property_get_int64(const char *key, int64_t default_value);
109 int32_t property_get_int32(const char *key, int32_t default_value);
132 int property_get(const char *key, char *value, const char *default_value)
150 int property_get(const char *key, char *value, const char *default_value) {
155 return __property_get_real(key, value, default_value);
/system/core/debuggerd/libdebuggerd/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/update_engine/scripts/update_payload/
H A Dupdate_metadata_pb2.py84 has_default_value=False, default_value=0,
91 has_default_value=False, default_value=0,
119 has_default_value=False, default_value=0,
126 has_default_value=False, default_value="",
153 has_default_value=False, default_value=[],
181 has_default_value=False, default_value=0,
188 has_default_value=False, default_value="",
216 has_default_value=False, default_value=unicode("", "utf-8"),
223 has_default_value=False, default_value=unicode("", "utf-8"),
230 has_default_value=False, default_value
[all...]
/system/core/base/include/android-base/
H A Dproperties.h34 // 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 Dconfigreader.h53 unsigned default_value,
56 void addStringEntry(const char *key, const char *default_value);
H A Dconfigreader.cc127 unsigned default_value,
141 u_entries[ks] = default_value;
144 void ConfigReader::addStringEntry(const char *key, const char *default_value) argument
152 if (default_value == nullptr) {
156 s_entries[ks] = std::string(default_value);
126 addUnsignedEntry(const char *key, unsigned default_value, unsigned min_value, unsigned max_value) argument
/system/extras/simpleperf/scripts/
H A Dprofile_pb2.py39 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 Dproperties.cpp35 std::string GetProperty(const std::string& key, const std::string& default_value) { argument
37 if (pi == nullptr) return default_value;
45 return default_value;
48 bool GetBoolProperty(const std::string& key, bool default_value) { argument
55 return default_value;
59 T GetIntProperty(const std::string& key, T default_value, T min, T max) { argument
63 return default_value;
67 T GetUintProperty(const std::string& key, T default_value, T max) { argument
71 return default_value;
H A Dproperties_test.cpp54 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/update_engine/
H A Dimage_properties_android.cc58 const string& default_value) {
63 << default_value; local
64 return default_value;
56 GetStringWithDefault(const brillo::OsReleaseReader& osrelease, const string& key, const 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.h47 const std::string& default_value);
/system/core/debuggerd/libdebuggerd/include/
H A Dutility.h86 void read_with_default(const char* path, char* buf, size_t len, const char* default_value);
/system/core/debuggerd/libdebuggerd/
H A Dutility.cpp207 void read_with_default(const char* path, char* buf, size_t len, const char* default_value) { argument
221 strcpy(buf, default_value);
/system/update_engine/scripts/
H A Dbrillo_update_payload220 # read_option_int <file.txt> <option_key> [default_value]
224 # the |default_value|.
228 local default_value="${3:-}"
236 echo "${default_value}"
/system/media/audio/include/system/
H A Daudio.h339 int default_value; /* default gain value in millibels */ member in struct:audio_gain
/system/core/init/
H A Dinit.cpp505 const char *default_value; member in struct:android::init::__anon1528
516 property_set(prop_map[i].dst_prop, (!value.empty()) ? value : prop_map[i].default_value);

Completed in 3887 milliseconds