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