/external/chromium_org/cloud_print/gcp20/prototype/ |
H A D | 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. 25 bool GetJsonDictinaryAndCheckSuccess(base::Value* json, argument 31 if (!json || !json->GetAsDictionary(&response_dictionary)) { 62 scoped_ptr<base::Value> json(base::JSONReader::Read(response)); 66 if (!GetJsonDictinaryAndCheckSuccess(json.get(), error_description, 130 scoped_ptr<base::Value> json(base::JSONReader::Read(response)); 134 if (!GetJsonDictinaryAndCheckSuccess(json [all...] |
/external/chromium_org/cloud_print/service/ |
H A D | service_state.cc | 7 #include "base/json/json_reader.h" 8 #include "base/json/json_writer.h" 100 bool ServiceState::FromString(const std::string& json) { argument 102 scoped_ptr<base::Value> data(base::JSONReader::Read(json)); 153 std::string json; local 156 &json); 157 return json;
|
/external/chromium_org/cloud_print/service/win/ |
H A D | chrome_launcher.cc | 11 #include "base/json/json_reader.h" 12 #include "base/json/json_writer.h" 99 std::string json; local 101 if (!base::ReadFileToString(file_path, &json)) { 105 scoped_ptr<base::Value> service_state(base::JSONReader::Read(json)); 267 base::FilePath printers_file = temp_user_data.path().Append(L"printers.json"); 306 std::string json = ReadAndUpdateServiceState(temp_user_data.path(), local 310 return json; 316 if (!json.empty()) { 319 return json; [all...] |
/external/chromium_org/components/invalidation/ |
H A D | p2p_invalidator.cc | 10 #include "base/json/json_reader.h" 11 #include "base/json/json_writer.h" 110 std::string json; local 111 base::JSONWriter::Write(dict.get(), &json); 112 return json;
|
/external/chromium_org/components/policy/tools/ |
H A D | generate_policy_source.py | 11 template is the path to a .json policy template file.''' 15 import json namespace 35 # TODO(joaodasilva): refactor the 'dict' type into a more generic 'json' type 307 return json.dumps(s) 788 json.dumps(policy.schema, sort_keys=True, indent=4, 839 #include "base/json/json_reader.h" 877 base::Value* DecodeJson(const std::string& json) { 879 base::JSONReader::Read(json, base::JSON_ALLOW_TRAILING_COMMAS)); 882 LOG(WARNING) << "Invalid JSON string, ignoring: " << json;
|
/external/chromium_org/content/browser/webui/ |
H A D | web_ui_impl.cc | 7 #include "base/json/json_writer.h" 34 std::string json; local 39 base::JSONWriter::Write(arg_list[i], &json); 40 parameters += base::UTF8ToUTF16(json);
|
/external/chromium_org/content/renderer/manifest/ |
H A D | manifest_parser.cc | 7 #include "base/json/json_reader.h" 280 Manifest ManifestParser::Parse(const base::StringPiece& json, argument 283 scoped_ptr<base::Value> value(base::JSONReader::Read(json));
|
/external/chromium_org/ipc/ |
H A D | ipc_message_utils.cc | 8 #include "base/json/json_writer.h" 455 std::string json; local 456 base::JSONWriter::Write(&p, &json); 457 l->append(json); 536 std::string json; local 537 base::JSONWriter::Write(&p, &json); 538 l->append(json);
|
/external/chromium_org/media/cast/test/ |
H A D | sender.cc | 14 #include "base/json/json_writer.h" 236 std::string json; local 238 stats.get(), base::JSONWriter::OPTIONS_PRETTY_PRINT, &json); 239 VLOG(0) << "Video stats: " << json; 242 json.clear(); 244 stats.get(), base::JSONWriter::OPTIONS_PRETTY_PRINT, &json); 245 VLOG(0) << "Audio stats: " << json;
|
/external/chromium_org/media/cdm/ |
H A D | json_web_key.cc | 8 #include "base/json/json_reader.h" 9 #include "base/json/json_string_value_serializer.h" 10 #include "base/json/string_escape.h" 210 std::string json; local 211 JSONStringValueSerializer serializer(&json); 215 std::vector<uint8> result(json.begin(), json.end());
|
/external/chromium_org/native_client_sdk/src/build_tools/ |
H A D | manifest_util.py | 7 import json namespace 54 pretty_string = json.dumps(pydict, sort_keys=True, indent=2) 55 # json.dumps sometimes returns trailing whitespace and does not put 250 self.CopyFrom(json.loads(json_string)) 563 new_manifest = json.loads(json_string)
|
/external/chromium_org/native_client_sdk/src/examples/tutorial/debugging/ |
H A D | debugging.c | 86 void DumpJson(const char* json) { argument 88 size_t size = sizeof(kTrcPrefix) + strlen(json) + 1; // +1 for NULL. 91 strcat(out, json);
|
/external/chromium_org/native_client_sdk/src/tools/ |
H A D | create_nmf.py | 13 import json namespace 414 pretty_string = json.dumps(self.GetManifest(), indent=2) 415 # json.dumps sometimes returns trailing whitespace and does not put
|
/external/chromium_org/native_client_sdk/src/tools/tests/ |
H A D | create_nmf_test.py | 5 import json namespace 147 * The generated NMF as a dictionary (i.e. parsed by json.loads) 164 nmf = json.loads(nmf_utils.GetJson()) 179 * The generated NMF as a dictionary (i.e. parsed by json.loads) 193 nmf = json.loads(nmf_utils.GetJson()) 207 * The generated NMF as a dictionary (i.e. parsed by json.loads) 217 nmf = json.loads(nmf_utils.GetJson()) 230 * The generated NMF as a dictionary (i.e. parsed by json.loads) 240 nmf = json.loads(nmf_utils.GetJson())
|
/external/chromium_org/net/tools/testserver/ |
H A D | testserver_base.py | 7 import json namespace 244 server_data_json = json.dumps(server_data)
|
/external/chromium_org/ppapi/native_client/src/untrusted/pnacl_support_extension/ |
H A D | pnacl_component_crx_gen.py | 14 import json namespace 103 pnacl_json = 'pnacl.json' 141 pnacl_template = json.load(pnacl_template_fd) 147 json.dump(pnacl_template, output_fd, sort_keys=True, indent=4)
|
/external/chromium_org/third_party/WebKit/Source/core/inspector/ |
H A D | JSONParser.cpp | 469 PassRefPtr<JSONValue> parseJSON(const String& json) argument 471 if (json.isEmpty()) 473 if (json.is8Bit()) 474 return parseJSONInternal(json.characters8(), json.length()); 475 return parseJSONInternal(json.characters16(), json.length());
|
/external/chromium_org/third_party/WebKit/Source/modules/crypto/ |
H A D | SubtleCrypto.cpp | 187 String json = jsonObject->toJSONString(); local 188 jsonUtf8 = json.utf8();
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/ |
H A D | manager.py | 38 import json namespace 301 self._filesystem.copyfile(self._filesystem.join(self._results_directory, "full_results.json"), 433 # FIXME: Upload stats.json to the server and delete times_ms. 435 times_json_path = self._filesystem.join(self._results_directory, "times_ms.json") 439 stats_path = self._filesystem.join(self._results_directory, "stats.json") 440 self._filesystem.write_text_file(stats_path, json.dumps(stats_trie)) 442 full_results_path = self._filesystem.join(self._results_directory, "full_results.json") 445 full_results_path = self._filesystem.join(self._results_directory, "failing_results.json") 446 # We write failing_results.json out as jsonp because we need to load it from a file url for results.html and Chromium doesn't allow that. 464 files = [(file, self._filesystem.join(self._results_directory, file)) for file in ["failing_results.json", "full_result [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/performance_tests/ |
H A D | perftestsrunner.py | 32 import json namespace 58 _DEFAULT_JSON_FILENAME = 'PerformanceTestsResults.json' 105 optparse.make_option("--output-json-path", action='callback', callback=_expand_path, type="str", 109 optparse.make_option("--slave-config-json-path", action='callback', callback=_expand_path, type="str", 116 help="Upload the generated JSON file to the specified server when --output-json-path is present."), 251 json_output = json.dumps(output) 316 slave_config = json.load(slave_config_json) 328 existing_outputs = json.loads(self._host.filesystem.read_text_file(output_json_path)) 338 response = uploader.upload_single_text_file(self._host.filesystem, 'application/json', json_path) 346 parsed_response = json [all...] |
/external/chromium_org/third_party/libaddressinput/src/cpp/src/ |
H A D | preload_supplier.cc | 39 #include "util/json.h" 105 Json json; local 121 if (!json.ParseObject(data)) { 127 it = json.GetSubDictionaries().begin(); 128 it != json.GetSubDictionaries().end();
|
/external/chromium_org/third_party/skia/gm/ |
H A D | gm_json.py | 16 import json namespace 22 # Key strings used in GM results JSON files (both expected-results.json and 23 # actual-results.json). 107 # Root directory where buildbots store skimage actual results json files. 180 json_dict = json.loads(file_contents) 198 outfile.write(unicode(json.dumps(json_dict, outfile, sort_keys=True,
|
/external/chromium_org/third_party/skia/gm/rebaseline_server/ |
H A D | imagediffdb.py | 15 import json namespace 129 'skpdiff-output.json') 156 data = json.load(fp)
|
/external/chromium_org/third_party/skia/tools/skpdiff/ |
H A D | skpdiff_server.py | 7 import json namespace 45 'json': 'application/json' 133 expected-results.json. Note that this only work with bitmap-64bitMD5 hash 205 are in the format of expected-results.json. 245 'skpdiff_output.json') 320 self.skpdiff_records = json.load(skpdiff_output_file)['records'] 459 # Handle skpdiff_output.json manually because it is was processed by the 461 if file_path == 'skpdiff_output.json': 463 self.send_header('Content-type', MIME_TYPE_MAP['json']) [all...] |
/external/chromium_org/third_party/skia/tools/tests/ |
H A D | render_pictures_test.py | 14 import json namespace 185 output_json_path = os.path.join(self._output_dir, 'actuals.json') 220 output_json_path = os.path.join(self._output_dir, 'actuals.json') 258 output_json_path = os.path.join(self._output_dir, 'actuals.json') 303 output_json_path = os.path.join(self._output_dir, 'actuals.json') 365 output_json_path = os.path.join(self._output_dir, 'actuals.json') 421 output_json_path = os.path.join(self._output_dir, 'actuals.json') 445 output_json_path = os.path.join(self._output_dir, 'actuals.json') 481 output_json_path = os.path.join(self._output_dir, 'actuals.json') 515 output_json_path = os.path.join(self._output_dir, 'actuals.json') [all...] |