/external/autotest/client/common_lib/cros/fake_device_server/client_lib/ |
oauth_helpers.py | 8 import json 41 auth_result = json.loads(url_h.read()) 59 auth_result = json.loads(url_h.read())
|
/external/autotest/frontend/client/src/autotest/afe/ |
LabelFilter.java | 7 import com.google.gwt.json.client.JSONArray; 8 import com.google.gwt.json.client.JSONString; 9 import com.google.gwt.json.client.JSONValue;
|
HostTableDecorator.java | 12 import com.google.gwt.json.client.JSONArray; 13 import com.google.gwt.json.client.JSONBoolean; 14 import com.google.gwt.json.client.JSONObject; 15 import com.google.gwt.json.client.JSONString; 16 import com.google.gwt.json.client.JSONValue;
|
/external/autotest/site_utils/chromeos_proxy/ |
bot_config.py | 30 import json 103 path = os.path.join(work_dir, 'task_runner_in.json') 106 manifest = json.load(f) 113 f.write(json.dumps(manifest))
|
/external/chromium-trace/catapult/dashboard/dashboard/ |
get_logs_test.py | 5 import json 36 response_logs = json.loads(response.body) 49 response_logs = json.loads(response.body)
|
/external/chromium-trace/catapult/devil/devil/android/ |
device_blacklist.py | 5 import json 29 blacklist = json.load(f) 44 json.dump(blacklist, f)
|
/external/chromium-trace/catapult/telemetry/ |
json_format | 6 import json 13 json_obj = json.load(f) 15 return json.dumps( 24 'Reformat your JSON file by running: %s --format %s' % 26 print >> sys.stdout, ('%s passes the JSON format validation' % file_path) 36 description = """A JSON formatting tool. 38 This is a tool that validate and reformats JSON file so that it complies with 39 a certain style. The JSON style imposed by this tool is: 40 * JSON array elements and object members are indented with 2 spaces. 46 parser.add_argument('file_path', type=str, help='The path to JSON file.' [all...] |
/external/chromium-trace/catapult/third_party/WebOb/docs/jsonrpc-example-code/ |
jsonrpc.py | 10 Serve the given object via json-rpc (http://json-rpc.org/) 32 json = loads(req.body) 34 raise ValueError('Bad JSON: %s' % e) 36 method = json['method'] 37 params = json['params'] 38 id = json['id'] 41 "JSON body missing parameter: %s" % e) 65 content_type='application/json', 70 content_type='application/json', [all...] |
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/kms/ |
test_kms.py | 23 from boto.compat import json 42 body = json.loads(self.actual_request.body) 61 body=json.dumps(content).encode('utf-8'))
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/ |
gce.py | 22 import json 66 data = json.loads(json_data) 86 d = json.loads(content)
|
/external/libchrome/base/trace_event/ |
heap_profiler_type_name_deduplicator_unittest.cc | 7 #include "base/json/json_reader.h" 25 std::string json; local 26 convertable.AppendAsTraceFormat(&json); 27 return JSONReader::Read(json); 55 // Reading json should not fail, because the type name should have been
|
/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 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/libweave/src/ |
utils.cc | 8 #include <base/json/json_reader.h> 17 // long JSON strings. 45 Error::AddToPrintf(error, FROM_HERE, errors::json::kParseError, 46 "Error parsing JSON string '%s' (%zu): %s", 53 Error::AddToPrintf(error, FROM_HERE, errors::json::kObjectExpected, 54 "JSON string '%s' is not a JSON object",
|
/external/skia/tools/skiaserve/urlhandlers/ |
InfoHandler.cpp | 48 // make some json 51 Json::Value info(Json::objectValue); 55 std::string json = Json::FastWriter().write(info); local 58 SkAutoTUnref<SkData> data(SkData::NewWithCopy(json.c_str(), strlen(json.c_str()))); 59 return SendData(connection, data, "application/json");
|
/external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/ |
WebSocketChannelClient.java | 23 import org.json.JSONException; 24 import org.json.JSONObject; 117 JSONObject json = new JSONObject(); local 119 json.put("cmd", "register"); 120 json.put("roomid", roomID); 121 json.put("clientid", clientID); 122 Log.d(TAG, "C->WSS: " + json.toString()); 123 ws.sendTextMessage(json.toString()); 131 reportError("WebSocket register JSON error: " + e.getMessage()); 150 JSONObject json = new JSONObject() local [all...] |
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/ |
JsonParser.java | 22 import org.json.JSONArray; 23 import org.json.JSONException; 24 import org.json.JSONObject; 38 * Consumes and parses exactly one JSON object from the {@link JsonReader}.
|
/tools/test/connectivity/acts/framework/acts/controllers/ |
native.py | 19 import json 55 request = json.dumps(data) 62 result = json.loads(
|
/prebuilts/go/darwin-x86/src/encoding/json/ |
stream_test.go | 5 package json package 21 // One of each JSON kind. 66 // merge two adjacent JSON values. 213 json string 223 {json: `10`, expTokens: []interface{}{float64(10)}}, 224 {json: ` [10] `, expTokens: []interface{}{ 226 {json: ` [false,10,"b"] `, expTokens: []interface{}{ 228 {json: `{ "a": 1 }`, expTokens: []interface{}{ 230 {json: `{"a": 1, "b":"3"}`, expTokens: []interface{}{ 232 {json: ` [{"a": 1},{"a": 2}] `, expTokens: []interface{} [all...] |
/prebuilts/go/linux-x86/src/encoding/json/ |
stream_test.go | 5 package json package 21 // One of each JSON kind. 66 // merge two adjacent JSON values. 213 json string 223 {json: `10`, expTokens: []interface{}{float64(10)}}, 224 {json: ` [10] `, expTokens: []interface{}{ 226 {json: ` [false,10,"b"] `, expTokens: []interface{}{ 228 {json: `{ "a": 1 }`, expTokens: []interface{}{ 230 {json: `{"a": 1, "b":"3"}`, expTokens: []interface{}{ 232 {json: ` [{"a": 1},{"a": 2}] `, expTokens: []interface{} [all...] |
/external/autotest/frontend/client/src/autotest/common/table/ |
RpcDataSource.java | 8 import com.google.gwt.json.client.JSONArray; 9 import com.google.gwt.json.client.JSONNumber; 10 import com.google.gwt.json.client.JSONObject; 11 import com.google.gwt.json.client.JSONString; 12 import com.google.gwt.json.client.JSONValue; 87 * Process the JSON result returned by the server into an list of result 89 * Subclasses may override this to construct a list from the JSON result in a customized way.
|
/external/v8/tools/release/ |
check_clusterfuzz.py | 9 Returns a json list with test case IDs if any. 19 import json 29 DEPS_LOG = BASE_URL + "/chromium/src/+log/master/DEPS?format=JSON" 118 # Strip security header and load json. 119 commits = json.loads(result[5:]) 136 commit = json.loads(result) 144 Returns a json dict of the response. 164 return json.loads(data) 204 f.write(json.dumps(results))
|
/external/vulkan-validation-layers/libs/vkjson/ |
vkjson_unittest.cc | 73 std::string json = VkJsonInstanceToJson(instance); local 74 std::cout << json << std::endl; 77 result = VkJsonInstanceFromJson(json, &instance2, &errors); 92 json = VkJsonImageFormatPropertiesToJson(props); 94 result = VkJsonImageFormatPropertiesFromJson(json, &props2, &errors);
|
/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)
|
/prebuilts/python/linux-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/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...] |