/aosp14/system/core/libcutils/ |
H A D | properties.cpp | 27 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() 74 return property_get_int<int64_t>(key, default_value); in property_get_int64() 78 return property_get_int<int32_t>(key, default_value); in property_get_int32() 87 if (len < 1 && default_value) { in property_get() [all …]
|
/aosp14/system/core/libcutils/include/cutils/ |
H A D | properties.h | 49 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()
|
/aosp14/system/core/libcutils/include_outside_system/cutils/ |
H A D | properties.h | 49 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()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/provider/ |
H A D | DeviceConfigTest.java | 144 final boolean default_value = true; in getBoolean_empty() 152 final boolean default_value = false; in getBoolean_valid() 161 final boolean default_value = true; in getBoolean_invalid() 191 final int default_value = 999; in getInt_empty() local 199 final int default_value = 999; in getInt_valid() local 208 final int default_value = 999; in getInt_invalid() local 238 final long default_value = 123456; in getLong_empty() local 246 final long default_value = 123456; in getLong_valid() local 255 final long default_value = 123456; in getLong_invalid() local 912 final int default_value = 999; in deletePropertyInt() local [all …]
|
/aosp14/system/core/fs_mgr/liblp/ |
H A D | property_fetcher.cpp | 26 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()
|
/aosp14/system/core/toolbox/ |
H A D | getprop.cpp | 73 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()
|
/aosp14/frameworks/base/tools/aapt2/configuration/ |
H A D | ConfigurationParser.h | 118 inline int GetMinSdk(int default_value = -1) const { 120 return default_value;
|
/aosp14/frameworks/base/core/proto/android/providers/settings/ |
H A D | common.proto | 36 optional string default_value = 5; field
|
/aosp14/system/core/init/ |
H A D | reboot.cpp | 820 std::chrono::milliseconds default_value) { in GetMillisProperty() argument 821 auto value = GetUintProperty(name, static_cast<uint64_t>(default_value.count())); in GetMillisProperty()
|
H A D | property_service.cpp | 1298 const char* default_value; in ExportKernelBootProps() member 1310 std::string value = GetProperty(prop.src_prop, prop.default_value); in ExportKernelBootProps()
|
/aosp14/system/core/fs_mgr/ |
H A D | fs_mgr.cpp | 1663 std::chrono::milliseconds default_value) { in GetMillisProperty() argument 1664 auto value = GetUintProperty(name, static_cast<uint64_t>(default_value.count())); in GetMillisProperty()
|
/aosp14/frameworks/base/core/jni/ |
H A D | android_media_AudioSystem.cpp | 1509 nAudioPort->gains[j].default_value, in convertAudioPortFromNative()
|