Home
last modified time | relevance | path

Searched refs:IP_TOS (Results 1 – 25 of 28) sorted by relevance

12

/libcore/ojluni/src/main/java/java/net/
DDatagramSocketImpl.java291 } else if (name == StandardSocketOptions.IP_TOS) { in setOption()
292 setOption(SocketOptions.IP_TOS, value); in setOption()
336 } else if (name == StandardSocketOptions.IP_TOS) { in getOption()
337 return (T) getOption(SocketOptions.IP_TOS); in getOption()
361 StandardSocketOptions.IP_TOS);
366 StandardSocketOptions.IP_TOS,
DSocketImpl.java406 } else if (name == StandardSocketOptions.IP_TOS) { in setOption()
407 setOption(SocketOptions.IP_TOS, value); in setOption()
449 } else if (name == StandardSocketOptions.IP_TOS) { in getOption()
450 return (T)getOption(SocketOptions.IP_TOS); in getOption()
469 StandardSocketOptions.IP_TOS,
474 StandardSocketOptions.IP_TOS);
DSocketOptions.java234 @Native public static final int IP_TOS = 0x3; field
DStandardSocketOptions.java273 public static final SocketOption<Integer> IP_TOS = field in StandardSocketOptions
DAbstractPlainDatagramSocketImpl.java297 case IP_TOS: in setOption()
362 case IP_TOS: in getOption()
DDatagramSocket.java1223 getImpl().setOption(SocketOptions.IP_TOS, tc); in setTrafficClass()
1251 return ((Integer)(getImpl().getOption(SocketOptions.IP_TOS))).intValue(); in getTrafficClass()
DSocket.java1444 getImpl().setOption(SocketOptions.IP_TOS, tc); in setTrafficClass()
1475 return ((Integer) (getImpl().getOption(SocketOptions.IP_TOS))).intValue(); in getTrafficClass()
/libcore/luni/src/test/java/libcore/java/net/
DOldSocketTestCase.java49 public static final int IP_TOS = 10; field in OldSocketTestCase
81 case IP_TOS: in getOptionIsSupported()
155 case IP_TOS: in getSocketOptionString()
DSocketTest.java310 setAndAssertOption(impl, StandardSocketOptions.IP_TOS, in test_SocketOptions_setOption()
311 SocketOptions.IP_TOS, 4); in test_SocketOptions_setOption()
DOldSocketTest.java1577 ensureExceptionThrownIfOptionIsUnsupportedOnOS(IP_TOS); in test_setTrafficClassI()
1579 handleException(e, IP_TOS); in test_setTrafficClassI()
1602 ensureExceptionThrownIfOptionIsUnsupportedOnOS(IP_TOS); in test_getTrafficClass()
1604 handleException(e, IP_TOS); in test_getTrafficClass()
/libcore/ojluni/src/test/java/net/SocketOptions/
DOptionsTest.java65 TestClass.create(StandardSocketOptions.IP_TOS, Integer.valueOf(100))
72 TestClass.create(StandardSocketOptions.IP_TOS, Integer.valueOf(100))
80 TestClass.create(StandardSocketOptions.IP_TOS, Integer.valueOf(100))
200 } else if (option.equals(StandardSocketOptions.IP_TOS)) { in legacyGetOption()
218 } else if (option.equals(StandardSocketOptions.IP_TOS)) { in legacyGetOption()
236 } else if (option.equals(StandardSocketOptions.IP_TOS)) { in legacyGetOption()
255 } else if (option.equals(StandardSocketOptions.IP_TOS)) { in legacyGetOption()
284 return m.invoke(null, ss, StandardSocketOptions.IP_TOS); in getServerSocketTrafficClass()
288 return Integer.valueOf(ss.getOption(StandardSocketOptions.IP_TOS)); in getServerSocketTrafficClass()
/libcore/ojluni/src/main/java/jdk/net/
DSockets.java362 set.add(StandardSocketOptions.IP_TOS); in initOptionSets()
375 set.add(StandardSocketOptions.IP_TOS); in initOptionSets()
385 set.add(StandardSocketOptions.IP_TOS); in initOptionSets()
398 set.add(StandardSocketOptions.IP_TOS); in initOptionSets()
/libcore/ojluni/src/main/java/sun/nio/ch/
DSocketOptionRegistry.java68 …map.put(new RegistryKey(StandardSocketOptions.IP_TOS, StandardProtocolFamily.INET), new OptionKey(… in options()
72 …map.put(new RegistryKey(StandardSocketOptions.IP_TOS, StandardProtocolFamily.INET6), new OptionKey… in options()
DServerSocketChannelImpl.java137 if (name == StandardSocketOptions.IP_TOS) { in setOption()
188 set.add(StandardSocketOptions.IP_TOS); in defaultOptions()
DDatagramSocketAdaptor.java341 setIntOption(StandardSocketOptions.IP_TOS, tc); in setTrafficClass()
345 return getIntOption(StandardSocketOptions.IP_TOS); in getTrafficClass()
DSocketAdaptor.java395 setIntOption(StandardSocketOptions.IP_TOS, tc); in setTrafficClass()
399 return getIntOption(StandardSocketOptions.IP_TOS); in getTrafficClass()
DSocketChannelImpl.java217 if (name == StandardSocketOptions.IP_TOS) { in setOption()
258 if (name == StandardSocketOptions.IP_TOS) { in getOption()
281 set.add(StandardSocketOptions.IP_TOS); in defaultOptions()
DDatagramChannelImpl.java222 if (name == StandardSocketOptions.IP_TOS || in setOption()
288 if (name == StandardSocketOptions.IP_TOS || in getOption()
338 set.add(StandardSocketOptions.IP_TOS); in defaultOptions()
DNet.java317 if (name == StandardSocketOptions.IP_TOS) {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DDatagramSocketImplTest.java73 setAndAssertOption(impl, StandardSocketOptions.IP_TOS, in testSetOption()
74 SocketOptions.IP_TOS, 3); in testSetOption()
/libcore/luni/src/main/java/libcore/io/
DIoBridge.java393 case SocketOptions.IP_TOS: in getSocketOptionErrno()
484 case SocketOptions.IP_TOS: in setSocketOptionErrno()
485 Libcore.os.setsockoptInt(fd, IPPROTO_IP, IP_TOS, (Integer) value); in setSocketOptionErrno()
/libcore/luni/annotations/flagged_api/android/system/
DOsConstants.annotated.java734 public static final int IP_TOS; field in OsConstants
735 static { IP_TOS = 0; }
/libcore/ojluni/src/main/native/
Dnet_util_md.c922 { java_net_SocketOptions_IP_TOS, IPPROTO_IP, IP_TOS },
1073 if (level == IPPROTO_IP && opt == IP_TOS) { in NET_SetSockOpt()
DNet.c542 setsockopt(fdval(env, fdo), IPPROTO_IP, IP_TOS, parg, arglen); in Java_sun_nio_ch_Net_setIntOption0()
/libcore/luni/src/main/java/android/system/
DOsConstants.java426 public static final int IP_TOS = placeholder(); field in OsConstants

12