/cts/tests/tests/identity/src/android/security/identity/cts/ |
D | UtilUnitTests.java | 55 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in prettyPrintMultipleCompleteTypes() local 56 new CborEncoder(baos).encode(new CborBuilder() in prettyPrintMultipleCompleteTypes() 68 + "[1, 'text']", Util.cborPrettyPrint(baos.toByteArray())); in prettyPrintMultipleCompleteTypes() 73 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in prettyPrintString() local 74 new CborEncoder(baos).encode(new UnicodeString("foobar")); in prettyPrintString() 75 assertEquals("'foobar'", Util.cborPrettyPrint(baos.toByteArray())); in prettyPrintString() 80 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in prettyPrintBytestring() local 81 new CborEncoder(baos).encode(new ByteString(new byte[]{1, 2, 33, (byte) 254})); in prettyPrintBytestring() 82 assertEquals("[0x01, 0x02, 0x21, 0xfe]", Util.cborPrettyPrint(baos.toByteArray())); in prettyPrintBytestring() 87 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in prettyPrintUnsignedInteger() local [all …]
|
D | Util.java | 135 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in canonicalizeCbor() local 137 CborEncoder encoder = new CborEncoder(baos); in canonicalizeCbor() 140 return baos.toByteArray(); in canonicalizeCbor() 328 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in encodeCbor() local 329 CborEncoder encoder = new CborEncoder(baos); in encodeCbor() 335 return baos.toByteArray(); in encodeCbor() 401 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in signatureDerToCose() local 404 baos.write(0x00); in signatureDerToCose() 406 baos.write(rBytes); in signatureDerToCose() 408 baos.write(0x00); in signatureDerToCose() [all …]
|
D | ProvisioningTest.java | 93 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in getExampleDrivingPrivilegesCbor() local 95 new CborEncoder(baos).encode(new CborBuilder() in getExampleDrivingPrivilegesCbor() 106 return baos.toByteArray(); in getExampleDrivingPrivilegesCbor()
|
/cts/hostsidetests/jvmti/attaching/app/src/android/jvmti/ |
D | JvmtiActivity.java | 49 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in onCreate() 50 e.printStackTrace(new PrintStream(baos)); in onCreate() 52 returnResult("FAILED: " + baos.toString()); in onCreate() 70 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in returnResult() 71 e.printStackTrace(new PrintStream(baos)); in returnResult() 72 … Log.wtf("JvmtiActivity", "Could not connect to result socket! " + e + baos.toString()); in returnResult()
|
/cts/common/device-side/bedstead/queryable/src/test/java/com/android/queryable/util/ |
D | SerializableParcelWrapperTest.java | 57 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in serialize() local 58 try (ObjectOutputStream outputStream = new ObjectOutputStream(baos)) { in serialize() 61 baos.close(); in serialize() 62 return baos.toByteArray(); in serialize()
|
/cts/tools/cfassembler/src/dxconvext/ |
D | ClassFileAssembler.java | 172 ByteArrayOutputStream baos = new ByteArrayOutputStream(8192); in writeClassFile() local 190 baos.write(res); in writeClassFile() 200 byte[] outBytes = baos.toByteArray(); in writeClassFile()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
D | IdentityCredentialAuthentication.java | 314 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in createItemsRequest() local 315 CborEncoder encoder = new CborEncoder(baos); in createItemsRequest() 321 return baos.toByteArray(); in createItemsRequest()
|
/cts/tests/tests/util/src/android/util/cts/ |
D | StrictJarFileTest.java | 358 ByteArrayOutputStream baos = new ByteArrayOutputStream(128); in readUtf8String() local 362 baos.write(readBuffer, 0, byteCount); in readUtf8String() 364 return new String(baos.toByteArray(), StandardCharsets.UTF_8); in readUtf8String()
|
/cts/libs/input/src/com/android/cts/input/ |
D | InputJsonParser.java | 135 OutputStream baos = new ByteArrayOutputStream(); in readFully() local 139 baos.write(buffer, 0, read); in readFully() 142 return baos.toString(); in readFully()
|
/cts/hostsidetests/media/bitstreams/src/android/media/cts/bitstreams/ |
D | MediaBitstreamsTest.java | 347 OutputStream baos = new ByteArrayOutputStream(); in getBitstreamsListString() local 348 PrintStream ps = new PrintStream(baos, true); in getBitstreamsListString() 353 return baos.toString(); in getBitstreamsListString()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | BitmapFactoryTest.java | 704 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in testParcel() local 705 assertTrue(b2.compress(Bitmap.CompressFormat.JPEG, 50, baos)); in testParcel()
|