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

1 2 34 5 6 7 8 91011>>

  /external/chromium-trace/catapult/third_party/gsutil/gslib/
cloud_api_helper.py 19 import json
48 auto_transfer: JSON-specific field, always False.
52 For JSON, this the download URL of the object.
70 return json.dumps(serialization_dict)
  /external/libchrome/base/json/
json_reader.cc 5 #include "base/json/json_reader.h"
7 #include "base/json/json_parser.h"
30 "Unsupported encoding. JSON must be UTF-8.";
46 scoped_ptr<Value> JSONReader::Read(const StringPiece& json) {
48 return make_scoped_ptr(parser.Parse(json));
52 scoped_ptr<Value> JSONReader::Read(const StringPiece& json, int options) {
54 return make_scoped_ptr(parser.Parse(json));
59 scoped_ptr<Value> JSONReader::ReadAndReturnError(const StringPiece& json,
66 scoped_ptr<Value> root(parser.Parse(json));
108 scoped_ptr<Value> JSONReader::ReadToValue(const std::string& json) {
    [all...]
  /external/libweave/third_party/chromium/base/json/
json_reader.cc 5 #include "base/json/json_reader.h"
7 #include "base/json/json_parser.h"
30 "Unsupported encoding. JSON must be UTF-8.";
46 scoped_ptr<Value> JSONReader::Read(const StringPiece& json) {
48 return make_scoped_ptr(parser.Parse(json));
52 scoped_ptr<Value> JSONReader::Read(const StringPiece& json, int options) {
54 return make_scoped_ptr(parser.Parse(json));
59 scoped_ptr<Value> JSONReader::ReadAndReturnError(const StringPiece& json,
66 scoped_ptr<Value> root(parser.Parse(json));
108 scoped_ptr<Value> JSONReader::ReadToValue(const std::string& json) {
    [all...]
  /external/sl4a/Common/src/com/googlecode/android_scripting/facade/
ConnectivityEvents.java 21 import org.json.JSONException;
22 import org.json.JSONObject;
25 * Utility class for ConnectivityManager/Service events. Encapsulates the data in a JSON format
33 * Translates a packet keep-alive event to JSON.
45 * Create a JSON data-structure.
62 * Translates a ConnectivityManager.NetworkCallback to JSON.
74 * Create a JSON data-structure.
100 * Create a JSON data-structure.
103 JSONObject json = super.toJSON(); local
104 json.put(ConnectivityConstants.NetworkCallbackContainer.MAX_MS_TO_LIVE, mMaxMsToLive)
125 JSONObject json = super.toJSON(); local
    [all...]
  /tools/test/connectivity/acts/framework/tests/
acts_integration_test.py 17 import json
26 cmd = "act.py -c acts_sanity_test_config.json -tc IntegrationTest"
28 with open("/tmp/logs/Sanity/latest/test_run_summary.json", 'r') as f:
29 results = json.load(f)
  /prebuilts/tools/common/m2/repository/net/sf/json-lib/json-lib/2.3/
json-lib-2.3-jdk15.jar 
  /external/chromium-trace/catapult/third_party/webapp2/webapp2_extras/
json.py 3 webapp2_extras.json
6 JSON helpers for webapp2.
19 import simplejson as json
23 import json
26 'A JSON parser is required, e.g., simplejson at '
29 assert hasattr(json, 'loads') and hasattr(json, 'dumps'), \
30 'Expected a JSON module with the functions loads() and dumps().'
34 """Serializes a value to JSON.
41 Extra arguments to be passed to `json.dumps()`
    [all...]
  /external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/particles/emitters/
Emitter.java 4 import com.badlogic.gdx.utils.Json;
12 public abstract class Emitter extends ParticleControllerComponent implements Json.Serializable{
67 public void write (Json json) {
68 json.writeValue("minParticleCount", minParticleCount);
69 json.writeValue("maxParticleCount", maxParticleCount);
73 public void read (Json json, JsonValue jsonData) {
74 minParticleCount = json.readValue("minParticleCount", int.class, jsonData);
75 maxParticleCount = json.readValue("maxParticleCount", int.class, jsonData)
    [all...]
  /external/v8/test/mjsunit/regress/
regress-crbug-430846.js 11 var json = '{"foo": {"x": 1}}'; variable
12 var o2 = JSON.parse(json);
13 var o3 = JSON.parse(json);
  /packages/apps/Email/tests/src/com/android/emailcommon/provider/
AccountTest.java 22 import org.json.JSONException;
23 import org.json.JSONObject;
29 final JSONObject json = new JSONObject(); local
30 json.put(EmailContent.AccountColumns.DISPLAY_NAME, "David Hasselhoff");
31 json.put(EmailContent.AccountColumns.EMAIL_ADDRESS, "dhoff@example.com");
32 json.put(EmailContent.AccountColumns.SYNC_LOOKBACK, 42);
33 json.put(EmailContent.AccountColumns.SYNC_INTERVAL, 99);
34 json.put(Account.JSON_TAG_HOST_AUTH_RECV, getHostAuthJSON("receiver", "recpass").toJson());
35 json.put(Account.JSON_TAG_HOST_AUTH_SEND, getHostAuthJSON("send", "sendpass").toJson());
36 json.put(EmailContent.AccountColumns.FLAGS, 22)
    [all...]
  /external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/
WebSocketRTCClient.java 22 import org.json.JSONException;
23 import org.json.JSONObject;
193 JSONObject json = new JSONObject();
194 jsonPut(json, "sdp", sdp.description);
195 jsonPut(json, "type", "offer");
196 sendPostMessage(MessageType.MESSAGE, messageUrl, json.toString());
218 JSONObject json = new JSONObject();
219 jsonPut(json, "sdp", sdp.description);
220 jsonPut(json, "type", "answer");
221 wsClient.send(json.toString())
266 JSONObject json = new JSONObject(msg); local
    [all...]
  /external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/directconnect/
layer1.py 28 from boto.compat import json
133 body=json.dumps(params))
174 body=json.dumps(params))
214 body=json.dumps(params))
235 body=json.dumps(params))
268 body=json.dumps(params))
288 body=json.dumps(params))
330 body=json.dumps(params))
381 body=json.dumps(params))
408 body=json.dumps(params)
    [all...]
  /external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/particles/
ResourceData.java 8 import com.badlogic.gdx.utils.Json;
26 public class ResourceData<T> implements Json.Serializable{
38 public static class SaveData implements Json.Serializable{
81 public void write (Json json) {
82 json.writeValue("data", data, ObjectMap.class);
83 json.writeValue("indices", assets.toArray(), int[].class);
87 public void read (Json json, JsonValue jsonData) {
88 data = json.readValue("data", ObjectMap.class, jsonData)
    [all...]
  /external/autotest/client/common_lib/cros/fake_device_server/client_lib/
commands.py 7 import json
32 return json.loads(url_h.read())
43 return json.loads(url_h.read())
57 headers = self.add_auth_headers({'Content-Type': 'application/json'})
58 request = urllib2.Request(self.get_url([command_id]), json.dumps(data),
66 return json.loads(url_h.read())
75 headers = self.add_auth_headers({'Content-Type': 'application/json'})
78 json.dumps(data),
81 return json.loads(url_h.read())
devices.py 7 import json
32 return json.loads(url_h.read())
40 return json.loads(url_h.read())
53 headers = self.add_auth_headers({'Content-Type': 'application/json'})
54 request = urllib2.Request(self.get_url(), json.dumps(data),
57 return json.loads(url_h.read())
  /system/weaved/common/
binder_utils.cc 17 #include <base/json/json_reader.h>
18 #include <base/json/json_writer.h>
41 std::string json; local
42 base::JSONWriter::Write(value, &json);
43 return ToString16(json);
47 const android::String16& json,
52 base::JSONReader::ReadAndReturnError(ToString(json), base::JSON_PARSE_RFC,
  /prebuilts/go/darwin-x86/src/net/rpc/jsonrpc/
server.go 8 "encoding/json"
18 dec *json.Decoder // for reading JSON values
19 enc *json.Encoder // for writing JSON values
25 // JSON-RPC clients can use arbitrary json values as request IDs.
33 pending map[uint64]*json.RawMessage
36 // NewServerCodec returns a new rpc.ServerCodec using JSON-RPC on conn.
39 dec: json.NewDecoder(conn)
    [all...]
  /prebuilts/go/linux-x86/src/net/rpc/jsonrpc/
server.go 8 "encoding/json"
18 dec *json.Decoder // for reading JSON values
19 enc *json.Encoder // for writing JSON values
25 // JSON-RPC clients can use arbitrary json values as request IDs.
33 pending map[uint64]*json.RawMessage
36 // NewServerCodec returns a new rpc.ServerCodec using JSON-RPC on conn.
39 dec: json.NewDecoder(conn)
    [all...]
  /packages/services/Car/bluetooth/bt-map-client-lib/src/com/google/android/auto/mapservice/
BluetoothMapMessagesListing.java 30 import org.json.JSONException;
31 import org.json.JSONObject;
149 JSONObject json = new JSONObject(); local
151 json.put("handle", mHandle);
152 json.put("subject", mSubject);
153 json.put("datetime", mDateTime);
154 json.put("sender_name", mSender);
155 json.put("sender_addressing", mSenderAddress);
156 json.put("replyto_addressing", mReplyAddress);
157 json.put("recipient_name", mRecipient)
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/providers/
Account.java 41 import org.json.JSONArray;
42 import org.json.JSONException;
43 import org.json.JSONObject;
263 JSONObject json = new JSONObject(); local
265 json.put(AccountColumns.NAME, displayName);
266 json.put(AccountColumns.TYPE, type);
267 json.put(AccountColumns.SENDER_NAME, senderName);
268 json.put(AccountColumns.ACCOUNT_MANAGER_NAME, accountManagerName);
269 json.put(AccountColumns.ACCOUNT_ID, accountId);
270 json.put(AccountColumns.PROVIDER_VERSION, providerVersion)
360 final JSONObject json = new JSONObject(serializedAccount); local
    [all...]
Settings.java 37 import org.json.JSONException;
38 import org.json.JSONObject;
87 // ask viki to replace the above two members with a single JSON object representing the default
203 private Settings(JSONObject json) {
204 signature = json.optString(SettingsColumns.SIGNATURE, sDefault.signature);
205 mAutoAdvance = json.optInt(SettingsColumns.AUTO_ADVANCE, sDefault.getAutoAdvanceSetting());
206 snapHeaders = json.optInt(SettingsColumns.SNAP_HEADERS, sDefault.snapHeaders);
207 replyBehavior = json.optInt(SettingsColumns.REPLY_BEHAVIOR, sDefault.replyBehavior);
208 convListIcon = json.optInt(SettingsColumns.CONV_LIST_ICON, sDefault.convListIcon);
209 confirmDelete = json.optBoolean(SettingsColumns.CONFIRM_DELETE, sDefault.confirmDelete)
238 final JSONObject json = toJSON(); local
252 final JSONObject json = new JSONObject(); local
    [all...]
  /frameworks/opt/bluetooth/src/android/bluetooth/client/map/
BluetoothMapBmessage.java 21 import org.json.JSONException;
22 import org.json.JSONObject;
156 JSONObject json = new JSONObject(); local
159 json.put("status", mBmsgStatus);
160 json.put("type", mBmsgType);
161 json.put("folder", mBmsgFolder);
162 json.put("charset", mBbodyCharset);
163 json.put("message", mMessage);
168 return json.toString();
  /bionic/tools/bionicbb/
gerrit.py 16 import json
28 return json.loads(
33 return json.loads(
51 change = json.loads(call(endpoint))
71 details = json.loads(call('/changes/{}/revisions/{}/review'.format(
  /external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/cloudsearch/
test_exceptions.py 1 from boto.compat import json
11 raise ValueError("HAHAHA! Totally not simplejson & you gave me bad JSON.")
16 raise json.JSONDecodeError('Using simplejson & you gave me bad JSON.',
24 with mock.patch.object(json, 'loads', fake_loads_value_error):
27 with self.assertRaisesRegexp(SearchServiceException, 'non-json'):
30 @unittest.skipUnless(hasattr(json, 'JSONDecodeError'),
33 with mock.patch.object(json, 'loads', fake_loads_json_error):
36 with self.assertRaisesRegexp(SearchServiceException, 'non-json'):
  /external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/cloudsearch2/
test_exceptions.py 1 from boto.compat import json
11 raise ValueError("HAHAHA! Totally not simplejson & you gave me bad JSON.")
16 raise json.JSONDecodeError('Using simplejson & you gave me bad JSON.',
24 with mock.patch.object(json, 'loads', fake_loads_value_error):
27 with self.assertRaisesRegexp(SearchServiceException, 'non-json'):
30 @unittest.skipUnless(hasattr(json, 'JSONDecodeError'),
33 with mock.patch.object(json, 'loads', fake_loads_json_error):
36 with self.assertRaisesRegexp(SearchServiceException, 'non-json'):

Completed in 1341 milliseconds

1 2 34 5 6 7 8 91011>>