/external/v8/test/mjsunit/ |
debug-backtrace.js | 51 function ParsedResponse(json) { 52 this.response_ = eval('(' + json + ')'); 101 var json; 102 json = '{"seq":0,"type":"request","command":"backtrace"}' 103 var resp = dcp.processDebugJSONRequest(json); 126 json = '{"seq":0,"type":"request","command":"backtrace","arguments":{"fromFrame":1,"toFrame":3}}' 127 response = new ParsedResponse(dcp.processDebugJSONRequest(json)); 144 json = '{"seq":0,"type":"request","command":"backtrace","arguments":{"fromFrame":0,"toFrame":2, "bottom":true}}' 145 response = new ParsedResponse(dcp.processDebugJSONRequest(json)); 161 json = '{"seq":0,"type":"request","command":"frame"} [all...] |
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/chromium/chrome/browser/remoting/ |
setup_flow_login_step.cc | 7 #include "base/json/json_reader.h" 8 #include "base/json/json_writer.h" 34 std::string json; local 35 if (!arg->GetAsString(&json) || json.empty()) { 40 scoped_ptr<Value> parsed_value(base::JSONReader::Read(json, false)); 139 std::string json; local 140 base::JSONWriter::Write(&args, false, &json); 142 UTF8ToWide(json) + L");";
|
/external/chromium/chrome/browser/web_resource/ |
promo_resource_service_unittest.cc | 5 #include "base/json/json_reader.h" 36 std::string json = "{ " local 51 base::JSONReader::Read(json, false))); 66 json = "{ " 82 base::JSONReader::Read(json, false))); 91 json = "{ " 101 base::JSONReader::Read(json, false))); 127 std::string json = "{ " local 144 base::JSONReader::Read(json, false))); 201 std::string json = "{ local [all...] |
/external/chromium/base/json/ |
json_reader.h | 5 // A JSON parser. Converts strings of JSON into a Value object (see 112 // Reads and parses |json|, returning a Value. The caller owns the returned 113 // instance. If |json| is not a properly formed JSON string, returns NULL. 116 static Value* Read(const std::string& json, bool allow_trailing_comma); 118 // Reads and parses |json| like Read(). |error_code_out| and |error_msg_out| 122 static Value* ReadAndReturnError(const std::string& json, 127 // Converts a JSON parse error code into a human readable message. 139 // Reads and parses |json|, returning a Value. The caller owns the returne [all...] |
/external/chromium-trace/ |
update.py | 3 import config, httplib, json, urllib, subprocess, sys namespace 16 ('output_format', 'json'), 33 result = json.loads(data)
|
/frameworks/support/volley/src/com/android/volley/toolbox/ |
JsonArrayRequest.java | 25 import org.json.JSONArray; 26 import org.json.JSONException; 37 * @param url URL to fetch the JSON from 38 * @param listener Listener to receive the JSON response
|
JsonObjectRequest.java | 25 import org.json.JSONException; 26 import org.json.JSONObject; 38 * @param url URL to fetch the JSON from 41 * @param listener Listener to receive the JSON response
|
/external/chromium/chrome/browser/extensions/ |
extension_bookmarks_module.cc | 10 #include "base/json/json_writer.h" 277 scoped_ptr<ListValue> json(new ListValue()); 295 extension_bookmark_helpers::AddNode(node, json.get(), false); 309 extension_bookmark_helpers::AddNode(node, json.get(), false); 312 result_.reset(json.release()); 323 scoped_ptr<ListValue> json(new ListValue()); 332 extension_bookmark_helpers::AddNode(child, json.get(), false); 335 result_.reset(json.release()); 346 ListValue* json = new ListValue(); local 352 extension_bookmark_helpers::AddNode(node, json, false) 372 ListValue* json = new ListValue(); local 662 DictionaryValue* json; local [all...] |
chrome_app_api_browsertest.cc | 8 #include "base/json/json_reader.h" 58 L" JSON.stringify(window.chrome.app.isInstalled));"; 69 L" JSON.stringify(window.chrome.app.getDetails()));"; 160 L" JSON.stringify(chrome.app.getDetailsForFrame(frames[0])))"; 161 std::string json; local 165 L"", get_details_for_frame, &json)); 169 base::JSONReader::Read(json, false /* allow trailing comma */)));
|
/external/v8/test/mjsunit/regress/ |
regress-crbug-84186.js | 28 // Test that the expected string is parsed in the json parser when the length 32 var json = '{"key":"'; variable 39 json = json + key + '"}'; 40 var out = JSON.parse(json);
|
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/webkit/Tools/TestResultServer/model/ |
jsonresults.py | 35 JSON_RESULTS_FILE = "results.json" 36 JSON_RESULTS_FILE_SMALL = "results-small.json" 55 """Strip out prefix and suffix of json results string. 58 data: json file content. 61 json string without prefix and suffix. 71 def _generate_file_data(cls, json, sort_keys=False): 72 """Given json string, generate file content data by adding 76 json: json string without prefix and suffix. 79 json file data [all...] |
/frameworks/base/core/tests/coretests/src/android/util/ |
JsonReaderTest.java | 78 String json = "{\n" + local 82 JsonReader reader = new JsonReader(new StringReader(json)); 121 String json = "[\"a\"," local 141 JsonReader reader = new JsonReader(new StringReader(json)); 175 String json = "[-0.0," local 190 JsonReader reader = new JsonReader(new StringReader(json)); 211 String json = "[" local 219 JsonReader reader = new JsonReader(new StringReader(json)); 245 String json = "[\"" + new String(pad) + "\",33333]"; local 246 JsonReader reader = new JsonReader(new StringReader(json)); 257 String json = "[\\"" + new String(pad) + "\\",33333"; local 286 String json = "[" + new String(longNumber) + "]"; local 296 String json = "[0,0,0," local 344 String json = "[9223372036854775806.000]"; local 352 String json = "[-1,99,-0,0,0e1,0e+1,0e-1,0E1,0E+1,0E-1,0.0,1.0,-1.0,1.0e0,1.0e+1,1.0e-1]"; local 363 String json = "[-00,00,001,+1,1f,0x,0xf,0x0,0f1,0ee1,1..0,1e0.1,1.-01,1.+1,1.0x,1.0+]"; local 375 String json = "[NaN]"; local 386 String json = "[0x11]"; local 397 String json = "[01]"; local [all...] |
/external/webkit/Tools/TestResultServer/handlers/ |
testfilehandler.py | 121 """Return json file with test name list only, do not include test 129 json = self._get_file_content(master, builder, test_type, "results.json") 130 if not json: 133 return JsonResults.get_test_list(builder, json) 153 if name == "results.json" and test_list_json: 154 json = self._get_test_list_json(master, builder, test_type) 156 json = self._get_file_content(master, builder, test_type, name) 158 if json: 160 self.response.out.write(json) [all...] |
/development/samples/SampleSyncAdapter/tests/src/com/example/android/samplesync/client/ |
UserTest.java | 22 import org.json.JSONObject;
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
AbstractSuggestionExtras.java | 18 import org.json.JSONException; 24 * Abstract SuggestionExtras supporting flattening to JSON.
|
/external/chromium/chrome/common/ |
json_value_serializer_perftest.cc | 39 // Holds json strings to be tested. 45 // Test deserialization of a json string into a Value object. We run the test 51 // Test chrome json implementation 78 std::string json; local 79 JSONStringValueSerializer reader(&json);
|
/external/chromium/chrome/browser/ |
browser_signin.cc | 10 #include "base/json/json_reader.h" 11 #include "base/json/json_writer.h" 175 std::string json; local 189 base::JSONWriter::Write(&json_args, false, &json); 190 javascript += L"showGaiaLogin(" + UTF8ToWide(json) + L");"; 196 std::string json; local 197 if (!args->GetString(0, &json)) 198 NOTREACHED() << "Could not read JSON argument"; 201 base::JSONReader::Read(json, false)));
|
/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);
|
/external/chromium/chrome/browser/themes/ |
browser_theme_pack_unittest.cc | 8 #include "base/json/json_reader.h" 78 void LoadColorJSON(const std::string& json) { 79 scoped_ptr<Value> value(base::JSONReader::Read(json, false)); 88 void LoadTintJSON(const std::string& json) { 89 scoped_ptr<Value> value(base::JSONReader::Read(json, false)); 98 void LoadDisplayPropertiesJSON(const std::string& json) { 99 scoped_ptr<Value> value(base::JSONReader::Read(json, false)); 108 void ParseImageNamesJSON(const std::string& json, 110 scoped_ptr<Value> value(base::JSONReader::Read(json, false)); 279 std::string json = "{ \"ntp_background_alignment\": \"bottom\", local [all...] |
/development/samples/Wiktionary/src/com/example/android/wiktionary/ |
ExtendedWikiHelper.java | 19 import org.json.JSONArray; 20 import org.json.JSONException; 21 import org.json.JSONObject; 93 "http://en.wiktionary.org/w/api.php?action=query&list=random&format=json"; 207 // Drill into the JSON response to find the returned word
|
SimpleWikiHelper.java | 25 import org.json.JSONArray; 26 import org.json.JSONException; 27 import org.json.JSONObject; 56 "rvprop=content&format=json%s"; 147 // Drill into the JSON response to find the content body
|
/development/samples/WiktionarySimple/src/com/example/android/simplewiktionary/ |
SimpleWikiHelper.java | 25 import org.json.JSONArray; 26 import org.json.JSONException; 27 import org.json.JSONObject; 63 "rvprop=content&format=json%s"; 154 // Drill into the JSON response to find the content body
|
/external/chromium/chrome/browser/chromeos/login/ |
enterprise_enrollment_view.cc | 7 #include "base/json/json_writer.h" 166 std::string json; local 167 base::JSONWriter::Write(&args, false, &json); 173 UTF8ToUTF16("showGaiaLogin(" + json + ");"));
|