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

12

/system/bt/osi/include/
H A Dproperties.h30 // 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 Dproperties.cc31 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 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/init/
H A Dhost_init_stubs.cpp27 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 Dhost_init_stubs.h36 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 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);
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 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);
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 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);
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 Dupdate_metadata_pb2.py88 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 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.h60 unsigned default_value,
63 void addStringEntry(const char *key, const char *default_value);
H A Dconfigreader.cc152 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 Dnfc_config.h60 std::string default_value);
62 static unsigned getUnsigned(const std::string& key, unsigned default_value);
/system/nfc/src/adaptation/
H A Dnfc_config.cc79 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 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.cpp34 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 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/extras/libperfmgr/tools/
H A DConfigVerifier.cc49 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 Dimage_properties_chromeos.cc52 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 Dimage_properties_android.cc71 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 Domaha_request_action.h47 const std::string& default_value);
/system/core/toolbox/
H A Dgetprop.cpp73 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 Dutility.h73 void read_with_default(const char* path, char* buf, size_t len, const char* default_value);
/system/core/debuggerd/libdebuggerd/
H A Dutility.cpp225 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 Dbrillo_update_payload250 # read_option_int <file.txt> <option_key> [default_value]
254 # the |default_value|.
258 local default_value="${3:-}"
266 echo "${default_value}"

Completed in 711 milliseconds

12