/prebuilts/python/linux-x86/2.7.5/lib/python2.7/json/tests/ |
test_pass3.py | 1 from json.tests import PyTest, CTest 4 # from http://json.org/JSON_checker/test/pass3.json 5 JSON = r''' 7 "JSON Test Pattern pass3": { 18 res = self.loads(JSON)
|
test_scanstring.py | 2 from json.tests import PyTest, CTest 7 scanstring = self.json.decoder.scanstring 26 scanstring('"A JSON payload should be an object or array, not a string."', 1, None, True), 27 (u'A JSON payload should be an object or array, not a string.', 60)) 98 self.assertRaises(ValueError, self.json.decoder.scanstring, b"xxx", 1, 101 self.json.encoder.encode_basestring_ascii, b"xx\xff") 105 self.json.decoder.scanstring(b"xxx", sys.maxsize+1)
|
/external/chromium_org/chrome/browser/chromeos/system_logs/ |
touch_log_source.cc | 10 #include "base/json/json_string_value_serializer.h" 26 JSONStringValueSerializer json(&touch_log); 27 json.set_pretty_print(true); 28 if (json.Serialize(*dictionary) && !touch_log.empty())
|
/external/chromium_org/chrome/common/extensions/docs/server2/ |
samples_model_test.py | 6 import json namespace 36 self._samples_model._samples_cache = _FakeCache(json.loads(_ReadLocalFile( 37 'samples.json'))) 40 self.assertEquals(json.loads(_ReadLocalFile('expected.json')),
|
/external/chromium_org/chrome/test/chromedriver/chrome/ |
frame_tracker.cc | 9 #include "base/json/json_writer.h" 54 std::string json; local 55 base::JSONWriter::Write(context, &json); 58 "Runtime.executionContextCreated has invalid 'context': " + json);
|
/external/chromium_org/extensions/browser/value_store/ |
value_store_change.cc | 7 #include "base/json/json_writer.h" 25 std::string json; local 26 base::JSONWriter::Write(&changes_value, &json); 27 return json;
|
/external/chromium_org/third_party/libvpx/source/libvpx/test/android/ |
scrape_gtest_log.py | 9 """Standalone script which parses a gtest log for json. 11 Json is returned returns as an array. This script is used by the libvpx 12 waterfall to gather json results mixed in with gtest logs. This is 17 import json namespace 25 print "Expects a file to write json to!" 31 'o:', ['output-json=']) 38 if opt in ('-o', '--output-json'): 46 output = json.dumps(json.loads(json_string), indent=4, sort_keys=True)
|
/external/chromium_org/tools/deep_memory_profiler/ |
graph.py | 7 import json namespace 92 'ALL_DATA': json.dumps(all_data)}) 96 _GenerateGraph(json.load(file(argv[1], 'r')))
|
/external/chromium_org/tools/telemetry/telemetry/value/ |
histogram_util_unittest.py | 5 import json namespace 21 new_histogram = json.loads( 45 new_histogram = json.loads(
|
/external/libvpx/libvpx/test/android/ |
scrape_gtest_log.py | 9 """Standalone script which parses a gtest log for json. 11 Json is returned returns as an array. This script is used by the libvpx 12 waterfall to gather json results mixed in with gtest logs. This is 17 import json namespace 25 print "Expects a file to write json to!" 31 'o:', ['output-json=']) 38 if opt in ('-o', '--output-json'): 46 output = json.dumps(json.loads(json_string), indent=4, sort_keys=True)
|
/external/skia/gm/ |
gm_json.py | 6 """Schema of the JSON summary file written out by the GM tool. 16 import json namespace 22 # Key strings used in GM results JSON files (both expected-results.json and 23 # actual-results.json). 101 # Root directory where buildbots store skimage actual results json files. 165 """Loads the JSON summary written out by the GM tool. 168 # TODO(epoger): we should add a version number to the JSON file to ensure 171 json_dict = json.loads(file_contents) 176 """Loads the JSON summary written out by the GM tool [all...] |
/external/chromium_org/chrome/browser/resources/chromeos/chromevox/common/ |
nav_braille.js | 63 * Creates a NavBraille from its serialized json form as created 65 * @param {!Object} json the serialized json object. 68 cvox.NavBraille.fromJson = function(json) { 69 if (typeof json.startIndex !== 'number' || 70 typeof json.endIndex !== 'number') { 71 throw 'Invalid start or end index in serialized NavBraille: ' + json; 74 text: cvox.Spannable.fromJson(json.spannable), 75 startIndex: json.startIndex, 76 endIndex: json.endInde [all...] |
/external/chromium_org/components/cronet/android/java/src/org/chromium/net/ |
HttpUrlRequestFactoryConfig.java | 7 import org.json.JSONArray; 8 import org.json.JSONException; 9 import org.json.JSONObject; 35 * Create config from json serialized using @toString. 37 public HttpUrlRequestFactoryConfig(String json) throws JSONException { 38 mConfig = new JSONObject(json); 134 * Get JSON string representation of the config.
|
/external/chromium_org/content/renderer/ |
dom_automation_controller.cc | 7 #include "base/json/json_string_value_serializer.h" 68 std::string json; 69 JSONStringValueSerializer serializer(&json); 72 // Warning: note that JSON officially requires the root-level object to be 74 // strings, bools, etc. to "JSON". This only works because (a) the JSON 75 // writer is lenient, and (b) on the receiving side we wrap the JSON string 91 routing_id(), json, automation_id_)); 97 bool DomAutomationController::SendJSON(const std::string& json) { 104 routing_id(), json, automation_id_)) [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/json/tests/ |
test_scanstring.py | 2 from json.tests import PyTest, CTest 7 scanstring = self.json.decoder.scanstring 26 scanstring('"A JSON payload should be an object or array, not a string."', 1, None, True), 27 (u'A JSON payload should be an object or array, not a string.', 60)) 98 self.assertRaises(ValueError, self.json.decoder.scanstring, b"xxx", 1, 101 self.json.encoder.encode_basestring_ascii, b"xx\xff") 105 self.json.decoder.scanstring(b"xxx", sys.maxsize+1)
|
/external/chromium_org/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...] |
/external/chromium_org/cloud_print/gcp20/prototype/ |
cloud_print_response_parser.cc | 7 #include "base/json/json_reader.h" 8 #include "base/json/json_writer.h" 21 // Parses json base::Value to base::DictionaryValue. 22 // If |success| value in JSON dictionary is |false| then |message| will 23 // contain |message| from the JSON dictionary. 25 bool GetJsonDictinaryAndCheckSuccess(base::Value* json, 31 if (!json || !json->GetAsDictionary(&response_dictionary)) { 32 *error_description = "No JSON dictionary response received."; 62 scoped_ptr<base::Value> json(base::JSONReader::Read(response)) [all...] |
/packages/apps/Email/tests/src/com/android/emailcommon/provider/ |
HostAuthTests.java | 24 import org.json.JSONException; 25 import org.json.JSONObject; 224 final JSONObject json = new JSONObject(); local 225 json.put(EmailContent.HostAuthColumns.PROTOCOL, "IMAP"); 226 json.put(EmailContent.HostAuthColumns.ADDRESS, "dhoff@example.com"); 227 json.put(EmailContent.HostAuthColumns.PORT, 1337); 228 json.put(EmailContent.HostAuthColumns.FLAGS, 293847); 229 json.put(EmailContent.HostAuthColumns.LOGIN, "dhoff"); 230 json.put(EmailContent.HostAuthColumns.PASSWORD, "daknightrida"); 231 json.put(EmailContent.HostAuthColumns.DOMAIN, "example.com") [all...] |
/external/chromium_org/extensions/common/api/sockets/ |
sockets_manifest_permission_unittest.cc | 7 #include "base/json/json_reader.h" 41 static scoped_ptr<base::Value> ParsePermissionJSON(const std::string& json) { 42 scoped_ptr<base::Value> result(base::JSONReader::Read(json)); 43 EXPECT_TRUE(result) << "Invalid JSON string: " << json; 57 const std::string& json) { 58 scoped_ptr<base::Value> value(ParsePermissionJSON(json)); 87 const std::string& json) { 88 scoped_ptr<SocketsManifestPermission> permission(PermissionFromJSON(json)); 90 return testing::AssertionFailure() << "Invalid permission " << json; [all...] |
/external/chromium_org/chrome/browser/ui/app_list/search/people/ |
people_provider.cc | 151 scoped_ptr<base::DictionaryValue> json) { 152 ProcessPeopleSearchResults(json.get()); 153 cache_->Put(WebserviceCache::PEOPLE, query_, json.Pass()); 160 const base::DictionaryValue* json) { 162 if (!json || 163 !json->GetList(kKeyItems, &item_list) ||
|
/external/chromium_org/chrome/browser/ui/app_list/search/webstore/ |
webstore_provider.cc | 109 scoped_ptr<base::DictionaryValue> json) { 110 ProcessWebstoreSearchResults(json.get()); 111 cache_->Put(WebserviceCache::WEBSTORE, query_, json.Pass()); 118 const base::DictionaryValue* json) { 120 if (!json || 121 !json->GetList(kKeyResults, &result_list) ||
|
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/mappy/ |
popup.js | 8 var url = 'https://maps.googleapis.com/maps/api/geocode/json?address=' + 18 var json = JSON.parse(request.responseText); 19 var latlng = json.results[0].geometry.location;
|
/external/chromium_org/chrome/common/extensions/manifest_handlers/ |
settings_overrides_handler_unittest.cc | 7 #include "base/json/json_string_value_serializer.h" 77 JSONStringValueSerializer json(&manifest); 79 scoped_ptr<base::Value> root(json.Deserialize(NULL, &error)); 120 JSONStringValueSerializer json(&manifest); 122 scoped_ptr<base::Value> root(json.Deserialize(NULL, &error)); 153 JSONStringValueSerializer json(&manifest); 155 scoped_ptr<base::Value> root(json.Deserialize(NULL, &error));
|
/external/chromium_org/third_party/libaddressinput/src/java/src/com/android/i18n/addressinput/ |
JsoMap.java | 19 import org.json.JSONArray; 20 import org.json.JSONException; 21 import org.json.JSONObject; 22 import org.json.JSONTokener; 28 * Compatibility methods on top of the JSON data. 33 * Construct a JsoMap object given some json text. This method directly evaluates the String 37 * @param json JSON text describing an address format 38 * @return a JsoMap object made from the supplied JSON. 40 static JsoMap buildJsoMap(String json) throws JSONException [all...] |
/external/chromium_org/tools/memory_inspector/memory_inspector/data/ |
serialization.py | 5 """This module handles the JSON de/serialization of the core classes. 15 import json namespace 25 class Encoder(json.JSONEncoder): 38 # it as a JSON dictionary would be redundant. 69 return json.JSONEncoder.default(self, obj) 72 class MmapDecoder(json.JSONDecoder): 82 class SymbolsDecoder(json.JSONDecoder): 94 class NativeHeapDecoder(json.JSONDecoder):
|