/external/chromium-trace/catapult/dashboard/dashboard/ |
list_tests_test.py | 5 import json 109 self.assertEqual(expected, json.loads(response.body)) 137 self.assertEqual(expected, json.loads(response.body)) 177 self.assertEqual(expected, json.loads(response.body)) 212 self.assertEqual(expected, json.loads(response.body)) 218 self.assertEqual({}, json.loads(response.body)) 317 self.assertEqual(expected, json.loads(response.body)) 325 self.assertEqual(expected, json.loads(response.body)) 330 self.assertEqual(expected, json.loads(response.body)) 342 self.assertEqual([], json.loads(response.body) [all...] |
add_point_test.py | 6 import json 46 # Sample Dashboard JSON v1.0 point. 77 # Sample Dashboard JSON v1.0 point with trace data. 156 data_param = json.dumps([ 267 '/add_point', {'data': json.dumps([point])}, 281 '/add_point', {'data': json.dumps([point])}, 294 '/add_point', {'data': json.dumps([point])}, 304 '/add_point', {'data': json.dumps([point])}, status=400, 314 '/add_point', {'data': json.dumps([point])}, 327 '/add_point', {'data': json.dumps([point])} [all...] |
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/cloudtrail/ |
layer1.py | 28 from boto.compat import json 153 body=json.dumps(params)) 165 body=json.dumps(params)) 180 body=json.dumps(params)) 184 Returns a JSON-formatted list of information about the 196 body=json.dumps(params)) 258 body=json.dumps(params)) 272 body=json.dumps(params)) 289 body=json.dumps(params)) 350 body=json.dumps(params) [all...] |
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/cloudsearchdomain/ |
test_cloudsearchdomain.py | 2 import json 42 domain = Domain(layer1=layer1, data=json.loads(self.domain_status)) 51 domain = Domain(layer1=layer1, data=json.loads(self.domain_status)) 60 domain = Domain(layer1=layer1, data=json.loads(self.domain_status)) 85 self.set_http_response(status_code=200, body=json.dumps(response)) 97 domain = Domain(layer1=layer1, data=json.loads(self.domain_status)) 112 self.set_http_response(status_code=200, body=json.dumps(response))
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
HalMockUtils.java | 24 import org.json.JSONArray; 25 import org.json.JSONException; 26 import org.json.JSONObject; 71 * JSON data-model for passing arguments between mock host (java) and mock 118 JSONObject json = new JSONObject(); local 134 throw new JSONException("Unexpected type of JSON tree node (not an Integer " 137 json.put(key, child); 140 if (DBG) Log.d(TAG, "convertBundleToJson: returning JSONObject=" + json); 141 return json;
|
/prebuilts/go/darwin-x86/src/encoding/json/ |
bench_test.go | 6 // The JSON data is a summary of agl's changes in the 8 // We benchmark converting between the JSON form 11 package json package 23 Tree *codeNode `json:"tree"` 24 Username string `json:"username"` 28 Name string `json:"name"` 29 Kids []*codeNode `json:"kids"` 30 CLWeight float64 `json:"cl_weight"` 31 Touches int `json:"touches"` 32 MinT int64 `json:"min_t" [all...] |
tags.go | 5 package json package 11 // tagOptions is the string following a comma in a struct field's "json" 15 // parseTag splits a struct field's json tag into its name and
|
/prebuilts/go/linux-x86/src/encoding/json/ |
bench_test.go | 6 // The JSON data is a summary of agl's changes in the 8 // We benchmark converting between the JSON form 11 package json package 23 Tree *codeNode `json:"tree"` 24 Username string `json:"username"` 28 Name string `json:"name"` 29 Kids []*codeNode `json:"kids"` 30 CLWeight float64 `json:"cl_weight"` 31 Touches int `json:"touches"` 32 MinT int64 `json:"min_t" [all...] |
tags.go | 5 package json package 11 // tagOptions is the string following a comma in a struct field's "json" 15 // parseTag splits a struct field's json tag into its name and
|
/system/webservd/webservd/ |
config.cc | 18 #include <base/json/json_reader.h> 123 brillo::errors::json::kDomain, 124 brillo::errors::json::kParseError, 134 brillo::errors::json::kDomain, 135 brillo::errors::json::kObjectExpected, 136 "JSON object is expected."); 151 brillo::errors::json::kDomain, 152 brillo::errors::json::kObjectExpected, 153 "Protocol handler definition must be a JSON object");
|
/developers/build/prebuilts/gradle/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/model/ |
MusicProvider.java | 24 import org.json.JSONArray; 25 import org.json.JSONException; 26 import org.json.JSONObject; 43 * Utility class to get a list of MusicTrack's based on a server-side JSON 51 "http://storage.googleapis.com/automotive-media/music.json"; 250 private MediaMetadata buildFromJSON(JSONObject json, String basePath) throws JSONException { 251 String title = json.getString(JSON_TITLE); 252 String album = json.getString(JSON_ALBUM); 253 String artist = json.getString(JSON_ARTIST); 254 String genre = json.getString(JSON_GENRE) [all...] |
/developers/samples/android/media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/model/ |
MusicProvider.java | 24 import org.json.JSONArray; 25 import org.json.JSONException; 26 import org.json.JSONObject; 43 * Utility class to get a list of MusicTrack's based on a server-side JSON 51 "http://storage.googleapis.com/automotive-media/music.json"; 250 private MediaMetadata buildFromJSON(JSONObject json, String basePath) throws JSONException { 251 String title = json.getString(JSON_TITLE); 252 String album = json.getString(JSON_ALBUM); 253 String artist = json.getString(JSON_ARTIST); 254 String genre = json.getString(JSON_GENRE) [all...] |
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/model/ |
MusicProvider.java | 24 import org.json.JSONArray; 25 import org.json.JSONException; 26 import org.json.JSONObject; 43 * Utility class to get a list of MusicTrack's based on a server-side JSON 51 "http://storage.googleapis.com/automotive-media/music.json"; 250 private MediaMetadata buildFromJSON(JSONObject json, String basePath) throws JSONException { 251 String title = json.getString(JSON_TITLE); 252 String album = json.getString(JSON_ALBUM); 253 String artist = json.getString(JSON_ARTIST); 254 String genre = json.getString(JSON_GENRE) [all...] |
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/ |
JsonTest.java | 8 import com.badlogic.gdx.utils.Json; 13 Json json; field in class:JsonTest 16 json = new Json(); 18 // json.fromJson(Test1.class, // 85 equals(json.toJson("meow"), "meow"); 86 equals(json.toJson("meow "), "\"meow \""); 87 equals(json.toJson(" meow"), "\" meow\""); 88 equals(json.toJson(" meow "), "\" meow \"") [all...] |
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/model/ |
MusicProvider.java | 23 import org.json.JSONArray; 24 import org.json.JSONException; 25 import org.json.JSONObject; 42 * Utility class to get a list of MusicTrack's based on a server-side JSON 50 "http://storage.googleapis.com/automotive-media/music.json"; 252 private MediaMetadataCompat buildFromJSON(JSONObject json, String basePath) throws JSONException { 253 String title = json.getString(JSON_TITLE); 254 String album = json.getString(JSON_ALBUM); 255 String artist = json.getString(JSON_ARTIST); 256 String genre = json.getString(JSON_GENRE) [all...] |
/external/chromium-trace/catapult/third_party/gsutil/gslib/tests/ |
test_lifecycle.py | 19 import json 49 lifecycle_json_obj = json.loads(lifecycle_doc) 58 lifecycle_created_before_json_obj = json.loads(lifecycle_created_before_doc) 71 self.assertEqual(json.loads(json_text), json.loads(converted_json_text)) 93 self.assertEqual(json.loads(stdout), self.lifecycle_json_obj) 101 self.assertEqual(json.loads(stdout), self.lifecycle_json_obj) 109 self.assertEqual(json.loads(stdout), self.lifecycle_created_before_json_obj) 133 self.assertEqual(json.loads(stdout), self.lifecycle_json_obj) 150 self.assertEqual(json.loads(stdout), self.lifecycle_json_obj [all...] |
/packages/apps/Email/tests/src/com/android/emailcommon/provider/ |
HostAuthTests.java | 24 import org.json.JSONException; 25 import org.json.JSONObject; 224 final JSONObject json = new JSONObject(); local 225 json.put(EmailContent.HostAuthColumns.PROTOCOL, "IMAP"); 226 json.put(EmailContent.HostAuthColumns.ADDRESS, "dhoff@example.com"); 227 json.put(EmailContent.HostAuthColumns.PORT, 1337); 228 json.put(EmailContent.HostAuthColumns.FLAGS, 293847); 229 json.put(EmailContent.HostAuthColumns.LOGIN, "dhoff"); 230 json.put(EmailContent.HostAuthColumns.PASSWORD, "daknightrida"); 231 json.put(EmailContent.HostAuthColumns.DOMAIN, "example.com") [all...] |
/external/autotest/frontend/client/src/autotest/common/ |
JsonRpcProxy.java | 5 import com.google.gwt.json.client.JSONArray; 6 import com.google.gwt.json.client.JSONNull; 7 import com.google.gwt.json.client.JSONNumber; 8 import com.google.gwt.json.client.JSONObject; 9 import com.google.gwt.json.client.JSONString; 10 import com.google.gwt.json.client.JSONValue; 93 notify.showError("Bad JSON response", responseObject.toString());
|
/external/autotest/server/cros/bluetooth/ |
bluetooth_tester.py | 6 import json 78 @return the information as a JSON-encoded tuple of: 84 return json.loads(self._proxy.read_info()) 121 in json.loads(devices) 164 return json.loads( 189 return json.loads( 217 return json.loads(
|
/external/chromium-trace/catapult/perf_insights/perf_insights/ |
map_single_trace_unittest.py | 4 import json 30 '/a.json', json.dumps(events)) 51 '/a.json', trace_string) 74 '/a.json', json.dumps(events)) 98 '/a.json', json.dumps(events)) 119 '/a.json', json.dumps(events) [all...] |
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/sns/ |
test_connection.py | 23 import json 58 'ContentType': 'JSON', 66 actual_policy = json.loads(queue.set_attribute.call_args[0][1]) 83 'ContentType': 'JSON', 89 actual_policy = json.loads(queue.set_attribute.call_args[0][1]) 210 message=json.dumps({ 216 message_structure='json', 224 'MessageStructure': 'json', 227 json.loads(self.actual_request.params["Message"]), 245 message=json.dumps( [all...] |
/external/v8/tools/testrunner/server/ |
presence_handler.py | 33 import ujson as json 35 import json 57 data = json.loads(self.request[0].strip()) 67 response = json.dumps(response) 98 self.SendToAll(json.dumps([EXIT_REQUEST])) 119 request = json.dumps(request)
|
/frameworks/volley/src/test/java/com/android/volley/toolbox/ |
JsonRequestCharsetTest.java | 24 import org.json.JSONArray; 25 import org.json.JSONObject; 57 // UTF-8 is default charset for JSON 70 // UTF-8 is default charset for JSON 85 headers.put("Content-Type", "application/json; charset=iso-8859-1"); 99 headers.put("Content-Type", "application/json; charset=iso-8859-2"); 111 JSONObject json = new JSONObject().put(TEXT_NAME, TEXT_VALUE).put(COPY_NAME, COPY_VALUE); local 112 return json.toString(); 116 JSONArray json = new JSONArray().put(TEXT_INDEX, TEXT_VALUE).put(COPY_INDEX, COPY_VALUE); local 117 return json.toString() [all...] |
/external/autotest/client/site_tests/enterprise_PowerManagement/ |
enterprise_PowerManagement.py | 5 import json 45 }""" % (json.dumps(screen_lock_policy), self.USERNAME) 76 }""" % (json.dumps(idle_settings_policy), self.USERNAME)
|
/external/autotest/frontend/client/src/autotest/afe/ |
JobTable.java | 9 import com.google.gwt.json.client.JSONObject; 10 import com.google.gwt.json.client.JSONArray; 11 import com.google.gwt.json.client.JSONString;
|