Searched defs:json (Results 1 - 25 of 467) sorted by path

1234567891011>>

/external/chromium-trace/trace-viewer/
H A Drun_dev_server.py5 import json namespace
54 tests_as_json = json.dumps(test_filenames)
57 self.send_header('Content-Type', 'application/json')
69 files_as_json = json.dumps(data_files)
72 self.send_header('Content-Type', 'application/json')
84 msg = json.dumps({"details": traceback.format_exc(),
88 self.send_header('Content-Type', 'application/json')
113 if self.path == '/json/examples':
117 if self.path == '/json/tests':
/external/chromium-trace/
H A Dupdate.py3 import httplib, json, optparse, os, urllib, shutil, subprocess, sys namespace
61 ('output_format', 'json'),
78 result = json.loads(data)
/external/chromium_org/
H A DPRESUBMIT_test.py7 import json namespace
22 self.json = json
457 filename = 'valid_json.json'
471 ('invalid_json_1.json',
474 ('invalid_json_2.json',
478 ('invalid_json_3.json',
481 ('invalid_json_4.json',
496 file_with_comments = 'file_with_comments.json'
503 file_without_comments = 'file_without_comments.json'
[all...]
/external/chromium_org/android_webview/browser/
H A Daw_dev_tools_manager_delegate.cc9 #include "base/json/json_writer.h"
94 std::string json; local
95 base::JSONWriter::Write(&description, &json);
96 return json;
/external/chromium_org/android_webview/buildbot/
H A Ddeps_whitelist.py16 import json namespace
228 parser.add_argument('--output-json', help='Name of file to write output to.')
242 json.dump(output_dict, output_json_file)
/external/chromium_org/base/debug/
H A Dtrace_event_argument_unittest.cc17 std::string json; local
18 value->AppendAsTraceFormat(&json);
20 json);
43 std::string json; local
44 value->AppendAsTraceFormat(&json);
49 json);
/external/chromium_org/base/json/
H A Djson_parser.cc5 #include "base/json/json_parser.h"
35 DictionaryHiddenRootValue(std::string* json, Value* root) : json_(json) { argument
85 ListHiddenRootValue(std::string* json, Value* root) : json_(json) { argument
H A Djson_reader_unittest.cc5 #include "base/json/json_reader.h"
546 path = path.AppendASCII("json");
551 path.Append(FILE_PATH_LITERAL("bom_feff.json")), &input));
649 const char json[] = { '"', 'n', 'u', 'l', 'l', '"', '\0' }; local
650 std::string json_string(json, sizeof(json));
H A Djson_value_serializer_unittest.cc9 #include "base/json/json_file_value_serializer.h"
10 #include "base/json/json_reader.h"
11 #include "base/json/json_string_value_serializer.h"
12 #include "base/json/json_writer.h"
62 void ValidateJsonList(const std::string& json) { argument
63 scoped_ptr<Value> root(JSONReader::Read(json));
119 FilePath temp_file(tempdir.path().AppendASCII("test.json"));
143 FilePath temp_file(tempdir.path().AppendASCII("test.json"));
271 // unicode string json -> escaped ascii text
283 // escaped ascii text -> json
[all...]
H A Djson_writer.cc5 #include "base/json/json_writer.h"
9 #include "base/json/string_escape.h"
24 bool JSONWriter::Write(const Value* const node, std::string* json) { argument
25 return WriteWithOptions(node, 0, json);
30 std::string* json) {
31 json->clear();
33 json->reserve(1024);
35 JSONWriter writer(options, json);
39 json->append(kPrettyPrintLineEnding);
44 JSONWriter::JSONWriter(int options, std::string* json) argument
29 WriteWithOptions(const Value* const node, int options, std::string* json) argument
[all...]
/external/chromium_org/base/metrics/
H A Dstatistics_recorder.cc9 #include "base/json/string_escape.h"
189 std::string json; local
190 (*it)->WriteJSON(&json);
191 output += json;
/external/chromium_org/base/test/
H A Dtrace_event_analyzer.cc11 #include "base/json/json_reader.h"
648 bool ParseEventsFromJson(const std::string& json, argument
651 root.reset(base::JSONReader::Read(json));
H A Dvalues_test_util.cc7 #include "base/json/json_reader.h"
65 scoped_ptr<Value> ParseJson(base::StringPiece json) { argument
68 json, base::JSON_ALLOW_TRAILING_COMMAS,
71 ADD_FAILURE() << "Failed to parse \"" << json << "\": " << error_msg;
/external/chromium_org/base/
H A Dvalues.cc13 #include "base/json/json_writer.h"
1127 std::string json; local
1130 &json);
1131 return out << json;
/external/chromium_org/build/android/buildbot/
H A Dbb_device_status_check.py8 import json namespace
284 parser.add_option('--json-output',
372 f.write(json.dumps({
H A Dbb_device_steps.py9 import json namespace
112 args.append('--generate-json-file')
337 'full_results.json')
339 full_results = json.load(open(full_results_path))
381 # Cloned from third_party/WebKit/Tools/Scripts/print-json-test-results
407 # Cloned from third_party/WebKit/Tools/Scripts/print-json-test-results
H A Dbb_run_bot.py9 import json namespace
69 env = json.loads(json_env)
H A Dbb_utils.py5 import json namespace
76 setattr(parser.values, option.dest, json.loads(value))
88 return ['--factory-properties=%s' % json.dumps(options.factory_properties),
89 '--build-properties=%s' % json.dumps(options.build_properties)]
H A Denv_to_json.py6 # Encode current environment into json.
8 import json namespace
11 print json.dumps(dict(os.environ))
/external/chromium_org/build/android/
H A Dgenerate_emma_html.py10 import json namespace
64 sources.extend(json.load(sf))
/external/chromium_org/build/android/gyp/
H A Demma_instr.py23 import json namespace
129 json.dump(relative_sources, f)
/external/chromium_org/build/android/gyp/util/
H A Dbuild_utils.py8 import json namespace
103 new_dump = json.dumps(obj, sort_keys=True, indent=2, separators=(',', ': '))
112 return json.load(jsonfile)
340 The value of such a placeholder is calculated by reading 'filename' as json.
/external/chromium_org/build/android/pylib/
H A Dchrome_test_server_spawner.py13 import json namespace
166 logging.info('Got port json data: %s', port_json)
167 port_json = json.loads(port_json)
305 if content_type != 'application/json':
321 json.loads(test_server_argument_json),
328 self._SendResponse(200, 'OK', {}, json.dumps(
/external/chromium_org/build/android/pylib/device/
H A Ddevice_blacklist.py5 import json namespace
13 'bad_devices.json')
30 return json.load(f)
41 json.dump(list(set(blacklist)), f)
/external/chromium_org/build/android/pylib/instrumentation/
H A Djson_perf_parser.py8 import json namespace
144 return GetAverageRunInfo(json.loads(json_string), name)
159 perf = json.loads(data)

Completed in 422 milliseconds

1234567891011>>