Home
last modified time | relevance | path

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

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/
DPatternErrorTest.java42 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/
DDateIntervalFormat.java66 public static String formatDateRange(long startMs, long endMs, int flags, String olsonId) { in formatDateRange() argument
67 if ((flags & FORMAT_UTC) != 0) { in formatDateRange()
71 return formatDateRange(Locale.getDefault(), tz, startMs, endMs, flags); in formatDateRange()
76 …ic static String formatDateRange(Locale locale, TimeZone tz, long startMs, long endMs, int flags) { in formatDateRange() argument
95 ((flags & FORMAT_SHOW_TIME) == 0 || dayDistance(startCalendar, endCalendar) <= 1)) { in formatDateRange()
100 String skeleton = toSkeleton(startCalendar, endCalendar, flags); in formatDateRange()
117 private static String toSkeleton(Calendar startCalendar, Calendar endCalendar, int flags) { in toSkeleton() argument
118 if ((flags & FORMAT_ABBREV_ALL) != 0) { in toSkeleton()
119 flags |= FORMAT_ABBREV_MONTH | FORMAT_ABBREV_TIME | FORMAT_ABBREV_WEEKDAY; in toSkeleton()
123 if ((flags & FORMAT_NUMERIC_DATE) != 0) { in toSkeleton()
[all …]
DNativeIDN.java20 public static String toASCII(String s, int flags) { in toASCII() argument
21 return convert(s, flags, true); in toASCII()
24 public static String toUnicode(String s, int flags) { in toUnicode() argument
26 return convert(s, flags, false); in toUnicode()
35 private static String convert(String s, int flags, boolean toAscii) { in convert() argument
39 return convertImpl(s, flags, toAscii); in convert()
41 private static native String convertImpl(String s, int flags, boolean toAscii); in convertImpl() argument
/libcore/luni/src/main/java/java/util/
DIllegalFormatFlagsException.java30 private final String flags; field in IllegalFormatFlagsException
39 public IllegalFormatFlagsException(String flags) { in IllegalFormatFlagsException() argument
40 if (flags == null) { in IllegalFormatFlagsException()
43 this.flags = flags; in IllegalFormatFlagsException()
52 return flags; in getFlags()
57 return flags; in getMessage()
DUnknownFormatFlagsException.java29 private final String flags; field in UnknownFormatFlagsException
42 flags = f; in UnknownFormatFlagsException()
51 return flags; in getFlags()
56 return "Flags: " + flags; in getMessage()
DDuplicateFormatFlagsException.java29 private final String flags; field in DuplicateFormatFlagsException
42 flags = f; in DuplicateFormatFlagsException()
51 return flags; in getFlags()
56 return flags; in getMessage()
/libcore/luni/src/main/java/java/util/regex/
DPattern.java286 private final int flags; field in Pattern
354 public int flags() { in flags() method in Pattern
355 return flags; in flags()
373 … public static Pattern compile(String regularExpression, int flags) throws PatternSyntaxException { in compile() argument
374 return new Pattern(regularExpression, flags); in compile()
384 private Pattern(String pattern, int flags) throws PatternSyntaxException { in Pattern() argument
385 if ((flags & CANON_EQ) != 0) { in Pattern()
389 if ((flags & ~supportedFlags) != 0) { in Pattern()
390 throw new IllegalArgumentException("Unsupported flags: " + (flags & ~supportedFlags)); in Pattern()
393 this.flags = flags; in Pattern()
[all …]
/libcore/luni/src/main/java/org/apache/harmony/security/x509/
DReasonFlags.java70 private final boolean[] flags; field in ReasonFlags
75 public ReasonFlags(boolean[] flags) { in ReasonFlags() argument
76 this.flags = flags; in ReasonFlags()
82 for (int i=0; i<flags.length; i++) { in dumpValue()
83 if (flags[i]) { in dumpValue()
101 out.content = ((ReasonFlags) out.content).flags;
/libcore/dalvik/src/main/java/dalvik/system/
DVMDebug.java164 …public static void startMethodTracing(String traceFileName, int bufferSize, int flags, boolean sam… in startMethodTracing() argument
165 …startMethodTracingFilename(traceFileName, checkBufferSize(bufferSize), flags, samplingEnabled, int… in startMethodTracing()
173 …ethodTracing(String traceFileName, FileDescriptor fd, int bufferSize, int flags, boolean samplingE… in startMethodTracing() argument
177 …startMethodTracingFd(traceFileName, fd, checkBufferSize(bufferSize), flags, samplingEnabled, inter… in startMethodTracing()
185 …public static void startMethodTracingDdms(int bufferSize, int flags, boolean samplingEnabled, int … in startMethodTracingDdms() argument
186 startMethodTracingDdmsImpl(checkBufferSize(bufferSize), flags, samplingEnabled, intervalUs); in startMethodTracingDdms() local
200 …private static native void startMethodTracingDdmsImpl(int bufferSize, int flags, boolean samplingE… in startMethodTracingDdmsImpl() argument
201 …hodTracingFd(String traceFileName, FileDescriptor fd, int bufferSize, int flags, boolean samplingE… in startMethodTracingFd() argument
202 …void startMethodTracingFilename(String traceFileName, int bufferSize, int flags, boolean samplingE… in startMethodTracingFilename() argument
277 public static native void printLoadedClasses(int flags); in printLoadedClasses() argument
DDexFile.java97 private DexFile(String sourceName, String outputName, int flags) throws IOException { in DexFile() argument
111 mCookie = openDexFile(sourceName, outputName, flags); in DexFile()
142 int flags) throws IOException { in loadDex() argument
151 return new DexFile(sourcePathName, outputPathName, flags); in loadDex()
293 …private static long openDexFile(String sourceName, String outputName, int flags) throws IOExceptio… in openDexFile() argument
297 flags); in openDexFile()
308 private static native long openDexFileNative(String sourceName, String outputName, int flags); in openDexFileNative() argument
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DFormatFlagsConversionMismatchExceptionTest.java47 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()
DIllegalFormatFlagsExceptionTest.java45 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/benchmarks/src/benchmarks/regression/
DDateIntervalFormatBenchmark.java30 int flags = FORMAT_SHOW_DATE | FORMAT_SHOW_WEEKDAY; in timeDateIntervalFormat_formatDateRange_DATE() local
33 formatDateRange(l, utc, 0L, 0L, flags); in timeDateIntervalFormat_formatDateRange_DATE()
40 int flags = FORMAT_SHOW_TIME | FORMAT_24HOUR; in timeDateIntervalFormat_formatDateRange_TIME() local
43 formatDateRange(l, utc, 0L, 0L, flags); in timeDateIntervalFormat_formatDateRange_TIME()
50 int flags = FORMAT_SHOW_DATE | FORMAT_SHOW_WEEKDAY | FORMAT_SHOW_TIME | FORMAT_24HOUR; in timeDateIntervalFormat_formatDateRange_DATE_TIME() local
53 formatDateRange(l, utc, 0L, 0L, flags); in timeDateIntervalFormat_formatDateRange_DATE_TIME()
/libcore/luni/src/test/java/libcore/java/net/
DNetworkInterfaceTest.java99 String flags = nif.isUp() ? "UP" : "DOWN"; in testDumpAll() local
101 flags += " LOOPBACK"; in testDumpAll()
104 flags += " PTP"; in testDumpAll()
107 flags += " VIRTUAL"; in testDumpAll()
110 flags += " MULTICAST"; in testDumpAll()
112 flags += " MTU=" + nif.getMTU(); in testDumpAll()
115 flags += " HWADDR="; in testDumpAll()
118 flags += ":"; in testDumpAll()
120 flags += String.format("%02x", mac[i]); in testDumpAll()
123 System.err.println(flags); in testDumpAll()
/libcore/luni/src/main/java/java/net/
DIDN.java63 public static String toASCII(String input, int flags) { in toASCII() argument
64 return NativeIDN.toASCII(input, flags); in toASCII()
93 public static String toUnicode(String input, int flags) { in toUnicode() argument
94 return NativeIDN.toUnicode(input, flags); in toUnicode()
/libcore/luni/src/main/java/libcore/io/
DDropBox.java47 public void addData(String tag, byte[] data, int flags); in addData() argument
56 public void addData(String tag, byte[] data, int flags) { in addData() argument
65 public static void addData(String tag, byte[] data, int flags) { in addData() argument
66 getReporter().addData(tag, data, flags); in addData()
DPosix.java75 public native String getnameinfo(InetAddress address, int flags) throws GaiException; in getnameinfo() argument
105 …public native long mmap(long address, long byteCount, int prot, int flags, FileDescriptor fd, long… in mmap() argument
106 public native void msync(long address, long byteCount, int flags) throws ErrnoException; in msync() argument
109 public native FileDescriptor open(String path, int flags, int mode) throws ErrnoException; in open() argument
170 …public int recvfrom(FileDescriptor fd, ByteBuffer buffer, int flags, InetSocketAddress srcAddress)… in recvfrom() argument
175 … bytesReceived = recvfromBytes(fd, buffer, position, buffer.remaining(), flags, srcAddress); in recvfrom()
177 …ray(buffer), NioUtils.unsafeArrayOffset(buffer) + position, buffer.remaining(), flags, srcAddress); in recvfrom()
183 …public int recvfrom(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, Ine… in recvfrom() argument
185 return recvfromBytes(fd, bytes, byteOffset, byteCount, flags, srcAddress); in recvfrom()
187 …ytes(FileDescriptor fd, Object buffer, int byteOffset, int byteCount, int flags, InetSocketAddress… in recvfromBytes() argument
[all …]
DForwardingOs.java81 …String getnameinfo(InetAddress address, int flags) throws GaiException { return os.getnameinfo(add… in getnameinfo() argument
111 …eCount, int prot, int flags, FileDescriptor fd, long offset) throws ErrnoException { return os.mma… in mmap() argument
112 …oid msync(long address, long byteCount, int flags) throws ErrnoException { os.msync(address, byteC… in msync() argument
115 …ublic FileDescriptor open(String path, int flags, int mode) throws ErrnoException { return os.open… in open() argument
128 …Buffer buffer, int flags, InetSocketAddress srcAddress) throws ErrnoException, SocketException { r… in recvfrom() argument
129 …nt, int flags, InetSocketAddress srcAddress) throws ErrnoException, SocketException { return os.re… in recvfrom() argument
133 …uffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException… in sendto() argument
134 …t, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { return o… in sendto() argument
/libcore/luni/src/test/java/libcore/icu/
DDateIntervalFormatTest.java178 int flags = FORMAT_SHOW_DATE | FORMAT_ABBREV_ALL; in test8862241() local
179 …assertEquals("Jan 19, 2042 – Oct 4, 2046", formatDateRange(l, tz, jan_19_2042, oct_4_2046, flags)); in test8862241()
187 int flags = FORMAT_SHOW_DATE | FORMAT_ABBREV_ALL | FORMAT_SHOW_TIME | FORMAT_24HOUR; in test10089890() local
190 …ssertEquals("Jan 1, 1970, 00:00 – Jan 2, 1970, 00:00", formatDateRange(l, utc, 0, DAY + 1, flags)); in test10089890()
192 …sertEquals("Dec 31, 1969, 16:00 – Jan 1, 1970, 16:00", formatDateRange(l, pacific, 0, DAY, flags)); in test10089890()
239 int flags = FORMAT_SHOW_DATE | FORMAT_SHOW_WEEKDAY; in test10560853_when_time_not_displayed() local
243 … assertEquals("Thursday, January 1, 1970", formatDateRange(l, utc, midnight, midnightNext, flags)); in test10560853_when_time_not_displayed()
247 …sday, January 1 – Friday, January 2, 1970", formatDateRange(l, utc, midnight, nextMorning, flags)); in test10560853_when_time_not_displayed()
251 …day, January 1 – Friday, January 2, 1970", formatDateRange(l, utc, midnight, nextMidnight, flags)); in test10560853_when_time_not_displayed()
260 int flags = FORMAT_SHOW_TIME | FORMAT_24HOUR | FORMAT_SHOW_DATE; in test10560853_for_single_day_events() local
[all …]
/libcore/luni/src/main/java/java/text/
DBidi.java129 int flags = DIRECTION_DEFAULT_LEFT_TO_RIGHT; in Bidi() local
133 flags = DIRECTION_LEFT_TO_RIGHT; in Bidi()
135 flags = DIRECTION_RIGHT_TO_LEFT; in Bidi()
171 bidi = createUBiDi(text, 0, embeddings, 0, length, flags); in Bidi()
212 int paragraphLength, int flags) { in Bidi() argument
236 bidi = createUBiDi(text, textStart, embeddings, embStart, paragraphLength, flags); in Bidi()
259 public Bidi(String paragraph, int flags) { in Bidi() argument
261 (paragraph == null ? 0 : paragraph.length()), flags); in Bidi()
266 byte[] embeddings, int embStart, int paragraphLength, int flags) { in createUBiDi() argument
282 Bidi temp = new Bidi(text, textStart, null, 0, paragraphLength, flags); in createUBiDi()
[all …]
/libcore/libart/src/main/java/java/lang/reflect/
DAbstractMethod.java80 private static int fixMethodFlags(int flags) { in fixMethodFlags() argument
81 if ((flags & Modifier.ABSTRACT) != 0) { in fixMethodFlags()
82 flags &= ~Modifier.NATIVE; in fixMethodFlags()
84 flags &= ~Modifier.SYNCHRONIZED; in fixMethodFlags()
86 if ((flags & ACC_DECLARED_SYNCHRONIZED) != 0) { in fixMethodFlags()
87 flags |= Modifier.SYNCHRONIZED; in fixMethodFlags()
89 return flags & 0xffff; // mask out bits not used by Java in fixMethodFlags()
/libcore/luni/src/main/native/
Dlibcore_icu_NativeIDN.cpp35 static jstring NativeIDN_convertImpl(JNIEnv* env, jclass, jstring javaSrc, jint flags, jboolean toA… in NativeIDN_convertImpl() argument
43 ? uidna_IDNToASCII(src.get(), src.size(), &dst[0], sizeof(dst), flags, NULL, &status) in NativeIDN_convertImpl()
44 : uidna_IDNToUnicode(src.get(), src.size(), &dst[0], sizeof(dst), flags, NULL, &status); in NativeIDN_convertImpl()
Djava_util_regex_Pattern.cpp78 static jlong Pattern_compileImpl(JNIEnv* env, jclass, jstring javaRegex, jint flags) { in Pattern_compileImpl() argument
79 flags |= UREGEX_ERROR_ON_UNKNOWN_ESCAPES; in Pattern_compileImpl()
90 RegexPattern* result = RegexPattern::compile(regexString, flags, error, status); in Pattern_compileImpl()
/libcore/luni/src/main/java/android/system/
DOs.java166 …ng getnameinfo(InetAddress address, int flags) throws GaiException { return Libcore.os.getnameinfo… in getnameinfo() argument
280 …nt, int prot, int flags, FileDescriptor fd, long offset) throws ErrnoException { return Libcore.os… in mmap() argument
285 …msync(long address, long byteCount, int flags) throws ErrnoException { Libcore.os.msync(address, b… in msync() argument
300 …c FileDescriptor open(String path, int flags, int mode) throws ErrnoException { return Libcore.os.… in open() argument
365 …er buffer, int flags, InetSocketAddress srcAddress) throws ErrnoException, SocketException { retur… in recvfrom() argument
370 …int flags, InetSocketAddress srcAddress) throws ErrnoException, SocketException { return Libcore.o… in recvfrom() argument
390 …r buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { r… in sendto() argument
395 …nt flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { return Libco… in sendto() argument
/libcore/luni/src/main/java/java/util/zip/
DGZIPInputStream.java215 final byte flags = header[3]; in parseGzipHeader()
216 final boolean hcrc = (flags & FHCRC) != 0; in parseGzipHeader()
220 if ((flags & FEXTRA) != 0) { in parseGzipHeader()
238 if ((flags & FNAME) != 0) { in parseGzipHeader()
241 if ((flags & FCOMMENT) != 0) { in parseGzipHeader()

12