Lines Matching defs:key
50 void PropertyMap::addProperty(const String8& key, const String8& value) {
51 mProperties.add(key, value);
54 bool PropertyMap::hasProperty(const String8& key) const {
55 return mProperties.indexOfKey(key) >= 0;
58 bool PropertyMap::tryGetProperty(const String8& key, String8& outValue) const {
59 ssize_t index = mProperties.indexOfKey(key);
68 bool PropertyMap::tryGetProperty(const String8& key, bool& outValue) const {
70 if (!tryGetProperty(key, intValue)) {
78 bool PropertyMap::tryGetProperty(const String8& key, int32_t& outValue) const {
80 if (! tryGetProperty(key, stringValue) || stringValue.length() == 0) {
87 ALOGW("Property key '%s' has invalid value '%s'. Expected an integer.",
88 key.string(), stringValue.string());
95 bool PropertyMap::tryGetProperty(const String8& key, float& outValue) const {
97 if (! tryGetProperty(key, stringValue) || stringValue.length() == 0) {
104 ALOGW("Property key '%s' has invalid value '%s'. Expected a float.",
105 key.string(), stringValue.string());
175 ALOGE("%s: Expected non-empty property key.", mTokenizer->getLocation().string());
182 ALOGE("%s: Expected '=' between property key and value.",
205 ALOGE("%s: Duplicate property value for key '%s'.",