Home
last modified time | relevance | path

Searched refs:bytesLeftInWriteWindow (Results 1 – 4 of 4) sorted by relevance

/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/
DFramedStream.java53 long bytesLeftInWriteWindow; field in FramedStream
82 this.bytesLeftInWriteWindow = in FramedStream()
504 while (bytesLeftInWriteWindow <= 0 && !finished && !closed && errorCode == null) { in emitDataFrame()
512 toWrite = Math.min(bytesLeftInWriteWindow, sendBuffer.size()); in emitDataFrame()
513 bytesLeftInWriteWindow -= toWrite; in emitDataFrame()
568 bytesLeftInWriteWindow += delta; in addBytesToWriteWindow()
DFramedConnection.java112 long bytesLeftInWriteWindow; field in FramedConnection
169 bytesLeftInWriteWindow = peerSettings.getInitialWindowSize(DEFAULT_INITIAL_WINDOW_SIZE); in FramedConnection()
317 while (bytesLeftInWriteWindow <= 0) { in writeData()
329 toWrite = (int) Math.min(byteCount, bytesLeftInWriteWindow); in writeData()
331 bytesLeftInWriteWindow -= toWrite; in writeData()
344 bytesLeftInWriteWindow += delta; in addBytesToWriteWindow()
798 bytesLeftInWriteWindow += windowSizeIncrement; in windowUpdate()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/
DSpdy3ConnectionTest.java1240 assertEquals(0, connection.bytesLeftInWriteWindow);
1241 assertEquals(0, connection.getStream(1).bytesLeftInWriteWindow);
1246 assertEquals(3, connection.bytesLeftInWriteWindow);
1247 assertEquals(0, connection.getStream(1).bytesLeftInWriteWindow);
1255 assertEquals(0, connection.bytesLeftInWriteWindow);
1256 assertEquals(0, connection.getStream(1).bytesLeftInWriteWindow);
1257 assertEquals(DEFAULT_INITIAL_WINDOW_SIZE - 3, connection.getStream(3).bytesLeftInWriteWindow);
DHttp2ConnectionTest.java134 assertEquals(1684, connection.bytesLeftInWriteWindow); // initial wasn't affected.
136 assertEquals(3368, stream.bytesLeftInWriteWindow);