HomeSort by relevance Sort by last modified time
    Searched refs:json (Results 51 - 75 of 1255) sorted by null

1 23 4 5 6 7 8 91011>>

  /external/chromium_org/third_party/libaddressinput/src/java/src/com/android/i18n/addressinput/
AddressVerificationData.java 48 String json = mPropertiesMap.get(key); local
49 if (json != null && isValidKey(key)) {
50 return createNodeData(json);
78 * Returns the contents of the JSON-format string as a map.
80 AddressVerificationNodeData createNodeData(String json) {
82 json = json.substring(1, json.length() - 1);
90 Matcher sm = SEPARATOR_PATTERN.matcher(json);
92 while (pos < json.length())
    [all...]
  /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
55 // the JSON object, which speeds up certain operations on children. However,
95 // Reads and parses |json|, returning a Value. The caller owns the returned
96 // instance. If |json| is not a properly formed JSON string, returns NULL.
97 static Value* Read(const StringPiece& json);
99 // Reads and parses |json|, returning a Value owned by the caller. The
102 static Value* Read(const StringPiece& json, int options);
104 // 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 34 local json="${input%cpp}graph.json"
35 if [ -f "$json" ]; then
36 output="$(python ../process-graph.py -c ${json} 2>&1)"
  /external/chromium_org/tools/telemetry/telemetry/timeline/
tracing_timeline_data.py 5 import json namespace
18 json.dump(self._event_data, f, indent=4)
20 json.dump({'traceEvents' : self._event_data}, f, indent=4)
inspector_timeline_data.py 5 import json namespace
18 json.dump(self._event_data, f, indent=4)
  /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...]
  /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/third_party/WebKit/Source/platform/
TracedValueTest.cpp 22 String json = value->asTraceFormat(); local
23 EXPECT_EQ("{\"int\":2014,\"double\":0,\"bool\":true,\"string\":\"string\"}", json);
47 String json = value->asTraceFormat(); local
48 EXPECT_EQ("{\"i0\":2014,\"dict1\":{\"i1\":2014,\"dict2\":{\"b2\":false},\"s1\":\"foo\"},\"d0\":0,\"b0\":true,\"a1\":[1,true,{\"i2\":3}],\"s0\":\"foo\"}", json);
  /external/chromium_org/third_party/libaddressinput/chromium/
fallback_data_store_unittest.cc 12 #include "third_party/libaddressinput/src/cpp/src/util/json.h"
17 using i18n::addressinput::Json;
30 // Should be valid JSON.
31 Json json; local
32 ASSERT_TRUE(json.ParseObject(data));
36 EXPECT_FALSE(json.GetStringValueForKey("data/US", &value));
39 const std::vector<const Json*>& sub_dicts = json.GetSubDictionaries();
41 for (std::vector<const Json*>::const_iterator it = sub_dicts.begin()
    [all...]
  /external/chromium_org/tools/profile_chrome/
trace_packager_unittest.py 5 import json namespace
22 f1.write(json.dumps(t1))
23 f2.write(json.dumps(t2))
33 output = json.load(output)
  /external/chromium_org/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);
  /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/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/common/extensions/docs/server2/
features_bundle_test.py 6 import json namespace
16 '_api_features.json': json.dumps({
143 '_manifest_features.json': json.dumps({
182 '_permission_features.json': json.dumps({
221 'json': {
222 'manifest.json': json.dumps(
    [all...]
  /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...]

Completed in 337 milliseconds

1 23 4 5 6 7 8 91011>>