HomeSort by relevance Sort by last modified time
    Searched refs:json (Results 176 - 200 of 1096) sorted by null

1 2 3 4 5 6 78 91011>>

  /external/chromium_org/tools/telemetry/telemetry/results/
json_output_formatter.py 5 import json namespace
10 """Takes PageTestResults to a dict serializable to JSON.
12 To serialize results as JSON we first convert them to a dict that can be
13 serialized by the json module. It also requires a benchmark_metadat object
48 json.dump(ResultsAsDict(page_test_results, self.benchmark_metadata),
  /developers/build/prebuilts/gradle/RecipeAssistant/Application/src/main/java/com/example/android/wearable/recipeassistant/
RecipeListAdapter.java 30 import org.json.JSONArray;
31 import org.json.JSONException;
32 import org.json.JSONObject;
64 private List<Item> parseJson(JSONObject json) {
67 JSONArray items = json.getJSONArray(Constants.RECIPE_FIELD_LIST);
  /developers/samples/android/wearable/wear/RecipeAssistant/Application/src/main/java/com/example/android/wearable/recipeassistant/
RecipeListAdapter.java 30 import org.json.JSONArray;
31 import org.json.JSONException;
32 import org.json.JSONObject;
64 private List<Item> parseJson(JSONObject json) {
67 JSONArray items = json.getJSONArray(Constants.RECIPE_FIELD_LIST);
  /development/samples/browseable/RecipeAssistant/Application/src/com.example.android.wearable.recipeassistant/
RecipeListAdapter.java 30 import org.json.JSONArray;
31 import org.json.JSONException;
32 import org.json.JSONObject;
64 private List<Item> parseJson(JSONObject json) {
67 JSONArray items = json.getJSONArray(Constants.RECIPE_FIELD_LIST);
  /external/chromium_org/chrome/browser/profile_resetter/
jtl_interpreter_unittest.cc 48 std::string json; \
49 base::ReplaceChars(escaped_json, "'", "\"", &json); \
50 scoped_ptr<base::Value> json_value(ParseJson(json)); \
213 const char* json; member in struct:__anon9129::TestCase
232 cases[i].json);
246 const char* json; member in struct:__anon9129::TestCase
280 cases[i].json);
296 cases[i].json);
310 const char* json; member in struct:__anon9129::TestCase
328 cases[i].json);
345 const char* json; member in struct:__anon9129::TestCase
395 const char* json; member in struct:__anon9129::TestCase
430 const char* json; member in struct:__anon9129::TestCase
500 const char* json; member in struct:__anon9129::TestCase
543 const char* json; member in struct:__anon9129::TestCase
    [all...]
  /external/chromium_org/chrome/test/ispy/
ispy_api.py 5 import json namespace
37 file contains a json list of ordered Chrome versions for which
58 version_file, json.dumps(expectation_versions),
59 'application/json')
83 file contains a json list of ordered Chrome versions for which
90 return json.loads(self._cloud_bucket.DownloadFile(version_file))
180 rebaseline_attrib = json.loads(
187 """Writes a JSON file containing the data needed to rebaseline.
198 json.dumps({
201 'application/json')
    [all...]
  /external/chromium_org/third_party/WebKit/Tools/GardeningServer/
alerts_test.py 6 import json namespace
27 self.assertEqual(res.content_type, 'application/json')
44 alerts = json.loads(res.body)
53 params = {'content': '[{"this is not valid JSON'}
65 alerts = json.loads(res.body)
69 # This generates ~2.5MB of JSON that compresses to ~750K. Real
74 params = {'content': json.dumps(put_alerts)}
78 got_alerts = json.loads(res.body)
  /external/chromium_org/tools/telemetry/telemetry/core/backends/chrome/
inspector_websocket.py 5 import json namespace
31 Must accept a single JSON object containing the Inspector's
59 data = json.dumps(req)
62 logging.debug('sent [%s]', json.dumps(req, indent=2, sort_keys=True))
115 res = json.loads(data)
117 logging.debug('got [%s]', json.dumps(res, indent=2, sort_keys=True))
  /external/chromium_org/google_apis/gaia/
oauth2_mint_token_flow_unittest.cc 10 #include "base/json/json_reader.h"
232 scoped_ptr<base::DictionaryValue> json(
236 EXPECT_FALSE(OAuth2MintTokenFlow::ParseMintTokenResponse(json.get(), &at,
241 scoped_ptr<base::DictionaryValue> json(ParseJson(kValidTokenResponse));
244 EXPECT_TRUE(OAuth2MintTokenFlow::ParseMintTokenResponse(json.get(), &at,
253 scoped_ptr<base::DictionaryValue> json(
257 json.get(), &ia));
261 scoped_ptr<base::DictionaryValue> json(
265 json.get(), &ia));
269 scoped_ptr<base::DictionaryValue> json(
    [all...]
  /cts/tests/tests/util/src/android/util/cts/
JsonReaderTest.java 114 String json = "{\n" + local
118 JsonReader reader = new JsonReader(new StringReader(json));
157 String json = "[\"a\"," local
177 JsonReader reader = new JsonReader(new StringReader(json));
211 String json = "[-0.0," local
226 JsonReader reader = new JsonReader(new StringReader(json));
247 String json = "[" local
255 JsonReader reader = new JsonReader(new StringReader(json));
281 String json = "[\"" + new String(pad) + "\",33333]"; local
282 JsonReader reader = new JsonReader(new StringReader(json));
293 String json = "[\\"" + new String(pad) + "\\",33333"; local
322 String json = "[" + new String(longNumber) + "]"; local
332 String json = "[0,0,0," local
384 String json = "[" local
398 String json = "[-1,99,-0,0,0e1,0e+1,0e-1,0E1,0E+1,0E-1,0.0,1.0,-1.0,1.0e0,1.0e+1,1.0e-1]"; local
409 String json = "[-00,00,001,+1,1f,0x,0xf,0x0,0f1,0ee1,1..0,1e0.1,1.-01,1.+1,1.0x,1.0+]"; local
421 String json = "[NaN]"; local
432 String json = "[0x11]"; local
443 String json = "[01]"; local
    [all...]
  /external/chromium_org/third_party/WebKit/Source/platform/heap/
ThreadState.cpp 634 RefPtr<TracedValue> json = TracedValue::create(); local
638 json->beginDictionary(); \
639 json->setString("name", #HeapType); \
640 m_heaps[HeapType##Heap]->snapshot(json.get(), &info); \
641 json->endDictionary(); \
642 json->beginDictionary(); \
643 json->setString("name", #HeapType"NonFinalized"); \
644 m_heaps[HeapType##HeapNonFinalized]->snapshot(json.get(), &info); \
645 json->endDictionary(); \
647 json->beginArray("heaps")
    [all...]
  /external/chromium_org/third_party/libjingle/source/talk/examples/android/src/org/appspot/apprtc/
AppRTCClient.java 34 import org.json.JSONArray;
35 import org.json.JSONException;
36 import org.json.JSONObject;
234 // Fetches |url| and fishes the signaling parameters out of the JSON.
237 url = url + "&t=json";
309 JSONObject json = new JSONObject(mediaConstraintsString); local
313 if (!json.has(type) || !json.optBoolean(type, true)) {
318 if (json.optBoolean(type, false)) {
323 return json.getJSONObject(type).toString()
335 JSONObject json = new JSONObject(jsonString); local
390 JSONObject json = new JSONObject(pcConfig); local
    [all...]
  /external/chromium_org/third_party/WebKit/Source/platform/graphics/
GraphicsLayer.cpp 551 RefPtr<JSONObject> json = adoptRef(new JSONObject); local
554 json->setString("this", pointerAsString(this));
555 json->setString("debugName", m_client->debugName(this));
559 json->setArray("position", pointAsJSONArray(m_position));
562 json->setArray("transformOrigin", pointAsJSONArray(m_transformOrigin));
565 json->setArray("bounds", sizeAsJSONArray(m_size));
568 json->setNumber("opacity", m_opacity);
571 json->setString("blendMode", compositeOperatorName(CompositeSourceOver, m_blendMode));
574 json->setBoolean("isolate", m_isRootForIsolatedGroup);
577 json->setBoolean("contentsOpaque", m_contentsOpaque)
675 RefPtr<JSONObject> json = layerTreeAsJSON(flags, renderingContextMap); local
    [all...]
  /external/chromium_org/chrome/browser/resources/chromeos/chromevox/speech_rules/
math_simple_store.js 33 * Turns a domain mapping from its JSON representation containing simple strings
75 * @param {Object} mappings JSON representation of mappings from styles and
86 * Makes a speech rule for Unicode characters from its JSON representation.
87 * @param {Object} json JSON object of the speech rules.
89 cvox.MathCompoundStore.prototype.addSymbolRules = function(json) {
90 var key = cvox.MathSimpleStore.parseUnicode_(json['key']);
91 this.defineRules(json['key'], key, json['mappings']);
96 * Makes a speech rule for Unicode characters from its JSON representation
    [all...]
  /external/chromium_org/content/child/webcrypto/test/
test_helpers.cc 10 #include "base/json/json_reader.h"
11 #include "base/json/json_writer.h"
154 std::string json; local
155 base::JSONWriter::Write(&dict, &json);
156 return MakeJsonVector(json);
174 // Strip C++ style comments out of the "json" file, otherwise it cannot be
178 // Parse the JSON to a dictionary.
182 << "Couldn't parse test file JSON: " << file_path.value();
191 // Read the JSON.
192 scoped_ptr<base::Value> json; local
527 std::vector<uint8_t> json; local
    [all...]
  /external/chromium_org/third_party/skia/gm/tests/
run.sh 73 # - writing json summary into $2/$OUTPUT_ACTUAL_SUBDIR/json-summary.txt
84 JSON_SUMMARY_FILE="$ACTUAL_OUTPUT_DIR/json-summary.txt"
124 # Create input dir (at path $1) with expectations (both image and json)
138 JSON_DIR=$INPUTS_DIR/json
145 # Run GM again to read in those images and write them out as a JSON summary.
147 --writeJsonSummaryPath $JSON_DIR/identical-bytes.json
157 --writeJsonSummaryPath $JSON_DIR/identical-pixels.json
165 --writeJsonSummaryPath $JSON_DIR/different-pixels.json
167 # Create another JSON expectations file which is identical t
    [all...]
  /external/chromium_org/tools/memory_inspector/memory_inspector/data/
file_storage.py 17 import json namespace
28 _SETTINGS_FILE = 'settings-%s.json'
37 """Loads a key-value dict from the /settings-name.json file.
44 return json.load(f)
47 """Stores a key-value dict into /settings-name.json file."""
55 return json.dump(settings, f)
81 _MMAP_EXT = '-mmap.json'
82 _NHEAP_EXT = '-nheap.json'
84 _SYM_FILE = 'syms.json'
98 json.dump(symbols, f, cls=serialization.Encoder
    [all...]
  /external/chromium_org/build/android/pylib/instrumentation/
json_perf_parser.py 6 """A helper module for parsing JSON objects from perf tests results."""
8 import json namespace
12 """Summarizes TraceEvent JSON data for performance metrics.
14 Example JSON Inputs (More tags can be added but these are required):
46 json_data: A list of dictonaries each representing a JSON object.
47 name: The 'name' tag to filter on in the JSON file.
135 """Returns the results from GetAverageRunInfo using a JSON string.
138 json_string: The string containing JSON.
139 name: The 'name' tag to filter on in the JSON file.
144 return GetAverageRunInfo(json.loads(json_string), name
    [all...]
  /external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/omnibox/
SuggestionAnswer.java 9 import org.json.JSONArray;
10 import org.json.JSONException;
11 import org.json.JSONObject;
17 * Structured representation of the JSON payload of a suggestion with an answer. An answer has
46 * Parses the JSON representation of an answer and constructs a SuggestionAnswer from the
49 * @param answerContents The JSON representation of an answer.
61 Log.e(TAG, "Answer JSON doesn't contain exactly two lines: " + jsonAnswer);
70 Log.e(TAG, "Problem parsing answer JSON: " + e.getMessage());
  /external/chromium_org/chrome/common/extensions/docs/server2/
api_list_data_source_test.py 7 import json namespace
24 '''Transforms a list of strings into a minimal JSON features object.
46 apis['api'][json_file] = json.dumps(_TEST_API_DATA[name])
86 ('alarms', 'alarms.json'),
87 ('app.window', 'app_window.json'),
88 ('browserAction', 'browser_action.json'),
89 ('experimental.bluetooth', 'experimental_bluetooth.json'),
90 ('experimental.history', 'experimental_history.json'),
91 ('experimental.power', 'experimental_power.json'),
92 ('extension', 'extension.json'),
    [all...]
sidenav_data_source_test.py 6 import json namespace
65 'chrome_sidenav.json': json.dumps([
101 'chrome_sidenav.json': json.dumps([{
144 'chrome_sidenav.json': '[{ "title": "H1" }]'
152 # If Refresh fails, chrome_sidenav.json will not be cached, and the
156 '%schrome_sidenav.json' % JSON_TEMPLATES).Get().cache_data
  /external/chromium_org/chrome/service/cloud_print/
connector_settings_unittest.cc 56 ServiceProcessPrefs* CreateTestFile(const char* json) {
59 if (json) {
60 std::string content = json;
  /external/chromium_org/google_apis/drive/
base_requests_unittest.cc 80 response->set_content_type("application/json");
94 scoped_ptr<base::Value> json(ParseJson(kValidJsonString));
97 ASSERT_TRUE(json);
98 ASSERT_TRUE(json->GetAsDictionary(&root_dict));
  /external/chromium_org/gpu/config/
gpu_control_list_unittest.cc 136 // Invalid json input should not change the current control_list settings.
293 const std::string json = LONG_STRING_CONST( local
319 EXPECT_TRUE(control_list->LoadList(json, GpuControlList::kAllOs));
339 const std::string json = LONG_STRING_CONST( local
366 EXPECT_TRUE(control_list->LoadList(json, GpuControlList::kAllOs));
399 const std::string json = LONG_STRING_CONST( local
435 EXPECT_TRUE(control_list->LoadList(json, GpuControlList::kAllOs));
443 const std::string json = LONG_STRING_CONST( local
483 EXPECT_TRUE(control_list->LoadList(json, GpuControlList::kAllOs));
506 const std::string json= LONG_STRING_CONST local
544 const std::string json= LONG_STRING_CONST( local
    [all...]
  /external/chromium_org/native_client_sdk/src/build_tools/
update_sdktools.py 21 import json namespace
61 return json.loads(json_string, object_pairs_hook=collections.OrderedDict)
63 return json.loads(json_string)
124 UpdateManifestFileToRevision('json/naclsdk_manifest0.json', revision)
125 UpdateManifestFileToRevision('json/naclsdk_manifest2.json', revision)

Completed in 2364 milliseconds

1 2 3 4 5 6 78 91011>>