Searched refs:Json (Results 1 - 25 of 48) sorted by relevance

12

/external/webrtc/webrtc/base/
H A 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
[all...]
H A Djson.cc21 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);
124 bool JsonArrayToVector(const Json
[all...]
H A 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
[all...]
/external/jsoncpp/src/test_lib_json/
H A 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
27 // Json Library test cases
32 static inline double uint64ToDouble(Json::UInt64 value) {
36 static inline double uint64ToDouble(Json::UInt64 value) {
37 return static_cast<double>(Json
[all...]
/external/skia/tools/skiaserve/urlhandlers/
H A DBreakHandler.cpp50 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
[all...]
/external/skia/gm/
H A 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
[all...]
/external/jsoncpp/include/json/
H A Dfeatures.h13 namespace Json { namespace
55 } // namespace Json
H A Dforwards.h13 namespace Json { namespace
41 } // namespace Json
H A Dconfig.h18 /// If defined, indicates that Json specific container should be used
65 // If JSON_NO_INT64 is defined, then Json only support C++ "int" type for
90 namespace Json { namespace
110 } // end namespace Json
/external/skia/bench/
H A DResultsWriter.h102 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
[all...]
/external/jsoncpp/src/jsontestrunner/
H A Dmain.cpp63 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:
81 Json::valueToString(value.asLargestUInt()).c_str());
83 case Json::realValue:
89 case Json
[all...]
/external/skia/tools/debugger/
H A DSkDrawCommand.cpp186 typedef SkDrawCommand* (*FROM_JSON)(Json::Value&, UrlDataManager&);
256 Json::Value SkDrawCommand::toJSON(UrlDataManager& urlDataManager) const {
257 Json::Value result;
259 result[SKDEBUGCANVAS_ATTRIBUTE_VISIBLE] = Json::Value(this->isVisible());
265 SkDrawCommand* SkDrawCommand::fromJSON(Json::Value& command, UrlDataManager& urlDataManager) {
434 Json::Value SkDrawCommand::MakeJsonColor(const SkColor color) {
435 Json::Value result(Json::arrayValue);
436 result.append(Json::Value(SkColorGetA(color)));
437 result.append(Json
[all...]
H A DSkDrawCommand.h115 virtual Json::Value toJSON(UrlDataManager& urlDataManager) const;
121 static SkDrawCommand* fromJSON(Json::Value& command, UrlDataManager& urlDataManager);
126 static Json::Value MakeJsonColor(const SkColor color);
127 static Json::Value MakeJsonColor4f(const SkColor4f& color);
128 static Json::Value MakeJsonPoint(const SkPoint& point);
129 static Json::Value MakeJsonPoint(SkScalar x, SkScalar y);
130 static Json::Value MakeJsonRect(const SkRect& rect);
131 static Json::Value MakeJsonIRect(const SkIRect&);
132 static Json::Value MakeJsonMatrix(const SkMatrix&);
133 static Json
[all...]
H A DSkJsonWriteBuffer.cpp13 void SkJsonWriteBuffer::append(const char* type, const Json::Value& value) {
19 Json::Value jsonArray(Json::arrayValue);
37 Json::Value jsonArray(Json::arrayValue);
49 Json::Value jsonArray(Json::arrayValue);
70 this->append("flattenable", Json::Value());
79 Json::Value jsonArray(Json
[all...]
H A DSkJsonWriteBuffer.h22 , fJson(Json::objectValue) {}
53 const Json::Value& getValue() const { return fJson; }
56 void append(const char* type, const Json::Value& value);
59 Json::Value fJson;
/external/skia/dm/
H A DDMJsonWriter.cpp43 Json::Value root;
55 Json::Value result;
76 Json::Value result;
94 stream.writeText(Json::StyledWriter().write(root).c_str());
104 Json::Reader reader;
105 Json::Value root;
111 const Json::Value& results = root["results"];
114 const Json::Value& r = results[i];
/external/skia/tools/
H A Dskp_parser.cpp39 Json::Value json = debugCanvas.toJSON(
56 Json::StyledStreamWriter(" ").write(std::cout, json);
/external/skia/tools/skiaserve/
H A DRequest.cpp268 Json::Value root = fDebugCanvas->toJSON(fUrlDataManager, n, canvas);
269 root["mode"] = Json::Value(fGPUEnabled ? "gpu" : "cpu");
270 root["drawGpuOpBounds"] = Json::Value(fDebugCanvas->getDrawGpuOpBounds());
271 root["colorMode"] = Json::Value(fColorMode);
273 stream.writeText(Json::FastWriter().write(root).c_str());
282 Json::Value result = fDebugCanvas->toJSONOpList(n, canvas);
285 stream.writeText(Json::FastWriter().write(result).c_str());
301 Json::Value info(Json::objectValue);
305 std::string json = Json
[all...]
/external/skia/tools/viewer/sk_app/android/
H A DWindow_android.h30 void setUIState(const Json::Value& state) override;
H A DWindow_android.cpp34 void Window_android::setUIState(const Json::Value& state) {
H A Dsurface_glue_android.h60 void setUIState(const Json::Value& state) const;
/external/protobuf/conformance/third_party/jsoncpp/
H A Djson.h0 /// Json-cpp amalgated header (http://jsoncpp.sourceforge.net/).
165 // If JSON_NO_INT64 is defined, then Json only support C++ "int" type for
227 namespace Json { namespace
247 } // end namespace Json
276 namespace Json { namespace
298 } // namespace Json
327 namespace Json { namespace
369 } // namespace Json
419 namespace Json { namespace
438 * \remark derived from Json
1274 namespace Json { namespace
1689 namespace Json { namespace
[all...]
/external/webrtc/talk/app/webrtc/
H A Dandroidvideocapturer.cc140 Json::Value json_values;
141 Json::Reader reader(Json::Features::strictMode());
147 for (Json::ArrayIndex i = 0; i < json_values.size(); ++i) {
148 const Json::Value& json_value = json_values[i];
/external/skia/tools/viewer/
H A DViewer.cpp448 fAllSlideNames = Json::Value(Json::arrayValue);
1249 Json::Value slideState(Json::objectValue);
1254 fAllSlideNames.append(Json::Value(slide->getName().c_str()));
1260 Json::Value backendState(Json::objectValue);
1263 backendState[kOptions] = Json::Value(Json::arrayValue);
1265 backendState[kOptions].append(Json
[all...]
/external/jsoncpp/src/lib_json/
H A Djson_tool.h15 namespace Json { namespace
85 } // namespace Json {

Completed in 756 milliseconds

12