/aosp_15_r20/external/apache-commons-io/src/test/java/org/apache/commons/io/input/ |
H A D | ClassLoaderObjectInputStreamTest.java | 85 final InputStream bais = new ByteArrayInputStream(SerializationUtils.serialize(input)); in testExpected() local 86 …derObjectInputStream clois = new ClassLoaderObjectInputStream(getClass().getClassLoader(), bais)) { in testExpected() argument 95 final InputStream bais = new ByteArrayInputStream(SerializationUtils.serialize(input)); in testLong() local 96 …derObjectInputStream clois = new ClassLoaderObjectInputStream(getClass().getClassLoader(), bais)) { in testLong() argument 105 final InputStream bais = new ByteArrayInputStream(SerializationUtils.serialize(input)); in testObject1() local 106 …derObjectInputStream clois = new ClassLoaderObjectInputStream(getClass().getClassLoader(), bais)) { in testObject1() argument 115 final InputStream bais = new ByteArrayInputStream(SerializationUtils.serialize(input)); in testObject2() local 116 …derObjectInputStream clois = new ClassLoaderObjectInputStream(getClass().getClassLoader(), bais)) { in testObject2() argument 129 final InputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testPrimitiveLong() local 130 …derObjectInputStream clois = new ClassLoaderObjectInputStream(getClass().getClassLoader(), bais)) { in testPrimitiveLong() argument [all …]
|
H A D | CountingInputStreamTest.java | 68 final ByteArrayInputStream bais = new ByteArrayInputStream(new byte[2]); in testEOF1() local 85 final ByteArrayInputStream bais = new ByteArrayInputStream(new byte[2]); in testEOF2() local 98 final ByteArrayInputStream bais = new ByteArrayInputStream(new byte[2]); in testEOF3() local 135 final ByteArrayInputStream bais = new ByteArrayInputStream(bytes); in testResetting() local 166 final ByteArrayInputStream bais = new ByteArrayInputStream(IOUtils.EMPTY_BYTE_ARRAY); in testZeroLength1() local 177 final ByteArrayInputStream bais = new ByteArrayInputStream(IOUtils.EMPTY_BYTE_ARRAY); in testZeroLength2() local 190 final ByteArrayInputStream bais = new ByteArrayInputStream(IOUtils.EMPTY_BYTE_ARRAY); in testZeroLength3() local
|
H A D | SwappedDataInputStreamTest.java | 55 final ByteArrayInputStream bais = new ByteArrayInputStream(bytes); in setUp() local 68 final ByteArrayInputStream bais = new ByteArrayInputStream(bytes); in testReadBoolean()
|
/aosp_15_r20/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
H A D | ZenModeConfigTest.java | 581 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testBackupRestore() local 700 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testRuleXml_classic() local 763 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testRuleXml() local 811 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testRuleXml_weirdEffects() local 828 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testRuleXml_pkg_component() local 841 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testRuleXml_pkg_configActivity() local 855 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testRuleXml_getPkg_nullPkg() local 870 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testRuleXml_emptyConditionId() local 885 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testRuleXml_customInterruptionFilter() local 898 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testRuleXml_invalidInterruptionFilter_readsDefault() local [all …]
|
/aosp_15_r20/libcore/luni/src/test/java/tests/security/cert/ |
H A D | CertificateFactorySpiTest.java | 56 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); in testCertificateFactorySpi01() local 118 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); in testCertificateFactorySpi02() local 188 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); in testCertificateFactorySpi03() local 255 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); in testEngineGenerateCertPathLjava_io_InputStream01() local 273 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); in testEngineGenerateCertPathLjava_io_InputStream02() local 294 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); in testEngineGenerateCertPathLjava_io_InputStream_Ljava_lang_String01() local 320 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); in testEngineGenerateCertPathLjava_io_InputStream_Ljava_lang_String02() local 381 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[3]); in testAbstractMethods() local
|
/aosp_15_r20/external/cbor-java/src/test/java/co/nstant/in/cbor/decoder/ |
H A D | LanguageTaggedStringDecoderTest.java | 28 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in shouldThrowException() local 42 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testExceptionOnNotAnArray() local 56 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testExceptionOnNot2ElementArray() local 70 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testExceptionOnNotFirstElementIsString() local 84 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testExceptionOnNotSecondElementIsString() local 98 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testDecoding() local
|
H A D | CborDecoderTest.java | 88 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in shouldThrowOnRationalNumberDecode1() local 102 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in shouldThrowOnRationalNumberDecode2() local 116 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in shouldThrowOnRationalNumberDecode3() local 130 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in shouldThrowOnRationalNumberDecode4() local 144 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in shouldDecodeRationalNumber() local 172 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in shouldDecodeTaggedRationalNumber() local
|
H A D | ByteStringDecoderTest.java | 32 ByteArrayInputStream bais = new ByteArrayInputStream(encodedBytes); in shouldDecodeChunkedByteString() local 45 ByteArrayInputStream bais = new ByteArrayInputStream(encodedBytes); in shouldDecodeByteString1K() local 58 ByteArrayInputStream bais = new ByteArrayInputStream(encodedBytes); in shouldDecodeByteString1M() local
|
H A D | MapDecoderTest.java | 47 ByteArrayInputStream bais = new ByteArrayInputStream(bytes); in shouldThrowOnDuplicateKeyIfEnabled() local 57 ByteArrayInputStream bais = new ByteArrayInputStream(bytes); in shouldThrowInDuplicateKeyInIndefiniteLengthMapIfEnabled() local
|
/aosp_15_r20/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
H A D | PersistentDataStoreTest.java | 165 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testSetBrightness_brightnessTagWithNoUserId_updatesToBrightnessTagWithUserId() local 307 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testStoreAndReloadOfDisplayBrightnessConfigurations() local 370 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testStoreAndReloadOfBrightnessConfigurations() local 423 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testStoreAndRestoreResolution() local 459 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testStoreAndRestoreRefreshRate() local 494 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testBrightnessInitialisesWithInvalidFloat() local 513 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testStoreAndRestoreBrightnessNitsForDefaultDisplay() local
|
/aosp_15_r20/system/security/identity/util/src/java/com/android/security/identity/internal/ |
H A D | Util.java | 98 ByteArrayInputStream bais = new ByteArrayInputStream(encodedCbor); in canonicalizeCbor() local 112 ByteArrayInputStream bais = new ByteArrayInputStream(encodedBytes); in cborPrettyPrint() local 486 ByteArrayInputStream bais = new ByteArrayInputStream(signatureCose1); in coseSign1CheckSignature() local 555 ByteArrayInputStream bais = new ByteArrayInputStream(signatureCose1); in coseSign1GetData() local 598 ByteArrayInputStream bais = new ByteArrayInputStream(signatureCose1); in coseSign1GetX5Chain() local 765 ByteArrayInputStream bais = new ByteArrayInputStream(data); in cborToDataItem() local 923 ByteArrayInputStream bais = new ByteArrayInputStream(resultingCertBytes); in signPublicKeyWithPrivateKey() local 936 ByteArrayInputStream bais = new ByteArrayInputStream(encodedSessionTranscript); in buildDeviceAuthenticationCbor() local 962 ByteArrayInputStream bais = new ByteArrayInputStream(encodedSessionTranscript); in buildReaderAuthenticationBytesCbor() local 1318 ByteArrayInputStream bais = new ByteArrayInputStream(cborBytes); in getPopSha256FromAuthKeyCert() local
|
/aosp_15_r20/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | StreamUtilTest.java | 194 ByteArrayInputStream bais = new ByteArrayInputStream(text.getBytes()); in testCopyStreams() local 214 ByteArrayInputStream bais = new ByteArrayInputStream(builder.toString().getBytes()); in testCopyStreams_partialSuccess() local 230 ByteArrayInputStream bais = null; in testCopyStreams_partialFail() local 247 ByteArrayInputStream bais = new ByteArrayInputStream(text.getBytes()); in testCopyStreamToWriter() local
|
/aosp_15_r20/external/okio/okio/src/jvmTest/kotlin/okio/ |
H A D | OkioKotlinTest.kt | 42 val bais = ByteArrayInputStream(byteArrayOf(0x61)) in inputStreamSource() constant 118 val bais = ByteArrayInputStream(byteArrayOf(0x61)) in socketSource() constant
|
/aosp_15_r20/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
H A D | ObjectStreamFieldTest.java | 165 ByteArrayInputStream bais = new ByteArrayInputStream(bytes); in test_getType_Deserialized() local 186 ByteArrayInputStream bais = new ByteArrayInputStream(bytes); in test_getType_MockObjectInputStream() local 204 ByteArrayInputStream bais = new ByteArrayInputStream(bytes); in test_isUnshared() local 237 final ByteArrayInputStream bais = new ByteArrayInputStream(bytes); in test_ObjectWithPrimitiveField() local
|
/aosp_15_r20/libcore/ojluni/src/main/java/sun/security/pkcs/ |
H A D | PKCS7.java | 258 ByteArrayInputStream bais = null; in parseNetscapeCertChain() local 336 ByteArrayInputStream bais = null; in parseSignedData() local 383 ByteArrayInputStream bais = null; in parseSignedData() local 460 ByteArrayInputStream bais = null; in parseOldSignedData() local
|
/aosp_15_r20/external/apache-xml/test/java/src/org/apache/qetest/trax/stream/ |
H A D | StreamSourceAPITest.java | 157 ByteArrayInputStream bais = new ByteArrayInputStream(bytes); in testCase1() local 159 …reporter.checkObject(byteSource1.getInputStream(), bais, "StreamSource(is) has ByteStream " + byte… in testCase1() local 165 …reporter.checkObject(byteSource2.getInputStream(), bais, "StreamSource(is, sysID) has ByteStream "… in testCase1() local
|
/aosp_15_r20/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/utils/ |
D | CborUtils.java | 97 ByteArrayInputStream bais = new ByteArrayInputStream(serverResp); in parseSignedCertificates() local 208 ByteArrayInputStream bais = new ByteArrayInputStream(serverResp); in parseGeekResponse() local 378 ByteArrayInputStream bais = new ByteArrayInputStream(encodedBytes); in decodeCbor() local
|
/aosp_15_r20/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/ |
H A D | TimeZoneRuleTest.java | 466 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneRoundTrip() local 544 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneRoundTripPartial() local 611 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneSimpleWrite() local 653 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneHeaderProps() local 684 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneHeaderProps() local
|
/aosp_15_r20/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/ |
H A D | ObjectInputStreamTest.java | 160 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in test_ClassDescriptor() local 1084 ByteArrayInputStream bais = new ByteArrayInputStream(bytes); in test_resolveClass() local 1127 ByteArrayInputStream bais = new ByteArrayInputStream(bytes); in test_resolveObjectLjava_lang_Object() local 1149 ByteArrayInputStream bais = new ByteArrayInputStream(bytes); in test_readClassDescriptor() local 1314 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in test_registerValidation() local
|
/aosp_15_r20/external/icu/icu4j/main/core/src/test/java/com/ibm/icu/dev/test/timezone/ |
H A D | TimeZoneRuleTest.java | 463 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneRoundTrip() local 541 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneRoundTripPartial() local 608 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneSimpleWrite() local 650 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneHeaderProps() local 681 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneHeaderProps() local
|
/aosp_15_r20/frameworks/base/identity/java/android/security/identity/ |
H A D | CredstoreIdentityCredential.java | 102 ByteArrayInputStream bais = new ByteArrayInputStream(pkcs12); in ensureEphemeralKeyPair() local 224 ByteArrayInputStream bais = new ByteArrayInputStream(certsBlob); in getCredentialKeyCertificateChain() local 407 ByteArrayInputStream bais = new ByteArrayInputStream(authKeyParcel.x509cert); in getAuthKeysNeedingCertification() local
|
/aosp_15_r20/external/apache-commons-io/src/test/java/org/apache/commons/io/input/buffer/ |
H A D | CircularBufferInputStreamTest.java | 44 …try (ByteArrayInputStream bais = new ByteArrayInputStream(buffer); final CircularBufferInputStream… in testIO683() 59 final ByteArrayInputStream bais = new ByteArrayInputStream(inputBuffer); in testRandomRead() local
|
/aosp_15_r20/libcore/ojluni/src/test/java/util/Base64/ |
H A D | TestBase64.java | 201 ByteArrayInputStream bais = new ByteArrayInputStream(encoded); in test() local 329 ByteArrayInputStream bais = new ByteArrayInputStream(decoded); in testIOE() local 601 ByteArrayInputStream bais = in testDecoderKeepsAbstinence() local
|
/aosp_15_r20/frameworks/base/services/tests/servicestests/src/com/android/server/graphics/fonts/ |
H A D | PersistentSystemFontConfigTest.java | 63 try (ByteArrayInputStream bais = new ByteArrayInputStream(written)) { in testWriteRead() 80 try (ByteArrayInputStream bais = in testWrongType()
|
/aosp_15_r20/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/ |
H A D | InputSourceTest.java | 51 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); in testInputSourceInputStream() local 115 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); in testSetByteStreamGetByteStream() local
|