Home
last modified time | relevance | path

Searched refs:Json (Results 1 – 25 of 55) sorted by relevance

123

/external/jsoncpp/src/test_lib_json/
Dmain.cpp13 #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
32 static inline double uint64ToDouble(Json::UInt64 value) { in uint64ToDouble()
36 static inline double uint64ToDouble(Json::UInt64 value) { in uint64ToDouble()
37 return static_cast<double>(Json::Int64(value / 2)) * 2.0 + in uint64ToDouble()
38 Json::Int64(value & 1); in uint64ToDouble()
[all …]
Djsontest.cpp205 TestResult& TestResult::operator<<(Json::Int64 value) { in operator <<()
206 return addToLastFailure(Json::valueToString(value)); in operator <<()
209 TestResult& TestResult::operator<<(Json::UInt64 value) { in operator <<()
210 return addToLastFailure(Json::valueToString(value)); in operator <<()
/external/webrtc/webrtc/base/
Djson.h30 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);
37 bool GetValueFromJsonArray(const Json::Value& in, size_t n,
38 Json::Value* out);
39 bool GetIntFromJsonArray(const Json::Value& in, size_t n,
41 bool GetUIntFromJsonArray(const Json::Value& in, size_t n,
43 bool GetStringFromJsonArray(const Json::Value& in, size_t n,
[all …]
Djson.cc21 bool GetStringFromJson(const Json::Value& in, std::string* out) { in GetStringFromJson()
42 bool GetIntFromJson(const Json::Value& in, int* out) { in GetIntFromJson()
45 ret = in.isConvertibleTo(Json::intValue); in GetIntFromJson()
62 bool GetUIntFromJson(const Json::Value& in, unsigned int* out) { in GetUIntFromJson()
65 ret = in.isConvertibleTo(Json::uintValue); in GetUIntFromJson()
82 bool GetBoolFromJson(const Json::Value& in, bool* out) { in GetBoolFromJson()
85 ret = in.isConvertibleTo(Json::booleanValue); in GetBoolFromJson()
103 bool GetDoubleFromJson(const Json::Value& in, double* out) { in GetDoubleFromJson()
106 ret = in.isConvertibleTo(Json::realValue); in GetDoubleFromJson()
124 bool JsonArrayToVector(const Json::Value& value, in JsonArrayToVector()
[all …]
Djson_unittest.cc19 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);
28 static Json::Value in_d(1.2);
[all …]
/external/skia/tools/debugger/
DSkDrawCommand.cpp195 typedef SkDrawCommand* (*FROM_JSON)(Json::Value&, UrlDataManager&);
262 Json::Value SkDrawCommand::toJSON(UrlDataManager& urlDataManager) const { in toJSON()
263 Json::Value result; in toJSON()
265 result[SKDEBUGCANVAS_ATTRIBUTE_VISIBLE] = Json::Value(this->isVisible()); in toJSON()
271 SkDrawCommand* SkDrawCommand::fromJSON(Json::Value& command, UrlDataManager& urlDataManager) { in fromJSON()
475 void apply_paint_blend_mode(const SkPaint& paint, Json::Value* target) { in apply_paint_blend_mode()
480 Json::Value(gBlendModeMap[static_cast<size_t>(mode)]); in apply_paint_blend_mode()
484 void extract_json_paint_blend_mode(Json::Value& jsonPaint, SkPaint* target) { in extract_json_paint_blend_mode()
499 Json::Value SkDrawCommand::MakeJsonColor(const SkColor color) { in MakeJsonColor()
500 Json::Value result(Json::arrayValue); in MakeJsonColor()
[all …]
DSkDrawCommand.h114 virtual Json::Value toJSON(UrlDataManager& urlDataManager) const;
120 static SkDrawCommand* fromJSON(Json::Value& command, UrlDataManager& urlDataManager);
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&);
131 static Json::Value MakeJsonMatrix(const SkMatrix&);
132 static Json::Value MakeJsonScalar(SkScalar);
[all …]
DSkJsonWriteBuffer.cpp13 void SkJsonWriteBuffer::append(const char* type, const Json::Value& value) { in append()
19 Json::Value jsonArray(Json::arrayValue); in writeByteArray()
37 Json::Value jsonArray(Json::arrayValue); in writeScalarArray()
49 Json::Value jsonArray(Json::arrayValue); in writeIntArray()
70 this->append("flattenable", Json::Value()); in writeFlattenable()
79 Json::Value jsonArray(Json::arrayValue); in writeColorArray()
91 Json::Value jsonArray(Json::arrayValue); in writeColor4fArray()
103 Json::Value jsonArray(Json::arrayValue); in writePointArray()
132 SkASSERT(length < Json::Value::maxUInt); in writeStream()
133 this->append("stream", static_cast<Json::UInt>(length)); in writeStream()
[all …]
DSkJsonWriteBuffer.h22 , fJson(Json::objectValue) {} in SkJsonWriteBuffer()
53 const Json::Value& getValue() const { return fJson; } in getValue()
56 void append(const char* type, const Json::Value& value);
59 Json::Value fJson;
DSkDebugCanvas.cpp401 Json::Value SkDebugCanvas::toJSON(UrlDataManager& urlDataManager, int n, SkCanvas* canvas) { in toJSON()
408 Json::Value result = Json::Value(Json::objectValue); in toJSON()
409 result[SKDEBUGCANVAS_ATTRIBUTE_VERSION] = Json::Value(SKDEBUGCANVAS_VERSION); in toJSON()
410 Json::Value commands = Json::Value(Json::arrayValue); in toJSON()
417 Json::Value parsedFromString; in toJSON()
418 Json::Reader reader; in toJSON()
430 Json::Value SkDebugCanvas::toJSONOpList(int n, SkCanvas* canvas) { in toJSONOpList()
433 Json::Value parsedFromString; in toJSONOpList()
438 Json::Reader reader; in toJSONOpList()
/external/skia/tools/skiaserve/urlhandlers/
DBreakHandler.cpp50 Json::Value response(Json::objectValue); in handle()
51 Json::Value startColor(Json::arrayValue); in handle()
52 startColor.append(Json::Value(SkColorGetR(target))); in handle()
53 startColor.append(Json::Value(SkColorGetG(target))); in handle()
54 startColor.append(Json::Value(SkColorGetB(target))); in handle()
55 startColor.append(Json::Value(SkColorGetA(target))); in handle()
58 response["endOp"] = Json::Value(n); in handle()
70 Json::Value endColor(Json::arrayValue); in handle()
71 endColor.append(Json::Value(SkColorGetR(current))); in handle()
72 endColor.append(Json::Value(SkColorGetG(current))); in handle()
[all …]
/external/jsoncpp/src/jsontestrunner/
Dmain.cpp63 printValueTree(FILE* fout, Json::Value& value, const std::string& path = ".") { in printValueTree()
64 if (value.hasComment(Json::commentBefore)) { in printValueTree()
65 fprintf(fout, "%s\n", value.getComment(Json::commentBefore).c_str()); in printValueTree()
68 case Json::nullValue: in printValueTree()
71 case Json::intValue: in printValueTree()
75 Json::valueToString(value.asLargestInt()).c_str()); in printValueTree()
77 case Json::uintValue: in printValueTree()
81 Json::valueToString(value.asLargestUInt()).c_str()); in printValueTree()
83 case Json::realValue: in printValueTree()
89 case Json::stringValue: in printValueTree()
[all …]
/external/skia/gm/
Dgm_expectations.h24 Json::Value CreateJsonTree(Json::Value expectedResults,
25 Json::Value actualResultsFailed,
26 Json::Value actualResultsFailureIgnored,
27 Json::Value actualResultsNoComparison,
28 Json::Value actualResultsSucceeded);
47 explicit GmResultDigest(const Json::Value &jsonTypeValuePair);
65 Json::Value asJsonTypeValuePair() const;
121 explicit Expectations(Json::Value jsonElement);
158 Json::Value asJsonValue() const;
221 static bool Parse(const char *jsonPath, Json::Value *jsonRoot);
[all …]
/external/skia/bench/
DResultsWriter.h102 fResults[id.c_str()] = Json::Value(Json::objectValue); in bench()
122 Json::Value value = Json::Value(Json::arrayValue); in metrics()
140 stream.writeText(Json::StyledWriter().write(fRoot).c_str()); in flush()
146 Json::Value fRoot;
147 Json::Value& fResults;
148 Json::Value* fBench;
149 Json::Value* fConfig;
/external/jsoncpp/
DNEWS.txt35 - Patch #10: BOOST_FOREACH compatibility. Made Json::iterator more
62 - Patch #16: Missing field copy in Json::Value::iterator causing infinite
94 Types Json::Int64 and Json::UInt64 have been added. They are aliased
98 Types Json::LargestInt and Json::LargestUInt have been added. They are
100 either Json::Int/Json::UInt or Json::Int64/Json::UInt64 respectively.
102 Json::Value::asInt() and Json::Value::asUInt() still returns plain
106 Json::Value::asInt64() and Json::Value::asUInt64() have been added
109 Json::Value::asLargestInt() and Json::Value::asLargestUInt() returns
117 Warning: Json::Value::asInt() and Json::Value::asUInt() now returns
125 - The type Json::ArrayIndex is used for indexes of a JSON value array. It
[all …]
/external/skia/dm/
DDMJsonWriter.cpp43 Json::Value root; in DumpJson()
55 Json::Value result; in DumpJson()
76 Json::Value result; in DumpJson()
94 stream.writeText(Json::StyledWriter().write(root).c_str()); in DumpJson()
104 Json::Reader reader; in ReadJson()
105 Json::Value root; in ReadJson()
111 const Json::Value& results = root["results"]; in ReadJson()
114 const Json::Value& r = results[i]; in ReadJson()
/external/skia/tools/skiaserve/
DRequest.cpp268 Json::Value root = fDebugCanvas->toJSON(fUrlDataManager, n, canvas); in getJsonOps()
269 root["mode"] = Json::Value(fGPUEnabled ? "gpu" : "cpu"); in getJsonOps()
270 root["drawGpuOpBounds"] = Json::Value(fDebugCanvas->getDrawGpuOpBounds()); in getJsonOps()
271 root["colorMode"] = Json::Value(fColorMode); in getJsonOps()
273 stream.writeText(Json::FastWriter().write(root).c_str()); in getJsonOps()
282 Json::Value result = fDebugCanvas->toJSONOpList(n, canvas); in getJsonOpList()
285 stream.writeText(Json::FastWriter().write(result).c_str()); in getJsonOpList()
301 Json::Value info(Json::objectValue); in getJsonInfo()
305 std::string json = Json::FastWriter().write(info); in getJsonInfo()
/external/protobuf/conformance/third_party/jsoncpp/
Djson.h227 namespace Json {
276 namespace Json {
327 namespace Json {
419 namespace Json {
553 typedef Json::UInt UInt;
554 typedef Json::Int Int;
556 typedef Json::UInt64 UInt64;
557 typedef Json::Int64 Int64;
559 typedef Json::LargestInt LargestInt;
560 typedef Json::LargestUInt LargestUInt;
[all …]
/external/skia/tools/viewer/
DViewer.cpp452 fAllSlideNames = Json::Value(Json::arrayValue); in initSlides()
1260 Json::Value slideState(Json::objectValue); in updateUIState()
1265 fAllSlideNames.append(Json::Value(slide->getName().c_str())); in updateUIState()
1271 Json::Value backendState(Json::objectValue); in updateUIState()
1274 backendState[kOptions] = Json::Value(Json::arrayValue); in updateUIState()
1276 backendState[kOptions].append(Json::Value(str)); in updateUIState()
1280 Json::Value msaaState(Json::objectValue); in updateUIState()
1283 msaaState[kOptions] = Json::Value(Json::arrayValue); in updateUIState()
1285 msaaState[kOptions].append(Json::Value(0)); in updateUIState()
1288 msaaState[kOptions].append(Json::Value(msaa)); in updateUIState()
[all …]
/external/webrtc/talk/app/webrtc/
Dandroidvideocapturer.cc140 Json::Value json_values; in AndroidVideoCapturer()
141 Json::Reader reader(Json::Features::strictMode()); in AndroidVideoCapturer()
147 for (Json::ArrayIndex i = 0; i < json_values.size(); ++i) { in AndroidVideoCapturer()
148 const Json::Value& json_value = json_values[i]; in AndroidVideoCapturer()
/external/jsoncpp/doc/
Djsoncpp.dox43 Json::Value root; // will contains the root value after parsing.
44 Json::Reader reader;
59 const Json::Value plugins = root["plug-ins"];
68 // Since Json::Value has implicit constructor for all value types, it is not
69 // necessary to explicitly construct the Json::Value object:
74 Json::StyledWriter writer;
/external/jsoncpp/include/json/
Dvalue.h33 namespace Json {
126 typedef Json::UInt UInt;
127 typedef Json::Int Int;
129 typedef Json::UInt64 UInt64;
130 typedef Json::Int64 Int64;
132 typedef Json::LargestInt LargestInt;
133 typedef Json::LargestUInt LargestUInt;
134 typedef Json::ArrayIndex ArrayIndex;
/external/skia/tools/
Dskp_parser.cpp39 Json::Value json = debugCanvas.toJSON( in main()
56 Json::StyledStreamWriter(" ").write(std::cout, json); in main()
/external/webrtc/webrtc/examples/peerconnection/client/
Dconductor.cc183 Json::StyledWriter writer; in OnIceCandidate()
184 Json::Value jmessage; in OnIceCandidate()
254 Json::Reader reader; in OnMessageFromPeer()
255 Json::Value jmessage; in OnMessageFromPeer()
526 Json::StyledWriter writer; in OnSuccess()
527 Json::Value jmessage; in OnSuccess()
/external/protobuf/conformance/
Dconformance_test.cc430 Json::Reader reader; in RunValidJsonTestWithValidator()
431 Json::Value value; in RunValidJsonTestWithValidator()
740 [](const Json::Value& value) { in RunSuite()
751 [](const Json::Value& value) { in RunSuite()
765 [](const Json::Value& value) { in RunSuite()
913 [](const Json::Value& value) { in RunSuite()
914 return value["optionalInt64"].type() == Json::stringValue && in RunSuite()
920 [](const Json::Value& value) { in RunSuite()
921 return value["optionalUint64"].type() == Json::stringValue && in RunSuite()
1124 [](const Json::Value& value) { in RunSuite()
[all …]

123