Home
last modified time | relevance | path

Searched refs:option (Results 1 – 14 of 14) sorted by relevance

/libcore/luni/src/test/java/libcore/java/net/
DOldSocketTestCase.java59 public boolean getOptionIsSupported(int option) { in getOptionIsSupported() argument
60 switch (option) { in getOptionIsSupported()
91 public void handleException(Exception e, int option) { in handleException() argument
92 if (!getOptionIsSupported(option)) { in handleException()
106 + getSocketOptionString(option)); in handleException()
120 public void ensureExceptionThrownIfOptionIsUnsupportedOnOS(int option) { in ensureExceptionThrownIfOptionIsUnsupportedOnOS() argument
121 if (!getOptionIsSupported(option)) { in ensureExceptionThrownIfOptionIsUnsupportedOnOS()
123 + getSocketOptionString(option)); in ensureExceptionThrownIfOptionIsUnsupportedOnOS()
130 private String getSocketOptionString(int option) { in getSocketOptionString() argument
131 switch (option) { in getSocketOptionString()
DSocketTest.java175 public int option; in test_SocketOptions_setOption() field in SocketTest.MySocketImpl
200 public void setOption(int option, Object value) throws SocketException { in test_SocketOptions_setOption() argument
201 this.option = option; in test_SocketOptions_setOption()
/libcore/luni/src/main/java/libcore/io/
DForwardingOs.java88 …Byte(FileDescriptor fd, int level, int option) throws ErrnoException { return os.getsockoptByte(fd… in getsockoptByte() argument
89 …ddr(FileDescriptor fd, int level, int option) throws ErrnoException { return os.getsockoptInAddr(f… in getsockoptInAddr() argument
90 …ptInt(FileDescriptor fd, int level, int option) throws ErrnoException { return os.getsockoptInt(fd… in getsockoptInt() argument
91 …ger(FileDescriptor fd, int level, int option) throws ErrnoException { return os.getsockoptLinger(f… in getsockoptLinger() argument
92 …val(FileDescriptor fd, int level, int option) throws ErrnoException { return os.getsockoptTimeval(… in getsockoptTimeval() argument
93 …cred(FileDescriptor fd, int level, int option) throws ErrnoException { return os.getsockoptUcred(f… in getsockoptUcred() argument
119 …public int prctl(int option, long arg2, long arg3, long arg4, long arg5) throws ErrnoException { r… in prctl() argument
140 …te(FileDescriptor fd, int level, int option, int value) throws ErrnoException { os.setsockoptByte(… in setsockoptByte() argument
141 …(FileDescriptor fd, int level, int option, String value) throws ErrnoException { os.setsockoptIfre… in setsockoptIfreq() argument
142 …Int(FileDescriptor fd, int level, int option, int value) throws ErrnoException { os.setsockoptInt(… in setsockoptInt() argument
[all …]
DOs.java80 public int getsockoptByte(FileDescriptor fd, int level, int option) throws ErrnoException; in getsockoptByte() argument
81 …public InetAddress getsockoptInAddr(FileDescriptor fd, int level, int option) throws ErrnoExceptio… in getsockoptInAddr() argument
82 public int getsockoptInt(FileDescriptor fd, int level, int option) throws ErrnoException; in getsockoptInt() argument
83 …public StructLinger getsockoptLinger(FileDescriptor fd, int level, int option) throws ErrnoExcepti… in getsockoptLinger() argument
84 …public StructTimeval getsockoptTimeval(FileDescriptor fd, int level, int option) throws ErrnoExcep… in getsockoptTimeval() argument
85 …public StructUcred getsockoptUcred(FileDescriptor fd, int level, int option) throws ErrnoException; in getsockoptUcred() argument
112 public int prctl(int option, long arg2, long arg3, long arg4, long arg5) throws ErrnoException; in prctl() argument
133 …public void setsockoptByte(FileDescriptor fd, int level, int option, int value) throws ErrnoExcept… in setsockoptByte() argument
134 …public void setsockoptIfreq(FileDescriptor fd, int level, int option, String value) throws ErrnoEx… in setsockoptIfreq() argument
135 …public void setsockoptInt(FileDescriptor fd, int level, int option, int value) throws ErrnoExcepti… in setsockoptInt() argument
[all …]
DPosix.java82 … public native int getsockoptByte(FileDescriptor fd, int level, int option) throws ErrnoException; in getsockoptByte() argument
83 …public native InetAddress getsockoptInAddr(FileDescriptor fd, int level, int option) throws ErrnoE… in getsockoptInAddr() argument
84 public native int getsockoptInt(FileDescriptor fd, int level, int option) throws ErrnoException; in getsockoptInt() argument
85 …public native StructLinger getsockoptLinger(FileDescriptor fd, int level, int option) throws Errno… in getsockoptLinger() argument
86 …public native StructTimeval getsockoptTimeval(FileDescriptor fd, int level, int option) throws Err… in getsockoptTimeval() argument
87 …public native StructUcred getsockoptUcred(FileDescriptor fd, int level, int option) throws ErrnoEx… in getsockoptUcred() argument
113 …public native int prctl(int option, long arg2, long arg3, long arg4, long arg5) throws ErrnoExcept… in prctl() argument
214 …public native void setsockoptByte(FileDescriptor fd, int level, int option, int value) throws Errn… in setsockoptByte() argument
215 …public native void setsockoptIfreq(FileDescriptor fd, int level, int option, String value) throws … in setsockoptIfreq() argument
216 …public native void setsockoptInt(FileDescriptor fd, int level, int option, int value) throws Errno… in setsockoptInt() argument
[all …]
DIoBridge.java254 public static Object getSocketOption(FileDescriptor fd, int option) throws SocketException { in getSocketOption() argument
256 return getSocketOptionErrno(fd, option); in getSocketOption()
262 …private static Object getSocketOptionErrno(FileDescriptor fd, int option) throws ErrnoException, S… in getSocketOptionErrno() argument
263 switch (option) { in getSocketOptionErrno()
305 throw new SocketException("Unknown socket option: " + option); in getSocketOptionErrno()
321 …public static void setSocketOption(FileDescriptor fd, int option, Object value) throws SocketExcep… in setSocketOption() argument
323 setSocketOptionErrno(fd, option, value); in setSocketOption()
329 …private static void setSocketOptionErrno(FileDescriptor fd, int option, Object value) throws Errno… in setSocketOptionErrno() argument
330 switch (option) { in setSocketOptionErrno()
394 int op = (option == JAVA_MCAST_JOIN_GROUP) ? MCAST_JOIN_GROUP : MCAST_LEAVE_GROUP; in setSocketOptionErrno()
[all …]
/libcore/luni/src/main/java/android/system/
DOs.java192 …(FileDescriptor fd, int level, int option) throws ErrnoException { return Libcore.os.getsockoptByt… in getsockoptByte() argument
193 …FileDescriptor fd, int level, int option) throws ErrnoException { return Libcore.os.getsockoptInAd… in getsockoptInAddr() argument
194 …t(FileDescriptor fd, int level, int option) throws ErrnoException { return Libcore.os.getsockoptIn… in getsockoptInt() argument
195 …FileDescriptor fd, int level, int option) throws ErrnoException { return Libcore.os.getsockoptLing… in getsockoptLinger() argument
196 …FileDescriptor fd, int level, int option) throws ErrnoException { return Libcore.os.getsockoptTime… in getsockoptTimeval() argument
197 …(FileDescriptor fd, int level, int option) throws ErrnoException { return Libcore.os.getsockoptUcr… in getsockoptUcred() argument
320 …c static int prctl(int option, long arg2, long arg3, long arg4, long arg5) throws ErrnoException {… in prctl() argument
422 …ileDescriptor fd, int level, int option, int value) throws ErrnoException { Libcore.os.setsockoptB… in setsockoptByte() argument
423 …eDescriptor fd, int level, int option, String value) throws ErrnoException { Libcore.os.setsockopt… in setsockoptIfreq() argument
424 …FileDescriptor fd, int level, int option, int value) throws ErrnoException { Libcore.os.setsockopt… in setsockoptInt() argument
[all …]
/libcore/luni/src/main/native/
Djava_io_FileDescriptor.cpp27 int option; in FileDescriptor_isSocket() local
28 socklen_t option_length = sizeof(option); in FileDescriptor_isSocket()
29 return TEMP_FAILURE_RETRY(getsockopt(fd, SOL_SOCKET, SO_DEBUG, &option, &option_length)) == 0; in FileDescriptor_isSocket()
Dlibcore_io_Posix.cpp792 static jint Posix_getsockoptByte(JNIEnv* env, jobject, jobject javaFd, jint level, jint option) { in Posix_getsockoptByte() argument
796 …throwIfMinusOne(env, "getsockopt", TEMP_FAILURE_RETRY(getsockopt(fd, level, option, &result, &size… in Posix_getsockoptByte()
800 static jobject Posix_getsockoptInAddr(JNIEnv* env, jobject, jobject javaFd, jint level, jint option in Posix_getsockoptInAddr() argument
807 int rc = TEMP_FAILURE_RETRY(getsockopt(fd, level, option, &sa->sin_addr, &size)); in Posix_getsockoptInAddr()
815 static jint Posix_getsockoptInt(JNIEnv* env, jobject, jobject javaFd, jint level, jint option) { in Posix_getsockoptInt() argument
819 …throwIfMinusOne(env, "getsockopt", TEMP_FAILURE_RETRY(getsockopt(fd, level, option, &result, &size… in Posix_getsockoptInt()
823 static jobject Posix_getsockoptLinger(JNIEnv* env, jobject, jobject javaFd, jint level, jint option in Posix_getsockoptLinger() argument
828 int rc = TEMP_FAILURE_RETRY(getsockopt(fd, level, option, &l, &size)); in Posix_getsockoptLinger()
836 …ic jobject Posix_getsockoptTimeval(JNIEnv* env, jobject, jobject javaFd, jint level, jint option) { in Posix_getsockoptTimeval() argument
841 int rc = TEMP_FAILURE_RETRY(getsockopt(fd, level, option, &tv, &size)); in Posix_getsockoptTimeval()
[all …]
/libcore/luni/src/main/java/java/net/
DPlainDatagramSocketImpl.java107 @Override public Object getOption(int option) throws SocketException { in getOption() argument
108 return IoBridge.getSocketOption(fd, option); in getOption()
188 public void setOption(int option, Object value) throws SocketException { in setOption() argument
189 IoBridge.setSocketOption(fd, option, value); in setOption()
DPlainSocketImpl.java241 @Override public Object getOption(int option) throws SocketException { in getOption() argument
242 return IoBridge.getSocketOption(fd, option); in getOption()
285 public void setOption(int option, Object value) throws SocketException { in setOption() argument
286 IoBridge.setSocketOption(fd, option, value); in setOption()
/libcore/luni/src/test/java/libcore/java/lang/
DOldObjectTest.java142 public TestThread1(int option) { in TestThread1() argument
143 testCase = option; in TestThread1()
/libcore/luni/src/main/java/java/text/
DSimpleDateFormat.java1146 String option = options[i]; in parseText() local
1147 int optionLength = option.length(); in parseText()
1151 if (string.regionMatches(true, offset, option, 0, optionLength)) { in parseText()
1156 } else if (option.charAt(optionLength - 1) == '.') { in parseText()
1159 if (string.regionMatches(true, offset, option, 0, optionLength - 1)) { in parseText()
/libcore/support/src/test/java/tests/resources/x509/
Ddefault.cnf63 # To use this configuration file with the "-extfile" option of the
104 # Extension copying option: use with caution.