HomeSort by relevance Sort by last modified time
    Searched refs:Json (Results 1 - 25 of 71) sorted by null

1 2 3

  /external/webrtc/webrtc/base/
json.h 18 #include "json/json.h"
20 #include "third_party/jsoncpp/json.h"
26 // JSON Helpers
30 bool GetIntFromJson(const Json::Value& in, int* out);
31 bool GetUIntFromJson(const Json::Value& in, unsigned int* out);
32 bool GetStringFromJson(const Json::Value& in, std::string* out);
33 bool GetBoolFromJson(const Json::Value& in, bool* out);
34 bool GetDoubleFromJson(const Json::Value& in, double* out);
36 // Pull values out of a JSON array
    [all...]
json.cc 11 #include "webrtc/base/json.h"
21 bool GetStringFromJson(const Json::Value& in, std::string* out) {
42 bool GetIntFromJson(const Json::Value& in, int* out) {
45 ret = in.isConvertibleTo(Json::intValue);
62 bool GetUIntFromJson(const Json::Value& in, unsigned int* out) {
65 ret = in.isConvertibleTo(Json::uintValue);
82 bool GetBoolFromJson(const Json::Value& in, bool* out) {
85 ret = in.isConvertibleTo(Json::booleanValue);
103 bool GetDoubleFromJson(const Json::Value& in, double* out) {
106 ret = in.isConvertibleTo(Json::realValue)
    [all...]
json_unittest.cc 11 #include "webrtc/base/json.h"
19 static Json::Value in_s("foo");
20 static Json::Value in_sn("99");
21 static Json::Value in_si("-99");
22 static Json::Value in_sb("true");
23 static Json::Value in_sd("1.2");
24 static Json::Value in_n(12);
25 static Json::Value in_i(-12);
26 static Json::Value in_u(34U);
27 static Json::Value in_b(true)
    [all...]
  /external/skia/tools/json/
SkJSONCanvas.cpp 24 , fRoot(Json::objectValue)
25 , fCommands(Json::arrayValue)
27 fRoot[SKJSONCANVAS_VERSION] = Json::Value(1);
32 fOut.writeText(Json::FastWriter().write(fRoot).c_str());
35 Json::Value SkJSONCanvas::makePoint(const SkPoint& point) {
36 Json::Value result(Json::arrayValue);
37 result.append(Json::Value(point.x()));
38 result.append(Json::Value(point.y()));
42 Json::Value SkJSONCanvas::makePoint(SkScalar x, SkScalar y)
    [all...]
SkJSONRenderer.cpp 23 void getPaint(Json::Value& paint, SkPaint* result);
25 void getRect(Json::Value& rect, SkRect* result);
27 void getRRect(Json::Value& rrect, SkRRect* result);
29 void getPath(Json::Value& path, SkPath* result);
31 void getMatrix(Json::Value& matrix, SkMatrix* result);
33 SkRegion::Op getRegionOp(Json::Value& op);
35 void processCommand(Json::Value& command, SkCanvas* target);
37 void processTranslate(Json::Value& command, SkCanvas* target);
39 void processScale(Json::Value& command, SkCanvas* target);
41 void processMatrix(Json::Value& command, SkCanvas* target)
    [all...]
SkJSONCanvas.h 164 * Implementation of SkCanvas which writes JSON when drawn to. The JSON describes all of the draw
173 /* Complete the JSON document. */
176 static Json::Value MakeMatrix(const SkMatrix& matrix);
178 static Json::Value MakeIRect(const SkIRect& irect);
261 // Helpers to turn values into JSON, these could probably be static
262 Json::Value makePoint(const SkPoint& point);
264 Json::Value makePoint(SkScalar x, SkScalar y);
266 Json::Value makeRect(const SkRect& rect);
268 Json::Value makeRRect(const SkRRect& rrect)
    [all...]
  /external/jsoncpp/src/test_lib_json/
main.cpp 7 #include <json/config.h>
8 #include <json/json.h>
13 #define kint32max Json::Value::maxInt
14 #define kint32min Json::Value::minInt
15 #define kuint32max Json::Value::maxUInt
16 #define kint64max Json::Value::maxInt64
17 #define kint64min Json::Value::minInt64
18 #define kuint64max Json::Value::maxUInt64
27 // Json Library test case
    [all...]
  /external/skia/gm/
gm_expectations.h 24 Json::Value CreateJsonTree(Json::Value expectedResults,
25 Json::Value actualResultsFailed,
26 Json::Value actualResultsFailureIgnored,
27 Json::Value actualResultsNoComparison,
28 Json::Value actualResultsSucceeded);
44 * checksum within JSON expectations file, in the form
47 explicit GmResultDigest(const Json::Value &jsonTypeValuePair);
62 * Returns a JSON type/value pair representing this result,
65 Json::Value asJsonTypeValuePair() const
    [all...]
  /external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/particles/values/
NumericValue.java 3 import com.badlogic.gdx.utils.Json;
25 public void write (Json json) {
26 super.write(json);
27 json.writeValue("value", value);
31 public void read (Json json, JsonValue jsonData) {
32 super.read(json, jsonData);
33 value = json.readValue("value", float.class, jsonData);
ParticleValue.java 3 import com.badlogic.gdx.utils.Json;
10 public class ParticleValue implements Json.Serializable {
32 public void write (Json json) {
33 json.writeValue("active", active);
37 public void read (Json json, JsonValue jsonData) {
38 active = json.readValue("active", Boolean.class, jsonData);
SpawnShapeValue.java 6 import com.badlogic.gdx.utils.Json;
11 public abstract class SpawnShapeValue extends ParticleValue implements ResourceData.Configurable, Json.Serializable{
50 public void write (Json json) {
51 super.write(json);
52 json.writeValue("xOffsetValue", xOffsetValue);
53 json.writeValue("yOffsetValue", yOffsetValue);
54 json.writeValue("zOffsetValue", zOffsetValue);
58 public void read (Json json, JsonValue jsonData)
    [all...]
RangedNumericValue.java 4 import com.badlogic.gdx.utils.Json;
49 public void write (Json json) {
50 super.write(json);
51 json.writeValue("lowMin", lowMin);
52 json.writeValue("lowMax", lowMax);
56 public void read (Json json, JsonValue jsonData) {
57 super.read(json, jsonData);
58 lowMin = json.readValue("lowMin", float.class, jsonData)
    [all...]
  /external/skia/tools/skiaserve/urlhandlers/
BreakHandler.cpp 63 Json::Value response(Json::objectValue);
64 Json::Value startColor(Json::arrayValue);
65 startColor.append(Json::Value(SkColorGetR(target)));
66 startColor.append(Json::Value(SkColorGetG(target)));
67 startColor.append(Json::Value(SkColorGetB(target)));
68 startColor.append(Json::Value(SkColorGetA(target)));
71 response["endOp"] = Json::Value(n);
83 Json::Value endColor(Json::arrayValue)
    [all...]
InfoHandler.cpp 48 // make some json
51 Json::Value info(Json::objectValue);
55 std::string json = Json::FastWriter().write(info); local
58 SkAutoTUnref<SkData> data(SkData::NewWithCopy(json.c_str(), strlen(json.c_str())));
59 return SendData(connection, data, "application/json");
  /external/jsoncpp/include/json/
features.h 13 namespace Json {
24 * - Root object can be any JSON value
29 /** \brief A configuration that is strictly compatible with the JSON
55 } // namespace Json
forwards.h 13 namespace Json {
41 } // namespace Json
  /external/skia/tools/debugger/
SkDrawCommand.cpp 164 typedef SkDrawCommand* (*FROM_JSON)(Json::Value&, UrlDataManager&);
223 Json::Value SkDrawCommand::toJSON(UrlDataManager& urlDataManager) const {
224 Json::Value result;
226 result[SKDEBUGCANVAS_ATTRIBUTE_VISIBLE] = Json::Value(this->isVisible());
230 Json::Value SkDrawCommand::drawToAndCollectJSON(SkCanvas* canvas,
232 Json::Value result = this->toJSON(urlDataManager);
246 // a Json::Value and is only compiled in this file
247 Json::Value parsedFromString;
248 Json::Reader reader;
263 SkDrawCommand* SkDrawCommand::fromJSON(Json::Value& command, UrlDataManager& urlDataManager)
    [all...]
SkDrawCommand.h 103 virtual Json::Value toJSON(UrlDataManager& urlDataManager) const;
105 Json::Value drawToAndCollectJSON(SkCanvas*, UrlDataManager& urlDataManager) const;
107 /* Converts a JSON representation of a command into a newly-allocated SkDrawCommand object. It
111 static SkDrawCommand* fromJSON(Json::Value& command, UrlDataManager& urlDataManager);
128 static SkRestoreCommand* fromJSON(Json::Value& command, UrlDataManager& urlDataManager);
138 Json::Value toJSON(UrlDataManager& urlDataManager) const override;
139 static SkClearCommand* fromJSON(Json::Value& command, UrlDataManager& urlDataManager);
152 Json::Value toJSON(UrlDataManager& urlDataManager) const override;
153 static SkClipPathCommand* fromJSON(Json::Value& command, UrlDataManager& urlDataManager);
167 Json::Value toJSON(UrlDataManager& urlDataManager) const override
    [all...]
  /external/skia/bench/
ResultsWriter.h 98 fResults[id.c_str()] = Json::Value(Json::objectValue);
126 stream.writeText(Json::StyledWriter().write(fRoot).c_str());
132 Json::Value fRoot;
133 Json::Value& fResults;
134 Json::Value* fBench;
135 Json::Value* fConfig;
  /external/jsoncpp/src/jsontestrunner/
main.cpp 6 /* This executable is used for testing parser/writer using real JSON files.
9 #include <json/json.h>
63 printValueTree(FILE* fout, Json::Value& value, const std::string& path = ".") {
64 if (value.hasComment(Json::commentBefore)) {
65 fprintf(fout, "%s\n", value.getComment(Json::commentBefore).c_str());
68 case Json::nullValue:
71 case Json::intValue:
75 Json::valueToString(value.asLargestInt()).c_str());
77 case Json::uintValue
    [all...]
  /external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/particles/
ParticleControllerComponent.java 9 import com.badlogic.gdx.utils.Json;
17 public abstract class ParticleControllerComponent implements Disposable, Json.Serializable, ResourceData.Configurable {
53 public void write (Json json) {}
55 public void read (Json json, JsonValue jsonData) {}
ResourceData.java 8 import com.badlogic.gdx.utils.Json;
26 public class ResourceData<T> implements Json.Serializable{
38 public static class SaveData implements Json.Serializable{
81 public void write (Json json) {
82 json.writeValue("data", data, ObjectMap.class);
83 json.writeValue("indices", assets.toArray(), int[].class);
87 public void read (Json json, JsonValue jsonData) {
88 data = json.readValue("data", ObjectMap.class, jsonData)
    [all...]
  /external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/particles/emitters/
Emitter.java 4 import com.badlogic.gdx.utils.Json;
12 public abstract class Emitter extends ParticleControllerComponent implements Json.Serializable{
67 public void write (Json json) {
68 json.writeValue("minParticleCount", minParticleCount);
69 json.writeValue("maxParticleCount", maxParticleCount);
73 public void read (Json json, JsonValue jsonData) {
74 minParticleCount = json.readValue("minParticleCount", int.class, jsonData);
75 maxParticleCount = json.readValue("maxParticleCount", int.class, jsonData)
    [all...]
  /external/skia/dm/
DMJsonWriter.cpp 42 Json::Value root;
54 Json::Value result;
74 Json::Value result;
89 SkString path = SkOSPath::Join(FLAGS_writePath[0], "dm.json");
92 stream.writeText(Json::StyledWriter().write(root).c_str());
97 SkAutoTUnref<SkData> json(SkData::NewFromFileName(path));
98 if (!json) {
102 Json::Reader reader;
103 Json::Value root;
104 const char* data = (const char*)json->data()
    [all...]
  /external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/particles/influencers/
SpawnInfluencer.java 9 import com.badlogic.gdx.utils.Json;
63 public void write (Json json) {
64 json.writeValue("spawnShape", spawnShapeValue, SpawnShapeValue.class);
68 public void read (Json json, JsonValue jsonData) {
69 spawnShapeValue = json.readValue("spawnShape", SpawnShapeValue.class, jsonData);

Completed in 629 milliseconds

1 2 3