/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | UnixChannelFactory.java | 69 Flags flags = new Flags(); in toFlags() local 73 case READ : flags.read = true; break; in toFlags() 74 case WRITE : flags.write = true; break; in toFlags() 75 case APPEND : flags.append = true; break; in toFlags() 76 case TRUNCATE_EXISTING : flags.truncateExisting = true; break; in toFlags() 77 case CREATE : flags.create = true; break; in toFlags() 78 case CREATE_NEW : flags.createNew = true; break; in toFlags() 79 case DELETE_ON_CLOSE : flags.deleteOnClose = true; break; in toFlags() 81 case SYNC : flags.sync = true; break; in toFlags() 82 case DSYNC : flags.dsync = true; break; in toFlags() [all …]
|
D | UnixCopyFile.java | 65 Flags flags = new Flags(); in fromCopyOptions() local 66 flags.followLinks = true; in fromCopyOptions() 69 flags.replaceExisting = true; in fromCopyOptions() 73 flags.followLinks = false; in fromCopyOptions() 79 flags.copyBasicAttributes = true; in fromCopyOptions() 80 flags.copyPosixAttributes = true; in fromCopyOptions() 81 flags.copyNonPosixAttributes = true; in fromCopyOptions() 82 flags.failIfUnableToCopyBasic = true; in fromCopyOptions() 86 flags.interruptible = true; in fromCopyOptions() 93 return flags; in fromCopyOptions() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/ |
D | PatternErrorTest.java | 42 int flags = 0; in testCompileErrors() local 43 Pattern.compile("foo", flags); in testCompileErrors() 46 flags |= Pattern.UNIX_LINES; in testCompileErrors() 47 flags |= Pattern.CASE_INSENSITIVE; in testCompileErrors() 48 flags |= Pattern.MULTILINE; in testCompileErrors() 49 flags |= Pattern.CANON_EQ; in testCompileErrors() 50 flags |= Pattern.COMMENTS; in testCompileErrors() 51 flags |= Pattern.DOTALL; in testCompileErrors() 52 flags |= Pattern.UNICODE_CASE; in testCompileErrors() 53 flags &= ~Pattern.CANON_EQ; // Android always throws given this flag. in testCompileErrors() [all …]
|
/libcore/luni/src/main/java/libcore/icu/ |
D | DateUtilsBridge.java | 66 /* package */ static String toSkeleton(Calendar calendar, int flags) { in toSkeleton() argument 67 return toSkeleton(calendar, calendar, flags); in toSkeleton() 70 /* package */ static String toSkeleton(Calendar startCalendar, Calendar endCalendar, int flags) { in toSkeleton() argument 71 if ((flags & FORMAT_ABBREV_ALL) != 0) { in toSkeleton() 72 flags |= FORMAT_ABBREV_MONTH | FORMAT_ABBREV_TIME | FORMAT_ABBREV_WEEKDAY; in toSkeleton() 76 if ((flags & FORMAT_NUMERIC_DATE) != 0) { in toSkeleton() 78 } else if ((flags & FORMAT_ABBREV_MONTH) != 0) { in toSkeleton() 83 if ((flags & FORMAT_ABBREV_WEEKDAY) != 0) { in toSkeleton() 88 if ((flags & FORMAT_24HOUR) != 0) { in toSkeleton() 90 } else if ((flags & FORMAT_12HOUR) != 0) { in toSkeleton() [all …]
|
D | DateIntervalFormat.java | 39 public static String formatDateRange(long startMs, long endMs, int flags, String olsonId) { in formatDateRange() argument 40 if ((flags & FORMAT_UTC) != 0) { in formatDateRange() 48 return formatDateRange(icuLocale, icuTimeZone, startMs, endMs, flags); in formatDateRange() 54 long startMs, long endMs, int flags) { in formatDateRange() argument 74 (flags & DateUtilsBridge.FORMAT_SHOW_TIME) == DateUtilsBridge.FORMAT_SHOW_TIME; in formatDateRange() 83 String skeleton = DateUtilsBridge.toSkeleton(startCalendar, endCalendar, flags); in formatDateRange()
|
/libcore/ojluni/src/main/java/java/nio/file/attribute/ |
D | AclEntry.java | 69 private final Set<AclEntryFlag> flags; field in AclEntry 78 Set<AclEntryFlag> flags) in AclEntry() argument 83 this.flags = flags; in AclEntry() 102 private Set<AclEntryFlag> flags; field in AclEntry.Builder 107 Set<AclEntryFlag> flags) in Builder() argument 109 assert perms != null && flags != null; in Builder() 113 this.flags = flags; in Builder() 131 return new AclEntry(type, who, perms, flags); in build() 225 public Builder setFlags(Set<AclEntryFlag> flags) { in setFlags() argument 226 if (flags.isEmpty()) { in setFlags() [all …]
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | StatelessTestOp.java | 33 int flags = op.opGetFlags(); in chain() local 36 … return new ReferencePipeline.StatelessOp<Object, T>(upstream, op.inputShape(), flags) { in chain() 37 public Sink opWrapSink(int flags, Sink<T> sink) { in chain() 38 return op.opWrapSink(flags, isParallel(), sink); in chain() 42 return new IntPipeline.StatelessOp<Object>(upstream, op.inputShape(), flags) { in chain() 43 public Sink opWrapSink(int flags, Sink sink) { in chain() 44 return op.opWrapSink(flags, isParallel(), sink); in chain() 48 return new LongPipeline.StatelessOp<Object>(upstream, op.inputShape(), flags) { in chain() 50 public Sink opWrapSink(int flags, Sink sink) { in chain() 51 return op.opWrapSink(flags, isParallel(), sink); in chain() [all …]
|
D | TestFlagExpectedOp.java | 32 final int flags; field in TestFlagExpectedOp.Builder 39 Builder(int flags) { in Builder() argument 40 this.flags = flags; in Builder() 64 return new TestFlagExpectedOp<>(flags, known, preserve, notKnown, shape); in build() 73 TestFlagExpectedOp(int flags, in TestFlagExpectedOp() argument 77 this(flags, known, preserve, notKnown, StreamShape.REFERENCE); in TestFlagExpectedOp() 80 TestFlagExpectedOp(int flags, in TestFlagExpectedOp() argument 85 super(flags); in TestFlagExpectedOp() 104 public Sink<T> opWrapSink(int flags, boolean parallel, Sink upstream) { in opWrapSink() argument 105 assertFlags(flags); in opWrapSink() [all …]
|
D | FlagDeclaringOp.java | 30 private final int flags; field in FlagDeclaringOp 33 public FlagDeclaringOp(int flags) { in FlagDeclaringOp() argument 34 this(flags, StreamShape.REFERENCE); in FlagDeclaringOp() 37 public FlagDeclaringOp(int flags, StreamShape shape) { in FlagDeclaringOp() argument 38 this.flags = flags; in FlagDeclaringOp() 54 return flags; in opGetFlags() 58 public Sink<T> opWrapSink(int flags, boolean parallel, Sink sink) { in opWrapSink() argument
|
D | StatefulTestOp.java | 40 public Sink opWrapSink(int flags, Sink sink) { in chain() 41 return op.opWrapSink(flags, isParallel(), sink); in chain() 60 public Sink opWrapSink(int flags, Sink sink) { in chain() 61 return op.opWrapSink(flags, isParallel(), sink); in chain() 80 public Sink opWrapSink(int flags, Sink sink) { in chain() 81 return op.opWrapSink(flags, isParallel(), sink); in chain() 100 public Sink opWrapSink(int flags, Sink sink) { in chain() 101 return op.opWrapSink(flags, isParallel(), sink); in chain() 127 Sink<E> opWrapSink(int flags, boolean parallel, Sink<E> sink);
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | StatelessTestOp.java | 41 int flags = op.opGetFlags(); in chain() local 44 … return new ReferencePipeline.StatelessOp<Object, T>(upstream, op.inputShape(), flags) { in chain() 46 public Sink opWrapSink(int flags, Sink<T> sink) { in chain() 47 return op.opWrapSink(flags, isParallel(), sink); in chain() 51 return new IntPipeline.StatelessOp<Object>(upstream, op.inputShape(), flags) { in chain() 53 public Sink opWrapSink(int flags, Sink sink) { in chain() 54 return op.opWrapSink(flags, isParallel(), sink); in chain() 58 return new LongPipeline.StatelessOp<Object>(upstream, op.inputShape(), flags) { in chain() 60 public Sink opWrapSink(int flags, Sink sink) { in chain() 61 return op.opWrapSink(flags, isParallel(), sink); in chain() [all …]
|
D | TestFlagExpectedOp.java | 33 final int flags; field in TestFlagExpectedOp.Builder 40 Builder(int flags) { in Builder() argument 41 this.flags = flags; in Builder() 65 return new TestFlagExpectedOp<>(flags, known, preserve, notKnown, shape); in build() 74 TestFlagExpectedOp(int flags, in TestFlagExpectedOp() argument 78 this(flags, known, preserve, notKnown, StreamShape.REFERENCE); in TestFlagExpectedOp() 81 TestFlagExpectedOp(int flags, in TestFlagExpectedOp() argument 86 super(flags); in TestFlagExpectedOp() 105 public Sink<T> opWrapSink(int flags, boolean parallel, Sink upstream) { in opWrapSink() argument 106 assertFlags(flags); in opWrapSink() [all …]
|
D | FlagDeclaringOp.java | 33 private final int flags; field in FlagDeclaringOp 36 public FlagDeclaringOp(int flags) { in FlagDeclaringOp() argument 37 this(flags, StreamShape.REFERENCE); in FlagDeclaringOp() 40 public FlagDeclaringOp(int flags, StreamShape shape) { in FlagDeclaringOp() argument 41 this.flags = flags; in FlagDeclaringOp() 57 return flags; in opGetFlags() 61 public Sink<T> opWrapSink(int flags, boolean parallel, Sink sink) { in opWrapSink() argument
|
D | StatefulTestOp.java | 41 public Sink opWrapSink(int flags, Sink sink) { in chain() 42 return op.opWrapSink(flags, isParallel(), sink); in chain() 61 public Sink opWrapSink(int flags, Sink sink) { in chain() 62 return op.opWrapSink(flags, isParallel(), sink); in chain() 81 public Sink opWrapSink(int flags, Sink sink) { in chain() 82 return op.opWrapSink(flags, isParallel(), sink); in chain() 101 public Sink opWrapSink(int flags, Sink sink) { in chain() 102 return op.opWrapSink(flags, isParallel(), sink); in chain() 128 Sink<E> opWrapSink(int flags, boolean parallel, Sink<E> sink);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | FormatFlagsConversionMismatchExceptionTest.java | 47 String flags = "MYTESTFLAGS"; in test_getFlags() local 50 flags, conversion); in test_getFlags() 51 assertEquals(flags, formatFlagsConversionMismatchException.getFlags()); in test_getFlags() 58 String flags = "MYTESTFLAGS"; in test_getConversion() local 61 flags, conversion); in test_getConversion() 71 String flags = "MYTESTFLAGS"; in test_getMessage() local 74 flags, conversion); in test_getMessage()
|
D | IllegalFormatFlagsExceptionTest.java | 45 String flags = "TESTFLAGS"; in test_getFlags() local 47 flags); in test_getFlags() 48 assertEquals(flags, illegalFormatFlagsException.getFlags()); in test_getFlags() 55 String flags = "TESTFLAGS"; in test_getMessage() local 57 flags); in test_getMessage()
|
/libcore/ojluni/src/main/java/java/util/ |
D | UnknownFormatFlagsException.java | 41 private String flags; field in UnknownFormatFlagsException 52 this.flags = f; in UnknownFormatFlagsException() 61 return flags; in getFlags() 66 return "Flags = " + flags; in getMessage()
|
D | IllegalFormatFlagsException.java | 41 private String flags; field in IllegalFormatFlagsException 52 this.flags = f; in IllegalFormatFlagsException() 61 return flags; in getFlags() 65 return "Flags = '" + flags + "'"; in getMessage()
|
D | DuplicateFormatFlagsException.java | 42 private String flags; field in DuplicateFormatFlagsException 53 this.flags = f; in DuplicateFormatFlagsException() 62 return flags; in getFlags() 66 return String.format("Flags = '%s'", flags); in getMessage()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | StreamOpFlag.java | 496 public boolean isKnown(int flags) { in isKnown() argument 497 return (flags & preserve) == set; in isKnown() 508 public boolean isCleared(int flags) { in isCleared() argument 509 return (flags & preserve) == clear; in isCleared() 519 public boolean isPreserved(int flags) { in isPreserved() argument 520 return (flags & preserve) == preserve; in isPreserved() 656 private static int getMask(int flags) { in getMask() argument 657 return (flags == 0) in getMask() 659 : ~(flags | ((FLAG_MASK_IS & flags) << 1) | ((FLAG_MASK_NOT & flags) >> 1)); in getMask()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | NetworkInterfaceTest.java | 135 String flags = nif.isUp() ? "UP" : "DOWN"; in testDumpAll() local 137 flags += " LOOPBACK"; in testDumpAll() 140 flags += " PTP"; in testDumpAll() 143 flags += " VIRTUAL"; in testDumpAll() 146 flags += " MULTICAST"; in testDumpAll() 148 flags += " MTU=" + nif.getMTU(); in testDumpAll() 151 flags += " HWADDR="; in testDumpAll() 154 flags += ":"; in testDumpAll() 156 flags += String.format("%02x", mac[i]); in testDumpAll() 159 System.err.println(flags); in testDumpAll() [all …]
|
/libcore/luni/src/test/java/libcore/libcore/icu/ |
D | DateIntervalFormatTest.java | 184 int flags = FORMAT_SHOW_DATE | FORMAT_ABBREV_ALL; in test8862241() local 185 …assertEquals("Jan 19, 2042 – Oct 4, 2046", formatDateRange(l, tz, jan_19_2042, oct_4_2046, flags)); in test8862241() 193 int flags = FORMAT_SHOW_DATE | FORMAT_ABBREV_ALL | FORMAT_SHOW_TIME | FORMAT_24HOUR; in test10089890() local 196 …ssertEquals("Jan 1, 1970, 00:00 – Jan 2, 1970, 00:00", formatDateRange(l, utc, 0, DAY + 1, flags)); in test10089890() 198 …sertEquals("Dec 31, 1969, 16:00 – Jan 1, 1970, 16:00", formatDateRange(l, pacific, 0, DAY, flags)); in test10089890() 245 int flags = FORMAT_SHOW_DATE | FORMAT_SHOW_WEEKDAY; in test10560853_when_time_not_displayed() local 249 … assertEquals("Thursday, January 1, 1970", formatDateRange(l, utc, midnight, midnightNext, flags)); in test10560853_when_time_not_displayed() 253 …sday, January 1 – Friday, January 2, 1970", formatDateRange(l, utc, midnight, nextMorning, flags)); in test10560853_when_time_not_displayed() 257 …day, January 1 – Friday, January 2, 1970", formatDateRange(l, utc, midnight, nextMidnight, flags)); in test10560853_when_time_not_displayed() 266 int flags = FORMAT_SHOW_TIME | FORMAT_24HOUR | FORMAT_SHOW_DATE; in test10560853_for_single_day_events() local [all …]
|
/libcore/dalvik/src/main/java/dalvik/system/ |
D | VMDebug.java | 192 …public static void startMethodTracing(String traceFileName, int bufferSize, int flags, boolean sam… in startMethodTracing() argument 193 …startMethodTracingFilename(traceFileName, checkBufferSize(bufferSize), flags, samplingEnabled, int… in startMethodTracing() 202 int flags, boolean samplingEnabled, int intervalUs) { in startMethodTracing() argument 203 startMethodTracing(traceFileName, fd, bufferSize, flags, samplingEnabled, intervalUs, in startMethodTracing() 215 int flags, boolean samplingEnabled, int intervalUs, in startMethodTracing() argument 220 startMethodTracingFd(traceFileName, fd.getInt$(), checkBufferSize(bufferSize), flags, in startMethodTracing() 230 …public static void startMethodTracingDdms(int bufferSize, int flags, boolean samplingEnabled, int … in startMethodTracingDdms() argument 231 startMethodTracingDdmsImpl(checkBufferSize(bufferSize), flags, samplingEnabled, intervalUs); in startMethodTracingDdms() local 245 …private static native void startMethodTracingDdmsImpl(int bufferSize, int flags, boolean samplingE… in startMethodTracingDdmsImpl() argument 247 int flags, boolean samplingEnabled, int intervalUs, boolean streamingOutput); in startMethodTracingFd() argument [all …]
|
/libcore/luni/src/main/java/libcore/io/ |
D | Linux.java | 90 public native String getnameinfo(InetAddress address, int flags) throws GaiException; in getnameinfo() argument 124 public native FileDescriptor memfd_create(String name, int flags) throws ErrnoException; in memfd_create() argument 129 …public native long mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long… in mmap() argument 130 public native void msync(long address, long byteCount, int flags) throws ErrnoException; in msync() argument 133 public native FileDescriptor open(String path, int flags, int mode) throws ErrnoException; in open() argument 134 public native FileDescriptor[] pipe2(int flags) throws ErrnoException; in pipe2() argument 195 …public int recvfrom(FileDescriptor fd, ByteBuffer buffer, int flags, InetSocketAddress srcAddress)… in recvfrom() argument 200 … bytesReceived = recvfromBytes(fd, buffer, position, buffer.remaining(), flags, srcAddress); in recvfrom() 202 …ray(buffer), NioUtils.unsafeArrayOffset(buffer) + position, buffer.remaining(), flags, srcAddress); in recvfrom() 208 …public int recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, Ine… in recvfrom() argument [all …]
|
D | BlockGuardOs.java | 248 @Override public FileDescriptor open(String path, int flags, int mode) throws ErrnoException { in open() argument 251 if ((flags & O_ACCMODE) != O_RDONLY) { in open() 254 return super.open(path, flags, mode); in open() 328 …@Override public int recvfrom(FileDescriptor fd, ByteBuffer buffer, int flags, InetSocketAddress s… in recvfrom() argument 330 return super.recvfrom(fd, buffer, flags, srcAddress); in recvfrom() 333 …vfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetSocketAddress… in recvfrom() argument 335 return super.recvfrom(fd, bytes, byteOffset, byteCount, flags, srcAddress); in recvfrom() 358 …@Override public int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddre… in sendto() argument 360 return super.sendto(fd, buffer, flags, inetAddress, port); in sendto() 363 …endto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetA… in sendto() argument [all …]
|