/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/json/tests/ |
__init__.py | 3 import json namespace 9 # import json with and without accelerations 10 cjson = test_support.import_fresh_module('json', fresh=['_json']) 11 pyjson = test_support.import_fresh_module('json', blocked=['_json']) 15 json = pyjson variable in class:PyTest 22 json = cjson variable in class:CTest 29 self.assertEqual(self.json.scanner.make_scanner.__module__, 30 'json.scanner') 31 self.assertEqual(self.json.decoder.scanstring.__module__, 32 'json.decoder' [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/json/tests/ |
__init__.py | 3 import json namespace 9 # import json with and without accelerations 10 cjson = test_support.import_fresh_module('json', fresh=['_json']) 11 pyjson = test_support.import_fresh_module('json', blocked=['_json']) 15 json = pyjson variable in class:PyTest 22 json = cjson variable in class:CTest 29 self.assertEqual(self.json.scanner.make_scanner.__module__, 30 'json.scanner') 31 self.assertEqual(self.json.decoder.scanstring.__module__, 32 'json.decoder' [all...] |
/external/chromium_org/components/cloud_devices/common/ |
cloud_device_description.cc | 7 #include "base/json/json_reader.h" 8 #include "base/json/json_writer.h" 24 root_->SetString(json::kVersion, json::kVersion10); 34 root_->GetString(json::kVersion, &version); 35 return version == json::kVersion10; 38 bool CloudDeviceDescription::InitFromString(const std::string& json) { 39 scoped_ptr<base::Value> parsed(base::JSONReader::Read(json)); 48 std::string json; local 50 root_.get(), base::JSONWriter::OPTIONS_PRETTY_PRINT, &json); [all...] |
/packages/apps/UnifiedEmail/tests/src/com/android/mail/providers/ |
AccountTests.java | 25 import org.json.JSONException; 26 import org.json.JSONObject; 63 final JSONObject json = new JSONObject(); local 65 json.put(UIProvider.AccountColumns.NAME, "name"); 66 json.put(UIProvider.AccountColumns.TYPE, "type"); 67 json.put(UIProvider.AccountColumns.PROVIDER_VERSION, 1); 68 json.put(UIProvider.AccountColumns.CAPABILITIES, 2); 71 json.put(UIProvider.AccountColumns.SENDER_NAME, null); 73 final Account account = Account.newInstance(json.toString());
|
/external/chromium_org/base/json/ |
json_writer.h | 32 // Return a slightly nicer formatted json string (pads with whitespace to 37 // Given a root node, generates a JSON string and puts it into |json|. 38 // TODO(tc): Should we generate json if it would be invalid json (e.g., 41 static bool Write(const Value* const node, std::string* json); 46 std::string* json); 49 JSONWriter(int options, std::string* json); 51 // Called recursively to build the JSON string. When completed, 52 // |json_string_| will contain the JSON [all...] |
json_reader.h | 5 // A JSON parser. Converts strings of JSON into a Value object (see 57 // the JSON object, which speeds up certain operations on children. However, 97 // Reads and parses |json|, returning a Value. The caller owns the returned 98 // instance. If |json| is not a properly formed JSON string, returns NULL. 99 static Value* Read(const StringPiece& json); 101 // Reads and parses |json|, returning a Value owned by the caller. The 104 static Value* Read(const StringPiece& json, int options); 106 // Reads and parses |json| like Read(). |error_code_out| and |error_msg_out [all...] |
json_reader.cc | 5 #include "base/json/json_reader.h" 7 #include "base/json/json_parser.h" 29 "Unsupported encoding. JSON must be UTF-8."; 45 Value* JSONReader::Read(const StringPiece& json) { 47 return parser.Parse(json); 51 Value* JSONReader::Read(const StringPiece& json, 54 return parser.Parse(json); 58 Value* JSONReader::ReadAndReturnError(const StringPiece& json, 63 Value* root = parser.Parse(json); 102 Value* JSONReader::ReadToValue(const std::string& json) { [all...] |
/external/chromium_org/tools/clang/blink_gc_plugin/tests/ |
test.sh | 33 local json="${input%cpp}graph.json" 34 if [ -f "$json" ]; then 35 output="$(python ../process-graph.py -c ${json} 2>&1)"
|
/external/chromium_org/tools/telemetry/telemetry/timeline/ |
tracing_timeline_data.py | 5 import json namespace 17 json.dump(self._event_data, f) 19 json.dump({'traceEvents' : self._event_data}, f)
|
inspector_timeline_data.py | 5 import json namespace 17 json.dump(self._event_data, f)
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
ReplyFromAccount.java | 28 import org.json.JSONException; 29 import org.json.JSONObject; 65 JSONObject json = new JSONObject(); local 67 json.put(BASE_ACCOUNT_URI, baseAccountUri); 68 json.put(ADDRESS_STRING, address); 69 json.put(NAME_STRING, name); 70 json.put(REPLY_TO, replyTo); 71 json.put(IS_DEFAULT, isDefault); 72 json.put(IS_CUSTOM_FROM, isCustomFrom); 76 return json; [all...] |
Settings.java | 36 import org.json.JSONException; 37 import org.json.JSONObject; 86 // ask viki to replace the above two members with a single JSON object representing the default 201 private Settings(JSONObject json) { 202 signature = json.optString(SettingsColumns.SIGNATURE, sDefault.signature); 203 mAutoAdvance = json.optInt(SettingsColumns.AUTO_ADVANCE, sDefault.getAutoAdvanceSetting()); 204 snapHeaders = json.optInt(SettingsColumns.SNAP_HEADERS, sDefault.snapHeaders); 205 replyBehavior = json.optInt(SettingsColumns.REPLY_BEHAVIOR, sDefault.replyBehavior); 206 convListIcon = json.optInt(SettingsColumns.CONV_LIST_ICON, sDefault.convListIcon); 207 confirmDelete = json.optBoolean(SettingsColumns.CONFIRM_DELETE, sDefault.confirmDelete) 236 final JSONObject json = toJSON(); local 250 final JSONObject json = new JSONObject(); local [all...] |
/cts/libs/json/src/com/android/json/stream/ |
JsonToken.java | 17 package com.android.json.stream; 20 * A structure, name or value type in a JSON-encoded string. 25 * The opening of a JSON array. Written using {@link JsonWriter#beginObject} 31 * The closing of a JSON array. Written using {@link JsonWriter#endArray} 37 * The opening of a JSON object. Written using {@link JsonWriter#beginObject} 43 * The closing of a JSON object. Written using {@link JsonWriter#endObject} 49 * A JSON property name. Within objects, tokens alternate between names and 56 * A JSON string. 61 * A JSON number represented in this API by a Java {@code double}, {@code 67 * A JSON {@code true} or {@code false} [all...] |
/external/chromium_org/tools/android/adb_profile_chrome/ |
trace_packager_unittest.py | 7 import json namespace 22 f1.write(json.dumps(t1)) 23 f2.write(json.dumps(t2)) 33 output = json.load(output)
|
/external/google-tv-pairing-protocol/java/src/com/google/polo/json/ |
CDL.java | 1 package com.google.polo.json; 4 Copyright (c) 2002 JSON.org 43 * @author JSON.org
|
JSONStringer.java | 1 package com.google.polo.json; 4 Copyright (c) 2006 JSON.org 30 * JSONStringer provides a quick and convenient way of producing JSON text. 31 * The texts produced strictly conform to JSON syntax rules. No whitespace is 33 * JSONStringer can produce one JSON text. 45 * .key("JSON") 49 * {"JSON":"Hello, World!"}</pre> 56 * @author JSON.org 61 * Make a fresh JSONStringer. It can be used to build one JSON text. 68 * Return the JSON text. This method is used to obtain the product of th [all...] |
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
SuggestionExtras.java | 18 import org.json.JSONException; 38 * Flatten these extras as a JSON object.
|
/external/chromium_org/chrome/browser/local_discovery/storage/ |
privet_filesystem_attribute_cache.h | 25 const base::DictionaryValue* json); 31 const base::DictionaryValue* json);
|
privet_filesystem_attribute_cache.cc | 30 const base::DictionaryValue* json) { 31 AddEntryInfoFromJSON(full_path, json); 34 if (!json->GetList(kPrivetListEntries, &entry_list)) 52 const base::DictionaryValue* json) { 58 json->GetString(kPrivetListKeyType, &type); 59 json->GetInteger(kPrivetListKeySize, &size);
|
/external/chromium_org/third_party/libaddressinput/chromium/tools/ |
require_fields.py | 6 import json namespace 41 data = json.load(urllib.urlopen(url))
|
/external/chromium_org/tools/json_comment_eater/ |
json_comment_eater_test.py | 12 in |test_name|.json and |test_name|_expected.json, and returns the string 19 for pattern in ('%s.json', '%s_expected.json')] 22 json, expected_json = self._Load('everything') 23 self.assertEqual(expected_json, Nom(json))
|
/external/chromium_org/chrome/common/extensions/docs/examples/api/nativeMessaging/host/ |
install_host.sh | 30 cp $DIR/$HOST_NAME.json $TARGET_DIR 35 sed -i -e "s/HOST_PATH/$ESCAPED_HOST_PATH/" $TARGET_DIR/$HOST_NAME.json 38 chmod o+r $TARGET_DIR/$HOST_NAME.json
|
/external/chromium_org/chrome/browser/resources/chromeos/chromevox/chromevox/background/mathmaps/ |
math_map.js | 7 * JSON files. The class (and entries) can then be used as via the 58 * Stringifies MathMap into JSON object. 62 return JSON.stringify(this); 67 * Path to dir containing ChromeVox JSON definitions for math speak. 76 * Subpath to dir containing ChromeVox JSON definitions for symbols. 85 * Subpath to dir containing ChromeVox JSON definitions for functions. 94 * Array of JSON filenames containing symbol definitions for math speak. 101 'greek-capital.json', 'greek-small.json', 'greek-scripts.json', [all...] |
/packages/apps/Email/tests/src/com/android/emailcommon/provider/ |
AccountTest.java | 22 import org.json.JSONException; 23 import org.json.JSONObject; 29 final JSONObject json = new JSONObject(); local 30 json.put(EmailContent.AccountColumns.DISPLAY_NAME, "David Hasselhoff"); 31 json.put(EmailContent.AccountColumns.EMAIL_ADDRESS, "dhoff@example.com"); 32 json.put(EmailContent.AccountColumns.SYNC_LOOKBACK, 42); 33 json.put(EmailContent.AccountColumns.SYNC_INTERVAL, 99); 34 json.put(Account.JSON_TAG_HOST_AUTH_RECV, getHostAuthJSON("receiver", "recpass").toJson()); 35 json.put(Account.JSON_TAG_HOST_AUTH_SEND, getHostAuthJSON("send", "sendpass").toJson()); 36 json.put(EmailContent.AccountColumns.FLAGS, 22) [all...] |
/external/chromium_org/gpu/config/ |
gpu_control_list_entry_unittest.cc | 5 #include "base/json/json_reader.h" 32 const std::string& json, bool supports_feature_type_all) { 34 root.reset(base::JSONReader::Read(json)); 48 static ScopedEntry GetEntryFromString(const std::string& json) { 49 return GetEntryFromString(json, false); 72 const std::string json = LONG_STRING_CONST( local 97 ScopedEntry entry(GetEntryFromString(json)); 116 const std::string json = LONG_STRING_CONST( local 125 ScopedEntry entry(GetEntryFromString(json)); 141 const std::string json = LONG_STRING_CONST local 170 const std::string json = LONG_STRING_CONST( local 202 const std::string json = LONG_STRING_CONST( local 235 const std::string json = LONG_STRING_CONST( local 267 const std::string json = LONG_STRING_CONST( local 293 const std::string json = LONG_STRING_CONST( local 321 const std::string json = LONG_STRING_CONST( local 335 const std::string json = LONG_STRING_CONST( local 349 const std::string json = LONG_STRING_CONST( local 367 const std::string json = LONG_STRING_CONST( local 381 const std::string json = LONG_STRING_CONST( local 412 const std::string json = LONG_STRING_CONST( local 443 const std::string json = LONG_STRING_CONST( local 474 const std::string json = LONG_STRING_CONST( local 501 const std::string json = LONG_STRING_CONST( local 528 const std::string json = LONG_STRING_CONST( local 546 const std::string json = LONG_STRING_CONST( local 564 const std::string json = LONG_STRING_CONST( local 583 const std::string json = LONG_STRING_CONST( local 598 const std::string json = LONG_STRING_CONST( local 621 const std::string json = LONG_STRING_CONST( local 644 const std::string json = LONG_STRING_CONST( local 682 const std::string json = LONG_STRING_CONST( local 707 const std::string json = LONG_STRING_CONST( local 736 const std::string json = LONG_STRING_CONST( local 753 const std::string json = LONG_STRING_CONST( local 767 const std::string json = LONG_STRING_CONST( local 782 const std::string json = LONG_STRING_CONST( local 804 const std::string json = LONG_STRING_CONST( local 847 const std::string json = LONG_STRING_CONST( local 882 const std::string json = LONG_STRING_CONST( local 909 const std::string json = LONG_STRING_CONST( local 1073 const std::string json = LONG_STRING_CONST( local 1095 const std::string json = LONG_STRING_CONST( local 1116 const std::string json = LONG_STRING_CONST( local 1138 const std::string json = LONG_STRING_CONST( local [all...] |