Home
last modified time | relevance | path

Searched refs:JsonToken (Results 1 – 6 of 6) sorted by relevance

/cts/libs/json/src/com/android/json/stream/
DJsonReader.java200 private JsonToken token;
256 expect(JsonToken.BEGIN_ARRAY); in beginArray()
264 expect(JsonToken.END_ARRAY); in endArray()
272 expect(JsonToken.BEGIN_OBJECT); in beginObject()
280 expect(JsonToken.END_OBJECT); in endObject()
286 private void expect(JsonToken expected) throws IOException { in expect()
299 return token != JsonToken.END_OBJECT && token != JsonToken.END_ARRAY; in hasNext()
305 public JsonToken peek() throws IOException { in peek()
313 JsonToken firstToken = nextValue(); in peek()
314 if (token != JsonToken.BEGIN_ARRAY && token != JsonToken.BEGIN_OBJECT) { in peek()
[all …]
DJsonToken.java22 public enum JsonToken { enum
/cts/tests/tests/util/src/android/util/cts/
DJsonReaderTest.java25 import android.util.JsonToken;
51 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); in testReadArray()
60 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); in testReadEmptyArray()
73 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); in testReadObject()
82 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); in testReadEmptyObject()
95 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); in testSkipObject()
119 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); in testSkipAfterEndOfDocument()
142 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); in testHelloWorld()
209 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); in testCharacterUnescaping()
255 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); in testDoubles()
[all …]
/cts/tests/sensor/src/android/hardware/cts/accessories/
DHidCommand.kt9 import android.util.JsonToken
68 while (reader.peek() !== JsonToken.END_DOCUMENT) { in registerDevice()
/cts/libs/input/src/com/android/cts/input/
DVirtualInputDevice.java29 import android.util.JsonToken;
101 while (mReader.peek() != JsonToken.END_DOCUMENT) { in VirtualInputDevice()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt49983 method public android.util.JsonToken peek() throws java.io.IOException;
49988 public enum JsonToken {
49989 enum_constant public static final android.util.JsonToken BEGIN_ARRAY;
49990 enum_constant public static final android.util.JsonToken BEGIN_OBJECT;
49991 enum_constant public static final android.util.JsonToken BOOLEAN;
49992 enum_constant public static final android.util.JsonToken END_ARRAY;
49993 enum_constant public static final android.util.JsonToken END_DOCUMENT;
49994 enum_constant public static final android.util.JsonToken END_OBJECT;
49995 enum_constant public static final android.util.JsonToken NAME;
49996 enum_constant public static final android.util.JsonToken NULL;
[all …]