Lines Matching refs:value
392 bool JSONValue::getInt32(int32_t *value) const { in getInt32()
397 *value = mValue.mInt32; in getInt32()
401 bool JSONValue::getFloat(float *value) const { in getFloat()
405 *value = mValue.mInt32; in getFloat()
411 *value = mValue.mFloat; in getFloat()
422 bool JSONValue::getString(AString *value) const { in getString()
427 *value = *mValue.mString; in getString()
431 bool JSONValue::getBoolean(bool *value) const { in getBoolean()
436 *value = mValue.mBoolean; in getBoolean()
440 bool JSONValue::getObject(sp<JSONObject> *value) const { in getObject()
445 *value = static_cast<JSONObject *>(mValue.mObjectOrArray); in getObject()
449 bool JSONValue::getArray(sp<JSONArray> *value) const { in getArray()
454 *value = static_cast<JSONArray *>(mValue.mObjectOrArray); in getArray()
458 void JSONValue::setInt32(int32_t value) { in setInt32() argument
461 mValue.mInt32 = value; in setInt32()
465 void JSONValue::setFloat(float value) { in setFloat() argument
468 mValue.mFloat = value; in setFloat()
472 void JSONValue::setString(const AString &value) { in setString() argument
475 mValue.mString = new AString(value); in setString()
479 void JSONValue::setBoolean(bool value) { in setBoolean() argument
482 mValue.mBoolean = value; in setBoolean()
627 JSONValue value; in Parse() local
628 ssize_t result = JSONValue::Parse(data, size, &value); in Parse()
635 if (value.getObject(&obj)) { in Parse()
640 if (value.getArray(&array)) { in Parse()
667 bool JSONObject::getValue(const char *key, JSONValue *value) const { in getValue()
673 *value = mValues.valueAt(index); in getValue()
678 void JSONObject::setValue(const char *key, const JSONValue &value) { in setValue() argument
679 mValues.add(AString(key), value); in setValue()
720 bool JSONArray::getValue(size_t key, JSONValue *value) const { in getValue()
725 *value = mValues.itemAt(key); in getValue()
730 void JSONArray::addValue(const JSONValue &value) { in addValue() argument
731 mValues.push_back(value); in addValue()