Home
last modified time | relevance | path

Searched refs:json (Results 1 – 25 of 992) sorted by relevance

12345678910>>...40

/external/skia/src/gpu/
DGrAuditTrail.cpp10 void GrAuditTrail::JsonifyTArray(SkString* json, const char* name, const FrameArray& array, in JsonifyTArray() argument
14 json->appendf(","); in JsonifyTArray()
16 json->appendf("\"%s\": [", name); in JsonifyTArray()
18 json->append(array[i]->toJson()); in JsonifyTArray()
20 json->append(","); in JsonifyTArray()
23 json->append("]"); in JsonifyTArray()
32 SkString prettify(const SkString& json) { in prettify() argument
37 for (size_t i = 0; i < json.size(); i++) { in prettify()
38 if ('[' == json[i] || '{' == json[i]) { in prettify()
40 this->appendChar(json[i]); in prettify()
[all …]
/external/sl4a/Common/src/com/googlecode/android_scripting/jsonrpc/
DJsonRpcResult.java19 import org.json.JSONException;
20 import org.json.JSONObject;
35 JSONObject json = new JSONObject(); in empty() local
36 json.put("id", id); in empty()
37 json.put("result", JSONObject.NULL); in empty()
38 json.put("error", JSONObject.NULL); in empty()
39 return json; in empty()
43 JSONObject json = new JSONObject(); in result() local
44 json.put("id", id); in result()
45 json.put("result", JsonBuilder.build(data)); in result()
[all …]
/external/libchrome/base/trace_event/
Dtrace_event_argument_unittest.cc23 std::string json = "PREFIX"; in TEST() local
24 value->AppendAsTraceFormat(&json); in TEST()
27 json); in TEST()
36 std::string json; in TEST() local
37 value->AppendAsTraceFormat(&json); in TEST()
40 json); in TEST()
63 std::string json; in TEST() local
64 value->AppendAsTraceFormat(&json); in TEST()
69 json); in TEST()
91 std::string json; in TEST() local
[all …]
/external/libweave/src/
Ddevice_registration_info_unittest.cc91 const base::Value& json) { in ReplyWithJson() argument
94 json, base::JSONWriter::OPTIONS_PRETTY_PRINT, &text); in ReplyWithJson()
264 base::DictionaryValue json; in TEST_F() local
265 json.SetString("access_token", test_data::kAccessToken); in TEST_F()
266 json.SetInteger("expires_in", 3600); in TEST_F()
268 callback.Run(ReplyWithJson(200, json), nullptr); in TEST_F()
281 base::DictionaryValue json; in TEST_F() local
282 callback.Run(ReplyWithJson(200, json), nullptr); in TEST_F()
307 base::DictionaryValue json; in TEST_F() local
308 json.SetString("error", "unable_to_authenticate"); in TEST_F()
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/opsworks/
Dlayer1.py24 from boto.compat import json
134 body=json.dumps(params))
160 body=json.dumps(params))
186 body=json.dumps(params))
222 body=json.dumps(params))
476 body=json.dumps(params))
563 body=json.dumps(params))
615 body=json.dumps(params))
755 body=json.dumps(params))
897 body=json.dumps(params))
[all …]
/external/v8/test/mjsunit/
Ddebug-backtrace.js51 function ParsedResponse(json) { argument
52 this.response_ = eval('(' + json + ')');
101 var json;
102 json = '{"seq":0,"type":"request","command":"backtrace"}'
103 var resp = dcp.processDebugJSONRequest(json);
126json = '{"seq":0,"type":"request","command":"backtrace","arguments":{"fromFrame":1,"toFrame":3}}'
127 response = new ParsedResponse(dcp.processDebugJSONRequest(json));
144json = '{"seq":0,"type":"request","command":"backtrace","arguments":{"fromFrame":0,"toFrame":2, "b…
145 response = new ParsedResponse(dcp.processDebugJSONRequest(json));
161 json = '{"seq":0,"type":"request","command":"frame"}'
[all …]
/external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/
DWebSocketRTCClient.java22 import org.json.JSONException;
23 import org.json.JSONObject;
193 JSONObject json = new JSONObject(); in sendOfferSdp()
194 jsonPut(json, "sdp", sdp.description); in sendOfferSdp()
195 jsonPut(json, "type", "offer"); in sendOfferSdp()
196 sendPostMessage(MessageType.MESSAGE, messageUrl, json.toString()); in sendOfferSdp()
218 JSONObject json = new JSONObject(); in sendAnswerSdp()
219 jsonPut(json, "sdp", sdp.description); in sendAnswerSdp()
220 jsonPut(json, "type", "answer"); in sendAnswerSdp()
221 wsClient.send(json.toString()); in sendAnswerSdp()
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/directconnect/
Dlayer1.py28 from boto.compat import json
133 body=json.dumps(params))
174 body=json.dumps(params))
214 body=json.dumps(params))
235 body=json.dumps(params))
268 body=json.dumps(params))
288 body=json.dumps(params))
330 body=json.dumps(params))
381 body=json.dumps(params))
408 body=json.dumps(params))
[all …]
/external/chromium-trace/catapult/third_party/mapreduce/mapreduce/
Dkey_ranges.py45 def from_json(cls, json): argument
57 if json["name"] in _KEYRANGES_CLASSES:
58 return _KEYRANGES_CLASSES[json["name"]].from_json(json)
59 raise ValueError("Invalid json %s", json)
110 json = super(_KeyRangesFromList, self).to_json()
111 json.update(
113 return json
116 def from_json(cls, json): argument
118 [key_range.KeyRange.from_json(kr) for kr in json["list_of_key_ranges"]])
151 json = super(_KeyRangesFromNSRange, self).to_json()
[all …]
Ddatastore_range_iterators.py87 def from_json(cls, json): argument
88 return _RANGE_ITERATORS[json["name"]].from_json(json)
127 def from_json(cls, json): argument
209 def from_json(cls, json): argument
211 obj = cls(property_range.PropertyRange.from_json(json["property_range"]),
212 namespace_range.NamespaceRange.from_json_object(json["ns_range"]),
213 model.QuerySpec.from_json(json["query_spec"]))
214 cursor = json["cursor"]
217 if cursor and json["cursor_object"]:
251 json = {"name": self.__class__.__name__,
[all …]
/external/libweave/src/commands/
Dcommand_instance_unittest.cc43 auto json = CreateDictionaryValue(R"({ in TEST() local
54 auto instance = CommandInstance::FromJson(json.get(), Command::Origin::kCloud, in TEST()
65 auto json = CreateDictionaryValue("{'name': 'base.reboot'}"); in TEST() local
66 auto instance = CommandInstance::FromJson(json.get(), Command::Origin::kCloud, in TEST()
73 auto json = CreateValue("'string'"); in TEST() local
75 auto instance = CommandInstance::FromJson(json.get(), Command::Origin::kCloud, in TEST()
82 auto json = CreateDictionaryValue("{'param': 'value'}"); in TEST() local
84 auto instance = CommandInstance::FromJson(json.get(), Command::Origin::kCloud, in TEST()
91 auto json = CreateDictionaryValue(R"({ in TEST() local
96 auto instance = CommandInstance::FromJson(json.get(), Command::Origin::kCloud, in TEST()
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/codedeploy/
Dlayer1.py24 from boto.compat import json
176 body=json.dumps(params))
191 body=json.dumps(params))
204 body=json.dumps(params))
260 body=json.dumps(params))
297 body=json.dumps(params))
381 body=json.dumps(params))
394 body=json.dumps(params))
411 body=json.dumps(params))
432 body=json.dumps(params))
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/cloudhsm/
Dlayer1.py24 from boto.compat import json
76 body=json.dumps(params))
130 body=json.dumps(params))
148 body=json.dumps(params))
161 body=json.dumps(params))
174 body=json.dumps(params))
186 body=json.dumps(params))
200 body=json.dumps(params))
222 body=json.dumps(params))
242 body=json.dumps(params))
[all …]
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/particles/
DResourceData.java81 public void write (Json json) { in write() argument
82 json.writeValue("data", data, ObjectMap.class); in write()
83 json.writeValue("indices", assets.toArray(), int[].class); in write()
87 public void read (Json json, JsonValue jsonData) { in read() argument
88 data = json.readValue("data", ObjectMap.class, jsonData); in read()
89 assets.addAll(json.readValue("indices", int[].class, jsonData)); in read()
103 public void write (Json json) { in write() argument
104 json.writeValue("filename", filename); in write()
105 json.writeValue("type", type.getName()); in write()
108 public void read (Json json, JsonValue jsonData) { in read() argument
[all …]
/external/v8/build/linux/unbundle/
Djsoncpp.gyp13 'json/assertions.h',
14 'json/autolink.h',
15 'json/config.h',
16 'json/features.h',
17 'json/forwards.h',
18 'json/json.h',
19 'json/reader.h',
20 'json/value.h',
21 'json/writer.h',
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/particles/values/
DScaledNumericValue.java101 public void write (Json json) { in write() argument
102 super.write(json); in write()
103 json.writeValue("highMin", highMin); in write()
104 json.writeValue("highMax", highMax); in write()
105 json.writeValue("relative", relative); in write()
106 json.writeValue("scaling", scaling); in write()
107 json.writeValue("timeline", timeline); in write()
111 public void read (Json json, JsonValue jsonData) { in read() argument
112 super.read(json, jsonData); in read()
113 highMin = json.readValue("highMin", float.class, jsonData); in read()
[all …]
DPrimitiveSpawnShapeValue.java96 public void write (Json json) { in write() argument
97 super.write(json); in write()
98 json.writeValue("spawnWidthValue", spawnWidthValue); in write()
99 json.writeValue("spawnHeightValue", spawnHeightValue); in write()
100 json.writeValue("spawnDepthValue", spawnDepthValue); in write()
101 json.writeValue("edges", edges); in write()
105 public void read (Json json, JsonValue jsonData) { in read() argument
106 super.read(json, jsonData); in read()
107 spawnWidthValue = json.readValue("spawnWidthValue", ScaledNumericValue.class, jsonData); in read()
108 spawnHeightValue = json.readValue("spawnHeightValue", ScaledNumericValue.class, jsonData); in read()
[all …]
/external/boringssl/src/ssl/test/runner/
Dtest_output.go26 Version int `json:"version"`
27 Interrupted bool `json:"interrupted"`
28 PathDelimiter string `json:"path_delimiter"`
29 SecondsSinceEpoch float64 `json:"seconds_since_epoch"`
30 NumFailuresByType map[string]int `json:"num_failures_by_type"`
31 Tests map[string]testResult `json:"tests"`
36 Actual string `json:"actual"`
37 Expected string `json:"expected"`
38 IsUnexpected bool `json:"is_unexpected"`
73 out, err := json.MarshalIndent(t, "", " ")
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/datapipeline/
Dlayer1.py24 from boto.compat import json
114 body=json.dumps(params))
151 body=json.dumps(params))
173 body=json.dumps(params))
213 body=json.dumps(params))
238 body=json.dumps(params))
262 body=json.dumps(params))
285 body=json.dumps(params))
305 body=json.dumps(params))
357 body=json.dumps(params))
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/kms/
Dlayer1.py24 from boto.compat import json
156 body=json.dumps(params))
221 body=json.dumps(params))
255 body=json.dumps(params))
288 body=json.dumps(params))
304 body=json.dumps(params))
319 body=json.dumps(params))
333 body=json.dumps(params))
347 body=json.dumps(params))
362 body=json.dumps(params))
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/machinelearning/
Dlayer1.py24 from boto.compat import json, urlsplit
127 body=json.dumps(params))
224 body=json.dumps(params))
331 body=json.dumps(params))
417 body=json.dumps(params))
470 body=json.dumps(params))
581 body=json.dumps(params))
596 body=json.dumps(params))
617 body=json.dumps(params))
638 body=json.dumps(params))
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/logs/
Dlayer1.py28 from boto.compat import json
139 body=json.dumps(params))
166 body=json.dumps(params))
182 body=json.dumps(params))
201 body=json.dumps(params))
220 body=json.dumps(params))
232 body=json.dumps(params))
268 body=json.dumps(params))
308 body=json.dumps(params))
348 body=json.dumps(params))
[all …]
/external/libweave/src/test/
Dunittest_utils.cc14 std::unique_ptr<base::Value> CreateValue(const std::string& json) { in CreateValue() argument
15 std::string json2(json); in CreateValue()
24 CHECK(value) << "Failed to load JSON: " << message << ", " << json; in CreateValue()
29 std::string json; in ValueToString() local
31 value, base::JSONWriter::OPTIONS_PRETTY_PRINT, &json); in ValueToString()
32 return json; in ValueToString()
36 const std::string& json) { in CreateDictionaryValue() argument
37 std::unique_ptr<base::Value> value = CreateValue(json); in CreateDictionaryValue()
40 CHECK(dict) << "Value is not dictionary: " << json; in CreateDictionaryValue()
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/support/
Dlayer1.py24 from boto.compat import json
157 body=json.dumps(params))
202 body=json.dumps(params))
307 body=json.dumps(params))
324 body=json.dumps(params))
410 body=json.dumps(params))
463 body=json.dumps(params))
499 body=json.dumps(params))
519 body=json.dumps(params))
533 body=json.dumps(params))
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/route53/domains/
Dlayer1.py24 from boto.compat import json
95 body=json.dumps(params))
123 body=json.dumps(params))
149 body=json.dumps(params))
172 body=json.dumps(params))
192 body=json.dumps(params))
233 body=json.dumps(params))
271 body=json.dumps(params))
439 body=json.dumps(params))
462 body=json.dumps(params))
[all …]

12345678910>>...40