Home
last modified time | relevance | path

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

12

/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.cc31 int osi_property_get(const char* key, char* value, const char* default_value) { in osi_property_get() argument
35 if (!default_value) return len; in osi_property_get()
37 len = strlen(default_value); in osi_property_get()
40 memcpy(value, default_value, len); in osi_property_get()
44 return property_get(key, value, default_value); in osi_property_get()
56 int32_t osi_property_get_int32(const char* key, int32_t default_value) { in osi_property_get_int32() argument
58 return default_value; in osi_property_get_int32()
60 return property_get_int32(key, default_value); in osi_property_get_int32()
64 bool osi_property_get_bool(const char* key, bool default_value) { in osi_property_get_bool() argument
66 return default_value; in osi_property_get_bool()
[all …]
/system/update_engine/scripts/update_payload/
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=unicode("", "utf-8"),
[all …]
/system/core/libcutils/include/cutils/
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) { in property_get() argument
138 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);
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) { in property_get() argument
138 return __property_get_real(key, value, default_value); in property_get()
/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/core/init/
Dhost_init_stubs.cpp27 std::string GetProperty(const std::string&, const std::string& default_value) { in GetProperty() argument
28 return default_value; in GetProperty()
31 bool GetBoolProperty(const std::string&, bool default_value) { in GetBoolProperty() argument
32 return default_value; in GetBoolProperty()
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(),
41 return default_value;
Dinit.cpp378 const char *default_value; in export_kernel_boot_props() member
389 property_set(prop_map[i].dst_prop, (!value.empty()) ? value : prop_map[i].default_value); in export_kernel_boot_props()
/system/bt/osi/include/
Dproperties.h32 int osi_property_get(const char* key, char* value, const char* default_value);
43 int32_t osi_property_get_int32(const char* key, int32_t default_value);
50 bool osi_property_get_bool(const char* key, bool default_value);
/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/base/
Dproperties.cpp34 std::string GetProperty(const std::string& key, const std::string& default_value) { in GetProperty() argument
36 if (pi == nullptr) return default_value; in GetProperty()
49 return property_value.empty() ? default_value : property_value; in GetProperty()
52 bool GetBoolProperty(const std::string& key, bool default_value) { in GetBoolProperty() argument
59 return default_value; in GetBoolProperty()
63 T GetIntProperty(const std::string& key, T default_value, T min, T max) { in GetIntProperty() argument
67 return default_value; in GetIntProperty()
71 T GetUintProperty(const std::string& key, T default_value, T max) { in GetUintProperty() argument
75 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/nfc/src/adaptation/
Dnfc_config.cc79 std::string default_value) { in getString() argument
81 return default_value; in getString()
89 unsigned default_value) { in getUnsigned() argument
91 return default_value; in getUnsigned()
/system/extras/perfprofd/
Dconfigreader.h60 unsigned default_value,
63 void addStringEntry(const char *key, const char *default_value);
Dconfigreader.cc152 unsigned default_value, in addUnsignedEntry() argument
164 u_entries[ks] = default_value; in addUnsignedEntry()
167 void ConfigReader::addStringEntry(const char *key, const char *default_value) in addStringEntry() argument
173 CHECK(default_value != nullptr) << "internal error -- bad default value for key " << key; in addStringEntry()
174 s_entries[ks] = std::string(default_value); in addStringEntry()
/system/nfc/src/include/
Dnfc_config.h60 std::string default_value);
62 static unsigned getUnsigned(const std::string& key, unsigned default_value);
/system/extras/libperfmgr/tools/
DConfigVerifier.cc49 std::string default_value = values[node->GetDefaultIndex()]; in VerifyNodes() local
51 values.insert(values.begin(), default_value); in VerifyNodes()
53 values.push_back(default_value); in VerifyNodes()
/system/update_engine/
Dimage_properties_chromeos.cc52 const std::string& default_value) { in GetStringWithDefault() argument
57 << default_value; in GetStringWithDefault()
58 return default_value; in GetStringWithDefault()
Dimage_properties_android.cc71 const string& default_value) { in GetStringWithDefault() argument
76 << default_value; in GetStringWithDefault()
77 return default_value; in GetStringWithDefault()
Domaha_request_action.h47 const std::string& default_value);
/system/core/toolbox/
Dgetprop.cpp73 void PrintProperty(const char* name, const char* default_value, ResultType result_type) { in PrintProperty() argument
76 std::cout << GetProperty(name, default_value) << std::endl; in PrintProperty()
/system/core/debuggerd/libdebuggerd/include/libdebuggerd/
Dutility.h73 void read_with_default(const char* path, char* buf, size_t len, const char* default_value);
/system/core/debuggerd/libdebuggerd/
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/
Dbrillo_update_payload258 local default_value="${3:-}"
266 echo "${default_value}"

12