HomeSort by relevance Sort by last modified time
    Searched refs:json (Results 26 - 50 of 150) sorted by null

12 3 4 5 6

  /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/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 */)));
file_manager_util.cc 6 #include "base/json/json_writer.h"
111 std::string json = GetArgumentsJson(type, title, default_path, file_types, local
114 UrlEncodeStringWithoutEncodingSpaceAsPlus(json));
120 std::string json = GetArgumentsJson(SelectFileDialog::SELECT_NONE, string16(), local
123 UrlEncodeStringWithoutEncodingSpaceAsPlus(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/v8/test/mjsunit/
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/v8/tools/visual_studio/
js2c.cmd 6 %PYTHON% ..\js2c.py %TARGET_DIR%\natives.cc %TARGET_DIR%\natives-empty.cc CORE %SOURCE_DIR%\macros.py %SOURCE_DIR%\runtime.js %SOURCE_DIR%\v8natives.js %SOURCE_DIR%\array.js %SOURCE_DIR%\string.js %SOURCE_DIR%\uri.js %SOURCE_DIR%\math.js %SOURCE_DIR%\messages.js %SOURCE_DIR%\apinatives.js %SOURCE_DIR%\debug-debugger.js %SOURCE_DIR%\liveedit-debugger.js %SOURCE_DIR%\mirror-debugger.js %SOURCE_DIR%\date.js %SOURCE_DIR%\regexp.js %SOURCE_DIR%\json.js
  /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...]
  /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));
  /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 + ");"));
  /external/chromium/chrome/browser/ui/webui/options/
extension_settings_handler.h 87 DictionaryValue* json);
97 DictionaryValue* json);
99 // Report back to the handler. This method takes ownership of |json|.
100 void ReportResultOnUIThread(DictionaryValue* json);
112 // Extension Detail JSON Struct for page. (static for ease of testing).
121 // ContentScript JSON Struct for page. (static for ease of testing).
212 // Loads the extension resources into the json data, then calls OnIconsLoaded.
  /external/chromium/chrome/browser/resources/file_manager/js/
main.js 21 var json = decodeURIComponent(document.location.search.substr(1));
22 var params = JSON.parse(json);
23 console.log('params: ' + JSON.stringify(params));
  /external/webkit/Tools/Scripts/webkitpy/layout_tests/layout_package/
json_results_generator_unittest.py 91 None, # don't fetch past json results archive
96 # Test incremental json results
116 json, num_runs):
120 self.assertTrue(JRG.VERSION_KEY in json)
121 self.assertTrue(self.builder_name in json)
123 buildinfo = json[self.builder_name]
186 # Generate JSON with the same test sets. (Both incremental results and

Completed in 510 milliseconds

12 3 4 5 6