/cts/tests/tests/util/src/android/util/cts/ |
D | JsonReaderTest.java | 46 JsonReader reader = new JsonReader(new StringReader("[true, true]")); in testReadArray() local 47 reader.beginArray(); in testReadArray() 48 assertEquals(true, reader.nextBoolean()); in testReadArray() 49 assertEquals(true, reader.nextBoolean()); in testReadArray() 50 reader.endArray(); in testReadArray() 51 assertEquals(JsonToken.END_DOCUMENT, reader.peek()); in testReadArray() 56 JsonReader reader = new JsonReader(new StringReader("[]")); in testReadEmptyArray() local 57 reader.beginArray(); in testReadEmptyArray() 58 assertFalse(reader.hasNext()); in testReadEmptyArray() 59 reader.endArray(); in testReadEmptyArray() [all …]
|
/cts/tests/location/location_gnss/src/android/location/cts/gnss/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 | 146 private void decodePerImpl(BitStreamReader reader, boolean aligned) { in decodePerImpl() argument 155 reader.spoolToByteBoundary(); in decodePerImpl() 157 value = decodeCharactersPer(reader, maximumSize); in decodePerImpl() 169 reader, minimumSize, maximumSize); in decodePerImpl() 172 reader, minimumSize, maximumSize); in decodePerImpl() 176 reader.spoolToByteBoundary(); in decodePerImpl() 179 value = decodeCharactersPer(reader, count); in decodePerImpl() 182 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument 183 decodePerImpl(reader, false); in decodePerUnaligned() 186 @Override public void decodePerAligned(BitStreamReader reader) { in decodePerAligned() argument [all …]
|
D | Asn1Integer.java | 161 BitStreamReader reader, BigInteger range) { in decodeNormalizedIntegerWithRangeAligned() argument 164 reader, range.intValue()); in decodeNormalizedIntegerWithRangeAligned() 169 reader, 1, in decodeNormalizedIntegerWithRangeAligned() 175 BitStreamReader reader, BigInteger range) { in decodeNormalizedIntegerWithRangeUnaligned() argument 178 reader, range.longValue()); in decodeNormalizedIntegerWithRangeUnaligned() 182 private void decodePerImpl(BitStreamReader reader, boolean aligned) { in decodePerImpl() argument 187 ? decodeNormalizedIntegerWithRangeAligned(reader, range) in decodePerImpl() 188 : decodeNormalizedIntegerWithRangeUnaligned(reader, range); in decodePerImpl() 193 ? PerAlignedUtils.decodeSemiConstrainedLengthOfBytes(reader) in decodePerImpl() 194 : PerUnalignedUtils.decodeSemiConstrainedLengthOfBytes(reader); in decodePerImpl() [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 | Asn1OctetString.java | 123 private void decodePerImpl(BitStreamReader reader, boolean aligned) { in decodePerImpl() argument 126 value = PerAlignedUtils.decodeSemiConstrainedLengthOfBytes(reader); in decodePerImpl() 128 value = PerUnalignedUtils.decodeSemiConstrainedLengthOfBytes(reader); in decodePerImpl() 138 reader.spoolToByteBoundary(); in decodePerImpl() 141 value[i] = reader.readByte(); in decodePerImpl() 148 reader, minimumSize, maximumSize); in decodePerImpl() 151 reader, minimumSize, maximumSize); in decodePerImpl() 155 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument 156 decodePerImpl(reader, false); in decodePerUnaligned() 159 @Override public void decodePerAligned(BitStreamReader reader) { in decodePerAligned() argument [all …]
|
D | Asn1GeneralString.java | 131 private void decodePerImpl(BitStreamReader reader, boolean aligned) { in decodePerImpl() argument 140 reader.spoolToByteBoundary(); in decodePerImpl() 144 value[i] = reader.readByte(); in decodePerImpl() 157 reader, minimumSize, maximumSize); in decodePerImpl() 160 reader, minimumSize, maximumSize); in decodePerImpl() 164 reader.spoolToByteBoundary(); in decodePerImpl() 169 value[i] = reader.readByte(); in decodePerImpl() 173 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument 174 decodePerImpl(reader, false); in decodePerUnaligned() 177 @Override public void decodePerAligned(BitStreamReader reader) { in decodePerAligned() argument [all …]
|
D | Asn1BitString.java | 95 BitStreamReader reader = new BitStreamReader(valueBytes); in decodeBerValue() local 97 value.set(i, reader.readBit()); in decodeBerValue() 158 private void decodePerImpl(BitStreamReader reader, boolean aligned) { in decodePerImpl() argument 170 reader.spoolToByteBoundary(); in decodePerImpl() 173 value.set(i, reader.readBit()); in decodePerImpl() 187 reader, minimumSize, maximumSize); in decodePerImpl() 188 reader.spoolToByteBoundary(); in decodePerImpl() 191 reader, minimumSize, maximumSize); in decodePerImpl() 194 value.set(i, reader.readBit()); in decodePerImpl() 198 @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 | 105 private void decodePerImpl(BitStreamReader reader, boolean aligned) { in decodePerImpl() argument 107 setValueBytes(PerAlignedUtils.decodeSemiConstrainedLengthOfBytes(reader)); in decodePerImpl() 109 setValueBytes(PerUnalignedUtils.decodeSemiConstrainedLengthOfBytes(reader)); in decodePerImpl() 113 @Override public void decodePerUnaligned(BitStreamReader reader) { in decodePerUnaligned() argument 114 decodePerImpl(reader, false); in decodePerUnaligned() 117 @Override public void decodePerAligned(BitStreamReader reader) { in decodePerAligned() argument 118 decodePerImpl(reader, true); in decodePerAligned()
|
/cts/libs/vogar-expect/src/vogar/expect/ |
D | ExpectationStore.java | 157 Reader reader = new InputStreamReader(is)) { in parse() 158 parse(reader, url.toString(), mode); in parse() 171 private void parse(Reader reader, String source, ModeId mode) throws IOException { in parse() argument 173 try (JsonReader jsonReader = new JsonReader(reader)) { in parse() 186 private void readExpectation(JsonReader reader, ModeId mode) throws IOException { in readExpectation() argument 196 reader.beginObject(); in readExpectation() 197 while (reader.hasNext()) { in readExpectation() 198 String name = reader.nextName(); in readExpectation() 200 result = Result.valueOf(reader.nextString()); in readExpectation() 202 names.add(reader.nextString()); in readExpectation() [all …]
|
/cts/tests/tests/secure_element/omapi/src/android/omapi/cts/ |
D | OmapiTest.java | 247 for (Reader reader : readers) { in testGetReaders() 248 assertTrue(reader.isSecureElementPresent()); in testGetReaders() 249 String name = reader.getName(); in testGetReaders() 254 assertNotNull("getseService returned null", reader.getSEService()); in testGetReaders() 256 if (reader.getName().startsWith(UICC_READER_PREFIX)) { in testGetReaders() 257 uiccReaders.add(reader); in testGetReaders() 259 if (reader.getName().startsWith(ESE_READER_PREFIX)) { in testGetReaders() 260 eseReaders.add(reader); in testGetReaders() 262 if (reader.getName().startsWith(SD_READER_PREFIX)) { in testGetReaders() 263 sdReaders.add(reader); in testGetReaders() [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/uirendering/src/android/uirendering/cts/testclasses/ |
D | HardwareRendererTests.kt | 70 val reader = ImageReader.newInstance( in <lambda>() constant 76 renderer.setSurface(reader.surface) in <lambda>() 83 image = reader.acquireNextImage() in <lambda>() 112 reader.close() in <lambda>() 149 val reader = ImageReader.newInstance(TEST_WIDTH, TEST_HEIGHT, PixelFormat.RGBA_8888, 1, in testBasicDrawCpuConsumer() constant 151 assertNotNull(reader) in testBasicDrawCpuConsumer() 163 renderer.setSurface(reader.surface) in testBasicDrawCpuConsumer() 171 image = reader.acquireNextImage() in testBasicDrawCpuConsumer() 192 reader.close() in testBasicDrawCpuConsumer() 198 val reader = ImageReader.newInstance(TEST_WIDTH, TEST_HEIGHT, PixelFormat.RGBA_8888, 1, in testBasicDrawGpuConsumer() constant [all …]
|
/cts/tests/location/location_gnss/src/android/location/cts/gnss/asn1/supl2/rrlp_components/ |
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 | 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 | 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 …]
|
/cts/tests/location/location_gnss/src/android/location/cts/gnss/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 …]
|