/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/json/tests/ |
__init__.py | 3 import json 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 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/libweave/src/commands/ |
command_instance_unittest.cc | 43 auto json = CreateDictionaryValue(R"({ local 54 auto instance = CommandInstance::FromJson(json.get(), Command::Origin::kCloud, 65 auto json = CreateDictionaryValue("{'name': 'base.reboot'}"); local 66 auto instance = CommandInstance::FromJson(json.get(), Command::Origin::kCloud, 73 auto json = CreateValue("'string'"); local 75 auto instance = CommandInstance::FromJson(json.get(), Command::Origin::kCloud, 82 auto json = CreateDictionaryValue("{'param': 'value'}"); local 84 auto instance = CommandInstance::FromJson(json.get(), Command::Origin::kCloud, 91 auto json = CreateDictionaryValue(R"({ local 96 auto instance = CommandInstance::FromJson(json.get(), Command::Origin::kCloud 105 auto json = CreateDictionaryValue(R"({ local 137 auto json = CreateDictionaryValue(R"({ local [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-trace/catapult/third_party/gsutil/third_party/boto/boto/sqs/ |
jsonmessage.py | 25 from boto.compat import json 30 Acts like a dictionary but encodes it's data as a Base64 encoded JSON payload. 36 value = json.loads(value) 42 value = json.dumps(value)
|
/external/libchrome/base/json/ |
json_writer.h | 34 // Return a slightly nicer formatted json string (pads with whitespace to 39 // Given a root node, generates a JSON string and puts it into |json|. 40 // TODO(tc): Should we generate json if it would be invalid json (e.g., 43 static bool Write(const Value& node, std::string* json); 49 std::string* json); 52 JSONWriter(int options, std::string* json); 54 // Called recursively to build the JSON string. When completed, 55 // |json_string_| will contain the JSON [all...] |
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/particles/values/ |
PrimitiveSpawnShapeValue.java | 4 import com.badlogic.gdx.utils.Json; 96 public void write (Json json) { 97 super.write(json); 98 json.writeValue("spawnWidthValue", spawnWidthValue); 99 json.writeValue("spawnHeightValue", spawnHeightValue); 100 json.writeValue("spawnDepthValue", spawnDepthValue); 101 json.writeValue("edges", edges); 105 public void read (Json json, JsonValue jsonData) [all...] |
ParticleValue.java | 3 import com.badlogic.gdx.utils.Json; 10 public class ParticleValue implements Json.Serializable { 32 public void write (Json json) { 33 json.writeValue("active", active); 37 public void read (Json json, JsonValue jsonData) { 38 active = json.readValue("active", Boolean.class, jsonData);
|
/external/libweave/third_party/chromium/base/json/ |
json_writer.h | 34 // Return a slightly nicer formatted json string (pads with whitespace to 39 // Given a root node, generates a JSON string and puts it into |json|. 40 // TODO(tc): Should we generate json if it would be invalid json (e.g., 43 static bool Write(const Value& node, std::string* json); 49 std::string* json); 52 JSONWriter(int options, std::string* json); 54 // Called recursively to build the JSON string. When completed, 55 // |json_string_| will contain the JSON [all...] |
/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...] |
/prebuilts/go/darwin-x86/src/encoding/json/ |
tagkey_test.go | 5 package json package 12 V string `json:"$%-/"` 16 V string `json:"0123456789"` 20 V string `json:"ABCDEFGHIJKLMO"` 24 V string `json:"PQRSTUVWXYZ_"` 28 V string `json:"abcdefghijklmno"` 32 V string `json:"pqrstuvwxyz"` 36 V string `json:"?????"` 40 V string `json:"text/html%"` // https://golang.org/issue/2718 44 V string `json:"!#$%&()*+-./:<=>?@[]^_{|}~"` // https://golang.org/issue/354 [all...] |
/prebuilts/go/darwin-x86/test/bench/go1/ |
json_test.go | 5 // This benchmark tests JSON encoding and decoding performance. 13 "encoding/json" 38 if err := json.Unmarshal(jsonbytes, &v); err != nil { 45 Tree *JSONNode `json:"tree"` 46 Username string `json:"username"` 50 Name string `json:"name"` 51 Kids []*JSONNode `json:"kids"` 52 CLWeight float64 `json:"cl_weight"` 53 Touches int `json:"touches"` 54 MinT int64 `json:"min_t" [all...] |
/prebuilts/go/linux-x86/src/encoding/json/ |
tagkey_test.go | 5 package json package 12 V string `json:"$%-/"` 16 V string `json:"0123456789"` 20 V string `json:"ABCDEFGHIJKLMO"` 24 V string `json:"PQRSTUVWXYZ_"` 28 V string `json:"abcdefghijklmno"` 32 V string `json:"pqrstuvwxyz"` 36 V string `json:"?????"` 40 V string `json:"text/html%"` // https://golang.org/issue/2718 44 V string `json:"!#$%&()*+-./:<=>?@[]^_{|}~"` // https://golang.org/issue/354 [all...] |
/prebuilts/go/linux-x86/test/bench/go1/ |
json_test.go | 5 // This benchmark tests JSON encoding and decoding performance. 13 "encoding/json" 38 if err := json.Unmarshal(jsonbytes, &v); err != nil { 45 Tree *JSONNode `json:"tree"` 46 Username string `json:"username"` 50 Name string `json:"name"` 51 Kids []*JSONNode `json:"kids"` 52 CLWeight float64 `json:"cl_weight"` 53 Touches int `json:"touches"` 54 MinT int64 `json:"min_t" [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-trace/catapult/dashboard/dashboard/ |
post_data_handler_test.py | 5 import json 32 self.testapp.post('/whitelist_test', {'data': json.dumps([_SAMPLE_POINT])}) 37 '/whitelist_test', {'data': json.dumps([_SAMPLE_POINT])}, status=403, 43 '/whitelist_test', {'data': json.dumps([_SAMPLE_POINT])},
|
/external/chromium-trace/catapult/systrace/profile_chrome/ |
trace_packager_unittest.py | 5 import json 22 f1.write(json.dumps(t1)) 23 f2.write(json.dumps(t2)) 33 output = json.load(output)
|
/external/chromium-trace/catapult/third_party/mapreduce/mapreduce/ |
key_ranges.py | 45 def from_json(cls, json): 46 """Deserialize from json. 49 json: a dict of json compatible fields. 55 ValueError: if the json is invalid. 57 if json["name"] in _KEYRANGES_CLASSES: 58 return _KEYRANGES_CLASSES[json["name"]].from_json(json) 59 raise ValueError("Invalid json %s", json) [all...] |
/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...] |
/external/v8/test/mjsunit/regress/ |
regress-crbug-423687.js | 7 var json = '{"a":{"c":2.1,"d":0},"b":{"c":7,"1024":8}}'; variable 8 var data = JSON.parse(json);
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
SuggestionExtras.java | 18 import org.json.JSONException; 38 * Flatten these extras as a JSON object.
|
/external/autotest/frontend/client/src/autotest/tko/ |
TestSet.java | 3 import com.google.gwt.json.client.JSONObject; 4 import com.google.gwt.json.client.JSONString;
|
/external/autotest/site_utils/presubmit_hooks/ |
check_json_files.py | 7 Check if a json file is valid. 10 that edits a json file. 13 import json 18 """Exception to raise when a json file can't be parsed.""" 22 """Check if all json files that are a part of this commit are valid.""" 29 if f.lower().endswith('.json'): 32 json.load(json_file) 37 'json file, or you will have to upload the CL using ' 39 raise InvalidJsonFile('Invalid json file: %s' % f)
|
/external/chromium-trace/catapult/experimental/bisect_lib/ |
fetch_revision_info.py | 14 import json 20 _URL_TEMPLATE = 'https://chromium.googlesource.com/%s/+/%s?format=json' 28 response_dict = json.loads(response_json) 48 print json.dumps(revision_info)
|