Home
last modified time | relevance | path

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

/system/core/libcutils/
Dproperties.cpp33 int8_t property_get_bool(const char *key, int8_t default_value) { in property_get_bool() argument
35 return default_value; in property_get_bool()
38 int8_t result = default_value; in property_get_bool()
62 intmax_t default_value) { in property_get_imax() argument
64 return default_value; in property_get_imax()
67 intmax_t result = default_value; in property_get_imax()
80 result = default_value; in property_get_imax()
81 ALOGV("%s(%s,%" PRIdMAX ") - overflow", __FUNCTION__, key, default_value); in property_get_imax()
84 result = default_value; in property_get_imax()
85 ALOGV("%s(%s,%" PRIdMAX ") - out of range", __FUNCTION__, key, default_value); in property_get_imax()
[all …]
/system/bt/osi/src/
Dproperties.cc23 int osi_property_get(const char* key, char* value, const char* default_value) { in osi_property_get() argument
27 if (!default_value) return len; in osi_property_get()
29 len = strlen(default_value); in osi_property_get()
32 memcpy(value, default_value, len); in osi_property_get()
36 return property_get(key, value, default_value); in osi_property_get()
48 int32_t osi_property_get_int32(const char* key, int32_t default_value) { in osi_property_get_int32() argument
50 return default_value; in osi_property_get_int32()
52 return property_get_int32(key, default_value); in osi_property_get_int32()
/system/extras/simpleperf/scripts/
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=0,
[all …]
/system/update_engine/scripts/update_payload/
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=unicode("", "utf-8"),
[all …]
/system/core/libcutils/include/cutils/
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) { in property_get() argument
155 return __property_get_real(key, value, default_value); in property_get()
/system/core/libcutils/include_vndk/cutils/
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) { in property_get() argument
155 return __property_get_real(key, value, default_value); in property_get()
/system/core/base/
Dproperties.cpp35 std::string GetProperty(const std::string& key, const std::string& default_value) { in GetProperty() argument
37 if (pi == nullptr) return default_value; in GetProperty()
45 return default_value; in GetProperty()
48 bool GetBoolProperty(const std::string& key, bool default_value) { in GetBoolProperty() argument
55 return default_value; in GetBoolProperty()
59 T GetIntProperty(const std::string& key, T default_value, T min, T max) { in GetIntProperty() argument
63 return default_value; in GetIntProperty()
67 T GetUintProperty(const std::string& key, T default_value, T max) { in GetUintProperty() argument
71 return default_value; in GetUintProperty()
Dproperties_test.cpp54 static void CheckGetBoolProperty(bool expected, const std::string& value, bool default_value) { in CheckGetBoolProperty() argument
56 ASSERT_EQ(expected, android::base::GetBoolProperty("debug.libbase.property_test", default_value)); in CheckGetBoolProperty()
/system/core/base/include/android-base/
Dproperties.h35 std::string GetProperty(const std::string& key, const std::string& default_value);
39 bool GetBoolProperty(const std::string& key, bool default_value);
45 T default_value,
53 T default_value,
/system/core/debuggerd/libdebuggerd/test/
Dproperty_fake.cpp34 extern "C" int property_get(const char* key, char* value, const char* default_value) { in property_get() argument
36 if (default_value == nullptr) { in property_get()
39 strncpy(value, default_value, PROP_VALUE_MAX-1); in property_get()
/system/bt/osi/include/
Dproperties.h34 int osi_property_get(const char* key, char* value, const char* default_value);
45 int32_t osi_property_get_int32(const char* key, int32_t default_value);
/system/extras/perfprofd/
Dconfigreader.cc127 unsigned default_value, in addUnsignedEntry() argument
141 u_entries[ks] = default_value; in addUnsignedEntry()
144 void ConfigReader::addStringEntry(const char *key, const char *default_value) in addStringEntry() argument
152 if (default_value == nullptr) { in addStringEntry()
156 s_entries[ks] = std::string(default_value); in addStringEntry()
Dconfigreader.h53 unsigned default_value,
56 void addStringEntry(const char *key, const char *default_value);
/system/update_engine/
Dimage_properties_android.cc50 const std::string& default_value) { in GetStringWithDefault() argument
55 << default_value; in GetStringWithDefault()
56 return default_value; in GetStringWithDefault()
Dimage_properties_chromeos.cc51 const std::string& default_value) { in GetStringWithDefault() argument
56 << default_value; in GetStringWithDefault()
57 return default_value; in GetStringWithDefault()
Domaha_request_action.h47 const std::string& default_value);
Domaha_request_action.cc513 string XmlEncodeWithDefault(const string& input, const string& default_value) { in XmlEncodeWithDefault() argument
517 return default_value; in XmlEncodeWithDefault()
/system/core/debuggerd/libdebuggerd/include/
Dutility.h86 void read_with_default(const char* path, char* buf, size_t len, const char* default_value);
/system/core/debuggerd/libdebuggerd/
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/
Dbrillo_update_payload224 local default_value="${3:-}"
232 echo "${default_value}"
/system/core/init/
Dinit.cpp472 const char *default_value; in export_kernel_boot_props() member
483 … property_set(prop_map[i].dst_prop, (!value.empty()) ? value.c_str() : prop_map[i].default_value); in export_kernel_boot_props()
/system/media/audio/include/system/
Daudio.h339 int default_value; /* default gain value in millibels */ member