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

1 2 3 4 5 6

  /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/experimental/skottie/
SkottieAnimator.h 15 namespace Json { class Value; }
22 bool BindProperty(const Json::Value&,
SkottieParser.h 11 namespace Json { class Value; }
16 bool Parse(const Json::Value&, T*);
19 static inline T ParseDefault(const Json::Value& jv, const T& defaultValue) {
SkottieParser.cpp 21 bool Parse<SkScalar>(const Json::Value& jv, SkScalar* v) {
27 if (jv.isNull() || !jv.isConvertibleTo(Json::realValue))
36 bool Parse<bool>(const Json::Value& jv, bool* v) {
37 if (jv.isNull() || !jv.isConvertibleTo(Json::booleanValue))
46 bool Parse<int>(const Json::Value& jv, int* v) {
47 if (jv.isNull() || !jv.isConvertibleTo(Json::intValue))
56 bool Parse<SkString>(const Json::Value& jv, SkString* v) {
57 if (jv.isNull() || !jv.isConvertibleTo(Json::stringValue))
66 bool Parse<SkPoint>(const Json::Value& jv, SkPoint* v) {
79 bool Parse<std::vector<float>>(const Json::Value& jv, std::vector<float>* v)
    [all...]
  /external/skqp/experimental/skottie/
SkottieAnimator.h 15 namespace Json { class Value; }
22 bool BindProperty(const Json::Value&,
SkottieParser.h 11 namespace Json { class Value; }
16 bool Parse(const Json::Value&, T*);
19 static inline T ParseDefault(const Json::Value& jv, const T& defaultValue) {
SkottieParser.cpp 21 bool Parse<SkScalar>(const Json::Value& jv, SkScalar* v) {
27 if (jv.isNull() || !jv.isConvertibleTo(Json::realValue))
36 bool Parse<bool>(const Json::Value& jv, bool* v) {
37 if (jv.isNull() || !jv.isConvertibleTo(Json::booleanValue))
46 bool Parse<int>(const Json::Value& jv, int* v) {
47 if (jv.isNull() || !jv.isConvertibleTo(Json::intValue))
56 bool Parse<SkString>(const Json::Value& jv, SkString* v) {
57 if (jv.isNull() || !jv.isConvertibleTo(Json::stringValue))
66 bool Parse<SkPoint>(const Json::Value& jv, SkPoint* v) {
79 bool Parse<std::vector<float>>(const Json::Value& jv, std::vector<float>* v)
    [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/skqp/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/skia/tools/skiaserve/urlhandlers/
BreakHandler.cpp 50 Json::Value response(Json::objectValue);
51 Json::Value startColor(Json::arrayValue);
52 startColor.append(Json::Value(SkColorGetR(target)));
53 startColor.append(Json::Value(SkColorGetG(target)));
54 startColor.append(Json::Value(SkColorGetB(target)));
55 startColor.append(Json::Value(SkColorGetA(target)));
58 response["endOp"] = Json::Value(n);
70 Json::Value endColor(Json::arrayValue)
    [all...]
  /external/skqp/tools/skiaserve/urlhandlers/
BreakHandler.cpp 50 Json::Value response(Json::objectValue);
51 Json::Value startColor(Json::arrayValue);
52 startColor.append(Json::Value(SkColorGetR(target)));
53 startColor.append(Json::Value(SkColorGetG(target)));
54 startColor.append(Json::Value(SkColorGetB(target)));
55 startColor.append(Json::Value(SkColorGetA(target)));
58 response["endOp"] = Json::Value(n);
70 Json::Value endColor(Json::arrayValue)
    [all...]
  /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
  /external/skia/bench/
ResultsWriter.h 102 fResults[id.c_str()] = Json::Value(Json::objectValue);
122 Json::Value value = Json::Value(Json::arrayValue);
140 stream.writeText(Json::StyledWriter().write(fRoot).c_str());
146 Json::Value fRoot;
147 Json::Value& fResults;
148 Json::Value* fBench;
149 Json::Value* fConfig
    [all...]
  /external/skqp/bench/
ResultsWriter.h 102 fResults[id.c_str()] = Json::Value(Json::objectValue);
122 Json::Value value = Json::Value(Json::arrayValue);
140 stream.writeText(Json::StyledWriter().write(fRoot).c_str());
146 Json::Value fRoot;
147 Json::Value& fResults;
148 Json::Value* fBench;
149 Json::Value* fConfig
    [all...]
  /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/skia/tools/debugger/
SkDrawCommand.cpp 196 typedef SkDrawCommand* (*FROM_JSON)(Json::Value&, UrlDataManager&);
263 Json::Value SkDrawCommand::toJSON(UrlDataManager& urlDataManager) const {
264 Json::Value result;
266 result[SKDEBUGCANVAS_ATTRIBUTE_VISIBLE] = Json::Value(this->isVisible());
272 SkDrawCommand* SkDrawCommand::fromJSON(Json::Value& command, UrlDataManager& urlDataManager) {
311 SkDebugf("no JSON factory for '%s'\n", name.c_str());
476 void apply_paint_blend_mode(const SkPaint& paint, Json::Value* target) {
481 Json::Value(gBlendModeMap[static_cast<size_t>(mode)]);
485 void extract_json_paint_blend_mode(Json::Value& jsonPaint, SkPaint* target) {
500 Json::Value SkDrawCommand::MakeJsonColor(const SkColor color)
    [all...]
SkJsonWriteBuffer.cpp 13 void SkJsonWriteBuffer::append(const char* type, const Json::Value& value) {
19 Json::Value jsonArray(Json::arrayValue);
29 Json::Value jsonArray(Json::arrayValue);
47 Json::Value jsonArray(Json::arrayValue);
59 Json::Value jsonArray(Json::arrayValue);
80 this->append("flattenable", Json::Value())
    [all...]
SkDrawCommand.h 114 virtual Json::Value toJSON(UrlDataManager& urlDataManager) const;
116 /* Converts a JSON representation of a command into a newly-allocated SkDrawCommand object. It
120 static SkDrawCommand* fromJSON(Json::Value& command, UrlDataManager& urlDataManager);
124 // Helper methods for converting things to JSON
125 static Json::Value MakeJsonColor(const SkColor color);
126 static Json::Value MakeJsonColor4f(const SkColor4f& color);
127 static Json::Value MakeJsonPoint(const SkPoint& point);
128 static Json::Value MakeJsonPoint(SkScalar x, SkScalar y);
129 static Json::Value MakeJsonRect(const SkRect& rect);
130 static Json::Value MakeJsonIRect(const SkIRect&)
    [all...]
  /external/skqp/tools/debugger/
SkDrawCommand.cpp 196 typedef SkDrawCommand* (*FROM_JSON)(Json::Value&, UrlDataManager&);
263 Json::Value SkDrawCommand::toJSON(UrlDataManager& urlDataManager) const {
264 Json::Value result;
266 result[SKDEBUGCANVAS_ATTRIBUTE_VISIBLE] = Json::Value(this->isVisible());
272 SkDrawCommand* SkDrawCommand::fromJSON(Json::Value& command, UrlDataManager& urlDataManager) {
311 SkDebugf("no JSON factory for '%s'\n", name.c_str());
476 void apply_paint_blend_mode(const SkPaint& paint, Json::Value* target) {
481 Json::Value(gBlendModeMap[static_cast<size_t>(mode)]);
485 void extract_json_paint_blend_mode(Json::Value& jsonPaint, SkPaint* target) {
500 Json::Value SkDrawCommand::MakeJsonColor(const SkColor color)
    [all...]
SkJsonWriteBuffer.cpp 13 void SkJsonWriteBuffer::append(const char* type, const Json::Value& value) {
19 Json::Value jsonArray(Json::arrayValue);
29 Json::Value jsonArray(Json::arrayValue);
47 Json::Value jsonArray(Json::arrayValue);
59 Json::Value jsonArray(Json::arrayValue);
80 this->append("flattenable", Json::Value())
    [all...]
SkDrawCommand.h 114 virtual Json::Value toJSON(UrlDataManager& urlDataManager) const;
116 /* Converts a JSON representation of a command into a newly-allocated SkDrawCommand object. It
120 static SkDrawCommand* fromJSON(Json::Value& command, UrlDataManager& urlDataManager);
124 // Helper methods for converting things to JSON
125 static Json::Value MakeJsonColor(const SkColor color);
126 static Json::Value MakeJsonColor4f(const SkColor4f& color);
127 static Json::Value MakeJsonPoint(const SkPoint& point);
128 static Json::Value MakeJsonPoint(SkScalar x, SkScalar y);
129 static Json::Value MakeJsonRect(const SkRect& rect);
130 static Json::Value MakeJsonIRect(const SkIRect&)
    [all...]
  /external/tensorflow/tensorflow/core/profiler/internal/
tfprof_timeline.cc 42 Json::Value ChromeTraceFormatter::CreateEvent(const string& ph,
46 Json::Value event(Json::objectValue);
47 event["ph"] = Json::Value(ph);
48 event["cat"] = Json::Value(category);
49 event["name"] = Json::Value(name);
50 event["pid"] = Json::Value(pid);
51 event["tid"] = Json::Value(tid);
52 event["ts"] = Json::Value(ts);
57 Json::Value event(Json::objectValue)
    [all...]

Completed in 1414 milliseconds

1 2 3 4 5 6