123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- #include "utils.h"
- #include <android-base/logging.h>
- #include <android-base/properties.h>
- namespace android {
- namespace vintf {
- namespace details {
- std::string PropertyFetcherNoOp::getProperty(const std::string&,
- const std::string& defaultValue) const {
- return defaultValue;
- }
- uint64_t PropertyFetcherNoOp::getUintProperty(const std::string&, uint64_t,
- uint64_t defaultValue) const {
- return defaultValue;
- }
- bool PropertyFetcherNoOp::getBoolProperty(const std::string&, bool defaultValue) const {
- return defaultValue;
- }
- std::string PropertyFetcherImpl::getProperty(const std::string& key,
- const std::string& defaultValue) const {
- return android::base::GetProperty(key, defaultValue);
- }
- uint64_t PropertyFetcherImpl::getUintProperty(const std::string& key, uint64_t defaultValue,
- uint64_t max) const {
- return android::base::GetUintProperty(key, defaultValue, max);
- }
- bool PropertyFetcherImpl::getBoolProperty(const std::string& key, bool defaultValue) const {
- return android::base::GetBoolProperty(key, defaultValue);
- }
- }
- }
- }
|