/libcore/luni/src/main/java/java/util/regex/ |
H A D | MatchResultImpl.java | 10 * Unless required by applicable law or agreed to in writing, software 59 int to = offsets[(group * 2) + 1]; 60 if (from == -1 || to == -1) { 63 return text.substring(from, to);
|
H A D | Matcher.java | 10 * Unless required by applicable law or agreed to in writing, software 20 * The result of applying a {@code Pattern} to a given input. See {@link Pattern} for 83 * the pattern to use. 85 * the input to use. 94 * match to a given {@link StringBuffer}. The literal part is exactly the 97 * {@link #appendTail(StringBuffer)} to walk through the input and replace 101 * the {@code StringBuffer} to append to. 117 * Internal helper method to append a given string to [all...] |
/libcore/luni/src/main/java/java/util/concurrent/ |
H A D | CopyOnWriteArrayList.java | 10 * Unless required by applicable law or agreed to in writing, software 45 * copy of the list's contents. It is always safe to iterate this list, but 65 * writes to this field must be atomic; it is an error to modify the 66 * contents of an array after it has been assigned to this field. 73 * Maintainers should be careful to read this field only once in 74 * non-blocking read methods. Write methods must be synchronized to avoid 129 static boolean containsAll(Collection<?> collection, Object[] snapshot, int from, int to) { argument 131 if (indexOf(o, snapshot, from, to) == -1) { 156 * occurrence that is before {@code to} 160 lastIndexOf(E object, int to) argument 214 subList(int from, int to) argument 370 removeOrRetain(Collection<?> collection, boolean retain, int from, int to) argument 417 removeRange(int from, int to) argument 424 lastIndexOf(Object o, Object[] data, int from, int to) argument 441 indexOf(Object o, Object[] data, int from, int to) argument 484 CowSubList(Object[] expectedElements, int from, int to) argument 552 subList(int from, int to) argument 655 private final int to; field in class:CopyOnWriteArrayList.Slice 657 Slice(Object[] expectedElements, int from, int to) argument 695 private final int to; field in class:CopyOnWriteArrayList.CowIterator 698 CowIterator(Object[] snapshot, int from, int to) argument [all...] |
/libcore/ |
H A D | Docs.mk | 2 # List of libcore directories to include in documentation. 14 # Note dalvik/system is non-recursive to exclude dalvik.system.profiler 16 # $(1): directory for search (to support use from frameworks/base)
|
H A D | NativeCode.mk | 10 # Unless required by applicable law or agreed to in writing, software 24 # These two definitions are used to help sanity check what's put in 31 # free to append to LOCAL_SRC_FILES, LOCAL_C_INCLUDES, 35 # $(1): directory containing the makefile to include 51 # we aren't quite defining a new rule yet, to make sure that the
|
H A D | Android.mk | 10 # Unless required by applicable law or agreed to in writing, software 20 # Include the definitions to build the Java code. 27 # Include the definitions to build the native code.
|
H A D | JavaLibrary.mk | 10 # Unless required by applicable law or agreed to in writing, software 72 # Definitions to make the core library. 105 # This one's tricky. One of our tests needs to have a 107 # allow us to submit such a file. So we create it here 126 # Definitions to make the core library.
|
H A D | CaCerts.mk | 10 # Unless required by applicable law or agreed to in writing, software
|
/libcore/luni/src/main/java/java/util/ |
H A D | TreeMap.java | 10 * Unless required by applicable law or agreed to in writing, software 36 * <li>User supplied comparators must be able to compare any pair of keys in 42 * compareTo()} must be able to compare each key with any other key in 69 @SuppressWarnings("unchecked") // to avoid Comparable<Comparable<Comparable<...>>> 98 * TreeMap} constructor overloads are ambiguous, prefer to construct a map 116 * @param comparator the comparator to order elements with, or {@code null} to use the natural 135 * are ambiguous, prefer to construct a map and populate it in two steps: 215 * @param ascending false to flip; true to retur 697 subMap(K from, boolean fromInclusive, K to, boolean toInclusive) argument 707 headMap(K to, boolean inclusive) argument 1030 subSet(K from, boolean fromInclusive, K to, boolean toInclusive) argument 1038 headSet(K to, boolean inclusive) argument 1090 rightCap(Object to) argument 1100 private final transient K to; field in class:TreeMap.BoundedMap 1103 BoundedMap(boolean ascending, K from, Bound fromBound, K to, Bound toBound) argument 1404 subMap(K from, boolean fromInclusive, K to, boolean toInclusive) argument 1414 headMap(K to, boolean inclusive) argument 1432 subMap(K from, Bound fromBound, K to, Bound toBound) argument 1614 subSet(K from, boolean fromInclusive, K to, boolean toInclusive) argument 1622 headSet(K to, boolean inclusive) argument 1701 NavigableSubMap(TreeMap<K, V> delegate, K from, Bound fromBound, K to, Bound toBound) argument 1727 DescendingSubMap(TreeMap<K, V> delegate, K from, Bound fromBound, K to, Bound toBound) argument 1734 AscendingSubMap(TreeMap<K, V> delegate, K from, Bound fromBound, K to, Bound toBound) argument [all...] |
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
H A D | OpenSSLSocketImplWrapper.java | 2 * Licensed to the Apache Software Foundation (ASF) under one or more 5 * The ASF licenses this file to You under the Apache License, Version 2.0 11 * Unless required by applicable law or agreed to in writing, software 109 public void setSoTimeout(int to) throws SocketException { argument 110 socket.setSoTimeout(to); 111 super.setSoTimeout(to);
|
H A D | SSLSocketWrapper.java | 2 * Licensed to the Apache Software Foundation (ASF) under one or more 5 * The ASF licenses this file to You under the Apache License, Version 2.0 11 * Unless required by applicable law or agreed to in writing, software 130 public void setSoTimeout(int to) throws SocketException { argument 131 socket.setSoTimeout(to);
|
H A D | NativeCrypto.java | 10 * Unless required by applicable law or agreed to in writing, software 95 public static native int RSA_private_encrypt(int flen, byte[] from, byte[] to, int pkey, argument 98 public static native int RSA_public_decrypt(int flen, byte[] from, byte[] to, int pkey, argument 101 public static native int RSA_public_encrypt(int flen, byte[] from, byte[] to, int pkey, argument 104 public static native int RSA_private_decrypt(int flen, byte[] from, byte[] to, int pkey, argument 239 * cipher suite list to indicate secure renegotiation support and 240 * its absense means to send an empty TLS renegotiation info 243 * However, OpenSSL doesn't provide an API to give this level of 245 * the empty renegotiation info if TLS is used (as opposed to 246 * SSL). So we simply allow TLS_EMPTY_RENEGOTIATION_INFO_SCSV to [all...] |
/libcore/luni/src/main/java/java/io/ |
H A D | StreamTokenizer.java | 2 * Licensed to the Apache Software Foundation (ASF) under one or more 5 * The ASF licenses this file to You under the Apache License, Version 2.0 11 * Unless required by applicable law or agreed to in writing, software 70 * converted to an integer is stored in {@code ttype}. For a quoted string, 120 * Private constructor to initialize the default values according to the 127 * considered to be alphabetic. 133 * All byte values '\u0000' through '\u0020' are considered to be white 161 * the source stream from which to parse tokens. 180 * through '\u00FF' are considered to b [all...] |
/libcore/luni/src/main/java/java/math/ |
H A D | NativeBN.java | 10 * Unless required by applicable law or agreed to in writing, software 36 public static native boolean BN_copy(int to, int from); argument 38 // BIGNUM *BN_copy(BIGNUM *to, const BIGNUM *from); 75 // int BN_bn2bin(const BIGNUM *a, unsigned char *to);
|
/libcore/luni/src/main/native/ |
H A D | java_math_NativeBN.cpp | 10 * Unless required by applicable law or agreed to in writing, software 96 static jboolean NativeBN_BN_copy(JNIEnv* env, jclass, BIGNUM* to, BIGNUM* from) { argument 97 if (!twoValidHandles(env, to, from)) return JNI_FALSE; 98 return (BN_copy(to, from) != NULL); 178 // need to call this due to clear byte at top if avoiding 211 // Put bytes to the int array starting from the end of the byte array 267 // We need to apply two's complement:
|
H A D | org_apache_harmony_xnet_provider_jsse_NativeCrypto.cpp | 10 * Unless required by applicable law or agreed to in writing, software 218 * on failure. This means we need to tell our scoped pointers when we've transferred ownership, 322 * SSL_ERROR_NONE to probe with ERR_get_error 384 // Append each error as an additional line to the message. 444 * to do its thing. 448 * @param throwIfNull whether to throw if the SSL pointer is NULL 480 * Converts a Java byte[] to an OpenSSL BIGNUM, allocating the BIGNUM on the 496 jniThrowRuntimeException(env, "Conversion to BIGNUM failed"); 506 * Converts an OpenSSL BIGNUM to a Java byte[] array. 544 * suppose there are not many other ways to d [all...] |
H A D | libcore_io_Posix.cpp | 10 * Unless required by applicable law or agreed to in writing, software 71 * Used to retry networking system calls that can return EINTR. Unlike TEMP_FAILURE_RETRY, 109 // but let's try to stumble on... 133 // EAI_SYSTEM should mean "look at errno instead", but both glibc and bionic seem to 135 // but you'll get EAI_NONAME or EAI_NODATA. So we want our GaiException to have a 139 // Deliberately fall through to throw another exception... 335 // TODO: fix bionic to return 1024 like glibc. 424 // We need to do this before we can throw an IOException (http://b/3222087). 429 // Using TEMP_FAILURE_RETRY will either lead to EBADF or closing someone else's fd. 576 // Count results so we know how to siz 1057 const sockaddr* to = (javaInetAddress != NULL) ? reinterpret_cast<const sockaddr*>(&ss) : NULL; local [all...] |
/libcore/luni/src/test/java/tests/api/java/util/ |
H A D | VectorTest.java | 2 * Licensed to the Apache Software Foundation (ASF) under one or more 5 * The ASF licenses this file to You under the Apache License, Version 2.0 11 * Unless required by applicable law or agreed to in writing, software 90 assertEquals("Failed to inc capacity by proper amount", 140 assertTrue("Failed to add Object", tVector.get(45) == o); 141 assertTrue("Failed to fix-up existing indices", tVector.get(46) == prev); 146 assertNull("Failed to add null", tVector.get(50)); 147 assertTrue("Failed to fix-up existing indices after adding null", 173 assertTrue("Failed to add Object", tVector.lastElement() == o); 177 assertNull("Failed to ad 1156 removeRange(int from, int to) argument [all...] |
/libcore/xml/src/main/java/org/kxml2/io/ |
H A D | KXmlParser.java | 3 * Permission is hereby granted, free of charge, to any person obtaining a copy 4 * of this software and associated documentation files (the "Software"), to deal 6 * to use, copy, modify, merge, publish, distribute, sublicense, and/or 7 * sell copies of the Software, and to permit persons to whom the Software is 8 * furnished to do so, subject to the following conditions: 104 * and will not be parsed. There is no API to define default attributes 114 * string builder before the read buffer is overwritten. This is used to 185 * DOM, it is necessary to kee [all...] |