/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/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/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/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
|
config.h | 9 /// If defined, indicates that json library is embedded in CppTL library. 12 /// If defined, indicates that json may leverage CppTL library 18 /// 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 { 110 } // end 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/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 | 195 typedef SkDrawCommand* (*FROM_JSON)(Json::Value&, UrlDataManager&); 262 Json::Value SkDrawCommand::toJSON(UrlDataManager& urlDataManager) const { 263 Json::Value result; 265 result[SKDEBUGCANVAS_ATTRIBUTE_VISIBLE] = Json::Value(this->isVisible()); 271 SkDrawCommand* SkDrawCommand::fromJSON(Json::Value& command, UrlDataManager& urlDataManager) { 310 SkDebugf("no JSON factory for '%s'\n", name.c_str()); 475 void apply_paint_blend_mode(const SkPaint& paint, Json::Value* target) { 480 Json::Value(gBlendModeMap[static_cast<size_t>(mode)]); 484 void extract_json_paint_blend_mode(Json::Value& jsonPaint, SkPaint* target) { 499 Json::Value SkDrawCommand::MakeJsonColor(const SkColor color) [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...] |
SkJsonWriteBuffer.cpp | 13 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::arrayValue) [all...] |
SkJsonWriteBuffer.h | 22 , 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;
|
/packages/services/Car/evs/app/ |
ConfigManager.cpp | 18 #include "json/json.h" 35 const Json::Value& parentNode, 41 Json::Value childNode = parentNode[childName]; 59 // Parse the stream into JSON objects 60 Json::Reader reader; 61 Json::Value rootNode; 74 Json::Value car = rootNode["car"]; 90 Json::Value displayNode = rootNode["display"]; 104 Json::Value graphicNode = rootNode["graphic"] [all...] |
/external/skia/dm/ |
DMJsonWriter.cpp | 43 Json::Value root; 55 Json::Value result; 76 Json::Value result; 91 SkString path = SkOSPath::Join(FLAGS_writePath[0], "dm.json"); 94 stream.writeText(Json::StyledWriter().write(root).c_str()); 99 sk_sp<SkData> json(SkData::MakeFromFileName(path)); 100 if (!json) { 104 Json::Reader reader; 105 Json::Value root; 106 const char* data = (const char*)json->data() [all...] |
/external/skia/tools/viewer/sk_app/android/ |
Window_android.h | 30 void setUIState(const Json::Value& state) override;
|
/external/skia/tools/ |
skp_parser.cpp | 39 Json::Value json = debugCanvas.toJSON( local 56 Json::StyledStreamWriter(" ").write(std::cout, json);
|
/external/skia/tools/skiaserve/ |
Request.cpp | 268 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()); 298 // make some json 301 Json::Value info(Json::objectValue) 305 std::string json = Json::FastWriter().write(info); local [all...] |
/frameworks/base/tools/bit/ |
make.cpp | 23 #include <json/reader.h> 24 #include <json/value.h> 120 get_values(const Json::Value& json, const string& name, vector<string>* result) 122 Json::Value nullValue; 124 const Json::Value& value = json.get(name, nullValue); 131 const Json::Value& child = value[i]; 141 string filename(string(buildOut + "/target/product/") + device + "/module-info.json"); 152 Json::Value json local [all...] |
/external/protobuf/conformance/third_party/jsoncpp/ |
json.h | 0 /// Json-cpp amalgated header (http://jsoncpp.sourceforge.net/). 2 /// It is intended to be used with #include "json/json.h" 82 // Beginning of content of file: include/json/version.h 100 // End of content of file: include/json/version.h 109 // Beginning of content of file: include/json/config.h 120 /// If defined, indicates that json library is embedded in CppTL library. 123 /// If defined, indicates that json may leverage CppTL library 165 // If JSON_NO_INT64 is defined, then Json only support C++ "int" type for 227 namespace Json { [all...] |
/external/webrtc/talk/app/webrtc/ |
androidvideocapturer.cc | 32 #include "webrtc/base/json.h" 140 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/ |
Viewer.cpp | 452 fAllSlideNames = Json::Value(Json::arrayValue); [all...] |
/packages/services/Car/tools/emulator/ |
obd2_to_diagjson.py | 22 # ./obd2_to_diagjson.py --src file1.json --dst file2.json 26 import json 29 class Json(object): 32 return Json(json.load(file)) 37 return Json(item) 50 return Json.wrapIfNeeded(self.doc.get(attr)) 58 return Json.wrapIfNeeded(self.doc.__next__()) 88 return json.dumps(self.store [all...] |