OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:json
(Results
726 - 750
of
1526
) sorted by null
<<
21
22
23
24
25
26
27
28
29
30
>>
/external/autotest/frontend/client/src/autotest/tko/
TestLabelManager.java
12
import com.google.gwt.
json
.client.JSONObject;
13
import com.google.gwt.
json
.client.JSONString;
14
import com.google.gwt.
json
.client.JSONValue;
/external/autotest/server/cros/
sonic_client_utils.py
9
import
json
36
JSON_HEADERS = {'Content-Type': 'application/
json
'}
127
@param data:
Json
data to post.
133
request = urllib2.Request(url,
json
.dumps(data),
189
json
.loads(_get(self._sonic_server))
/external/autotest/tko/perf_upload/
perf_uploader.py
16
import httplib,
json
, math, os, re, urllib, urllib2
24
_ROOT_DIR, 'perf_dashboard_config.
json
')
26
_ROOT_DIR, 'perf_dashboard_shadow_config.
json
')
130
json_obj =
json
.load(fp)
173
specially-formatted
JSON
string. In particular, the
JSON
object must be a
234
json_string =
json
.dumps(dash_entries)
339
raise PerfUploadingError('HTTPError: %d %s for
JSON
%s\n' % (
343
'URLError: %s for
JSON
%s\n' %
347
'HTTPException for
JSON
%s\n' % data_obj['data']
[
all
...]
/external/chromium-trace/catapult/dashboard/dashboard/
alerts.py
7
import
json
40
JSON
data for an XHR request to show a table of alerts.
45
self.response.out.write(
json
.dumps({
64
self.response.out.write(
json
.dumps(values))
147
"""Returns a dictionary for an Anomaly which can be encoded as
JSON
.
154
A dictionary which is safe to be encoded as
JSON
.
dump_graph_json.py
5
"""Provides a web interface for dumping graph data as
JSON
.
12
import
json
49
JSON
array of encoded protobuf messages, which encode all of
79
# Convert the entities to protobuf message strings and output as
JSON
.
81
self.response.out.write(
json
.dumps(protobuf_strings))
92
JSON
array of encoded protobuf messages, which encode all of
119
# Convert the entities to protobuf message strings and output as
JSON
.
121
self.response.out.write(
json
.dumps(protobuf_strings))
164
# Base64 encode the data to text format for
json
.dumps.
group_report.py
7
import
json
47
JSON
for the /group_report page XHR request.
65
self.response.out.write(
json
.dumps({'error': str(error)}))
160
"""Responds to an XHR from /group_report page with a
JSON
list of alerts.
184
self.response.out.write(
json
.dumps(values))
list_tests.py
12
import
json
26
"""Outputs a
JSON
string of the requested list.
37
A data structure with test names in
JSON
format, or nothing.
47
self.response.out.write(
json
.dumps(test_list))
54
self.response.out.write(
json
.dumps(test_list))
testing_common.py
8
import
json
106
If the variable was found but couldn't be parsed as
JSON
, this method
114
A value obtained from de-
JSON
-ifying the embedded variable,
126
return
json
.loads(javascript_value)
128
self.fail('Could not deserialize value of "%s" as
JSON
:\n%s' %
134
return
json
.loads(response.body).get(key)
/external/chromium-trace/catapult/telemetry/telemetry/internal/browser/
browser_credentials.py
5
import
json
102
credentials =
json
.loads(f.read())
113
homedir_credentials =
json
.loads(f.read())
137
util.GetTelemetryDir(), 'examples', 'credentials_example.
json
')
/external/chromium-trace/catapult/telemetry/telemetry/internal/results/
chart_json_output_formatter_unittest.py
5
import
json
47
d =
json
.loads(self._output.getvalue())
60
json
.dumps(d)
html_output_formatter.py
6
import
json
28
util.GetTelemetryDir(), 'telemetry', 'value', 'unit-info.
json
')
39
# TODO(eakuefner): rewrite template to use Telemetry
JSON
directly
84
'^<script id="results-
json
" type="application/
json
">(.*?)</script>$',
89
return
json
.loads(m.group(1))[:512]
170
html = html.replace('%json_results%',
json
.dumps(self.GetCombinedResults()))
/external/chromium-trace/catapult/telemetry/telemetry/wpr/
archive_info.py
5
import
json
58
data =
json
.load(f)
184
json
.dump(metadata, f, indent=4)
/external/chromium-trace/catapult/third_party/apiclient/googleapiclient/
model.py
18
as
JSON
, Atom, etc. The model classes are responsible
27
import
json
48
format such as
JSON
and a Python object representation.
129
serializable by
json
.
136
body: string, the body serialized as
JSON
237
"""Model class for
JSON
.
239
Serializes and de-serializes between
JSON
and the Python
242
accept = 'application/
json
'
243
content_type = 'application/
json
'
244
alt_param = '
json
'
[
all
...]
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/cloudsearch2/
document.py
25
from boto.compat import
json
152
:returns:
JSON
-formatted string of the documents in SDF
155
return self._sdf if self._sdf else
json
.dumps(self.documents_batch)
183
return self.domain_connection.upload_documents(sdf, 'application/
json
')
199
resp = session.post(url, data=sdf, headers={'Content-Type': 'application/
json
'})
260
self.content =
json
.loads(_body)
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/sts/
credentials.py
27
from boto.compat import
json
51
of a
JSON
document.
54
:param json_doc: A string containing a
JSON
document with a
57
d =
json
.loads(json_doc)
66
of a previously saved
JSON
-format file.
69
:param file_path: The fully qualified path to the
JSON
-format
107
Persist a Session Token to a file in
JSON
format.
117
json
.dump(self.to_dict(), fp)
224
:ivar decoded_message: The decoded authorization message (may be
JSON
).
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/iam/
test_connection.py
25
from boto.compat import
json
207
self.assertDictEqual(
json
.loads(self.actual_request.params["AssumeRolePolicyDocument"]), {"Statement": [{"Action": ["sts:AssumeRole"], "Effect": "Allow", "Principal": {"Service": ["ec2.amazonaws.com"]}}]})
218
self.assertDictEqual(
json
.loads(self.actual_request.params["AssumeRolePolicyDocument"]), {"Statement": [{"Action": ["sts:AssumeRole"], "Effect": "Allow", "Principal": {"Service": ["ec2.amazonaws.com.cn"]}}]})
/external/chromium-trace/catapult/third_party/mapreduce/mapreduce/
base_handler.py
28
import
json
30
import simplejson as
json
173
"""Base class for
JSON
handlers for user interface.
177
by the sub-class implementation will be sent in a
JSON
response with the
189
JSON
handlers are mapped to /base_path/command/command_name thus they
202
"
Json
handlers should have /command path prefix")
206
"""The helper method for handling
JSON
Post and Get requests."""
208
logging.error("Got
JSON
request with no X-Requested-With header")
210
403, message="Got
JSON
request with no X-Requested-With header")
230
output =
json
.dumps(self.json_response, cls=json_util.JsonEncoder
[
all
...]
/external/jsoncpp/src/test_lib_json/
jsontest.h
9
#include <
json
/config.h>
10
#include <
json
/value.h>
11
#include <
json
/writer.h>
95
TestResult& operator<<(
Json
::Int64 value);
96
TestResult& operator<<(
Json
::UInt64 value);
/external/skia/tools/
buildbot_spec.py
18
import
json
365
golden = this_file.replace('.py', '.
json
')
367
json
.dump(args, f, indent=2, sort_keys=True)
380
json
.dump(get_builder_spec(sys.argv[2]), out)
dm_flags.py
18
import
json
248
golden = this_file.replace('.py', '.
json
')
250
json
.dump(args, f, indent=2, sort_keys=True)
263
json
.dump(get_args(sys.argv[2]), out)
/external/v8/tools/
perf-to-html.py
8
Convert a perf trybot
JSON
file into a pleasing HTML page. It can read
11
cat results.
json
| %prog --title "ia32 results"
12
%prog -f results.
json
-t "ia32 results" -o results.html
16
import
json
349
data =
json
.load(json_data)
352
data =
json
.load(sys.stdin)
370
help="Specifies the filename for the
JSON
results "
/external/webrtc/talk/app/webrtc/java/android/org/webrtc/
CameraEnumerationAndroid.java
34
import org.
json
.JSONArray;
35
import org.
json
.JSONException;
36
import org.
json
.JSONObject;
/frameworks/base/tests/MusicServiceDemo/src/com/example/android/musicservicedemo/browser/
MusicProvider.java
26
import org.
json
.JSONArray;
27
import org.
json
.JSONException;
28
import org.
json
.JSONObject;
40
* Utility class to get a list of MusicTrack's based on a server-side
JSON
47
private static final String MUSIC_URL = "http://storage.googleapis.com/automotive-media/music.
json
";
102
// Media is stored relative to
JSON
file
125
* Download a
JSON
file from a server, parse the content and return the
JSON
146
Log.d(TAG, "Failed to parse the
json
for media list", e);
/prebuilts/go/darwin-x86/src/cmd/go/
list.go
9
"encoding/
json
"
17
UsageLine: "list [-e] [-f format] [-
json
] [build flags] [packages]",
25
encoding/
json
101
The -
json
flag causes the package data to be printed in
JSON
format
127
var listJson = cmdList.Flag.Bool("
json
", false, "")
138
b, err :=
json
.MarshalIndent(p, "", "\t")
/prebuilts/go/linux-x86/src/cmd/go/
list.go
9
"encoding/
json
"
17
UsageLine: "list [-e] [-f format] [-
json
] [build flags] [packages]",
25
encoding/
json
101
The -
json
flag causes the package data to be printed in
JSON
format
127
var listJson = cmdList.Flag.Bool("
json
", false, "")
138
b, err :=
json
.MarshalIndent(p, "", "\t")
Completed in 1582 milliseconds
<<
21
22
23
24
25
26
27
28
29
30
>>