Searched defs:mode (Results 26 - 50 of 61) sorted by relevance

123

/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
H A DCipherThread.java34 private String mode = null; field in class:CipherThread
80 mode = getNextMode();
134 return mode;
138 return "Alg name:" + algName + " Key:" + keyLength + " Mode:" + mode +
/libcore/ojluni/src/main/java/java/util/jar/
H A DJarFile.java145 * <code>File</code> object in the specified mode. The mode argument
151 * @param mode the mode in which the file is to be opened
154 * if the <tt>mode</tt> argument is invalid
159 public JarFile(File file, boolean verify, int mode) throws IOException { argument
160 super(file, mode);
/libcore/ojluni/src/main/java/javax/net/ssl/
H A DSSLEngine.java130 * handshake in client or server mode, and so on). Once
132 * client/server mode, see below) will be used for
322 * #setUseClientMode(boolean)} configures the mode. Once the initial
1109 * @throws IllegalStateException if the client/server mode
1146 * @throws IllegalStateException if the client/server mode
1228 * @throws IllegalStateException if the client/server mode
1264 * @throws IllegalStateException if the client/server mode
1301 * @throws IllegalStateException if the client/server mode
1387 * @throws IllegalStateException if the client/server mode
1689 * @throws IllegalStateException if the client/server mode
1721 setUseClientMode(boolean mode) argument
[all...]
/libcore/ojluni/src/main/java/sun/nio/fs/
H A DUnixFileAttributeViews.java224 final void setMode(int mode) throws IOException { argument
228 chmod(file, mode);
232 fchmod(fd, mode);
296 private static final String MODE_NAME = "mode";
348 builder.add(MODE_NAME, attrs.mode());
H A DUnixFileAttributes.java100 int mode() { return st_mode; } method in class:UnixFileAttributes
H A DUnixNativeDispatcher.java66 * int open(const char* path, int oflag, mode_t mode)
68 static int open(UnixPath path, int flags, int mode) throws UnixException { argument
71 return open0(buffer.address(), flags, mode);
76 private static native int open0(long pathAddress, int flags, int mode) argument
80 * int openat(int dfd, const char* path, int oflag, mode_t mode)
82 static int openat(int dfd, byte[] path, int flags, int mode) throws UnixException { argument
85 return openat0(dfd, buffer.address(), flags, mode);
90 private static native int openat0(int dfd, long pathAddress, int flags, int mode) argument
99 * FILE* fopen(const char *filename, const char* mode);
101 static long fopen(UnixPath filename, String mode) throw argument
165 mknod(UnixPath path, int mode, long dev) argument
173 mknod0(long pathAddress, int mode, long dev) argument
211 mkdir(UnixPath path, int mode) argument
219 mkdir0(long pathAddress, int mode) argument
365 chmod(UnixPath path, int mode) argument
373 chmod0(long pathAddress, int mode) argument
379 fchmod(int fd, int mode) argument
[all...]
/libcore/ojluni/src/main/native/
H A DLinuxNativeDispatcher.c160 const char* mode = (const char*)jlong_to_ptr(modeAddress); local
163 fp = setmntent(path, mode);
H A DUnixFileSystem_md.c104 statMode(const char *path, int *mode) argument
108 *mode = sb.st_mode;
125 int mode; local
126 if (statMode(path, &mode)) {
127 int fmt = mode & S_IFMT;
142 int mode = 0; local
146 mode = F_OK;
149 mode = R_OK;
152 mode = W_OK;
155 mode
179 int mode; local
434 int mode; local
[all...]
H A Djava_util_zip_ZipFile.c88 jint mode, jlong lastModified,
97 if (mode & OPEN_READ) flag |= O_RDONLY;
99 //if (mode & OPEN_DELETE) flag |= JVM_O_DELETE;
87 ZipFile_open(JNIEnv *env, jclass cls, jstring name, jint mode, jlong lastModified, jboolean usemmap) argument
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DMySSLContextSpi.java146 public void setUseClientMode(boolean mode) { } argument
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/
H A DMySSLContextSpi.java144 public void setUseClientMode(boolean mode) { } argument
/libcore/ojluni/src/main/java/java/io/
H A DRandomAccessFile.java48 * created in read/write mode, then output operations are also available;
80 private int mode; field in class:RandomAccessFile
112 * <p> The <tt>mode</tt> argument specifies the access mode with which the
115 * href="#mode"><tt>RandomAccessFile(File,String)</tt></a> constructor.
121 * If the mode allows writing, the security manager's
127 * @param mode the access <a href="#mode">mode</a>
128 * @exception IllegalArgumentException if the mode argumen
148 RandomAccessFile(String name, String mode) argument
230 RandomAccessFile(File file, String mode) argument
[all...]
H A DObjectOutputStream.java150 * block-data mode. Calls to the ObjectOutputStream methods writeObject,
1719 * object writes any primitive data (since block data mode is not
1790 * Buffered output stream with two modes: in default mode, outputs data in
1791 * same format as DataOutputStream; in "block data" mode, outputs data
1812 /** block data mode */
1837 * Block data mode is turned off by default.
1845 * Sets block data mode to the given mode (true == on, false == off)
1846 * and returns the previous mode value. If the new mode i
1851 setBlockDataMode(boolean mode) argument
[all...]
/libcore/ojluni/src/main/java/java/util/zip/
H A DZipFile.java128 * <code>File</code> object in the specified mode. The mode argument
139 * @param mode the mode in which the file is to be opened
147 * @throws IllegalArgumentException if the <tt>mode</tt> argument is invalid
151 public ZipFile(File file, int mode) throws IOException { argument
152 this(file, mode, StandardCharsets.UTF_8);
173 * <code>File</code> object in the specified mode. The mode argument
181 * @param mode th
203 ZipFile(File file, int mode, Charset charset) argument
847 open(String name, int mode, long lastModified, boolean usemmap) argument
[all...]
/libcore/luni/src/main/java/libcore/io/
H A DBlockGuardOs.java66 @Override public boolean access(String path, int mode) throws ErrnoException { argument
68 return os.access(path, mode);
71 @Override public void chmod(String path, int mode) throws ErrnoException { argument
73 os.chmod(path, mode);
127 @Override public void fchmod(FileDescriptor fd, int mode) throws ErrnoException { argument
129 os.fchmod(fd, mode);
195 @Override public void mkdir(String path, int mode) throws ErrnoException { argument
197 os.mkdir(path, mode);
200 @Override public void mkfifo(String path, int mode) throws ErrnoException { argument
202 os.mkfifo(path, mode);
205 open(String path, int flags, int mode) argument
[all...]
H A DForwardingOs.java58 public boolean access(String path, int mode) throws ErrnoException { return os.access(path, mode); } argument
70 public void chmod(String path, int mode) throws ErrnoException { os.chmod(path, mode); } argument
80 public void fchmod(FileDescriptor fd, int mode) throws ErrnoException { os.fchmod(fd, mode); } argument
130 public void mkdir(String path, int mode) throws ErrnoException { os.mkdir(path, mode); } argument
131 public void mkfifo(String path, int mode) throws ErrnoException { os.mkfifo(path, mode); } argument
137 open(String path, int flags, int mode) argument
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DSimpleTimeZone.java103 * <em>mode</em>s to specify the time: {@link #WALL_TIME}, {@link
107 * milliseconds in the {@link #WALL_TIME} mode. In this case, the wall clock time
289 * <code>endTime</code>. The mode specifies either {@link #WALL_TIME wall
302 * @param startTime The daylight saving time starting time in the time mode
304 * @param startTimeMode The mode of the start time specified by startTime.
312 * @param endTime The daylight saving ending time in time time mode
314 * @param endTimeMode The mode of the end time specified by endTime
319 * time parameters are out of range for the start or end rule, or if a time mode
746 int mode, int year, int month, int dayOfMonth,
750 switch (mode) {
745 getTransition(BaseCalendar cal, BaseCalendar.Date cdate, int mode, int year, int month, int dayOfMonth, int dayOfWeek, int timeOfDay) argument
[all...]
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DSynchronousQueue.java99 * The (Lifo) stack is used for non-fair mode, and the (Fifo)
100 * queue for fair mode. The performance of the two is generally
111 * queues is that any operation can figure out which mode the
132 * the ones here use mode bits in nodes, leading to a number
218 * nodes (with FULFILLING bit set in mode) to reserve a spot
239 int mode; field in class:SynchronousQueue.TransferStack.SNode
240 // Note: item and mode fields don't need to be volatile
317 static SNode snode(SNode s, Object e, SNode next, int mode) { argument
319 s.mode = mode;
[all...]
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
H A DAbstractQueuedLongSynchronizer.java164 * Creates and enqueues node for current thread and given mode.
166 * @param mode Node.EXCLUSIVE for exclusive, Node.SHARED for shared
169 private Node addWaiter(Node mode) { argument
170 Node node = new Node(mode);
232 * Release action for shared mode -- signals successor and ensures
233 * propagation. (Note: For exclusive mode, release just amounts
268 * in shared mode, if so propagating if either propagate > 0 or
285 * The next node is waiting in shared mode,
416 * Acquires in exclusive uninterruptible mode for thread already in
444 * Acquires in exclusive interruptible mode
[all...]
H A DStampedLock.java42 * access. The state of a StampedLock consists of a version and mode.
56 * the lock is held in write mode, no read locks may be obtained,
66 * in write mode. Method {@link #validate} returns true if the lock
67 * has not been acquired in write mode since obtaining a given
68 * stamp. This mode can be thought of as an extremely weak version
70 * use of optimistic mode for short read-only code segments often
74 * validation. Fields read while in optimistic mode may be wildly
86 * #tryConvertToWriteLock} attempts to "upgrade" a mode, returning
87 * a valid write stamp if (1) already in writing mode (2) in reading
88 * mode an
314 final int mode; // RMODE or WMODE field in class:StampedLock.WNode
[all...]
H A DAbstractQueuedSynchronizer.java68 * mode and a <em>shared</em> mode. When acquired in exclusive mode,
69 * attempted acquires by other threads cannot succeed. Shared mode
72 * mechanical sense that when a shared mode acquire succeeds, the next
78 * only shared modes need not define the methods supporting the unused mode.
82 * supporting exclusive mode for which method {@link
149 * (Shared mode is similar but may involve cascading signals.)
381 /** Marker to indicate a node is waiting in shared mode */
383 /** Marker to indicate a node is waiting in exclusive mode */
635 addWaiter(Node mode) argument
[all...]
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DFileChannelImpl.java76 // File access mode (immutable)
301 // in append-mode then position is advanced to end before writing
895 public MappedByteBuffer map(MapMode mode, long position, long size) argument
899 if (mode == null)
911 if (mode == MapMode.READ_ONLY)
913 else if (mode == MapMode.READ_WRITE)
915 else if (mode == MapMode.PRIVATE)
918 if ((mode != MapMode.READ_ONLY) && !writable)
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
H A DRevocationChecker.java76 private Mode mode = Mode.PREFER_OCSP; field in class:RevocationChecker
125 // set mode, only end entity flag
127 mode = (rp.ocspEnabled) ? Mode.PREFER_OCSP : Mode.ONLY_CRLS;
132 mode = Mode.ONLY_CRLS;
134 mode = Mode.ONLY_OCSP;
137 mode = Mode.PREFER_CRLS;
360 switch (mode) {
377 if (mode == Mode.ONLY_OCSP || mode == Mode.ONLY_CRLS) {
381 if (mode
[all...]
/libcore/luni/src/main/native/
H A Dlibcore_icu_NativeConverter.cpp407 static UConverterFromUCallback getFromUCallback(int32_t mode) { argument
408 switch(mode) {
477 static UConverterToUCallback getToUCallback(int32_t mode) { argument
478 switch (mode) {
/libcore/luni/src/main/java/android/system/
H A DOs.java52 public static boolean access(String path, int mode) throws ErrnoException { return Libcore.os.access(path, mode); } argument
85 public static void chmod(String path, int mode) throws ErrnoException { Libcore.os.chmod(path, mode); } argument
132 public static void fchmod(FileDescriptor fd, int mode) throws ErrnoException { Libcore.os.fchmod(fd, mode); } argument
323 public static void mkdir(String path, int mode) throws ErrnoException { Libcore.os.mkdir(path, mode); } argument
328 public static void mkfifo(String path, int mode) throws ErrnoException { Libcore.os.mkfifo(path, mode); } argument
358 open(String path, int flags, int mode) argument
[all...]

Completed in 926 milliseconds

123