/external/v8/tools/testrunner/server/ |
compression.py | 31 import ujson as json 33 import json 42 Sends a JSON encodable object over the specified socket (zlib-compressed). 44 obj = json.dumps(obj) 90 result = json.loads(result)
|
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/ |
AbstractAsset.java | 21 import org.json.JSONException; 31 * <p> Asset can be represented by a JSON string. For example, the web site https://www.google.com 51 * Returns a JSON string representation of this asset. The strings returned by this function are 65 * Creates a new Asset from its JSON string representation.
|
AssetFactory.java | 19 import org.json.JSONObject; 22 * Factory to create asset from JSON string.
|
/frameworks/base/tests/MusicServiceDemo/src/com/example/android/musicservicedemo/browser/ |
MusicProviderTask.java | 22 import org.json.JSONException;
|
/prebuilts/go/darwin-x86/doc/progs/ |
json4.go | 8 "encoding/json" 24 err := json.Unmarshal(b, &m)
|
/prebuilts/go/linux-x86/doc/progs/ |
json4.go | 8 "encoding/json" 24 err := json.Unmarshal(b, &m)
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/json/tests/ |
test_encode_basestring_ascii.py | 2 from json.tests import PyTest, CTest 26 fname = self.json.encoder.encode_basestring_ascii.__name__ 28 result = self.json.encoder.encode_basestring_ascii(input_string)
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/json/tests/ |
test_encode_basestring_ascii.py | 2 from json.tests import PyTest, CTest 26 fname = self.json.encoder.encode_basestring_ascii.__name__ 28 result = self.json.encoder.encode_basestring_ascii(input_string)
|
/external/chromium-trace/catapult/perf_insights/perf_insights_build/ |
perf_insights_dev_server_config.py | 6 import json 38 tests_as_json = json.dumps(tests) 39 self.response.content_type = 'application/json' 46 job_dict = json.loads(self.request.body) 69 self.response.content_type = 'application/json' 82 self.response.content_type = 'application/json' 89 self.response.write(json.dumps({'success': True, 'file': url})) 99 self.response.write(json.dumps({'success': False})) 104 self.response.write(json.dumps({'success': True, 'file': output_name})) 110 job_dict = json.loads(self.request.body [all...] |
/external/libgdx/gdx/src/com/badlogic/gdx/utils/ |
JsonWriter.java | 25 /** Builder style API for emitting JSON.
32 private OutputType outputType = OutputType.json;
43 /** Sets the type of JSON output. Default is {@link OutputType#minimal}. */
92 /** Writes the specified JSON value, without quoting or escaping. */
93 public JsonWriter json (String json) throws IOException {
method in class:JsonWriter 95 writer.write(json);
124 /** Writes the specified JSON value, without quoting or escaping. */
125 public JsonWriter json (String name, String json) throws IOException { method in class:JsonWriter 166 json, enum constant in enum:JsonWriter.OutputType [all...] |
/external/libbrillo/brillo/http/ |
http_utils.cc | 10 #include <base/json/json_reader.h> 11 #include <base/json/json_writer.h> 300 const base::Value* json, 305 if (json) 306 base::JSONWriter::Write(*json, &data); 315 std::unique_ptr<base::Value> json, 321 if (json) 322 base::JSONWriter::Write(*json, &data); 338 const base::Value* json, 343 if (json) 396 std::string json = response->ExtractDataAsString(); local [all...] |
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
HostAuth.java | 32 import org.json.JSONException; 33 import org.json.JSONObject; 258 final JSONObject json = new JSONObject(); local 259 json.put(HostAuthColumns.PROTOCOL, mProtocol); 260 json.put(HostAuthColumns.ADDRESS, mAddress); 261 json.put(HostAuthColumns.PORT, mPort); 262 json.put(HostAuthColumns.FLAGS, mFlags); 263 json.put(HostAuthColumns.LOGIN, mLogin); 264 json.putOpt(HostAuthColumns.PASSWORD, mPassword); 265 json.putOpt(HostAuthColumns.DOMAIN, mDomain) [all...] |
/prebuilts/go/darwin-x86/src/encoding/json/ |
encode_test.go | 5 package json package 16 Sr string `json:"sr"` 17 So string `json:"so,omitempty"` 18 Sw string `json:"-"` 20 Ir int `json:"omitempty"` // actually named omitempty, not an option 21 Io int `json:"io,omitempty"` 23 Slr []string `json:"slr,random"` 24 Slo []string `json:"slo,omitempty"` 26 Mr map[string]interface{} `json:"mr"` 27 Mo map[string]interface{} `json:",omitempty" [all...] |
/prebuilts/go/linux-x86/src/encoding/json/ |
encode_test.go | 5 package json package 16 Sr string `json:"sr"` 17 So string `json:"so,omitempty"` 18 Sw string `json:"-"` 20 Ir int `json:"omitempty"` // actually named omitempty, not an option 21 Io int `json:"io,omitempty"` 23 Slr []string `json:"slr,random"` 24 Slo []string `json:"slo,omitempty"` 26 Mr map[string]interface{} `json:"mr"` 27 Mo map[string]interface{} `json:",omitempty" [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/json/ |
__init__.py | 1 r"""JSON (JavaScript Object Notation) <http://json.org> is a subset of 5 :mod:`json` exposes an API familiar to users of the standard library 7 version of the :mod:`json` library contained in Python 2.6, but maintains 14 >>> import json 15 >>> json.dumps(['foo', {'bar': ('baz', None, 1.0, 2)}]) 17 >>> print json.dumps("\"foo\bar") 19 >>> print json.dumps(u'\u1234') 21 >>> print json.dumps('\\') 23 >>> print json.dumps({"c": 0, "b": 0, "a": 0}, sort_keys=True [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/json/ |
__init__.py | 1 r"""JSON (JavaScript Object Notation) <http://json.org> is a subset of 5 :mod:`json` exposes an API familiar to users of the standard library 7 version of the :mod:`json` library contained in Python 2.6, but maintains 14 >>> import json 15 >>> json.dumps(['foo', {'bar': ('baz', None, 1.0, 2)}]) 17 >>> print json.dumps("\"foo\bar") 19 >>> print json.dumps(u'\u1234') 21 >>> print json.dumps('\\') 23 >>> print json.dumps({"c": 0, "b": 0, "a": 0}, sort_keys=True [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/json/ |
__init__.py | 1 r"""JSON (JavaScript Object Notation) <http://json.org> is a subset of 5 :mod:`json` exposes an API familiar to users of the standard library 7 version of the :mod:`json` library contained in Python 2.6, but maintains 14 >>> import json 15 >>> json.dumps(['foo', {'bar': ('baz', None, 1.0, 2)}]) 17 >>> print json.dumps("\"foo\bar") 19 >>> print json.dumps(u'\u1234') 21 >>> print json.dumps('\\') 23 >>> print json.dumps({"c": 0, "b": 0, "a": 0}, sort_keys=True [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/json/ |
__init__.py | 1 r"""JSON (JavaScript Object Notation) <http://json.org> is a subset of 5 :mod:`json` exposes an API familiar to users of the standard library 7 version of the :mod:`json` library contained in Python 2.6, but maintains 14 >>> import json 15 >>> json.dumps(['foo', {'bar': ('baz', None, 1.0, 2)}]) 17 >>> print json.dumps("\"foo\bar") 19 >>> print json.dumps(u'\u1234') 21 >>> print json.dumps('\\') 23 >>> print json.dumps({"c": 0, "b": 0, "a": 0}, sort_keys=True [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
InstallShortcutReceiver.java | 38 import org.json.*; 84 JSONStringer json = new JSONStringer() local 91 json = json.key(ICON_KEY).value( 96 json = json.key(ICON_RESOURCE_NAME_KEY).value(info.iconResource.resourceName); 97 json = json.key(ICON_RESOURCE_PACKAGE_NAME_KEY) 100 json = json.endObject() [all...] |
/external/boringssl/src/util/ |
all_tests.go | 19 "encoding/json" 37 jsonOutput = flag.String("json-output", "", "The file to output JSON results to.") 44 // testOutput is a representation of Chromium's JSON test result format. See 45 // https://www.chromium.org/developers/the-json-test-results-format 47 Version int `json:"version"` 48 Interrupted bool `json:"interrupted"` 49 PathDelimiter string `json:"path_delimiter"` 50 SecondsSinceEpoch float64 `json:"seconds_since_epoch"` 51 NumFailuresByType map[string]int `json:"num_failures_by_type" [all...] |
/cts/tools/cts-test-metrics/ |
parse_test_metrics.py | 17 import argparse, json, sys 33 json_data = json.load(json_file)
|
/external/autotest/client/bin/ |
update_intel_pci_ids | 6 """Create a JSON file containing PCI ID-to-name mappings for Intel GPUs. 13 import json 43 """Extract Intel GPU PCI IDs from upstream Mesa and write to JSON file. 47 out_file = 'intel_pci_ids.json' 83 json.dump(pci_ids, out_f, sort_keys=True, indent=4,
|
/external/autotest/client/common_lib/cros/fake_device_server/ |
common_util.py | 8 import json 16 """Parses incoming cherrypy request as a json.""" 19 return json.loads(data) if data else None
|
/external/autotest/server/site_tests/video_VDAStressSetup/ |
video_VDAStressSetup.py | 5 import json 32 videos.extend(json.load(open(local_video_list)))
|
/external/autotest/site_utils/ |
control_file_preprocessor.py | 22 import collections, json, os, sys 81 json.dump(suite_control_files, file_obj)
|