Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/java/net/
DOldSocketTestCase.java64 public boolean getOptionIsSupported(int option) { in getOptionIsSupported() argument
65 switch (option) { in getOptionIsSupported()
96 public void handleException(Exception e, int option) { in handleException() argument
97 if (!getOptionIsSupported(option)) { in handleException()
111 + getSocketOptionString(option)); in handleException()
125 public void ensureExceptionThrownIfOptionIsUnsupportedOnOS(int option) { in ensureExceptionThrownIfOptionIsUnsupportedOnOS() argument
126 if (!getOptionIsSupported(option)) { in ensureExceptionThrownIfOptionIsUnsupportedOnOS()
128 + getSocketOptionString(option)); in ensureExceptionThrownIfOptionIsUnsupportedOnOS()
135 private String getSocketOptionString(int option) { in getSocketOptionString() argument
136 switch (option) { in getSocketOptionString()
DSocketTest.java198 public int option; in test_SocketOptions_setOption() field in SocketTest.MySocketImpl
223 public void setOption(int option, Object value) throws SocketException { in test_SocketOptions_setOption() argument
224 this.option = option; in test_SocketOptions_setOption()
/libcore/ojluni/src/main/java/java/nio/file/
DCopyMoveHelper.java52 for (CopyOption option: options) { in parse()
53 if (option == StandardCopyOption.REPLACE_EXISTING) { in parse()
57 if (option == LinkOption.NOFOLLOW_LINKS) { in parse()
61 if (option == StandardCopyOption.COPY_ATTRIBUTES) { in parse()
65 if (option == null) in parse()
67 throw new UnsupportedOperationException("'" + option + in parse()
84 CopyOption option = options[i]; in convertMoveToCopyOptions() local
85 if (option == StandardCopyOption.ATOMIC_MOVE) { in convertMoveToCopyOptions()
89 newOptions[i] = option; in convertMoveToCopyOptions()
DFileTreeWalker.java179 for (FileVisitOption option: options) { in FileTreeWalker()
181 switch (option) { in FileTreeWalker()
/libcore/ojluni/src/main/java/sun/security/util/
DDebug.java133 public static Debug getInstance(String option) in getInstance() argument
135 return getInstance(option, option); in getInstance()
142 public static Debug getInstance(String option, String prefix) in getInstance() argument
144 if (isOn(option)) { in getInstance()
157 public static boolean isOn(String option) in isOn() argument
165 return (args.indexOf(option) != -1); in isOn()
/libcore/luni/src/main/java/android/system/
DOs.java259 …(FileDescriptor fd, int level, int option) throws ErrnoException { return Libcore.os.getsockoptByt… in getsockoptByte() argument
262 …FileDescriptor fd, int level, int option) throws ErrnoException { return Libcore.os.getsockoptInAd… in getsockoptInAddr() argument
266 …t(FileDescriptor fd, int level, int option) throws ErrnoException { return Libcore.os.getsockoptIn… in getsockoptInt() argument
270 …FileDescriptor fd, int level, int option) throws ErrnoException { return Libcore.os.getsockoptLing… in getsockoptLinger() argument
279 …FileDescriptor fd, int level, int option) throws ErrnoException { return Libcore.os.getsockoptTime… in getsockoptTimeval() argument
282 …(FileDescriptor fd, int level, int option) throws ErrnoException { return Libcore.os.getsockoptUcr… in getsockoptUcred() argument
440 …c static int prctl(int option, long arg2, long arg3, long arg4, long arg5) throws ErrnoException {… in prctl() argument
590 …ileDescriptor fd, int level, int option, int value) throws ErrnoException { Libcore.os.setsockoptB… in setsockoptByte() argument
595 …eDescriptor fd, int level, int option, String value) throws ErrnoException { Libcore.os.setsockopt… in setsockoptIfreq() argument
600 …FileDescriptor fd, int level, int option, int value) throws ErrnoException { Libcore.os.setsockopt… in setsockoptInt() argument
[all …]
/libcore/luni/src/main/java/libcore/io/
DForwardingOs.java125 …Byte(FileDescriptor fd, int level, int option) throws ErrnoException { return os.getsockoptByte(fd… in getsockoptByte() argument
126 …ddr(FileDescriptor fd, int level, int option) throws ErrnoException { return os.getsockoptInAddr(f… in getsockoptInAddr() argument
127 …ptInt(FileDescriptor fd, int level, int option) throws ErrnoException { return os.getsockoptInt(fd… in getsockoptInt() argument
128 …ger(FileDescriptor fd, int level, int option) throws ErrnoException { return os.getsockoptLinger(f… in getsockoptLinger() argument
129 …val(FileDescriptor fd, int level, int option) throws ErrnoException { return os.getsockoptTimeval(… in getsockoptTimeval() argument
130 …cred(FileDescriptor fd, int level, int option) throws ErrnoException { return os.getsockoptUcred(f… in getsockoptUcred() argument
170 …public int prctl(int option, long arg2, long arg3, long arg4, long arg5) throws ErrnoException { r… in prctl() argument
204 …te(FileDescriptor fd, int level, int option, int value) throws ErrnoException { os.setsockoptByte(… in setsockoptByte() argument
205 …(FileDescriptor fd, int level, int option, String value) throws ErrnoException { os.setsockoptIfre… in setsockoptIfreq() argument
206 …Int(FileDescriptor fd, int level, int option, int value) throws ErrnoException { os.setsockoptInt(… in setsockoptInt() argument
[all …]
DOs.java101 public int getsockoptByte(FileDescriptor fd, int level, int option) throws ErrnoException; in getsockoptByte() argument
102 …public InetAddress getsockoptInAddr(FileDescriptor fd, int level, int option) throws ErrnoExceptio… in getsockoptInAddr() argument
103 public int getsockoptInt(FileDescriptor fd, int level, int option) throws ErrnoException; in getsockoptInt() argument
104 …public StructLinger getsockoptLinger(FileDescriptor fd, int level, int option) throws ErrnoExcepti… in getsockoptLinger() argument
105 …public StructTimeval getsockoptTimeval(FileDescriptor fd, int level, int option) throws ErrnoExcep… in getsockoptTimeval() argument
106 …public StructUcred getsockoptUcred(FileDescriptor fd, int level, int option) throws ErrnoException; in getsockoptUcred() argument
143 public int prctl(int option, long arg2, long arg3, long arg4, long arg5) throws ErrnoException; in prctl() argument
173 …public void setsockoptByte(FileDescriptor fd, int level, int option, int value) throws ErrnoExcept… in setsockoptByte() argument
174 …public void setsockoptIfreq(FileDescriptor fd, int level, int option, String value) throws ErrnoEx… in setsockoptIfreq() argument
175 …public void setsockoptInt(FileDescriptor fd, int level, int option, int value) throws ErrnoExcepti… in setsockoptInt() argument
[all …]
DLinux.java99 … public native int getsockoptByte(FileDescriptor fd, int level, int option) throws ErrnoException; in getsockoptByte() argument
100 …public native InetAddress getsockoptInAddr(FileDescriptor fd, int level, int option) throws ErrnoE… in getsockoptInAddr() argument
101 public native int getsockoptInt(FileDescriptor fd, int level, int option) throws ErrnoException; in getsockoptInt() argument
102 …public native StructLinger getsockoptLinger(FileDescriptor fd, int level, int option) throws Errno… in getsockoptLinger() argument
103 …public native StructTimeval getsockoptTimeval(FileDescriptor fd, int level, int option) throws Err… in getsockoptTimeval() argument
104 …public native StructUcred getsockoptUcred(FileDescriptor fd, int level, int option) throws ErrnoEx… in getsockoptUcred() argument
137 …public native int prctl(int option, long arg2, long arg3, long arg4, long arg5) throws ErrnoExcept… in prctl() argument
247 …public native void setsockoptByte(FileDescriptor fd, int level, int option, int value) throws Errn… in setsockoptByte() argument
248 …public native void setsockoptIfreq(FileDescriptor fd, int level, int option, String value) throws … in setsockoptIfreq() argument
249 …public native void setsockoptInt(FileDescriptor fd, int level, int option, int value) throws Errno… in setsockoptInt() argument
[all …]
DIoBridge.java300 public static Object getSocketOption(FileDescriptor fd, int option) throws SocketException { in getSocketOption() argument
302 return getSocketOptionErrno(fd, option); in getSocketOption()
308 …private static Object getSocketOptionErrno(FileDescriptor fd, int option) throws ErrnoException, S… in getSocketOptionErrno() argument
309 switch (option) { in getSocketOptionErrno()
356 throw new SocketException("Unknown socket option: " + option); in getSocketOptionErrno()
372 …public static void setSocketOption(FileDescriptor fd, int option, Object value) throws SocketExcep… in setSocketOption() argument
374 setSocketOptionErrno(fd, option, value); in setSocketOption()
380 …private static void setSocketOptionErrno(FileDescriptor fd, int option, Object value) throws Errno… in setSocketOptionErrno() argument
381 switch (option) { in setSocketOptionErrno()
460 int op = (option == JAVA_MCAST_JOIN_GROUP) ? MCAST_JOIN_GROUP : MCAST_LEAVE_GROUP; in setSocketOptionErrno()
[all …]
/libcore/ojluni/src/main/java/sun/net/
DExtendedOptionsImpl.java59 public static void checkSetOptionPermission(SocketOption<?> option) { in checkSetOptionPermission() argument
64 String check = "setOption." + option.name(); in checkSetOptionPermission()
68 public static void checkGetOptionPermission(SocketOption<?> option) { in checkGetOptionPermission() argument
73 String check = "getOption." + option.name(); in checkGetOptionPermission()
/libcore/ojluni/annotations/hiddenapi/sun/security/util/
DDebug.java37 public static sun.security.util.Debug getInstance(java.lang.String option) { in getInstance() argument
42 java.lang.String option, java.lang.String prefix) { in getInstance() argument
46 public static boolean isOn(java.lang.String option) { in isOn() argument
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixCopyFile.java67 for (CopyOption option: options) { in fromCopyOptions()
68 if (option == StandardCopyOption.REPLACE_EXISTING) { in fromCopyOptions()
72 if (option == LinkOption.NOFOLLOW_LINKS) { in fromCopyOptions()
76 if (option == StandardCopyOption.COPY_ATTRIBUTES) { in fromCopyOptions()
85 if (option == ExtendedCopyOption.INTERRUPTIBLE) { in fromCopyOptions()
89 if (option == null) in fromCopyOptions()
98 for (CopyOption option: options) { in fromMoveOptions()
99 if (option == StandardCopyOption.ATOMIC_MOVE) { in fromMoveOptions()
103 if (option == StandardCopyOption.REPLACE_EXISTING) { in fromMoveOptions()
107 if (option == LinkOption.NOFOLLOW_LINKS) { in fromMoveOptions()
[all …]
DUnixChannelFactory.java70 for (OpenOption option: options) { in toFlags()
71 if (option instanceof StandardOpenOption) { in toFlags()
72 switch ((StandardOpenOption)option) { in toFlags()
87 if (option == LinkOption.NOFOLLOW_LINKS && O_NOFOLLOW != 0) { in toFlags()
91 if (option == null) in toFlags()
93 throw new UnsupportedOperationException(option + " not supported"); in toFlags()
DUtil.java125 for (LinkOption option: options) { in followLinks()
126 if (option == LinkOption.NOFOLLOW_LINKS) { in followLinks()
128 } else if (option == null) { in followLinks()
/libcore/ojluni/src/main/java/jdk/net/
DSockets.java114 SocketOption<T> option, T value) throws IOException in invokeSet() argument
117 method.invoke(null, socket, option, value); in invokeSet()
132 Method method, Object socket, SocketOption<T> option) throws IOException in invokeGet() argument
135 return (T)method.invoke(null, socket, option); in invokeGet()
346 private static boolean isSupported(Class<?> type, SocketOption<?> option) { in isSupported() argument
348 return options.contains(option); in isSupported()
/libcore/tools/testmapping/
Dsave_logs.py103 for (index, option) in enumerate(options):
104 print('%d: %s' % (index + 1, option))
/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/test/java/libcore/java/nio/file/
DFilesSetup.java147 static void writeToFile(Path file, String data, OpenOption... option) throws IOException { in writeToFile() argument
148 OutputStream os = Files.newOutputStream(file, option); in writeToFile()
DFiles2Test.java609 Set<FileVisitOption> option = new HashSet<>(); in test_walkFileTree$Path$Set$int$FileVisitor_symbolicLinkFollow() local
610 option.add(FileVisitOption.FOLLOW_LINKS); in test_walkFileTree$Path$Set$int$FileVisitor_symbolicLinkFollow()
611 Files.walkFileTree(file2, option, 50, new TestFileVisitor(dirMap, option)); in test_walkFileTree$Path$Set$int$FileVisitor_symbolicLinkFollow()
719 Set<FileVisitOption> option = new HashSet<>(); in test_walkFileTree_negativeDepth() local
720 option.add(FileVisitOption.FOLLOW_LINKS); in test_walkFileTree_negativeDepth()
722 Files.walkFileTree(rootDir, option, -1, in test_walkFileTree_negativeDepth()
762 Set<FileVisitOption> option = new HashSet<>(); in test_walkFileTree_maximumDepth() local
763 option.add(FileVisitOption.FOLLOW_LINKS); in test_walkFileTree_maximumDepth()
764 Files.walkFileTree(rootDir, option, 2, new Files2Test.TestFileVisitor(dirMap)); in test_walkFileTree_maximumDepth()
814 Set<FileVisitOption> option = new HashSet<>(); in test_walkFileTree$Path$FileVisitor_FileSystemLoopException() local
[all …]
/libcore/luni/src/main/native/
Dlibcore_io_Linux.cpp1463 static jint Linux_getsockoptByte(JNIEnv* env, jobject, jobject javaFd, jint level, jint option) { in Linux_getsockoptByte() argument
1467 …throwIfMinusOne(env, "getsockopt", TEMP_FAILURE_RETRY(getsockopt(fd, level, option, &result, &size… in Linux_getsockoptByte()
1471 static jobject Linux_getsockoptInAddr(JNIEnv* env, jobject, jobject javaFd, jint level, jint option in Linux_getsockoptInAddr() argument
1478 int rc = TEMP_FAILURE_RETRY(getsockopt(fd, level, option, &sa->sin_addr, &size)); in Linux_getsockoptInAddr()
1486 static jint Linux_getsockoptInt(JNIEnv* env, jobject, jobject javaFd, jint level, jint option) { in Linux_getsockoptInt() argument
1490 …throwIfMinusOne(env, "getsockopt", TEMP_FAILURE_RETRY(getsockopt(fd, level, option, &result, &size… in Linux_getsockoptInt()
1494 static jobject Linux_getsockoptLinger(JNIEnv* env, jobject, jobject javaFd, jint level, jint option in Linux_getsockoptLinger() argument
1499 int rc = TEMP_FAILURE_RETRY(getsockopt(fd, level, option, &l, &size)); in Linux_getsockoptLinger()
1507 …ic jobject Linux_getsockoptTimeval(JNIEnv* env, jobject, jobject javaFd, jint level, jint option) { in Linux_getsockoptTimeval() argument
1512 int rc = TEMP_FAILURE_RETRY(getsockopt(fd, level, option, &tv, &size)); in Linux_getsockoptTimeval()
[all …]
/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.
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DRevocationChecker.java111 for (Option option : options) { in init()
112 switch (option) { in init()
120 "Unrecognized revocation parameter option: " + option); in init()
/libcore/
DLICENSE84 at your option offer warranty protection in exchange for a fee.
229 version", you have the option of following the terms and conditions either of
281 Software Foundation; either version 2 of the License, or (at your option)
/libcore/ojluni/
DNOTICE370 at your option offer warranty protection in exchange for a fee.
515 version", you have the option of following the terms and conditions either of
567 Software Foundation; either version 2 of the License, or (at your option)