HomeSort by relevance Sort by last modified time
    Searched refs:json (Results 751 - 775 of 1526) sorted by null

<<31323334353637383940>>

  /tools/test/connectivity/acts/framework/acts/
records.py 21 import json
177 """Converts this test record to a string in json format.
179 Format of the json string is:
188 A json-format string representing the test record.
190 return json.dumps(self.to_dict())
274 """Converts this test result to a string in json format.
276 Format of the json string is:
287 A json-format string representing the test results.
293 json_str = json.dumps(d, indent=4, sort_keys=True)
  /external/autotest/client/site_tests/security_DbusMap/
security_DbusMap.py 6 import json
207 logging.error(json.dumps(newapis, sort_keys=True, indent=2))
214 logging.error(json.dumps(missing_apis, sort_keys=True, indent=2))
304 """Writes the given dbus data to a given path to a json file.
310 my_json = json.dumps(dbus_list, sort_keys=True, indent=2)
311 # The json dumper has a trailing whitespace problem, and lacks
318 """Loads dbus data from a given path to a json file.
326 dbus_data = json.loads(file_handle.read())
423 corresponds to, when pretty-printed by the json dumper.
  /external/autotest/frontend/client/src/autotest/common/
Utils.java 7 import com.google.gwt.json.client.JSONArray;
8 import com.google.gwt.json.client.JSONNumber;
9 import com.google.gwt.json.client.JSONObject;
10 import com.google.gwt.json.client.JSONString;
11 import com.google.gwt.json.client.JSONValue;
  /external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/cloudsearch2/
search.py 24 from boto.compat import json, map, six
127 v = json.dumps(v)
178 v = json.dumps(v)
279 The facet value is string of JSON options
284 The facet value is string of JSON options
293 Specified as a string in JSON format.
369 data = json.loads(_body)
380 raise SearchServiceException("Got non-json response from Amazon. %s" % _body, query)
389 % json.dumps(data), query)
  /external/chromium-trace/catapult/third_party/gsutil/third_party/oauth2client/tests/
test_file.py 27 import json
115 # Now write it back out and confirm it has been rewritten as JSON
118 data = json.load(f)
138 ({'status': '200'}, json.dumps(token_response).encode('utf-8')),
163 json.dumps(token_response).encode('utf-8')),
203 json.dumps(token_response).encode('utf-8')),
test_oauth2client.py 28 import json
128 json = credentials.to_json()
129 restored = Credentials.new_from_json(json)
251 os.path.join('gcloud', 'application_default_credentials.json'))
275 'application_default_credentials.json'))
287 'application_default_credentials.json')
299 os.path.join('gcloud', 'application_default_credentials.json'))
306 os.path.join('gcloud', 'application_default_credentials.json'))
310 os.path.join('gcloud', 'temp_well_known_file_service_account.json'))
313 d = json.load(f
    [all...]
  /external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/cloudformation/
test_connection.py 9 from boto.compat import json
49 return json.dumps(
71 'ContentType': 'JSON',
98 'ContentType': 'JSON',
127 return json.dumps(
148 'ContentType': 'JSON',
178 'ContentType': 'JSON',
195 return json.dumps(
202 self.assertEqual(api_response, json.loads(self.default_body().decode('utf-8')))
205 'ContentType': 'JSON',
    [all...]
  /packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/
ContactLoaderTest.java 48 import org.json.JSONException;
49 import org.json.JSONObject;
281 // Use lookup-style Uri that contains encoded json object which encapsulates the
282 // directory contact. The test json object is:
289 JSONObject json = new JSONObject(); local
290 json.put(Contacts.NAME_RAW_CONTACT_ID, CONTACT_ID);
291 json.put(Contacts.DISPLAY_NAME_SOURCE, DisplayNameSources.STRUCTURED_NAME);
292 json.put(Contacts.CONTENT_ITEM_TYPE, itemJson);
295 .encodedFragment(json.toString())
  /prebuilts/tools/common/m2/repository/com/google/http-client/google-http-client/1.19.0/
google-http-client-1.19.0.jar 
  /prebuilts/go/darwin-x86/src/html/template/
js.go 9 "encoding/json"
121 var jsonMarshalType = reflect.TypeOf((*json.Marshaler)(nil)).Elem()
124 // as necessary to reach the base type (or nil) or an implementation of json.Marshal.
145 case json.Marshaler:
159 b, err := json.Marshal(a)
176 // In, `x=y/{{.}}*z` a json.Marshaler that produces "" should
190 // Make sure that json.Marshal escapes codepoints U+2028 & U+2029
191 // so it falls within the subset of JSON which is valid JS.
  /prebuilts/go/linux-x86/src/html/template/
js.go 9 "encoding/json"
121 var jsonMarshalType = reflect.TypeOf((*json.Marshaler)(nil)).Elem()
124 // as necessary to reach the base type (or nil) or an implementation of json.Marshal.
145 case json.Marshaler:
159 b, err := json.Marshal(a)
176 // In, `x=y/{{.}}*z` a json.Marshaler that produces "" should
190 // Make sure that json.Marshal escapes codepoints U+2028 & U+2029
191 // so it falls within the subset of JSON which is valid JS.
  /external/libchrome/
Android.mk 72 base/json/json_file_value_serializer.cc \
73 base/json/json_parser.cc \
74 base/json/json_reader.cc \
75 base/json/json_string_value_serializer.cc \
76 base/json/json_value_converter.cc \
77 base/json/json_writer.cc \
78 base/json/string_escape.cc \
269 base/json/json_parser_unittest.cc \
270 base/json/json_reader_unittest.cc \
271 base/json/json_value_converter_unittest.cc
    [all...]
  /build/soong/common/
config.go 18 "encoding/json"
38 Mega_device *bool `json:",omitempty"`
83 // loads configuration options from a JSON file in the cwd.
92 // a json writer.
100 jsonDecoder := json.NewDecoder(configFileReader)
112 data, err := json.MarshalIndent(&config, "", " ")
  /external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/experimental/javascript/
protorpc.js 27 goog.require('goog.json');
70 xhr.send(goog.json.serialize(request));
97 ProtoRpc.RPC.CONTENT_TYPE = 'application/json;charset=utf-8';
187 var rpcStatus = goog.json.parse(content);
201 this.response_ = goog.json.parse(content);
  /packages/apps/ContactsCommon/src/com/android/contacts/common/model/
ContactLoader.java 59 import org.json.JSONArray;
60 import org.json.JSONException;
61 import org.json.JSONObject;
373 * Parses a {@link Contact} stored as a JSON string in a lookup URI.
389 final JSONObject json = new JSONObject(jsonString); local
394 final String displayName = json.optString(Contacts.DISPLAY_NAME);
395 final String altDisplayName = json.optString(
397 final int displayNameSource = json.getInt(Contacts.DISPLAY_NAME_SOURCE);
398 final String photoUri = json.optString(Contacts.PHOTO_URI, null);
420 final String accountName = json.optString(RawContacts.ACCOUNT_NAME, null)
    [all...]
  /packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
readertest.cpp 714 char *json = StrDup("[ ] "); local
715 InsituStringStream s(json);
720 free(json);
724 char *json = StrDup("[1, 2, 3, 4]"); local
798 const char* json = "{ \\"hello\\" : \\"world\\", \\"t\\" : true , \\"f\\" : false, \\"n\\": null, \\"i\\":123, \\"pi\\": 3.1416, \\"a\\":[1, 2, 3] } "; local
1009 const char* json = "{ \\"hello\\" : \\"world\\", \\"t\\" : true , \\"f\\" : false, \\"n\\": null, \\"i\\":123, \\"pi\\": 3.1416, \\"a\\":[1, 2, 3] } "; local
1050 const char* json = "[1,2,3,4]"; local
    [all...]
  /external/autotest/client/virt/
kvm_monitor.py 10 import json
12 logging.warning("Could not import json module. "
413 qmp_capabilities command. Also make sure the json module is available.
421 @raise MonitorNotSupportedError: Raised if json isn't available and
433 # Make sure json is available
435 json
437 raise MonitorNotSupportedError("QMP requires the json module "
495 json.loads(line)
506 objs += [json.loads(line)]
577 self._send(json.dumps(self._build_cmd(cmd, args, id)) + "\n"
    [all...]
  /external/autotest/frontend/client/src/autotest/afe/
HostDetailView.java 32 import com.google.gwt.json.client.JSONArray;
33 import com.google.gwt.json.client.JSONBoolean;
34 import com.google.gwt.json.client.JSONNumber;
35 import com.google.gwt.json.client.JSONObject;
36 import com.google.gwt.json.client.JSONString;
37 import com.google.gwt.json.client.JSONValue;
JobDetailView.java 26 import com.google.gwt.json.client.JSONArray;
27 import com.google.gwt.json.client.JSONBoolean;
28 import com.google.gwt.json.client.JSONNumber;
29 import com.google.gwt.json.client.JSONObject;
30 import com.google.gwt.json.client.JSONString;
31 import com.google.gwt.json.client.JSONValue;
  /external/chromium-trace/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/
appengine.py 23 import json
79 """The client_secrets.json file is malformed or missing required fields."""
174 data = json.loads(json_data)
344 """Converts our validated value to a JSON serialized string.
350 A JSON serialized version of the credential, else '' if value is None.
358 """Converts our stored JSON string back to the desired type.
461 json = self._cache.get(self._key_name)
462 if json:
463 credentials = Credentials.new_from_json(json)
655 token_response_param: string. If provided, the full JSON respons
    [all...]
  /external/chromium-trace/catapult/third_party/mapreduce/mapreduce/
shuffler.py 373 def from_json(cls, json):
374 """Restore reader from json state."""
375 return cls(json["offsets"],
376 json["max_values_count"],
377 json["max_values_size"])
380 """Serialize reader state to json."""
447 def from_json(cls, json):
448 """Creates an instance of the OutputWriter for the given json state.
451 json: The OutputWriter state as a dict-like object.
454 An instance of the OutputWriter configured using the values of json
    [all...]
  /external/v8/test/mjsunit/
migrations.js 146 name: "json",
147 ctor: function(v) { var json = '{"a":' + v + ',"b":' + v + '}'; return JSON.parse(json); },
  /external/autotest/client/site_tests/desktopui_SonicExtension/
test_utils.py 6 import json
288 @param dictionary: The dictionary to be output as JSON
295 # if json file exists, read the existing one and append to it
299 json_data = json.load(existing_json_data)
301 output_json = json.dumps(dictionary, sort_keys=sort_keys)
  /external/autotest/client/site_tests/graphics_PiglitBVT/
generate_scripts.py 7 import json, os, re, sys
141 Used to find regular log files (*results.json) and expectations*.json.
157 d[main_file] = json.loads(open(main_file).read())
259 log_dict = load_files(get_filepaths(family_root, 'results\.json$'))
261 exp_dict = load_files(get_filepaths(family_root, 'expectations.*\.json$'))
387 # Loading a json converts everything to string anyways, so save it as such
399 'suggested_exp_to_rename_%s.json' % family)
401 json.dump({'tests': expectations}, f, indent=2, sort_keys=True,
429 os.system('bunzip2 ' + INPUT_DIR + '/*/*/*results.json.bz2'
    [all...]
  /external/chromium-trace/catapult/dashboard/dashboard/
utils_test.py 6 import json
227 response_text = json.dumps({'key': 'this is well-formed JSON.'})
240 json.dumps({'key': 'this is well-formed JSON.'}),

Completed in 1148 milliseconds

<<31323334353637383940>>