Home
last modified time | relevance | path

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

/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/netlink/
DTcpSocketTrackerTest.java303 assertEquals(-1, tst.getLatestPacketFailPercentage()); in testPollSocketsInfo()
310 assertEquals(-1, tst.getLatestPacketFailPercentage()); in testPollSocketsInfo()
318 assertEquals(50, tst.getLatestPacketFailPercentage()); in testPollSocketsInfo()
337 assertEquals(-1, tst.getLatestPacketFailPercentage()); in testTcpInfoParsingUnsupported()
395 assertEquals(50, tst.getLatestPacketFailPercentage()); in testPollSocketsInfo_BadFormat()
403 assertEquals(0, tst.getLatestPacketFailPercentage()); in testPollSocketsInfo_BadFormat()
416 assertEquals(-1, tst.getLatestPacketFailPercentage()); in testUnMatchNetwork()
/packages/modules/NetworkStack/src/com/android/networkstack/netlink/
DTcpSocketTracker.java328 return (getLatestPacketFailPercentage() >= getTcpPacketsFailRateThreshold()); in isDataStallSuspected()
366 public int getLatestPacketFailPercentage() { in getLatestPacketFailPercentage() method in TcpSocketTracker
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/
DNetworkMonitorTest.java2101 when(mTst.getLatestPacketFailPercentage()).thenReturn(TEST_TCP_FAIL_RATE);
2251 verify(mTst, timeout(HANDLER_TIMEOUT_MS).atLeastOnce()).getLatestPacketFailPercentage();
2253 verify(mTst, never()).getLatestPacketFailPercentage();
2951 when(mTst.getLatestPacketFailPercentage()).thenReturn(TEST_TCP_FAIL_RATE);
/packages/modules/NetworkStack/src/com/android/server/connectivity/
DNetworkMonitor.java1158 stats.setTcpFailRate(tst.getLatestPacketFailPercentage()); in addTcpStats()
3326 .add("latest tcp fail rate=" + tst.getLatestPacketFailPercentage()); in isDataStall()
3358 p.tcpPacketFailRate = tst.getLatestPacketFailPercentage(); in isDataStall()