/external/chromium-trace/catapult/third_party/html5lib-python/html5lib/tests/ |
tokenizertotree.py | 5 import json 28 tests_data = json.load(open(filename, "r"))
|
/external/skia/infra/bots/flavor/ |
android_devices.py | 10 import json 99 print json.dumps(SLAVE_INFO) # pragma: no cover
|
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/ui/ |
DatePickerDialogTask.java | 24 import org.json.JSONException; 25 import org.json.JSONObject;
|
/external/v8/test/mjsunit/ |
json-replacer-order.js | 5 // http://ecma-international.org/ecma-262/6.0/#sec-json.stringify 22 JSON.stringify('', replacer, space);
|
mirror-boolean.js | 32 // Create mirror and JSON representation. 35 var json = JSON.stringify(serializer.serializeValue(mirror)); 50 // Parse JSON representation and check. 51 var fromJSON = eval('(' + json + ')'); 52 assertEquals('boolean', fromJSON.type, json); 53 assertEquals(b, fromJSON.value, json);
|
/external/vogar/src/vogar/monitor/ |
InterleavedReader.java | 32 * Reads a stream containing inline JSON objects. Each JSON object is prefixed 105 String json = reader.readLine().substring(marker.length()); local 106 return jsonParser.parse(json);
|
/external/vulkan-validation-layers/loader/ |
cJSON.c | 27 /* JSON parser in C. */ 495 /* if we require null-terminated JSON without appended garbage, skip and [all...] |
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/grid/ |
GridExampleFragment.java | 67 String json = Utils.inputStreamToString(getResources() local 69 CardRow row = new Gson().fromJson(json, CardRow.class);
|
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/ |
writertest.cpp | 36 // json -> parse -> writer -> json
37 #define TEST_ROUNDTRIP(json) \
39 StringStream s(json); \
44 EXPECT_STREQ(json, buffer.GetString()); \
111 const char json[] = "{\"hello\":\"world\",\"t\":true,\"f\":false,\"n\":null,\"i\":123,\"pi\":3.1416,\"a\":[1,2,3],\"dollar\":\"\x24\",\"cents\":\"\xC2\xA2\",\"euro\":\"\xE2\x82\xAC\",\"gclef\":\"\xF0\x9D\x84\x9E\"}";
local 115 StringStream s(json);
120 EXPECT_STREQ(json, buffer.GetString());
125 StringStream s(json);
137 EXPECT_STREQ(json, buffer2.GetString()); [all...] |
/prebuilts/go/darwin-x86/src/encoding/json/ |
tags_test.go | 5 package json package
|
decode_test.go | 5 package json package 22 Z int `json:"-"` 26 Alphabet string `json:"alpha"` 116 *Embed0b `json:"e,omitempty"` // treated as named 117 Embed0c `json:"-"` // ignored 124 Level1a int // overridden by Embed0a's Level1a with json tag 128 Level1e int `json:"x"` // annihilated by Embed0a.Level1e 132 Level1a int `json:"Level1a,omitempty"` 133 Level1b int `json:"LEVEL1B,omitempty"` 134 Level1c int `json:"-" [all...] |
/prebuilts/go/linux-x86/src/encoding/json/ |
tags_test.go | 5 package json package
|
decode_test.go | 5 package json package 22 Z int `json:"-"` 26 Alphabet string `json:"alpha"` 116 *Embed0b `json:"e,omitempty"` // treated as named 117 Embed0c `json:"-"` // ignored 124 Level1a int // overridden by Embed0a's Level1a with json tag 128 Level1e int `json:"x"` // annihilated by Embed0a.Level1e 132 Level1a int `json:"Level1a,omitempty"` 133 Level1b int `json:"LEVEL1B,omitempty"` 134 Level1c int `json:"-" [all...] |
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/bin/ |
sdbadmin | 29 from boto.compat import json 62 print >> f, json.dumps(data, sort_keys=sort_attributes) 85 data = json.loads(line) 120 if json: 121 parser.add_option("-j", "--use-json", help="Load/Store as JSON instead of XML", action="store_true", default=False, dest="json") 181 dump_db(domain, file_name, options.json, options.sort_attributes) 190 load_db(domain, open(file_name, "rb"), options.json)
|
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/particles/influencers/ |
ColorInfluencer.java | 8 import com.badlogic.gdx.utils.Json; 113 public void write (Json json) { 114 json.writeValue("alpha", alphaValue); 115 json.writeValue("color", colorValue); 119 public void read (Json json, JsonValue jsonData) { 120 alphaValue = json.readValue("alpha", ScaledNumericValue.class, jsonData); 121 colorValue = json.readValue("color", GradientColorValue.class, jsonData);
|
/external/robolectric/v1/ |
Android.mk | 31 robolectric-json \ 58 robolectric-json:lib/main/json-20080701.jar \
|
/libcore/json/src/test/java/org/json/ |
ParsingTest.java | 17 package org.json; 232 private void assertParsed(String message, Object expected, String json) throws JSONException { 233 Object actual = new JSONTokener(json).nextValue(); 236 assertEquals("For input \"" + json + "\" " + message, expected, actual); 239 private void assertParsed(Object expected, String json) throws JSONException { 240 assertParsed("", expected, json);
|
/prebuilts/go/darwin-x86/test/bench/go1/ |
gob_test.go | 12 "encoding/json" 39 b, _ := json.Marshal(&jsondata) 40 br, _ := json.Marshal(&r)
|
/prebuilts/go/linux-x86/test/bench/go1/ |
gob_test.go | 12 "encoding/json" 39 b, _ := json.Marshal(&jsondata) 40 br, _ := json.Marshal(&r)
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
ItsSerializer.java | 43 import org.json.JSONArray; 44 import org.json.JSONObject; 57 * Class to deal with serializing and deserializing between JSON and Camera2 objects. 72 private static Object serializeRational(Rational rat) throws org.json.JSONException { 80 private static Object serializeSize(Size size) throws org.json.JSONException { 88 private static Object serializeSizeF(SizeF size) throws org.json.JSONException { 96 private static Object serializeRect(Rect rect) throws org.json.JSONException { 105 private static Object serializePoint(Point point) throws org.json.JSONException { 114 throws org.json.JSONException { 134 throws org.json.JSONException [all...] |
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/loader/ |
G3dModelLoader.java | 65 JsonValue json = reader.parse(handle);
local 67 JsonValue version = json.require("version");
73 model.id = json.getString("id", "");
74 parseMeshes(model, json);
75 parseMaterials(model, json, handle.parent().path());
76 parseNodes(model, json);
77 parseAnimations(model, json);
81 private void parseMeshes (ModelData model, JsonValue json) {
82 JsonValue meshes = json.get("meshes");
174 private void parseMaterials (ModelData model, JsonValue json, String materialDir) { [all...] |
/external/v8/test/mjsunit/regress/ |
regress-1081309.js | 37 function ParsedResponse(json) { 38 this.response_ = eval('(' + json + ')'); 75 var json; 76 json = '{"seq":0,"type":"request","command":"backtrace"}' 77 var response = new ParsedResponse(dcp.processDebugJSONRequest(json));
|
/external/chromium-trace/catapult/dashboard/dashboard/ |
graph_json_test.py | 5 import json 115 """Checks whether a JSON string output by GetGraphJson is correct. 120 In general, the Flot JSON should at contain a dict with the key 'data' 128 json_str: The JSON string to check. 136 flot = json.loads(json_str) 138 self.fail('GetGraphJson returned invalid JSON') 163 '/graph_json', {'graphs': json.dumps(graphs)}) 183 '/graph_json', {'graphs': json.dumps(graphs)}) 196 '/graph_json', {'graphs': json.dumps(graphs)}) 209 '/graph_json', {'graphs': json.dumps(graphs)} [all...] |
/external/libbrillo/brillo/http/ |
http_utils_unittest.cc | 181 static const char json_echo_url[] = "http://localhost/echo/json"; 184 base::DictionaryValue json; 185 json.SetString("method", request.GetMethod()); 186 json.SetString("data", request.GetDataAsString()); 188 json.SetString("header." + pair.first, pair.second); 190 response->ReplyJson(status_code::Ok, &json); 202 auto json = ParseJsonResponse(response.get(), nullptr, nullptr); local 204 EXPECT_TRUE(json->GetString("method", &value)); 206 EXPECT_TRUE(json->GetString("data", &value)); 208 EXPECT_TRUE(json->GetString("header.Cookie", &value)) 386 base::DictionaryValue json; local 429 auto json = http::ParseJsonResponse(response.get(), &code, nullptr); local 442 auto json = http::ParseJsonResponse(response.get(), &code, nullptr); local [all...] |
/system/weaved/buffet/ |
manager.cc | 25 #include <base/json/json_reader.h> 26 #include <base/json/json_writer.h> 85 FILE_PATH_LITERAL("*.json")); 90 std::string json; local 91 CHECK(LoadFile(path, &json, nullptr)); 92 device->AddTraitDefinitionsFromJson(json); 107 std::string json; 108 CHECK(LoadFile(path, &json, nullptr)); 109 device->AddCommandDefinitionsFromJson(json); 112 load_packages(options.definitions, FILE_PATH_LITERAL("*.json")); 128 std::string json; local 145 std::string json; local [all...] |