/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),
|
/frameworks/volley/src/com/android/volley/toolbox/ |
JsonArrayRequest.java | 25 import org.json.JSONArray; 26 import org.json.JSONException; 37 * @param url URL to fetch the JSON from 38 * @param listener Listener to receive the JSON response
|
JsonObjectRequest.java | 25 import org.json.JSONException; 26 import org.json.JSONObject; 39 * @param url URL to fetch the JSON from 42 * @param listener Listener to receive the JSON response
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
Account.java | 38 import org.json.JSONException; 39 import org.json.JSONObject; 757 final JSONObject json = toJson(); local 758 if (json != null) { 759 return json.toString(); 766 final JSONObject json = new JSONObject(); local 767 json.putOpt(AccountColumns.DISPLAY_NAME, mDisplayName); 768 json.put(AccountColumns.EMAIL_ADDRESS, mEmailAddress); 769 json.put(AccountColumns.SYNC_LOOKBACK, mSyncLookback); 770 json.put(AccountColumns.SYNC_INTERVAL, mSyncInterval) 791 final JSONObject json = new JSONObject(jsonString); local [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/json/tests/ |
test_dump.py | 2 from json.tests import PyTest, CTest 8 self.json.dump({}, sio)
|
test_indent.py | 3 from json.tests import PyTest, CTest 50 self.json.dump(h, sio, indent=indent)
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/json/tests/ |
test_dump.py | 2 from json.tests import PyTest, CTest 8 self.json.dump({}, sio)
|
test_indent.py | 3 from json.tests import PyTest, CTest 50 self.json.dump(h, sio, indent=indent)
|
/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/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...] |