Home
last modified time | relevance | path

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

12

/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/core/libcutils/
Dproperties.cpp27 int8_t property_get_bool(const char* key, int8_t default_value) { in property_get_bool() argument
28 if (!key) return default_value; in property_get_bool()
30 int8_t result = default_value; in property_get_bool()
53 static T property_get_int(const char* key, T default_value) { in property_get_int() argument
54 if (!key) return default_value; in property_get_int()
57 if (property_get(key, value, "") < 1) return default_value; in property_get_int()
60 T result = default_value; in property_get_int()
73 int64_t property_get_int64(const char* key, int64_t default_value) { in property_get_int64() argument
74 return property_get_int<int64_t>(key, default_value); in property_get_int64()
77 int32_t property_get_int32(const char* key, int32_t default_value) { in property_get_int32() argument
[all …]
/system/core/libcutils/include/cutils/
Dproperties.h49 int property_get(const char* key, char* value, const char* default_value);
65 int8_t property_get_bool(const char *key, int8_t default_value);
86 int64_t property_get_int64(const char *key, int64_t default_value);
107 int32_t property_get_int32(const char *key, int32_t default_value);
123 int property_get(const char* key, char* value, const char* default_value)
136 int property_get(const char *key, char *value, const char *default_value) { in property_get() argument
141 return __property_get_real(key, value, default_value); in property_get()
/system/core/libcutils/include_vndk/cutils/
Dproperties.h49 int property_get(const char* key, char* value, const char* default_value);
65 int8_t property_get_bool(const char *key, int8_t default_value);
86 int64_t property_get_int64(const char *key, int64_t default_value);
107 int32_t property_get_int32(const char *key, int32_t default_value);
123 int property_get(const char* key, char* value, const char* default_value)
136 int property_get(const char *key, char *value, const char *default_value) { in property_get() argument
141 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/update_engine/scripts/update_payload/
Dupdate_metadata_pb2.py97 has_default_value=False, default_value=0,
104 has_default_value=False, default_value=0,
135 has_default_value=False, default_value=0,
142 has_default_value=False, default_value=_b(""),
149 has_default_value=False, default_value=0,
179 has_default_value=False, default_value=[],
210 has_default_value=False, default_value=0,
217 has_default_value=False, default_value=_b(""),
248 has_default_value=False, default_value=_b("").decode('utf-8'),
255 has_default_value=False, default_value=_b("").decode('utf-8'),
[all …]
/system/core/fs_mgr/liblp/
Dproperty_fetcher.cpp26 std::string PropertyFetcher::GetProperty(const std::string& key, const std::string& default_value) { in GetProperty() argument
27 return android::base::GetProperty(key, default_value); in GetProperty()
30 bool PropertyFetcher::GetBoolProperty(const std::string& key, bool default_value) { in GetBoolProperty() argument
31 return android::base::GetBoolProperty(key, default_value); in GetBoolProperty()
/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/libbase/include/android-base/
Dproperties.h33 std::string GetProperty(const std::string& key, const std::string& default_value);
37 bool GetBoolProperty(const std::string& key, bool default_value);
43 T default_value,
51 T default_value,
/system/libbase/
Dproperties.cpp71 bool GetBoolProperty(const std::string& key, bool default_value) { in GetBoolProperty() argument
74 return default_value; in GetBoolProperty()
84 T GetIntProperty(const std::string& key, T default_value, T min, T max) { in GetIntProperty() argument
88 return default_value; in GetIntProperty()
92 T GetUintProperty(const std::string& key, T default_value, T max) { in GetUintProperty() argument
96 return default_value; in GetUintProperty()
109 std::string GetProperty(const std::string& key, const std::string& default_value) { in GetProperty() argument
113 if (pi == nullptr) return default_value; in GetProperty()
124 if (it == g_properties.end()) return default_value; in GetProperty()
130 return property_value.empty() ? default_value : property_value; in GetProperty()
Dproperties_test.cpp83 static void CheckGetBoolProperty(bool expected, const std::string& value, bool default_value) { in CheckGetBoolProperty() argument
85 ASSERT_EQ(expected, android::base::GetBoolProperty("debug.libbase.property_test", default_value)); in CheckGetBoolProperty()
/system/nfc/src/adaptation/
Dnfc_config.cc100 std::string default_value) { in getString() argument
102 return default_value; in getString()
110 unsigned default_value) { in getUnsigned() argument
112 return default_value; in getUnsigned()
/system/server_configurable_flags/libflags/
Dserver_configurable_flags.cc126 const std::string& default_value) { in GetServerConfigurableFlag() argument
129 return default_value; in GetServerConfigurableFlag()
133 return default_value; in GetServerConfigurableFlag()
136 MakeSystemPropertyName(experiment_category_name, experiment_flag_name), default_value); in GetServerConfigurableFlag()
/system/nfc/src/include/
Dnfc_config.h65 std::string default_value);
67 static unsigned getUnsigned(const std::string& key, unsigned default_value);
/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.cc70 const string& default_value) { in GetStringWithDefault() argument
75 << default_value; in GetStringWithDefault()
76 return default_value; in GetStringWithDefault()
Domaha_request_builder_xml.h100 const std::string& default_value = "");
Domaha_request_builder_xml.cc81 string XmlEncodeWithDefault(const string& input, const string& default_value) { in XmlEncodeWithDefault() argument
85 return default_value; in XmlEncodeWithDefault()
/system/server_configurable_flags/libflags/include/server_configurable_flags/
Dget_flags.h30 const std::string& default_value);
/system/linkerconfig/contents/context/
Dcontext.cc111 std::string Var(const std::string& name, const std::string& default_value) { in Var() argument
116 return default_value; in Var()
/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/linkerconfig/contents/include/linkerconfig/
Dcontext.h89 std::string Var(const std::string& name, const std::string& default_value);
/system/core/logd/
Dmain.cpp118 bool default_value = in GetBoolPropertyEngSvelteDefault() local
121 return GetBoolProperty(name, default_value); in GetBoolPropertyEngSvelteDefault()
/system/update_engine/scripts/
Dbrillo_update_payload285 local default_value="${3:-}"
293 echo "${default_value}"
/system/core/init/
Dreboot.cpp757 std::chrono::milliseconds default_value) { in GetMillisProperty() argument
758 auto value = GetUintProperty(name, static_cast<uint64_t>(default_value.count())); in GetMillisProperty()

12