Home
last modified time | relevance | path

Searched refs:readMessage (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/companion/java/com/android/server/companion/securechannel/
DSecureChannel.java256 byte[] receivedMessage = readMessage(MessageType.SECURE_MESSAGE); in receiveSecureMessage()
263 private byte[] readMessage(MessageType expected) in readMessage() method in SecureChannel
385 ByteBuffer nextInitMessage = ByteBuffer.wrap(readMessage(MessageType.HANDSHAKE_INIT)); in handleHandshakeCollision()
407 byte[] handshakeInitMessage = readMessage(MessageType.HANDSHAKE_INIT); in exchangeHandshake()
437 mHandshakeContext.parseHandshakeMessage(readMessage(MessageType.HANDSHAKE_FINISH)); in exchangeHandshake()
483 byte[] receivedAuthToken = readMessage(MessageType.PRE_SHARED_KEY); in exchangePreSharedKey()
517 byte[] remoteAttestation = readMessage(MessageType.ATTESTATION); in exchangeAttestation()
531 byte[] remoteVerificationResult = readMessage(MessageType.AVF_RESULT); in exchangeAttestation()
/frameworks/native/libs/binder/tests/
DbinderRpcTest.cpp1694 AssertionResult readMessage(const std::string& expectedMessage = kMessage) { in readMessage() function in android::RpcTransportTestUtils::Client
1696 std::string readMessage(expectedMessage.size(), '\0'); in readMessage() local
1697 iovec readMessageIov{readMessage.data(), readMessage.size()}; in readMessage()
1704 if (readMessage != expectedMessage) { in readMessage()
1706 << "Expected " << expectedMessage << ", actual " << readMessage; in readMessage()
1716 ASSERT_EQ(readOk, readMessage()); in run()
1954 ASSERT_TRUE(client.readMessage(RpcTransportTestUtils::kMessage)); in TEST_P()
1967 ASSERT_FALSE(client.readMessage(msg2)); in TEST_P()
2012 ASSERT_TRUE(client.readMessage(RpcTransportTestUtils::kMessage)); in TEST_P()