Home
last modified time | relevance | path

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

/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/
DSettingsTest.java58 settings.set(Settings.ROUND_TRIP_TIME, 0, 64); in setFields()
97 assertFalse(settings.isPersisted(Settings.ROUND_TRIP_TIME)); in isPersisted()
100 settings.set(Settings.ROUND_TRIP_TIME, 0, 0); in isPersisted()
101 assertFalse(settings.isPersisted(Settings.ROUND_TRIP_TIME)); in isPersisted()
104 settings.set(Settings.ROUND_TRIP_TIME, PERSIST_VALUE, 0); in isPersisted()
105 assertFalse(settings.isPersisted(Settings.ROUND_TRIP_TIME)); in isPersisted()
108 settings.set(Settings.ROUND_TRIP_TIME, PERSISTED, 0); in isPersisted()
109 assertTrue(settings.isPersisted(Settings.ROUND_TRIP_TIME)); in isPersisted()
112 settings.set(Settings.ROUND_TRIP_TIME, PERSIST_VALUE | PERSISTED, 0); in isPersisted()
113 assertTrue(settings.isPersisted(Settings.ROUND_TRIP_TIME)); in isPersisted()
[all …]
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/
DSettings.java48 static final int ROUND_TRIP_TIME = 3; field in Settings
162 int bit = 1 << ROUND_TRIP_TIME; in getRoundTripTime()
163 return (bit & set) != 0 ? values[ROUND_TRIP_TIME] : defaultValue; in getRoundTripTime()