Home
last modified time | relevance | path

Searched refs:bytesProduced (Results 1 – 19 of 19) sorted by relevance

/external/conscrypt/common/src/main/java/org/conscrypt/
DConscryptEngine.java869 int bytesProduced = 0;
881 bytesProduced += bytesRead;
891 return newResult(bytesConsumed, bytesProduced, handshakeStatus);
900 bytesConsumed, bytesProduced);
917 return newResult(bytesConsumed, bytesProduced, handshakeStatus);
936 bytesConsumed, bytesProduced);
939 return newResult(bytesConsumed, bytesProduced, handshakeStatus);
1222 int bytesProduced, SSLEngineResult.HandshakeStatus status) throws SSLException {
1233 bytesConsumed, bytesProduced);
1245 bytesProduced += produced;
[all …]
DConscryptEngineSocket.java664 if (target.position() != engineResult.bytesProduced()) {
665 throw new SSLException("Engine bytesProduced " + engineResult.bytesProduced()
672 if (engineResult.getStatus() == CLOSED && engineResult.bytesProduced() == 0) {
853 if (engineResult.bytesProduced() == 0) {
886 if (!needMoreDataFromSocket && engineResult.bytesProduced() == 0) {
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DConscryptEngine.java866 int bytesProduced = 0;
878 bytesProduced += bytesRead;
888 return newResult(bytesConsumed, bytesProduced, handshakeStatus);
897 bytesConsumed, bytesProduced);
914 return newResult(bytesConsumed, bytesProduced, handshakeStatus);
933 bytesConsumed, bytesProduced);
936 return newResult(bytesConsumed, bytesProduced, handshakeStatus);
1219 int bytesProduced, SSLEngineResult.HandshakeStatus status) throws SSLException {
1230 bytesConsumed, bytesProduced);
1242 bytesProduced += produced;
[all …]
DConscryptEngineSocket.java680 if (target.position() != engineResult.bytesProduced()) {
681 throw new SSLException("Engine bytesProduced " + engineResult.bytesProduced()
688 if (engineResult.getStatus() == CLOSED && engineResult.bytesProduced() == 0) {
869 if (engineResult.bytesProduced() == 0) {
902 if (!needMoreDataFromSocket && engineResult.bytesProduced() == 0) {
/external/conscrypt/common/src/test/java/org/conscrypt/javax/net/ssl/
DSSLEngineVersionCompatibilityTest.java134 assertEquals(sourceCipherSuite, 1, destRes.bytesProduced()); in assertSendsCorrectly()
445 assertTrue(res.bytesProduced() > 0); in test_SSLEngine_CloseOutbound()
461 assertTrue(res.bytesProduced() > 0); in test_SSLEngine_CloseOutbound()
493 assertNotEquals(0, res.bytesProduced()); in test_SSLEngine_Closed()
498 assertEquals(0, res.bytesProduced()); in test_SSLEngine_Closed()
845 assertEquals(0, result.bytesProduced()); in sendAppDataInMultipleBuffers()
851 assertEquals(0, result.bytesProduced()); in sendAppDataInMultipleBuffers()
870 produced += result.bytesProduced(); in sendAppDataInMultipleBuffers()
DSSLEngineTest.java324 assertEquals(sourceCipherSuite, 1, destRes.bytesProduced()); in assertSendsCorrectly()
/external/conscrypt/openjdk/src/test/java/org/conscrypt/
DConscryptEngineTest.java518 int bytesProduced = unwrapResult.bytesProduced(); in unwrap() local
519 assertEquals(bytesProduced, newPos - prevPos); in unwrap()
522 if (bytesProduced > 0 || status == Status.BUFFER_OVERFLOW) { in unwrap()
523 byte[] decryptedBytes = new byte[unwrapResult.bytesProduced()]; in unwrap()
DRenegotiationTest.java349 totalProduced += result.bytesProduced();
/external/conscrypt/repackaged/openjdk/src/test/java/com/android/org/conscrypt/
DConscryptEngineTest.java527 int bytesProduced = unwrapResult.bytesProduced(); in unwrap() local
528 assertEquals(bytesProduced, newPos - prevPos); in unwrap()
531 if (bytesProduced > 0 || status == Status.BUFFER_OVERFLOW) { in unwrap()
532 byte[] decryptedBytes = new byte[unwrapResult.bytesProduced()]; in unwrap()
DRenegotiationTest.java354 totalProduced += result.bytesProduced();
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/javax/net/ssl/
DSSLEngineVersionCompatibilityTest.java136 assertEquals(sourceCipherSuite, 1, destRes.bytesProduced()); in assertSendsCorrectly()
447 assertTrue(res.bytesProduced() > 0); in test_SSLEngine_CloseOutbound()
463 assertTrue(res.bytesProduced() > 0); in test_SSLEngine_CloseOutbound()
495 assertNotEquals(0, res.bytesProduced()); in test_SSLEngine_Closed()
500 assertEquals(0, res.bytesProduced()); in test_SSLEngine_Closed()
845 assertEquals(0, result.bytesProduced()); in sendAppDataInMultipleBuffers()
851 assertEquals(0, result.bytesProduced()); in sendAppDataInMultipleBuffers()
870 produced += result.bytesProduced(); in sendAppDataInMultipleBuffers()
DSSLEngineTest.java328 assertEquals(sourceCipherSuite, 1, destRes.bytesProduced()); in assertSendsCorrectly()
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/javax/net/ssl/
DTestSSLEnginePair.java190 assertEquals(0, unwrapResult.bytesProduced()); in handshakeStep()
209 wrapResult.bytesProduced()); in handshakeStep()
/external/conscrypt/testing/src/main/java/org/conscrypt/javax/net/ssl/
DTestSSLEnginePair.java194 assertEquals(0, unwrapResult.bytesProduced()); in handshakeStep()
213 wrapResult.bytesProduced()); in handshakeStep()
/external/conscrypt/testing/src/main/java/org/conscrypt/
DTestUtils.java496 assertEquals(clientPacketBuffer.position() - cTOsPos, clientResult.bytesProduced()); in doEngineHandshake()
497 assertEquals(serverPacketBuffer.position() - sTOcPos, serverResult.bytesProduced()); in doEngineHandshake()
527 clientResult.bytesProduced()); in doEngineHandshake()
529 serverResult.bytesProduced()); in doEngineHandshake()
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/
DTestUtils.java502 assertEquals(clientPacketBuffer.position() - cTOsPos, clientResult.bytesProduced()); in doEngineHandshake()
503 assertEquals(serverPacketBuffer.position() - sTOcPos, serverResult.bytesProduced()); in doEngineHandshake()
533 clientResult.bytesProduced()); in doEngineHandshake()
535 serverResult.bytesProduced()); in doEngineHandshake()
/external/webrtc/modules/audio_device/win/
Daudio_device_core_win.cc3006 ULONG bytesProduced = 0; in DoCaptureThreadPollDMO() local
3010 hr = _mediaBuffer->GetBufferAndLength(&data, &bytesProduced); in DoCaptureThreadPollDMO()
3018 if (bytesProduced > 0) { in DoCaptureThreadPollDMO()
3019 const int kSamplesProduced = bytesProduced / _recAudioFrameSize; in DoCaptureThreadPollDMO()
/external/conscrypt/common/src/test/java/org/conscrypt/javax/crypto/
DCipherTest.java4591 int bytesProduced = cipher.doFinal(buffer, 0, buffer.length, buffer); in testDecryptBufferZeroSize_mustDecodeToEmptyString() local
4592 assertEquals("", new String(buffer, 0, bytesProduced, StandardCharsets.US_ASCII)); in testDecryptBufferZeroSize_mustDecodeToEmptyString()
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/javax/crypto/
DCipherTest.java4587 int bytesProduced = cipher.doFinal(buffer, 0, buffer.length, buffer); in testDecryptBufferZeroSize_mustDecodeToEmptyString() local
4588 assertEquals("", new String(buffer, 0, bytesProduced, StandardCharsets.US_ASCII)); in testDecryptBufferZeroSize_mustDecodeToEmptyString()