/packages/apps/Email/src/com/android/email/ |
Preferences.java | 27 import org.json.JSONArray; 28 import org.json.JSONException;
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/ |
GoogleSuggestClient.java | 32 import org.json.JSONArray; 33 import org.json.JSONException; 120 /* Goto http://www.google.com/complete/search?json=true&q=foo 121 * to see what the data format looks like. It's basically a json
|
/external/chromium/net/tools/testserver/ |
device_management.py | 14 The format of the file is JSON. The root dictionary contains a list under the 53 # The name and availability of the json module varies in python versions. 55 import simplejson as json namespace 58 import json namespace 60 json = None variable 377 policies: The source dictionary containing policies in JSON format. 551 policy_path: Names the file to read JSON-formatted policy from. 563 if json is None: 564 print 'No JSON module, cannot parse policy information' 567 self.policy = json.loads(open(policy_path).read() [all...] |
/external/chromium/chrome/browser/debugger/ |
devtools_window.cc | 6 #include "base/json/json_writer.h" 327 std::string json; local 328 base::JSONWriter::Write(&arg, false, &json); 329 string16 javascript = function_name + char16('(') + UTF8ToUTF16(json) +
|
/external/webkit/Tools/Scripts/webkitpy/layout_tests/layout_package/ |
json_results_generator.py | 40 # A JSON results generator for generic tests. 98 """A JSON results generator for generic tests.""" 101 # Min time (seconds) that will be added to the JSON. 129 RESULTS_FILENAME = "results.json" 130 FULL_RESULTS_FILENAME = "full_results.json" 131 INCREMENTAL_RESULTS_FILENAME = "incremental_results.json" 146 """Modifies the results.json file. Grabs it off the archive directory 155 results json file. 161 included in the JSON with the given json_field_name. 162 test_results_server: server that hosts test results json [all...] |
/libcore/json/src/main/java/org/json/ |
JSONObject.java | 17 package org.json; 24 // Note: this class was written without inspecting the non-free org.json sourcecode. 90 * <li>are included in the encoded JSON string. 158 throw JSON.typeMismatch(object, "JSONObject"); 163 * Creates a new {@code JSONObject} with name/value mappings from the JSON 166 * @param json a JSON-encoded string containing an object. 170 public JSONObject(String json) throws JSONException { 171 this(new JSONTokener(json)); 216 nameValuePairs.put(checkName(name), JSON.checkDouble(value)) [all...] |
/external/v8/src/ |
debug-debugger.js | 67 JSON: 2 }; 1033 return JSON.stringify(ObjectToProtocolObject_(o)); [all...] |
d8.js | 98 JSON: 2 }; 118 var trace_debug_json = false; // Tracing all debug json packets? 133 // Process a debugger JSON message into a display text and a running status. 140 // Convert the JSON string to an object. 284 // Converts a text command to a JSON request. 295 // If the very first character is a { assume that a JSON request have been 296 // entered as a command. Converting that to a JSON request is trivial. 490 // Return undefined to indicate command handled internally (no JSON). 498 // Return undefined to indicate command handled internally (no JSON). 528 var json = '{' [all...] |
/cts/libs/json/src/com/android/json/stream/ |
JsonWriter.java | 17 package com.android.json.stream; 26 * Writes a JSON (<a href="http://www.ietf.org/rfc/rfc4627.txt">RFC 4627</a>) 31 * <h3>Encoding JSON</h3> 32 * To encode your data as JSON, create a new {@code JsonWriter}. Each JSON 53 * "text": "How do I write JSON on Android?", 116 * <p>Each {@code JsonWriter} may be used to write a single JSON stream. 118 * malformed JSON string will fail with an {@link IllegalStateException}. 142 * Creates a new instance that writes a JSON-encoded stream to {@code out}. 343 * @throws IOException if the JSON document is incomplete [all...] |
JsonReader.java | 17 package com.android.json.stream; 26 * Reads a JSON (<a href="http://www.ietf.org/rfc/rfc4627.txt">RFC 4627</a>) 30 * depth-first order, the same order that they appear in the JSON document. 31 * Within JSON objects, name/value pairs are represented by a single token. 33 * <h3>Parsing JSON</h3> 34 * To create a recursive descent parser for your own JSON streams, first create 37 * <p>Next, create handler methods for each structure in your JSON text. You'll 67 * "text": "How do I read JSON on Android?", 159 * be read as numbers. For example, both elements of the JSON array {@code 165 * in JSON [all...] |
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/syncadapter/ |
SyncAdapter.java | 25 import org.json.JSONException;
|
/external/v8/test/mjsunit/ |
debug-compile-event.js | 79 var json = event_data.toJSONProtocol(); 80 var msg = eval('(' + json + ')'); 104 compileSource('JSON.parse(\'{"a":1,"b":2}\')'); 105 // Using JSON.parse does not causes additional compilation events.
|
debug-return-value.js | 33 function ParsedResponse(json) { 34 this.response_ = eval('(' + json + ')'); 112 // Check the same using the JSON commands.
|
mirror-regexp.js | 55 // Create mirror and JSON representation. 58 var json = JSON.stringify(serializer.serializeValue(mirror)); 60 JSON.stringify(serializer.serializeReferencedObjects())); 81 // Parse JSON representation and check. 82 var fromJSON = eval('(' + json + ')');
|
mirror-script.js | 33 // Create mirror and JSON representation. 36 var json = JSON.stringify(serializer.serializeValue(mirror)); 66 // Parse JSON representation and check. 67 var fromJSON = JSON.parse(json);
|
mirror-unresolved-function.js | 45 var json = JSON.stringify(serializer.serializeValue(mirror)); variable 47 JSON.stringify(serializer.serializeReferencedObjects())); 68 // Parse JSON representation of unresolved functions and check. 69 var fromJSON = eval('(' + json + ')'); 70 assertEquals('function', fromJSON.type, 'Unexpected mirror type in JSON'); 71 assertEquals('Function', fromJSON.className, 'Unexpected mirror class name in JSON'); 72 assertEquals(mirror.constructorFunction().handle(), fromJSON.constructorFunction.ref, 'Unexpected constructor function handle in JSON'); 73 assertEquals('undefined', refs.lookup(fromJSON.constructorFunction.ref).type, 'Unexpected constructor function type in JSON'); 74 assertEquals(mirror.protoObject().handle(), fromJSON.protoObject.ref, 'Unexpected proto object handle in JSON'); [all...] |
mirror-object.js | 44 // Create mirror and JSON representation. 47 var json = JSON.stringify(serializer.serializeValue(mirror)); 49 JSON.stringify(serializer.serializeReferencedObjects())); 91 // Parse JSON representation and check. 92 var fromJSON = eval('(' + json + ')'); 93 assertEquals('object', fromJSON.type, 'Unexpected mirror type in JSON'); 94 assertEquals(cls_name, fromJSON.className, 'Unexpected mirror class name in JSON'); 95 assertEquals(mirror.constructorFunction().handle(), fromJSON.constructorFunction.ref, 'Unexpected constructor function handle in JSON'); 96 assertEquals('function', refs.lookup(fromJSON.constructorFunction.ref).type, 'Unexpected constructor function type in JSON'); [all...] |
/external/webkit/Source/WebCore/inspector/ |
InspectorValues.cpp | 540 PassRefPtr<InspectorValue> InspectorValue::parseJSON(const String& json) 542 const UChar* start = json.characters(); 543 const UChar* end = json.characters() + json.length();
|
/external/chromium/chrome/browser/diagnostics/ |
recon_diagnostics.cc | 10 #include "base/json/json_reader.h" 314 // Checks that a given json file can be correctly parsed. 346 JSONStringValueSerializer json(json_data); 349 scoped_ptr<Value> json_root(json.Deserialize(&error_code, &error_message)); 409 return new JSONTest(path, ASCIIToUTF16("Profile JSON"), 100 * kOneKilo); 415 return new JSONTest(path, ASCIIToUTF16("BookMarks JSON"), 2 * kOneMeg); 422 return new JSONTest(path, ASCIIToUTF16("Local State JSON"), 50 * kOneKilo);
|
/external/chromium/chrome/browser/sync/glue/ |
preference_model_associator.cc | 7 #include "base/json/json_reader.h" 244 JSONStringValueSerializer json(&serialized); 245 if (!json.Serialize(value)) {
|
/external/chromium/chrome/common/ |
json_value_serializer_unittest.cc | 7 #include "base/json/json_reader.h" 8 #include "base/json/json_writer.h" 57 // JSON output uses a different newline style on Windows than on other 122 // unicode string json -> escaped ascii text 134 // escaped ascii text -> json 146 // hex string json -> escaped ascii text 158 // escaped ascii text -> json 196 void ValidateJsonList(const std::string& json) { 197 scoped_ptr<Value> root(base::JSONReader::Read(json, false));
|
/libcore/ |
JavaLibrary.mk | 53 core_src_files := $(call all-main-java-files-under,dalvik dom json luni support xml) 103 LOCAL_SRC_FILES := $(call all-test-java-files-under,dalvik dom json luni support xml) 169 LOCAL_SRC_FILES := $(call all-test-java-files-under,dalvik dom json luni support xml)
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
ShortcutRepositoryImplLog.java | 26 import org.json.JSONException; 444 String json = mCursor.getString(mExtrasColumn); local 445 if (!TextUtils.isEmpty(json)) { 447 return new JsonBackedSuggestionExtras(json); 449 Log.e(TAG, "Could not parse JSON extras from DB: " + json); 459 * shortcuts in the shortcuts table, which would mean parsing ALL the JSON contained 464 * JSON for shortcuts that are actually displayed. 547 // flatten any custom columns to JSON. We need to keep any custom columns so that 552 Log.e(TAG, "Could not flatten extras to JSON from " + suggestion, e) [all...] |
/external/webkit/Tools/Scripts/webkitpy/common/net/buildbot/ |
buildbot.py | 32 import json namespace 35 import webkitpy.thirdparty.simplejson as json namespace 156 # Builds for old revisions with fail to lookup via buildbot's json api. 374 path = urllib.quote("json/builders/%s/builds/%s" % (builder.name(), 378 return json.load(jsondata) 385 _log.error("Error decoding json data from %s: %s" % (build_url, err))
|
/external/webkit/Tools/Scripts/webkitpy/tool/commands/ |
rebaselineserver.py | 192 def _serve_json(self, json): 194 self.send_header('Content-type', 'application/json') 196 simplejson.dump(json, self.wfile) 417 print 'Parsing unexpected_results.json...' 418 results_json_path = filesystem.join(results_directory, 'unexpected_results.json')
|