Searched refs:index (Results 51 - 75 of 215) sorted by relevance

123456789

/libcore/ojluni/src/main/java/java/time/zone/
H A DZoneRules.java500 int index = Arrays.binarySearch(savingsInstantTransitions, epochSec);
501 if (index < 0) {
503 index = -index - 2;
505 return wallOffsets[index + 1];
561 * In the case where there are two offsets, the earlier offset is returned at index 0
562 * and the later offset at index 1.
653 int index = Arrays.binarySearch(savingsLocalTransitions, dt);
654 if (index == -1) {
658 if (index <
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DAbstractCollectionTest.java144 int index;
147 return index < values.length;
151 return values[index++];
155 removed[index - 1] = values[index - 1];
187 int index;
190 return index < values.length;
194 return values[index++];
198 removed[index - 1] = values[index
[all...]
H A DAbstractSequentialListTest.java46 public ListIterator<E> listIterator(int index) { argument
47 return l.listIterator(index);
154 public ListIterator listIterator(int index) {
187 public ListIterator listIterator(int index) {
238 public ListIterator listIterator(int index) {
258 public ListIterator listIterator(int index) {
311 public ListIterator listIterator(int index) {
312 currPos = index;
378 public ListIterator listIterator(int index) {
393 public ListIterator listIterator(int index) {
[all...]
/libcore/json/src/test/java/org/json/
H A DSelfUseTest.java78 @Override public JSONArray put(int index, Object value) throws JSONException {
80 return super.put(index, value);
82 @Override public Object get(int index) throws JSONException {
84 return super.get(index);
86 @Override public Object opt(int index) {
88 return super.opt(index);
90 @Override public boolean optBoolean(int index, boolean fallback) {
92 return super.optBoolean(index, fallback);
94 @Override public double optDouble(int index, double fallback) {
96 return super.optDouble(index, fallbac
[all...]
/libcore/libart/src/main/java/java/lang/
H A DCaseMapper.java77 * True if 'index' is preceded by a sequence consisting of a cased letter and a case-ignorable
78 * sequence, and 'index' is not followed by a sequence consisting of an ignorable sequence and
81 private static boolean isFinalSigma(String s, int index) { argument
84 if (index <= 0) {
87 char previous = s.charAt(index - 1);
91 if (index + 1 >= s.length()) {
94 char next = s.charAt(index + 1);
102 * Return the index of the specified character into the upperValues table.
106 * @return the index into the upperValues table, or -1
109 int index
[all...]
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
H A DInnerNodeImpl.java74 if (parent == null || index + 1 >= parent.children.size()) {
78 return parent.children.get(index + 1);
100 return insertChildAt(newChild, refChildImpl.index);
104 * Inserts {@code newChild} at {@code index}. If it is already child of
107 Node insertChildAt(Node newChild, int index) throws DOMException { argument
111 insertChildAt(toAdd.item(i), index + i);
125 int oldIndex = toInsert.index;
130 children.add(index, toInsert);
132 refreshIndices(index);
170 children.get(i).index
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DIdentityHashMap.java125 * <a href="{@docRoot}openjdk-redirect.html?v=8&path=/technotes/guides/collections/index.html">
291 * Returns index for Object x.
579 * @param d the index of a newly empty deleted slot
587 // starting at index immediately following deletion,
713 int index = (size != 0 ? 0 : table.length); // current slot. field in class:IdentityHashMap.IdentityHashMapIterator
721 for (int i = index; i < tab.length; i+=2) {
724 index = i;
728 index = tab.length;
739 lastReturnedIndex = index;
740 index
855 private int index; field in class:IdentityHashMap.EntryIterator.Entry
857 Entry(int index) argument
1385 int index; // current index, modified on advance/split field in class:IdentityHashMap.IdentityHashMapSpliterator
[all...]
H A DEnumMap.java72 * <a href="{@docRoot}openjdk-redirect.html?v=8&path=/technotes/guides/collections/index.html">
269 int index = key.ordinal();
270 Object oldValue = vals[index];
271 vals[index] = maskNull(value);
289 int index = ((Enum<?>)key).ordinal();
290 Object oldValue = vals[index];
291 vals[index] = null;
300 int index = ((Enum<?>)key).ordinal();
301 if (maskNull(value).equals(vals[index])) {
302 vals[index]
521 int index = 0; field in class:EnumMap.EnumMapIterator
585 private int index; field in class:EnumMap.EntryIterator.Entry
587 Entry(int index) argument
716 entryHashCode(int index) argument
[all...]
H A DSpliterators.java163 * @param fromIndex The least index (inclusive) to cover
164 * @param toIndex One past the greatest index to cover
225 * @param fromIndex The least index (inclusive) to cover
226 * @param toIndex One past the greatest index to cover
291 * @param fromIndex The least index (inclusive) to cover
292 * @param toIndex One past the greatest index to cover
357 * @param fromIndex The least index (inclusive) to cover
358 * @param toIndex One past the greatest index to cover
376 * Validate inclusive start index and exclusive end index agains
901 private int index; // current index, modified on advance/split field in class:Spliterators.ArraySpliterator
986 private int index; // current index, modified on advance/split field in class:Spliterators.IntArraySpliterator
1069 private int index; // current index, modified on advance/split field in class:Spliterators.LongArraySpliterator
1152 private int index; // current index, modified on advance/split field in class:Spliterators.DoubleArraySpliterator
[all...]
/libcore/ojluni/src/main/java/java/lang/
H A DStringBuffer.java200 public synchronized char charAt(int index) { argument
201 if ((index < 0) || (index >= count))
202 throw new StringIndexOutOfBoundsException(index);
203 return value[index];
210 public synchronized int codePointAt(int index) { argument
211 return super.codePointAt(index);
218 public synchronized int codePointBefore(int index) { argument
219 return super.codePointBefore(index);
234 public synchronized int offsetByCodePoints(int index, in argument
253 setCharAt(int index, char ch) argument
439 deleteCharAt(int index) argument
488 insert(int index, char[] str, int offset, int len) argument
[all...]
H A DAbstractStringBuilder.java185 * index <i>k</i> less than {@code newLength}, the character at
186 * index <i>k</i> in the new character sequence is the same as the
187 * character at index <i>k</i> in the old sequence if <i>k</i> is less
219 * Returns the {@code char} value in this sequence at the specified index.
220 * The first {@code char} value is at index {@code 0}, the next at index
223 * The index argument must be greater than or equal to
226 * <p>If the {@code char} value specified by the index is a
230 * @param index the index o
236 charAt(int index) argument
263 codePointAt(int index) argument
291 codePointBefore(int index) argument
345 offsetByCodePoints(int index, int codePointOffset) argument
406 setCharAt(int index, char ch) argument
840 deleteCharAt(int index) argument
980 insert(int index, char[] str, int offset, int len) argument
[all...]
H A DInteger.java456 * digit at the specified index (exclusive), and working
461 static void getChars(int i, int index, char[] buf) { argument
463 int charPos = index;
1185 int index = 0;
1195 index++;
1197 index++;
1200 if (nm.startsWith("0x", index) || nm.startsWith("0X", index)) {
1201 index += 2;
1204 else if (nm.startsWith("#", index)) {
[all...]
/libcore/ojluni/src/main/java/java/nio/
H A DStringCharBuffer.java75 public final char get(int index) { argument
76 return str.charAt(checkIndex(index) + offset);
79 char getUnchecked(int index) { argument
80 return str.charAt(index + offset);
89 public final CharBuffer put(int index, char c) { argument
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DFileLockTable.java182 int index = 0;
183 while (index < list.size()) {
184 FileLockReference ref = list.get(index);
189 list.remove(index);
192 index++;
203 int index = 0;
204 while (index < list.size()) {
205 FileLockReference ref = list.get(index);
212 list.remove(index);
217 index
[all...]
H A DMembershipKeyImpl.java106 private final int index; field in class:MembershipKeyImpl.Type6
114 int index,
119 this.index = index;
127 int index() { method in class:MembershipKeyImpl.Type6
128 return index;
109 Type6(MulticastChannel ch, InetAddress group, NetworkInterface interf, InetAddress source, byte[] groupAddress, int index, byte[] sourceAddress) argument
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
H A DVertex.java53 private int index; field in class:Vertex
57 * Constructor; creates vertex with index of -1
58 * Use setIndex method to set another index.
64 this.index = -1;
77 * get the index for this vertex, where the index is the row of the
81 * @returns int index for this vertex, or -1 if no following certificates.
84 return index;
88 * set the index for this vertex, where the index i
[all...]
/libcore/ojluni/src/main/java/sun/security/jca/
H A DProviderList.java153 public Provider get(int index) {
154 return getProvider(index);
235 * Return the Provider at the specified index. Returns EMPTY_PROVIDER
238 Provider getProvider(int index) { argument
239 Provider p = configs[index].getProvider();
253 int index = getIndex(name);
254 return (index != -1) ? configs[index] : null;
264 * Return the index at which the provider with the specified name is
402 // index int
429 tryGet(int index) argument
459 get(int index) argument
[all...]
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DThreadLocalRandom.java741 long index; field in class:ThreadLocalRandom.RandomIntsSpliterator
745 RandomIntsSpliterator(long index, long fence, argument
747 this.index = index; this.fence = fence;
752 long i = index, m = (i + fence) >>> 1;
754 new RandomIntsSpliterator(i, index = m, origin, bound);
758 return fence - index;
768 long i = index, f = fence;
771 index = i + 1;
779 long i = index,
796 long index; field in class:ThreadLocalRandom.RandomLongsSpliterator
800 RandomLongsSpliterator(long index, long fence, long origin, long bound) argument
852 long index; field in class:ThreadLocalRandom.RandomDoublesSpliterator
856 RandomDoublesSpliterator(long index, long fence, double origin, double bound) argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
H A DThrowableTest.java104 int index = trace.indexOf('\n', lastIndex);
105 if (index == -1)
106 index = trace.length();
107 String line = trace.substring(lastIndex, index);
108 lastIndex = index + 1;
110 index = line.indexOf("(");
111 if (index > -1) {
112 line = line.substring(0, index);
/libcore/ojluni/src/main/native/
H A DThrowable.c64 jobject throwable, jint index)
66 return JVM_GetStackTraceElement(env, throwable, index);
63 Throwable_getStackTraceElement(JNIEnv *env, jobject throwable, jint index) argument
/libcore/luni/src/main/java/org/w3c/dom/
H A DNamedNodeMap.java21 * also be accessed by an ordinal index, but this is simply to allow
86 * Returns the <code>index</code>th item in the map. If <code>index</code>
89 * @param index Index into this map.
90 * @return The node at the <code>index</code>th position in the map, or
91 * <code>null</code> if that is not a valid index.
93 public Node item(int index); argument
/libcore/ojluni/src/main/java/java/text/
H A DCharacterIteratorFieldDelegate.java61 int index = size;
64 while (start < index) {
67 int newIndex = index - as.length();
73 index = newIndex;
H A DSimpleDateFormat.java1051 // Map index into pattern character string to Calendar field number
1080 // Map index into pattern character string to DateFormat field number
1109 // Maps from DecimalFormatSymbols index to Field constant
1490 * The method attempts to parse text starting at the index given by
1492 * If parsing succeeds, then the index of <code>pos</code> is updated
1493 * to the index after the last character used (parsing does not necessarily
1497 * If an error occurs, then the index of <code>pos</code> is not
1498 * changed, the error index of <code>pos</code> is set to the index of
1516 * @param pos A <code>ParsePosition</code> object with index an
[all...]
/libcore/luni/src/main/native/
H A Djava_lang_StringToReal.cpp100 int32_t index = 1; local
112 * back out of it if there is no more room, i.e. index >
115 memcpy (fNoOverflow, f, sizeof (uint64_t) * index);
117 simpleAppendDecimalDigitHighPrecision (f, index, *s - '0');
120 f[index++] = overflow;
126 if (index >= MAX_DOUBLE_ACCURACY_WIDTH)
128 index--;
129 memcpy (f, fNoOverflow, sizeof (uint64_t) * index);
139 index = -1;
141 while (index >
492 int32_t index = 1; local
[all...]
/libcore/ojluni/src/main/java/java/security/spec/
H A DECFieldF2m.java101 int index = temp.getLowestSetBit();
102 this.ks[i] = index;
103 temp = temp.clearBit(index);

Completed in 6788 milliseconds

123456789