Searched refs:baos (Results 1 – 10 of 10) sorted by relevance
/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 | 95 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in canonicalizeCbor() local 97 CborEncoder encoder = new CborEncoder(baos); in canonicalizeCbor() 100 return baos.toByteArray(); in canonicalizeCbor() 288 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in encodeCbor() local 289 CborEncoder encoder = new CborEncoder(baos); in encodeCbor() 295 return baos.toByteArray(); in encodeCbor() 361 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in signatureDerToCose() local 364 baos.write(0x00); in signatureDerToCose() 366 baos.write(rBytes); in signatureDerToCose() 368 baos.write(0x00); in signatureDerToCose() [all …]
|
D | ProvisioningTest.java | 92 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in getExampleDrivingPrivilegesCbor() local 94 new CborEncoder(baos).encode(new CborBuilder() in getExampleDrivingPrivilegesCbor() 105 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/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/libs/input/src/com/android/cts/input/ |
D | HidJsonParser.java | 130 OutputStream baos = new ByteArrayOutputStream(); in readFully() local 134 baos.write(buffer, 0, read); in readFully() 137 return baos.toString(); in readFully()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
D | IdentityCredentialAuthentication.java | 359 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in createItemsRequest() local 360 CborEncoder encoder = new CborEncoder(baos); in createItemsRequest() 366 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/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 | 682 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in testParcel() local 683 assertTrue(b2.compress(Bitmap.CompressFormat.JPEG, 50, baos)); in testParcel()
|