/external/chromium_org/base/json/ |
json_reader.cc | 13 COMPILE_ASSERT(JSONReader::JSON_PARSE_ERROR_COUNT < 1000, 16 const char* JSONReader::kInvalidEscape = 18 const char* JSONReader::kSyntaxError = 20 const char* JSONReader::kUnexpectedToken = 22 const char* JSONReader::kTrailingComma = 24 const char* JSONReader::kTooMuchNesting = 26 const char* JSONReader::kUnexpectedDataAfterRoot = 28 const char* JSONReader::kUnsupportedEncoding = 30 const char* JSONReader::kUnquotedDictionaryKey = 33 JSONReader::JSONReader( [all...] |
json_reader_unittest.cc | 23 root.reset(JSONReader().ReadToValue(" null ")); 28 root.reset(JSONReader().ReadToValue("nu")); 32 root.reset(JSONReader().ReadToValue("true ")); 37 root.reset(JSONReader().ReadToValue("/* comment */null")); 40 root.reset(JSONReader().ReadToValue("40 /* comment */")); 43 root.reset(JSONReader().ReadToValue("true // comment")); 46 root.reset(JSONReader().ReadToValue("/* comment */\"sample string\"")); 52 root.reset(JSONReader().ReadToValue("[1, /* comment, 2 ] */ \n 3]")); 61 root.reset(JSONReader().ReadToValue("[1, /*a*/2, 3]")); 65 root.reset(JSONReader().ReadToValue("/* comment **/42")) [all...] |
json_parser_unittest.cc | 207 root.reset(JSONReader::ReadAndReturnError("[42]", JSON_PARSE_RFC, 215 root.reset(JSONReader::ReadAndReturnError(big_json, JSON_PARSE_RFC, 218 EXPECT_EQ(JSONParser::FormatErrorMessage(5, 10, JSONReader::kSyntaxError), 220 EXPECT_EQ(JSONReader::JSON_SYNTAX_ERROR, error_code); 228 root.reset(JSONReader::ReadAndReturnError(big_json_crlf, JSON_PARSE_RFC, 231 EXPECT_EQ(JSONParser::FormatErrorMessage(5, 10, JSONReader::kSyntaxError), 233 EXPECT_EQ(JSONReader::JSON_SYNTAX_ERROR, error_code); 236 root.reset(JSONReader::ReadAndReturnError("{},{}", JSON_PARSE_RFC, 240 JSONReader::kUnexpectedDataAfterRoot), error_message); 241 EXPECT_EQ(JSONReader::JSON_UNEXPECTED_DATA_AFTER_ROOT, error_code) [all...] |
json_parser.cc | 196 error_code_(JSONReader::JSON_NO_ERROR), 221 error_code_ = JSONReader::JSON_NO_ERROR; 243 ReportError(JSONReader::JSON_UNEXPECTED_DATA_AFTER_ROOT, 1); 267 JSONReader::JsonParseError JSONParser::error_code() const { 273 JSONReader::ErrorCodeToString(error_code_)); 475 ReportError(JSONReader::JSON_UNEXPECTED_TOKEN, 1); 482 ReportError(JSONReader::JSON_UNEXPECTED_TOKEN, 1); 488 ReportError(JSONReader::JSON_TOO_MUCH_NESTING, 1); 498 ReportError(JSONReader::JSON_UNQUOTED_DICTIONARY_KEY, 1); 512 ReportError(JSONReader::JSON_SYNTAX_ERROR, 1) [all...] |
json_reader.h | 18 // UTF-8 string for the JSONReader::JsonToValue() function may start with a 63 class BASE_EXPORT JSONReader { 90 JSONReader(); 93 explicit JSONReader(int options); 95 ~JSONReader();
|
json_value_converter_unittest.cc | 109 scoped_ptr<Value> value(base::JSONReader::Read(normal_data)); 151 scoped_ptr<Value> value(base::JSONReader::Read(normal_data)); 193 scoped_ptr<Value> value(base::JSONReader::Read(normal_data)); 209 scoped_ptr<Value> value(base::JSONReader::Read(normal_data)); 232 scoped_ptr<Value> value(base::JSONReader::Read(normal_data)); 249 scoped_ptr<Value> value(base::JSONReader::Read(normal_data));
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/ |
MotionEventReader.java | 19 import android.util.JsonReader; 53 final JsonReader jsonReader = new JsonReader(new BufferedReader(new InputStreamReader( 55 jsonReader.beginArray(); 56 while (jsonReader.hasNext()) { 57 readLogStatement(jsonReader, replayData); 59 jsonReader.endArray(); 140 /* package for test */ void readLogStatement(final JsonReader jsonReader, [all...] |
/external/chromium/base/json/ |
json_reader_unittest.cc | 18 root.reset(JSONReader().JsonToValue(" null ", false, false)); 23 root.reset(JSONReader().JsonToValue("nu", false, false)); 27 root.reset(JSONReader().JsonToValue("true ", false, false)); 32 root.reset(JSONReader().JsonToValue("/* comment */null", false, false)); 35 root.reset(JSONReader().JsonToValue("40 /* comment */", false, false)); 38 root.reset(JSONReader().JsonToValue("true // comment", false, false)); 41 root.reset(JSONReader().JsonToValue("/* comment */\"sample string\"", 50 root.reset(JSONReader().JsonToValue("43", false, false)); 58 root.reset(JSONReader().JsonToValue("043", false, false)); 60 root.reset(JSONReader().JsonToValue("0x43", false, false)) [all...] |
json_reader.cc | 17 static const JSONReader::Token kInvalidToken(JSONReader::Token::INVALID_TOKEN, 26 bool ReadInt(JSONReader::Token& token, bool can_have_leading_zeros) { 50 bool ReadHexDigits(JSONReader::Token& token, int digits) { 67 const char* JSONReader::kBadRootElementType = 69 const char* JSONReader::kInvalidEscape = 71 const char* JSONReader::kSyntaxError = 73 const char* JSONReader::kTrailingComma = 75 const char* JSONReader::kTooMuchNesting = 77 const char* JSONReader::kUnexpectedDataAfterRoot [all...] |
/frameworks/base/core/tests/coretests/src/android/util/ |
JsonReaderTest.java | 29 JsonReader reader = new JsonReader(new StringReader("[true, true]")); 38 JsonReader reader = new JsonReader(new StringReader("[]")); 46 JsonReader reader = new JsonReader(new StringReader( 58 JsonReader reader = new JsonReader(new StringReader("{}")); 66 JsonReader reader = new JsonReader(new StringReader [all...] |
/cts/libs/json/src/com/android/json/stream/ |
JsonToken.java | 26 * and read using {@link JsonReader#beginObject}. 32 * and read using {@link JsonReader#endArray}. 38 * and read using {@link JsonReader#beginObject}. 44 * and read using {@link JsonReader#endObject}. 51 * JsonReader#nextName} 78 * JsonReader#peek()} to signal that the JSON-encoded value has no more
|
/frameworks/base/core/java/android/util/ |
JsonToken.java | 26 * and read using {@link JsonReader#beginObject}. 32 * and read using {@link JsonReader#endArray}. 38 * and read using {@link JsonReader#beginObject}. 44 * and read using {@link JsonReader#endObject}. 51 * JsonReader#nextName} 78 * JsonReader#peek()} to signal that the JSON-encoded value has no more
|
MalformedJsonException.java | 23 * ignored by calling {@link JsonReader#setLenient(boolean)}.
|
/external/chromium_org/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/ |
DOMUtils.java | 9 import android.util.JsonReader; 51 JsonReader jsonReader = new JsonReader(new StringReader(jsonText)); 54 jsonReader.beginArray(); 56 while (jsonReader.hasNext()) { 57 bounds[i++] = jsonReader.nextInt(); 59 jsonReader.endArray(); 62 jsonReader.close(); 151 JsonReader jsonReader = new JsonReader(new StringReader(jsonText)) [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/research/ |
MotionEventReaderTests.java | 21 import android.util.JsonReader; 39 private JsonReader jsonReaderForString(final String s) { 40 return new JsonReader(new StringReader(s)); 44 final JsonReader jsonReader = jsonReaderForString( 56 mMotionEventReader.readLogStatement(jsonReader, mReplayData); 68 final JsonReader jsonReader = jsonReaderForString( 109 mMotionEventReader.readLogStatement(jsonReader, mReplayData); 123 final JsonReader jsonReader = jsonReaderForString [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
ParseBenchmark.java | 131 android.util.JsonReader jsonReader 132 = new android.util.JsonReader(new StringReader(data)); 133 readToken(jsonReader); 134 jsonReader.close(); 137 public void readObject(android.util.JsonReader reader) throws IOException { 146 public void readArray(android.util.JsonReader reader) throws IOException { 154 private void readToken(android.util.JsonReader reader) throws IOException {
|
/external/chromium_org/components/policy/core/common/ |
config_dir_policy_loader.cc | 41 case base::JSONReader::JSON_INVALID_ESCAPE: 42 case base::JSONReader::JSON_SYNTAX_ERROR: 43 case base::JSONReader::JSON_UNEXPECTED_TOKEN: 44 case base::JSONReader::JSON_TRAILING_COMMA: 45 case base::JSONReader::JSON_TOO_MUCH_NESTING: 46 case base::JSONReader::JSON_UNEXPECTED_DATA_AFTER_ROOT: 47 case base::JSONReader::JSON_UNSUPPORTED_ENCODING: 48 case base::JSONReader::JSON_UNQUOTED_DICTIONARY_KEY: 50 case base::JSONReader::JSON_NO_ERROR:
|
/external/chromium_org/chrome/test/chromedriver/chrome/ |
dom_tracker_unittest.cc | 63 params.Set("nodes", base::JSONReader::Read(nodes)); 82 params.Set("node", base::JSONReader::Read("{\"nodeId\":1}")); 89 params.Set("node", base::JSONReader::Read(
|
frame_tracker_unittest.cc | 23 params.Set("context", base::JSONReader::Read(context)); 51 params.Set("context", base::JSONReader::Read(context));
|
/external/chromium_org/cloud_print/gcp20/prototype/ |
printer_unittest.cc | 18 base::JSONReader::ReadAndReturnError(printer.GetRawCdd(), 0,
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
MetadataParser.java | 20 import android.util.JsonReader; 52 private static WordListMetadata parseOneWordList(final JsonReader reader) 100 JsonReader reader = new JsonReader(input);
|
/cts/libs/vogar-expect/src/vogar/ |
ExpectationStore.java | 19 //import com.google.caliper.internal.gson.stream.JsonReader; 21 import com.android.json.stream.JsonReader; 123 JsonReader reader = null; 125 reader = new JsonReader(new FileReader(expectationsFile)); 142 private void readExpectation(JsonReader reader, ModeId mode) throws IOException { 200 private void readStrings(JsonReader reader, Set<String> output) throws IOException { 208 private Set<ModeId> readModes(JsonReader reader) throws IOException {
|
/external/chromium_org/net/base/ |
net_log_logger_unittest.cc | 40 base::JSONReader reader; 72 base::JSONReader reader; 107 base::JSONReader reader;
|
/external/chromium_org/chrome/browser/devtools/ |
devtools_protocol.cc | 68 scoped_ptr<base::Value> value(base::JSONReader::Read(json)); 86 scoped_ptr<base::Value> value(base::JSONReader::Read(json));
|
/external/chromium/chrome/common/web_resource/ |
web_resource_unpacker.cc | 29 value.reset(base::JSONReader::Read(resource_data_, false));
|