/cts/tests/tests/util/src/android/util/cts/ |
D | JsonReaderTest.java | 45 JsonReader reader = new JsonReader(new StringReader("[true, true]")); in testReadArray() local 46 reader.beginArray(); in testReadArray() 47 assertEquals(true, reader.nextBoolean()); in testReadArray() 48 assertEquals(true, reader.nextBoolean()); in testReadArray() 49 reader.endArray(); in testReadArray() 50 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); in testReadArray() 55 JsonReader reader = new JsonReader(new StringReader("[]")); in testReadEmptyArray() local 56 reader.beginArray(); in testReadEmptyArray() 57 assertFalse(reader.hasNext()); in testReadEmptyArray() 58 reader.endArray(); in testReadEmptyArray() [all …]
|
/cts/tests/tests/location/src/android/location/cts/asn1/base/ |
D | PerAlignedUtils.java | 86 public static int decodeSmallConstrainedWholeNumber(BitStreamReader reader, in decodeSmallConstrainedWholeNumber() argument 92 decodeNormalizedSmallConstrainedWholeNumber(reader, range); in decodeSmallConstrainedWholeNumber() 105 BitStreamReader reader, int range) { in decodeNormalizedSmallConstrainedWholeNumber() argument 116 return reader.readLowBits(leastBitsToEncode((byte) range)); in decodeNormalizedSmallConstrainedWholeNumber() 119 reader.spoolToByteBoundary(); in decodeNormalizedSmallConstrainedWholeNumber() 122 return (reader.readByte() & 0xFF); in decodeNormalizedSmallConstrainedWholeNumber() 124 return ((reader.readByte() & 0xFF) << 8) in decodeNormalizedSmallConstrainedWholeNumber() 125 + (reader.readByte() & 0xFF); in decodeNormalizedSmallConstrainedWholeNumber() 149 public static int decodeNormallySmallWholeNumber(BitStreamReader reader) { in decodeNormallySmallWholeNumber() argument 150 if (reader.readBit()) { in decodeNormallySmallWholeNumber() [all …]
|
D | PerUnalignedUtils.java | 63 BitStreamReader reader, int minimumValue, int maximumValue) { in decodeConstrainedWholeNumber() argument 67 decodeNormalizedConstrainedWholeNumber(reader, range); in decodeConstrainedWholeNumber() 80 BitStreamReader reader, long range) { in decodeNormalizedConstrainedWholeNumber() argument 85 result |= reader.readBit() ? 1 : 0; in decodeNormalizedConstrainedWholeNumber() 110 public static int decodeNormallySmallWholeNumber(BitStreamReader reader) { in decodeNormallySmallWholeNumber() argument 111 if (reader.readBit()) { in decodeNormallySmallWholeNumber() 115 return reader.readLowBits(6) & 0xFF; in decodeNormallySmallWholeNumber() 145 BitStreamReader reader, int minimumLength, int maximumLength) { in decodeConstrainedLengthOfBytes() argument 147 return decodeSemiConstrainedLengthOfBytes(reader); in decodeConstrainedLengthOfBytes() 150 reader, minimumLength, maximumLength); in decodeConstrainedLengthOfBytes() [all …]
|
D | Asn1BMPString.java | 145 private void decodePerImpl(BitStreamReader reader, boolean aligned) { in decodePerImpl() argument 154 reader.spoolToByteBoundary(); in decodePerImpl() 156 value = decodeCharactersPer(reader, maximumSize); in decodePerImpl() 168 reader, minimumSize, maximumSize); in decodePerImpl() 171 reader, minimumSize, maximumSize); in decodePerImpl() 175 reader.spoolToByteBoundary(); in decodePerImpl() 178 value = decodeCharactersPer(reader, count); in decodePerImpl() 181 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument 182 decodePerImpl(reader, false); in decodePerUnaligned() 185 @Override public void decodePerAligned(BitStreamReader reader) { in decodePerAligned() argument [all …]
|
D | Asn1Enumerated.java | 133 private void decodePerImpl(BitStreamReader reader, boolean aligned) { in decodePerImpl() argument 134 if (isExtensible() && reader.readBit()) { in decodePerImpl() 136 value = lookupExtensionValue(PerAlignedUtils.decodeNormallySmallWholeNumber(reader)); in decodePerImpl() 138 value = lookupExtensionValue(PerUnalignedUtils.decodeNormallySmallWholeNumber(reader)); in decodePerImpl() 144 reader, 0, getValueCount() - 1)); in decodePerImpl() 148 reader, 0, getValueCount() - 1)); in decodePerImpl() 153 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument 154 decodePerImpl(reader, false); in decodePerUnaligned() 157 @Override public void decodePerAligned(BitStreamReader reader) { in decodePerAligned() argument 158 decodePerImpl(reader, true); in decodePerAligned()
|
D | Asn1Integer.java | 160 BitStreamReader reader, BigInteger range) { in decodeNormalizedIntegerWithRangeAligned() argument 163 reader, range.intValue()); in decodeNormalizedIntegerWithRangeAligned() 168 reader, 1, in decodeNormalizedIntegerWithRangeAligned() 174 BitStreamReader reader, BigInteger range) { in decodeNormalizedIntegerWithRangeUnaligned() argument 177 reader, range.longValue()); in decodeNormalizedIntegerWithRangeUnaligned() 181 private void decodePerImpl(BitStreamReader reader, boolean aligned) { in decodePerImpl() argument 186 ? decodeNormalizedIntegerWithRangeAligned(reader, range) in decodePerImpl() 187 : decodeNormalizedIntegerWithRangeUnaligned(reader, range); in decodePerImpl() 192 ? PerAlignedUtils.decodeSemiConstrainedLengthOfBytes(reader) in decodePerImpl() 193 : PerUnalignedUtils.decodeSemiConstrainedLengthOfBytes(reader); in decodePerImpl() [all …]
|
D | Asn1OctetString.java | 122 private void decodePerImpl(BitStreamReader reader, boolean aligned) { in decodePerImpl() argument 125 value = PerAlignedUtils.decodeSemiConstrainedLengthOfBytes(reader); in decodePerImpl() 127 value = PerUnalignedUtils.decodeSemiConstrainedLengthOfBytes(reader); in decodePerImpl() 137 reader.spoolToByteBoundary(); in decodePerImpl() 140 value[i] = reader.readByte(); in decodePerImpl() 147 reader, minimumSize, maximumSize); in decodePerImpl() 150 reader, minimumSize, maximumSize); in decodePerImpl() 154 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument 155 decodePerImpl(reader, false); in decodePerUnaligned() 158 @Override public void decodePerAligned(BitStreamReader reader) { in decodePerAligned() argument [all …]
|
D | Asn1GeneralString.java | 130 private void decodePerImpl(BitStreamReader reader, boolean aligned) { in decodePerImpl() argument 139 reader.spoolToByteBoundary(); in decodePerImpl() 143 value[i] = reader.readByte(); in decodePerImpl() 156 reader, minimumSize, maximumSize); in decodePerImpl() 159 reader, minimumSize, maximumSize); in decodePerImpl() 163 reader.spoolToByteBoundary(); in decodePerImpl() 168 value[i] = reader.readByte(); in decodePerImpl() 172 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument 173 decodePerImpl(reader, false); in decodePerUnaligned() 176 @Override public void decodePerAligned(BitStreamReader reader) { in decodePerAligned() argument [all …]
|
D | Asn1BitString.java | 94 BitStreamReader reader = new BitStreamReader(valueBytes); in decodeBerValue() local 96 value.set(i, reader.readBit()); in decodeBerValue() 157 private void decodePerImpl(BitStreamReader reader, boolean aligned) { in decodePerImpl() argument 169 reader.spoolToByteBoundary(); in decodePerImpl() 172 value.set(i, reader.readBit()); in decodePerImpl() 186 reader, minimumSize, maximumSize); in decodePerImpl() 187 reader.spoolToByteBoundary(); in decodePerImpl() 190 reader, minimumSize, maximumSize); in decodePerImpl() 193 value.set(i, reader.readBit()); in decodePerImpl() 197 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument [all …]
|
D | Asn1Choice.java | 253 private void decodePerImpl(BitStreamReader reader, boolean aligned) { in decodePerImpl() argument 257 extensionValued = reader.readBit(); in decodePerImpl() 261 selectionOrdinal = PerAlignedUtils.decodeNormallySmallWholeNumber(reader); in decodePerImpl() 263 selectionOrdinal = PerUnalignedUtils.decodeNormallySmallWholeNumber(reader); in decodePerImpl() 268 reader, 0, getOptionCount() - 1); in decodePerImpl() 271 reader, 0, getOptionCount() - 1); in decodePerImpl() 277 PerAlignedUtils.decodeOpenTypeField(reader, element); in decodePerImpl() 279 PerUnalignedUtils.decodeOpenTypeField(reader, element); in decodePerImpl() 284 element.decodePerAligned(reader); in decodePerImpl() 286 element.decodePerUnaligned(reader); in decodePerImpl() [all …]
|
D | Asn1Sequence.java | 267 private void decodePerImpl(BitStreamReader reader, boolean aligned) { in decodePerImpl() argument 270 hasExtensionValuesToDecode = reader.readBit(); in decodePerImpl() 280 if (reader.readBit()) { in decodePerImpl() 291 component.getComponentValue().decodePerAligned(reader); in decodePerImpl() 293 component.getComponentValue().decodePerUnaligned(reader); in decodePerImpl() 302 if (reader.readBit()) { in decodePerImpl() 304 reader.spoolToByteBoundary(); in decodePerImpl() 306 PerAlignedUtils.decodeSemiConstrainedLength(reader); in decodePerImpl() 309 PerUnalignedUtils.decodeSemiConstrainedLength(reader); in decodePerImpl() 312 extensionBitFieldSize = 1 + reader.readLowBits(6); in decodePerImpl() [all …]
|
D | Asn1SequenceOf.java | 148 private void decodePerImpl(BitStreamReader reader, boolean aligned) { in decodePerImpl() argument 152 size = PerAlignedUtils.decodeSemiConstrainedLength(reader); in decodePerImpl() 154 size = PerUnalignedUtils.decodeSemiConstrainedLength(reader); in decodePerImpl() 159 reader, minimumSize, maximumSize); in decodePerImpl() 162 reader, minimumSize, maximumSize); in decodePerImpl() 168 value.decodePerAligned(reader); in decodePerImpl() 170 value.decodePerUnaligned(reader); in decodePerImpl() 175 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument 176 decodePerImpl(reader, false); in decodePerUnaligned() 179 @Override public void decodePerAligned(BitStreamReader reader) { in decodePerAligned() argument [all …]
|
D | Asn1Utf8String.java | 104 private void decodePerImpl(BitStreamReader reader, boolean aligned) { in decodePerImpl() argument 106 setValueBytes(PerAlignedUtils.decodeSemiConstrainedLengthOfBytes(reader)); in decodePerImpl() 108 setValueBytes(PerUnalignedUtils.decodeSemiConstrainedLengthOfBytes(reader)); in decodePerImpl() 112 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument 113 decodePerImpl(reader, false); in decodePerUnaligned() 116 @Override public void decodePerAligned(BitStreamReader reader) { in decodePerAligned() argument 117 decodePerImpl(reader, true); in decodePerAligned()
|
/cts/libs/vogar-expect/src/vogar/ |
D | ExpectationStore.java | 160 Reader reader = new InputStreamReader(is)) { in parse() 161 parse(reader, url.toString(), mode); in parse() 174 private void parse(Reader reader, String source, ModeId mode) throws IOException { in parse() argument 176 try (JsonReader jsonReader = new JsonReader(reader)) { in parse() 189 private void readExpectation(JsonReader reader, ModeId mode) throws IOException { in readExpectation() argument 199 reader.beginObject(); in readExpectation() 200 while (reader.hasNext()) { in readExpectation() 201 String name = reader.nextName(); in readExpectation() 203 result = Result.valueOf(reader.nextString()); in readExpectation() 205 names.add(reader.nextString()); in readExpectation() [all …]
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | NoCaptureVideoPermissionTest.java | 48 ImageReader reader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBX_8888, 1); in testCreatePublicVirtualDisplay() local 51 reader.getSurface(), DisplayManager.VIRTUAL_DISPLAY_FLAG_PUBLIC); in testCreatePublicVirtualDisplay() 57 reader.close(); in testCreatePublicVirtualDisplay() 71 ImageReader reader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBX_8888, 1); in testCreateSecureVirtualDisplay() local 74 reader.getSurface(), DisplayManager.VIRTUAL_DISPLAY_FLAG_SECURE); in testCreateSecureVirtualDisplay() 80 reader.close(); in testCreateSecureVirtualDisplay() 92 ImageReader reader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBX_8888, 1); in testCreatePrivateVirtualDisplay() local 96 reader.getSurface(), 0); in testCreatePrivateVirtualDisplay() 102 reader.close(); in testCreatePrivateVirtualDisplay()
|
/cts/tests/tests/secure_element/omapi/src/android/omapi/cts/ |
D | OmapiTest.java | 203 for (Reader reader : readers) { in testGetReaders() 204 assertTrue(reader.isSecureElementPresent()); in testGetReaders() 205 String name = reader.getName(); in testGetReaders() 210 assertNotNull("getseService returned null", reader.getSEService()); in testGetReaders() 231 for (Reader reader : uiccReaders) { in testATR() 234 session = reader.openSession(); in testATR() 256 for (Reader reader : readers) { in testOpenBasicChannelNullAid() 257 Session session = reader.openSession(); in testOpenBasicChannelNullAid() 260 if (reader.getName().startsWith(UICC_READER_PREFIX)) { in testOpenBasicChannelNullAid() 282 for (Reader reader : readers) { in testOpenBasicChannelNonNullAid() [all …]
|
/cts/tests/tests/location/src/android/location/cts/asn1/supl2/rrlp_components/ |
D | ReferenceNavModel.java | 1113 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument 1114 super.decodePerUnaligned(reader); in decodePerUnaligned() 1117 @Override public void decodePerAligned(BitStreamReader reader) { in decodePerAligned() argument 1118 super.decodePerAligned(reader); in decodePerAligned() 1196 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument 1197 super.decodePerUnaligned(reader); in decodePerUnaligned() 1200 @Override public void decodePerAligned(BitStreamReader reader) { in decodePerAligned() argument 1201 super.decodePerAligned(reader); in decodePerAligned() 1279 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument 1280 super.decodePerUnaligned(reader); in decodePerUnaligned() [all …]
|
D | GPSEphemerisDeltaScales.java | 1113 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument 1114 super.decodePerUnaligned(reader); in decodePerUnaligned() 1117 @Override public void decodePerAligned(BitStreamReader reader) { in decodePerAligned() argument 1118 super.decodePerAligned(reader); in decodePerAligned() 1196 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument 1197 super.decodePerUnaligned(reader); in decodePerUnaligned() 1200 @Override public void decodePerAligned(BitStreamReader reader) { in decodePerAligned() argument 1201 super.decodePerAligned(reader); in decodePerAligned() 1279 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument 1280 super.decodePerUnaligned(reader); in decodePerUnaligned() [all …]
|
D | NavModel_KeplerianSet.java | 1113 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument 1114 super.decodePerUnaligned(reader); in decodePerUnaligned() 1117 @Override public void decodePerAligned(BitStreamReader reader) { in decodePerAligned() argument 1118 super.decodePerAligned(reader); in decodePerAligned() 1196 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument 1197 super.decodePerUnaligned(reader); in decodePerUnaligned() 1200 @Override public void decodePerAligned(BitStreamReader reader) { in decodePerAligned() argument 1201 super.decodePerAligned(reader); in decodePerAligned() 1279 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument 1280 super.decodePerUnaligned(reader); in decodePerUnaligned() [all …]
|
D | GPSEphemerisDeltaBitSizes.java | 1113 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument 1114 super.decodePerUnaligned(reader); in decodePerUnaligned() 1117 @Override public void decodePerAligned(BitStreamReader reader) { in decodePerAligned() argument 1118 super.decodePerAligned(reader); in decodePerAligned() 1196 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument 1197 super.decodePerUnaligned(reader); in decodePerUnaligned() 1200 @Override public void decodePerAligned(BitStreamReader reader) { in decodePerAligned() argument 1201 super.decodePerAligned(reader); in decodePerAligned() 1279 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument 1280 super.decodePerUnaligned(reader); in decodePerUnaligned() [all …]
|
D | UncompressedEphemeris.java | 1867 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument 1868 super.decodePerUnaligned(reader); in decodePerUnaligned() 1871 @Override public void decodePerAligned(BitStreamReader reader) { in decodePerAligned() argument 1872 super.decodePerAligned(reader); in decodePerAligned() 1950 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument 1951 super.decodePerUnaligned(reader); in decodePerUnaligned() 1954 @Override public void decodePerAligned(BitStreamReader reader) { in decodePerAligned() argument 1955 super.decodePerAligned(reader); in decodePerAligned() 2033 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument 2034 super.decodePerUnaligned(reader); in decodePerUnaligned() [all …]
|
D | NavModel_CNAVKeplerianSet.java | 1287 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument 1288 super.decodePerUnaligned(reader); in decodePerUnaligned() 1291 @Override public void decodePerAligned(BitStreamReader reader) { in decodePerAligned() argument 1292 super.decodePerAligned(reader); in decodePerAligned() 1370 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument 1371 super.decodePerUnaligned(reader); in decodePerUnaligned() 1374 @Override public void decodePerAligned(BitStreamReader reader) { in decodePerAligned() argument 1375 super.decodePerAligned(reader); in decodePerAligned() 1453 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument 1454 super.decodePerUnaligned(reader); in decodePerUnaligned() [all …]
|
D | GANSSEphemerisDeltaBitSizes.java | 1171 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument 1172 super.decodePerUnaligned(reader); in decodePerUnaligned() 1175 @Override public void decodePerAligned(BitStreamReader reader) { in decodePerAligned() argument 1176 super.decodePerAligned(reader); in decodePerAligned() 1254 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument 1255 super.decodePerUnaligned(reader); in decodePerUnaligned() 1258 @Override public void decodePerAligned(BitStreamReader reader) { in decodePerAligned() argument 1259 super.decodePerAligned(reader); in decodePerAligned() 1337 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument 1338 super.decodePerUnaligned(reader); in decodePerUnaligned() [all …]
|
/cts/tests/tests/location/src/android/location/cts/asn1/supl2/ver2_ulp_components/ |
D | SupportedWLANApsChannel11a.java | 1111 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument 1112 super.decodePerUnaligned(reader); in decodePerUnaligned() 1115 @Override public void decodePerAligned(BitStreamReader reader) { in decodePerAligned() argument 1116 super.decodePerAligned(reader); in decodePerAligned() 1192 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument 1193 super.decodePerUnaligned(reader); in decodePerUnaligned() 1196 @Override public void decodePerAligned(BitStreamReader reader) { in decodePerAligned() argument 1197 super.decodePerAligned(reader); in decodePerAligned() 1273 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument 1274 super.decodePerUnaligned(reader); in decodePerUnaligned() [all …]
|
D | SupportedWLANApsChannel11bg.java | 995 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument 996 super.decodePerUnaligned(reader); in decodePerUnaligned() 999 @Override public void decodePerAligned(BitStreamReader reader) { in decodePerAligned() argument 1000 super.decodePerAligned(reader); in decodePerAligned() 1076 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument 1077 super.decodePerUnaligned(reader); in decodePerUnaligned() 1080 @Override public void decodePerAligned(BitStreamReader reader) { in decodePerAligned() argument 1081 super.decodePerAligned(reader); in decodePerAligned() 1157 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument 1158 super.decodePerUnaligned(reader); in decodePerUnaligned() [all …]
|