Lines Matching refs:key
109 if (!getValue(key, &value)) { \
113 bool getFieldType(KEY key, JSONValue::FieldType *type) const { in getFieldType()
119 bool getInt32(KEY key, int32_t *out) const { in getInt32()
124 bool getFloat(KEY key, float *out) const { in getFloat()
129 bool getString(KEY key, AString *out) const { in getString()
134 bool getBoolean(KEY key, bool *out) const { in getBoolean()
139 bool getObject(KEY key, sp<JSONObject> *obj) const { in getObject()
144 bool getArray(KEY key, sp<JSONArray> *obj) const { in getArray()
154 virtual bool getValue(KEY key, JSONValue *value) const = 0;
164 void setValue(const char *key, const JSONValue &value);
166 void setInt32(const char *key, int32_t in) { in setInt32()
169 setValue(key, val); in setInt32()
172 void setFloat(const char *key, float in) { in setFloat()
175 setValue(key, val); in setFloat()
178 void setString(const char *key, AString in) { in setString()
181 setValue(key, val); in setString()
184 void setBoolean(const char *key, bool in) { in setBoolean()
187 setValue(key, val); in setBoolean()
190 void setObject(const char *key, const sp<JSONObject> &obj) { in setObject()
193 setValue(key, val); in setObject()
196 void setArray(const char *key, const sp<JSONArray> &obj) { in setArray()
199 setValue(key, val); in setArray()
205 virtual bool getValue(const char *key, JSONValue *value) const;
260 virtual bool getValue(size_t key, JSONValue *value) const;