Searched refs:defaultValue (Results 1 – 9 of 9) sorted by relevance
/system/libvintf/ |
D | PropertyFetcher.cpp | 28 const std::string& defaultValue) const { in getProperty() 29 return defaultValue; in getProperty() 33 uint64_t defaultValue) const { in getUintProperty() 34 return defaultValue; in getUintProperty() 37 bool PropertyFetcherNoOp::getBoolProperty(const std::string&, bool defaultValue) const { in getBoolProperty() 38 return defaultValue; in getBoolProperty() 42 const std::string& defaultValue) const { in getProperty() 43 return android::base::GetProperty(key, defaultValue); in getProperty() 46 uint64_t PropertyFetcherImpl::getUintProperty(const std::string& key, uint64_t defaultValue, in getUintProperty() argument 48 return android::base::GetUintProperty(key, defaultValue, max); in getUintProperty() [all …]
|
D | utils.h | 69 const std::string& defaultValue = "") const; 70 virtual uint64_t getUintProperty(const std::string& key, uint64_t defaultValue, 72 virtual bool getBoolProperty(const std::string& key, bool defaultValue) const; 78 const std::string& defaultValue = "") const override; 79 virtual uint64_t getUintProperty(const std::string& key, uint64_t defaultValue, 81 virtual bool getBoolProperty(const std::string& key, bool defaultValue) const override;
|
D | check_vintf.cpp | 73 const std::string& defaultValue) const override { in getProperty() 76 std::cerr << "Debug: Sysprop " << key << " is missing, default to '" << defaultValue in getProperty() 78 return defaultValue; in getProperty() 83 uint64_t getUintProperty(const std::string& key, uint64_t defaultValue, in getUintProperty() argument 88 return defaultValue; in getUintProperty() 90 bool getBoolProperty(const std::string& key, bool defaultValue) const override { in getBoolProperty() 97 return defaultValue; in getBoolProperty()
|
D | parse_xml.cpp | 247 inline bool parseOptionalAttr(NodeType* root, const std::string& attrName, T&& defaultValue, in parseOptionalAttr() 253 *attr = std::move(defaultValue); in parseOptionalAttr() 293 std::string&& defaultValue, std::string* s, in parseOptionalTextElement() 296 *s = child == nullptr ? std::move(defaultValue) : getText(child); in parseOptionalTextElement() 324 T&& defaultValue, T* t, std::string* error) const { in parseOptionalChild() 327 *t = std::move(defaultValue); in parseOptionalChild()
|
D | AssembleVintf.cpp | 150 size_t getIntegerFlag(const std::string& key, size_t defaultValue = 0) const { in getIntegerFlag() argument 153 return defaultValue; in getIntegerFlag() 158 return defaultValue; in getIntegerFlag()
|
/system/libvintf/include/vintf/ |
D | PropertyFetcher.h | 26 const std::string& defaultValue = "") const = 0; 27 virtual uint64_t getUintProperty(const std::string& key, uint64_t defaultValue, 29 virtual bool getBoolProperty(const std::string& key, bool defaultValue) const = 0;
|
/system/extras/boottime_tools/bootanalyze/stressfs/src/com/android/car/test/stressfs/ |
D | WritingService.java | 169 private int getQueryParam(Uri data, String key, int defaultValue) { in getQueryParam() argument 171 return defaultValue; in getQueryParam() 181 return defaultValue; in getQueryParam() 184 return defaultValue; in getQueryParam()
|
/system/core/libcutils/ |
D | properties_test.cpp | 84 … int SetAndGetProperty(const char* value, const char* defaultValue = PROPERTY_TEST_VALUE_DEFAULT) { in SetAndGetProperty() argument 86 return property_get(PROPERTY_TEST_KEY, mValue, defaultValue); in SetAndGetProperty()
|
/system/tools/aidl/ |
D | generate_java_binder.cpp | 928 const string& defaultValue = DefaultJavaValueOf(method.GetType()); in generate_default_impl_method() local 930 new LiteralStatement(StringPrintf("return %s;\n", defaultValue.c_str()))); in generate_default_impl_method()
|