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

1 2 3 4 5 67 8 91011>>

  /developers/build/prebuilts/gradle/RecipeAssistant/Application/src/main/java/com/example/android/wearable/recipeassistant/
Recipe.java 24 import org.json.JSONArray;
25 import org.json.JSONException;
26 import org.json.JSONObject;
63 public static Recipe fromJson(Context context, JSONObject json) {
66 recipe.titleText = json.getString(Constants.RECIPE_FIELD_TITLE);
67 recipe.summaryText = json.getString(Constants.RECIPE_FIELD_SUMMARY);
68 if (json.has(Constants.RECIPE_FIELD_IMAGE)) {
69 recipe.recipeImage = json.getString(Constants.RECIPE_FIELD_IMAGE);
71 JSONArray ingredients = json.getJSONArray(Constants.RECIPE_FIELD_INGREDIENTS);
78 JSONArray steps = json.getJSONArray(Constants.RECIPE_FIELD_STEPS)
    [all...]
  /developers/samples/android/wearable/wear/RecipeAssistant/Application/src/main/java/com/example/android/wearable/recipeassistant/
Recipe.java 24 import org.json.JSONArray;
25 import org.json.JSONException;
26 import org.json.JSONObject;
63 public static Recipe fromJson(Context context, JSONObject json) {
66 recipe.titleText = json.getString(Constants.RECIPE_FIELD_TITLE);
67 recipe.summaryText = json.getString(Constants.RECIPE_FIELD_SUMMARY);
68 if (json.has(Constants.RECIPE_FIELD_IMAGE)) {
69 recipe.recipeImage = json.getString(Constants.RECIPE_FIELD_IMAGE);
71 JSONArray ingredients = json.getJSONArray(Constants.RECIPE_FIELD_INGREDIENTS);
78 JSONArray steps = json.getJSONArray(Constants.RECIPE_FIELD_STEPS)
    [all...]
  /development/samples/browseable/RecipeAssistant/Application/src/com.example.android.wearable.recipeassistant/
Recipe.java 24 import org.json.JSONArray;
25 import org.json.JSONException;
26 import org.json.JSONObject;
63 public static Recipe fromJson(Context context, JSONObject json) {
66 recipe.titleText = json.getString(Constants.RECIPE_FIELD_TITLE);
67 recipe.summaryText = json.getString(Constants.RECIPE_FIELD_SUMMARY);
68 if (json.has(Constants.RECIPE_FIELD_IMAGE)) {
69 recipe.recipeImage = json.getString(Constants.RECIPE_FIELD_IMAGE);
71 JSONArray ingredients = json.getJSONArray(Constants.RECIPE_FIELD_INGREDIENTS);
78 JSONArray steps = json.getJSONArray(Constants.RECIPE_FIELD_STEPS)
    [all...]
  /external/autotest/server/cros/bluetooth/
bluetooth_device.py 5 import json
108 return json.loads(self._proxy.get_adapter_properties())
118 return json.loads(self._proxy.read_version())
128 return json.loads(self._proxy.read_supported_commands())
137 return json.loads(self._proxy.read_index_list())
149 return json.loads(self._proxy.read_info())
163 return json.loads(self._proxy.add_device(address, address_type, action))
176 return json.loads(self._proxy.remove_device(address, address_type))
186 return json.loads(self._proxy.get_devices())
221 return json.loads(self._proxy.get_dev_info()
    [all...]
  /external/chromium-trace/catapult/third_party/gsutil/gslib/tests/
test_bucketconfig.py 17 import json
38 cors_json_obj = json.loads(cors_doc)
47 lifecycle_json_obj = json.loads(lifecycle_doc)
64 self.assertEqual(json.loads(cors_out), self.cors_json_obj)
72 self.assertEqual(json.loads(cors_out), self.cors_json_obj)
73 self.assertEqual(json.loads(lifecycle_out), self.lifecycle_json_obj)
84 self.assertEqual(json.loads(cors_out), self.cors_json_obj)
85 self.assertEqual(json.loads(lifecycle_out), self.lifecycle_json_obj)
99 self.assertEqual(json.loads(cors_out), self.cors_json_obj)
100 self.assertEqual(json.loads(lifecycle_out), self.lifecycle_json_obj
    [all...]
  /external/libchrome/base/json/
json_writer.cc 5 #include "base/json/json_writer.h"
12 #include "base/json/string_escape.h"
28 bool JSONWriter::Write(const Value& node, std::string* json) {
29 return WriteWithOptions(node, 0, json);
35 std::string* json) {
36 json->clear();
38 json->reserve(1024);
40 JSONWriter writer(options, json);
44 json->append(kPrettyPrintLineEnding);
49 JSONWriter::JSONWriter(int options, std::string* json)
    [all...]
  /external/libweave/src/notification/
notification_parser_unittest.cc 40 auto json = CreateDictionaryValue(R"({ local
74 EXPECT_TRUE(ParseNotificationJson(*json, &delegate_, "foo"));
78 auto json = CreateDictionaryValue(R"({ local
86 EXPECT_TRUE(ParseNotificationJson(*json, &delegate_, "foo"));
91 auto json = CreateDictionaryValue(R"({ local
109 EXPECT_FALSE(ParseNotificationJson(*json, &delegate_, "bar"));
113 auto json = CreateDictionaryValue(R"({ local
131 EXPECT_FALSE(ParseNotificationJson(*json, &delegate_, "baz"));
135 auto json = CreateDictionaryValue(R"({ local
154 EXPECT_TRUE(ParseNotificationJson(*json, &delegate_, "quux"))
    [all...]
  /external/libweave/third_party/chromium/base/json/
json_writer.cc 5 #include "base/json/json_writer.h"
12 #include "base/json/string_escape.h"
28 bool JSONWriter::Write(const Value& node, std::string* json) {
29 return WriteWithOptions(node, 0, json);
35 std::string* json) {
36 json->clear();
38 json->reserve(1024);
40 JSONWriter writer(options, json);
44 json->append(kPrettyPrintLineEnding);
49 JSONWriter::JSONWriter(int options, std::string* json)
    [all...]
  /external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/cloudhsm/
layer1.py 24 from boto.compat import json
76 body=json.dumps(params))
130 body=json.dumps(params))
148 body=json.dumps(params))
161 body=json.dumps(params))
174 body=json.dumps(params))
186 body=json.dumps(params))
200 body=json.dumps(params))
222 body=json.dumps(params))
242 body=json.dumps(params)
    [all...]
  /external/vulkan-validation-layers/libs/vkjson/
vkjson.h 71 bool VkJsonInstanceFromJson(const std::string& json,
77 bool VkJsonDeviceFromJson(const std::string& json,
83 bool VkJsonImageFormatPropertiesFromJson(const std::string& json,
97 inline bool VkJsonAllPropertiesFromJson(const std::string& json,
100 return VkJsonDeviceFromJson(json, properties, errors);
  /external/libweave/src/
device_registration_info_unittest.cc 7 #include <base/json/json_reader.h>
8 #include <base/json/json_writer.h>
91 const base::Value& json) {
94 json, base::JSONWriter::OPTIONS_PRETTY_PRINT, &text);
264 base::DictionaryValue json;
265 json.SetString("access_token", test_data::kAccessToken);
266 json.SetInteger("expires_in", 3600);
268 callback.Run(ReplyWithJson(200, json), nullptr);
281 base::DictionaryValue json;
282 callback.Run(ReplyWithJson(200, json), nullptr)
    [all...]
  /prebuilts/go/darwin-x86/src/net/rpc/jsonrpc/
client.go 5 // Package jsonrpc implements a JSON-RPC ClientCodec and ServerCodec
10 "encoding/json"
19 dec *json.Decoder // for reading JSON values
20 enc *json.Encoder // for writing JSON values
27 // JSON-RPC responses include the request id but not the request method.
35 // NewClientCodec returns a new rpc.ClientCodec using JSON-RPC on conn.
38 dec: json.NewDecoder(conn),
39 enc: json.NewEncoder(conn)
    [all...]
  /prebuilts/go/linux-x86/src/net/rpc/jsonrpc/
client.go 5 // Package jsonrpc implements a JSON-RPC ClientCodec and ServerCodec
10 "encoding/json"
19 dec *json.Decoder // for reading JSON values
20 enc *json.Encoder // for writing JSON values
27 // JSON-RPC responses include the request id but not the request method.
35 // NewClientCodec returns a new rpc.ClientCodec using JSON-RPC on conn.
38 dec: json.NewDecoder(conn),
39 enc: json.NewEncoder(conn)
    [all...]
  /external/libweave/src/commands/
command_instance.cc 141 // object passed in as |json|.
146 const base::DictionaryValue* json,
151 if (json->Get(commands::attributes::kCommand_Parameters, &params_value)) {
155 return Error::AddToPrintf(error, FROM_HERE, errors::json::kObjectExpected,
156 "Property '%s' must be a JSON object",
179 // Get the command JSON object from the value.
180 const base::DictionaryValue* json = nullptr; local
181 if (!value->GetAsDictionary(&json)) {
183 return Error::AddTo(error, FROM_HERE, errors::json::kObjectExpected,
184 "Command instance is not a JSON object")
    [all...]
  /frameworks/opt/bluetooth/src/android/bluetooth/client/map/
BluetoothMapEventReport.java 20 import org.json.JSONException;
21 import org.json.JSONObject;
169 JSONObject json = new JSONObject(); local
172 json.put("type", mType);
173 json.put("handle", mHandle);
174 json.put("folder", mFolder);
175 json.put("old_folder", mOldFolder);
176 json.put("msg_type", mMsgType);
181 return json.toString();
  /external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/configservice/
layer1.py 24 from boto.compat import json
123 body=json.dumps(params))
146 body=json.dumps(params))
167 body=json.dumps(params))
186 body=json.dumps(params))
203 body=json.dumps(params))
219 body=json.dumps(params))
279 body=json.dumps(params))
297 body=json.dumps(params))
321 body=json.dumps(params)
    [all...]
  /bionic/tools/bionicbb/
bionicbb.py 17 import json
38 result = json.loads(request.data)
75 headers = {'Content-Type': 'application/json;charset=UTF-8'}
77 requests.post(url, headers=headers, json=request_data)
82 headers = {'Content-Type': 'application/json;charset=UTF-8'}
84 requests.post(url, headers=headers, json=request_data)
94 revision_info = json.loads(request.data)
115 headers = {'Content-Type': 'application/json;charset=UTF-8'}
117 requests.post(url, headers=headers, json=request_data)
  /external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/particles/values/
EllipseSpawnShapeValue.java 5 import com.badlogic.gdx.utils.Json;
89 public void write (Json json) {
90 super.write(json);
91 json.writeValue("side", side);
95 public void read (Json json, JsonValue jsonData) {
96 super.read(json, jsonData);
97 side = json.readValue("side", SpawnSide.class, jsonData);
  /packages/apps/Test/connectivity/sl4n/rapidjson/example/tutorial/
tutorial.cpp 5 #include "rapidjson/prettywriter.h" // for stringify JSON
13 // 1. Parse a JSON text string to a document.
15 const char json[] = " { \"hello\" : \"world\", \"t\" : true , \"f\" : false, \"n\": null, \"i\":123, \"pi\": 3.1416, \"a\":[1, 2, 3, 4] } "; local
16 printf("Original JSON:\n %s\n", json);
22 if (document.Parse(json).HasParseError())
26 char buffer[sizeof(json)];
27 memcpy(buffer, json, sizeof(json));
38 assert(document.IsObject()); // Document is a JSON value represents the root of DOM. Root can be either an object or array.
    [all...]
  /packages/experimental/procstatlog/
procstatreport.py 19 import json
201 "id_js": json.write("total_cpu"),
203 "filename_js": json.write(files_url + "/total_cpu.csv"),
204 "options_js": json.write({
243 "id_js": json.write("cpu_speed"),
245 "filename_js": json.write(files_url + "/cpu_speed.csv"),
246 "options_js": json.write({
275 "id_js": json.write("context_switches"),
277 "filename_js": json.write(files_url + "/context_switches.csv"),
278 "options_js": json.write(
    [all...]
  /prebuilts/go/darwin-x86/src/encoding/json/
example_test.go 9 "encoding/json"
28 b, err := json.Marshal(group)
47 err := json.Unmarshal(jsonBlob, &animals)
56 // This example uses a Decoder to decode a stream of distinct JSON values.
68 dec := json.NewDecoder(strings.NewReader(jsonStream))
86 // This example uses a Decoder to decode a stream of distinct JSON values.
91 dec := json.NewDecoder(strings.NewReader(jsonStream))
107 // json.Delim: { (more)
111 // json.Delim: [ (more)
115 // json.Delim: ] (more
    [all...]
  /prebuilts/go/linux-x86/src/encoding/json/
example_test.go 9 "encoding/json"
28 b, err := json.Marshal(group)
47 err := json.Unmarshal(jsonBlob, &animals)
56 // This example uses a Decoder to decode a stream of distinct JSON values.
68 dec := json.NewDecoder(strings.NewReader(jsonStream))
86 // This example uses a Decoder to decode a stream of distinct JSON values.
91 dec := json.NewDecoder(strings.NewReader(jsonStream))
107 // json.Delim: { (more)
111 // json.Delim: [ (more)
115 // json.Delim: ] (more
    [all...]
  /external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/support/
layer1.py 24 from boto.compat import json
37 programmatically. It uses HTTP methods that return results in JSON
157 body=json.dumps(params))
202 body=json.dumps(params))
307 body=json.dumps(params))
324 body=json.dumps(params))
341 The response returns the following in JSON format:
410 body=json.dumps(params))
463 body=json.dumps(params))
483 :param service_code_list: A JSON-formatted list of service code
    [all...]
  /development/samples/SampleSyncAdapter/src/com/example/android/samplesync/client/
RawContact.java 21 import org.json.JSONObject;
22 import org.json.JSONException;
136 * Convert the RawContact object into a JSON string. From the
138 * @return a JSON string representation of the object
141 JSONObject json = new JSONObject(); local
145 json.put("f", mFirstName);
148 json.put("l", mLastName);
151 json.put("m", mCellPhone);
154 json.put("o", mOfficePhone);
157 json.put("h", mHomePhone)
    [all...]
  /external/chromium-trace/catapult/dashboard/dashboard/
edit_anomalies_test.py 5 import json
53 'keys': json.dumps([anomaly_keys[0].urlsafe()]),
62 'keys': json.dumps([anomaly_keys[0].urlsafe()]),
72 'keys': json.dumps([anomaly_keys[0].urlsafe()]),
85 'keys': json.dumps([anomaly_keys[0].urlsafe()]),
98 'keys': json.dumps([anomaly_keys[0].urlsafe()]),
104 json.loads(response.body))
116 json.loads(response.body))
123 'keys': json.dumps([anomaly_keys[0].urlsafe()]),
137 'keys': json.dumps([anomaly_keys[0].urlsafe()])
    [all...]

Completed in 4995 milliseconds

1 2 3 4 5 67 8 91011>>