Searched refs:get (Results 51 - 75 of 955) sorted by relevance

1234567891011>>

/libcore/luni/src/test/java/libcore/java/lang/
H A DOldInheritableThreadLocalTest.java40 holder[0] = threadLocal.get();
45 assertSame(value, threadLocal.get());
63 assertEquals("initial", itl.get());
/libcore/ojluni/src/main/java/java/nio/
H A DDoubleBuffer.java39 * <li><p> Absolute and relative {@link #get() <i>get</i>} and
43 * <li><p> Relative {@link #get(double[]) <i>bulk get</i>}
264 // -- Singleton get/put methods --
267 * Relative <i>get</i> method. Reads the double at this buffer's
275 public abstract double get(); method in class:DoubleBuffer
297 * Absolute <i>get</i> method. Reads the double at the given
309 public abstract double get(int index); method in class:DoubleBuffer
335 // -- Bulk get operation
387 public DoubleBuffer get(double[] dst, int offset, int length) { method in class:DoubleBuffer
416 public DoubleBuffer get(double[] dst) { method in class:DoubleBuffer
[all...]
H A DFloatBuffer.java39 * <li><p> Absolute and relative {@link #get() <i>get</i>} and
43 * <li><p> Relative {@link #get(float[]) <i>bulk get</i>}
264 // -- Singleton get/put methods --
267 * Relative <i>get</i> method. Reads the float at this buffer's
275 public abstract float get(); method in class:FloatBuffer
297 * Absolute <i>get</i> method. Reads the float at the given
309 public abstract float get(int index); method in class:FloatBuffer
335 // -- Bulk get operation
387 public FloatBuffer get(float[] dst, int offset, int length) { method in class:FloatBuffer
416 public FloatBuffer get(float[] dst) { method in class:FloatBuffer
[all...]
H A DIntBuffer.java40 * <li><p> Absolute and relative {@link #get() <i>get</i>} and
44 * <li><p> Relative {@link #get(int[]) <i>bulk get</i>}
265 // -- Singleton get/put methods --
268 * Relative <i>get</i> method. Reads the int at this buffer's
276 public abstract int get(); method in class:IntBuffer
298 * Absolute <i>get</i> method. Reads the int at the given
310 public abstract int get(int index); method in class:IntBuffer
336 // -- Bulk get operation
388 public IntBuffer get(int[] dst, int offset, int length) { method in class:IntBuffer
417 public IntBuffer get(int[] dst) { method in class:IntBuffer
[all...]
H A DLongBuffer.java39 * <li><p> Absolute and relative {@link #get() <i>get</i>} and
43 * <li><p> Relative {@link #get(long[]) <i>bulk get</i>}
264 // -- Singleton get/put methods --
267 * Relative <i>get</i> method. Reads the long at this buffer's
275 public abstract long get(); method in class:LongBuffer
297 * Absolute <i>get</i> method. Reads the long at the given
309 public abstract long get(int index); method in class:LongBuffer
335 // -- Bulk get operation
387 public LongBuffer get(long[] dst, int offset, int length) { method in class:LongBuffer
416 public LongBuffer get(long[] dst) { method in class:LongBuffer
[all...]
H A DShortBuffer.java39 * <li><p> Absolute and relative {@link #get() <i>get</i>} and
43 * <li><p> Relative {@link #get(short[]) <i>bulk get</i>}
264 // -- Singleton get/put methods --
267 * Relative <i>get</i> method. Reads the short at this buffer's
275 public abstract short get(); method in class:ShortBuffer
297 * Absolute <i>get</i> method. Reads the short at the given
309 public abstract short get(int index); method in class:ShortBuffer
335 // -- Bulk get operation
387 public ShortBuffer get(short[] dst, int offset, int length) { method in class:ShortBuffer
416 public ShortBuffer get(short[] dst) { method in class:ShortBuffer
[all...]
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
H A DAtomicBoolean.java86 public final boolean get() { method in class:AtomicBoolean
151 prev = get();
161 return Boolean.toString(get());
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
H A DDirectByteBufferTest.java83 shortBuf.get(shortArray);
96 intBuf.get(intArray);
110 longBuf.get(longArray);
120 buf.get(0);
123 buf.get(0);
129 buf.get(0);
/libcore/luni/src/test/java/libcore/dalvik/system/
H A DBaseDexClassLoaderTest.java64 assertEquals(jar.getPath(), reporter.loadedDexPaths.get(0));
65 assertEquals(cl1, reporter.classLoaders.get(0));
68 assertEquals(ClassLoader.getSystemClassLoader(), reporter.classLoaders.get(1));
80 assertEquals(jar.getPath(), reporter.loadedDexPaths.get(0));
81 assertEquals(cl1, reporter.classLoaders.get(0));
82 assertEquals(ClassLoader.getSystemClassLoader(), reporter.classLoaders.get(1));
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
H A DLeafNodeImpl.java50 return parent.children.get(index + 1);
62 return parent.children.get(index - 1);
/libcore/luni/src/main/native/
H A Dlibcore_icu_TimeZoneNames.cpp39 if (javaString.get() == NULL) {
42 env->SetObjectArrayElement(array, i, javaString.get());
66 reinterpret_cast<jstring>(env->GetObjectArrayElement(java_row.get(), 0)));
67 ScopedJavaUnicodeString zone_id(env, java_zone_id.get());
90 setStringArrayElement(env, java_row.get(), 1, long_std) &&
91 setStringArrayElement(env, java_row.get(), 2, short_std) &&
92 setStringArrayElement(env, java_row.get(), 3, long_dst) &&
93 setStringArrayElement(env, java_row.get(), 4, short_dst);
/libcore/luni/src/test/java/libcore/java/lang/ref/
H A DFinalizeTest.java31 if (!finalized.get()) {
46 if (!finalized1.get() || !finalized2.get()) {
47 fail("not yet finalized: " + finalized1.get() + " " + finalized2.get());
61 boolean wasFinalized = finalized.get();
140 assertTrue(count.get() > 0);
148 if (keepGoing.get()) {
/libcore/luni/src/test/java/libcore/java/nio/file/spi/
H A DFileTypeDetectorTest.java18 defaultFileTypeDetector.probeContentType(Paths.get("file.txt")));
20 defaultFileTypeDetector.probeContentType(Paths.get("file.java")));
/libcore/luni/src/test/java/libcore/java/util/
H A DOldAndroidArrayListTest.java43 assertEquals(1, ((Integer) array.get(0)).intValue());
44 assertEquals(2, ((Integer) array.get(1)).intValue());
45 assertEquals(0, ((Integer) array.get(2)).intValue());
46 assertEquals(3, ((Integer) array.get(3)).intValue());
47 assertEquals(1, ((Integer) array.get(4)).intValue());
61 assertEquals(1, ((Integer) array.get(0)).intValue());
62 assertEquals(3, ((Integer) array.get(1)).intValue());
63 assertEquals(1, ((Integer) array.get(2)).intValue());
H A DOldGregorianCalendarTest.java38 assertTrue(gc2.get(Calendar.HOUR) == ((gc1.get(Calendar.HOUR) + 1) % 12));
60 assertEquals(1, g.get(Calendar.ERA));
61 assertEquals(2008, g.get(Calendar.YEAR));
62 assertEquals(Calendar.SEPTEMBER, g.get(Calendar.MONTH));
63 assertEquals(23, g.get(Calendar.DAY_OF_MONTH));
64 assertEquals(17, g.get(Calendar.HOUR_OF_DAY));
65 assertEquals(0, g.get(Calendar.MINUTE));
/libcore/ojluni/src/main/java/java/nio/file/
H A DPaths.java83 public static Path get(String first, String... more) { method in class:Paths
107 * Paths.get(</tt><i>p</i><tt>.{@link Path#toUri() toUri}()).equals(</tt>
131 public static Path get(URI uri) { method in class:Paths
/libcore/ojluni/src/main/native/
H A Dsocket_tagger_util.cpp28 jmethodID get = env->GetStaticMethodID(JniConstants::socketTaggerClass, local
29 "get", "()Ldalvik/system/SocketTagger;");
31 env->CallStaticObjectMethod(JniConstants::socketTaggerClass, get);
/libcore/luni/src/test/java/libcore/java/nio/
H A DBufferTest.java77 mbb.get(buf1);
108 mbb.get(buf2);
138 b.order(ByteOrder.BIG_ENDIAN).asCharBuffer().get(chars, 1, 4);
140 b.order(ByteOrder.LITTLE_ENDIAN).asCharBuffer().get(chars, 1, 4);
144 b.order(ByteOrder.BIG_ENDIAN).asDoubleBuffer().get(doubles, 1, 1);
148 b.order(ByteOrder.LITTLE_ENDIAN).asDoubleBuffer().get(doubles, 1, 1);
154 b.order(ByteOrder.BIG_ENDIAN).asFloatBuffer().get(floats, 1, 2);
159 b.order(ByteOrder.LITTLE_ENDIAN).asFloatBuffer().get(floats, 1, 2);
166 b.order(ByteOrder.BIG_ENDIAN).asIntBuffer().get(ints, 1, 2);
171 b.order(ByteOrder.LITTLE_ENDIAN).asIntBuffer().get(int
[all...]
/libcore/jsr166-tests/src/test/java/jsr166/
H A DAtomicMarkableReferenceTest.java40 * get returns the last values of reference and mark set
47 assertSame(one, ai.get(mark));
52 assertSame(two, ai.get(mark));
57 assertSame(one, ai.get(mark));
70 assertSame(one, ai.get(mark));
81 assertSame(one, ai.get(mark));
86 assertSame(two, ai.get(mark));
90 assertSame(m3, ai.get(mark));
94 assertSame(m3, ai.get(mark));
145 assertSame(one, ai.get(mar
[all...]
H A DAtomicStampedReferenceTest.java40 * get returns the last values of reference and stamp set
47 assertSame(one, ai.get(mark));
52 assertSame(two, ai.get(mark));
57 assertSame(one, ai.get(mark));
70 assertSame(one, ai.get(mark));
81 assertSame(one, ai.get(mark));
86 assertSame(two, ai.get(mark));
90 assertSame(m3, ai.get(mark));
94 assertSame(m3, ai.get(mark));
145 assertSame(one, ai.get(mar
[all...]
/libcore/luni/src/test/java/libcore/java/util/concurrent/
H A DCopyOnWriteArrayListTest.java59 bcd.get(1);
71 bcd.get(1);
84 bcd.get(1);
200 future.get(); // this will throw the above exception
303 assertEquals(10.0, l.get(0));
304 assertEquals(4.0, l.get(1));
305 assertEquals(-6.0, l.get(2));
318 assertEquals(-3.0, l.get(0));
319 assertEquals(2.0, l.get(1));
320 assertEquals(5.0, l.get(
[all...]
/libcore/ojluni/src/main/java/sun/util/locale/
H A DBaseLocale.java87 BaseLocale baseLocale = CACHE.get(key);
253 String tl = this.lang.get();
254 String ol = ((Key)obj).lang.get();
257 String ts = this.scrt.get();
258 String os = ((Key)obj).scrt.get();
261 String tr = this.regn.get();
262 String or = ((Key)obj).regn.get();
265 String tv = this.vart.get();
266 String ov = ((Key)obj).vart.get();
285 String lang = LocaleUtils.toLowerString(key.lang.get())
[all...]
/libcore/luni/src/test/java/libcore/java/nio/file/
H A DPathsTest.java39 assertEquals(inputOutputTestCase.output, Paths.get(inputOutputTestCase.input,
46 Paths.get(exceptionTestCase.input, exceptionTestCase.inputArray);
58 assertEquals(inputOutputTestCase.output, Paths.get(new URI(inputOutputTestCase.input)).
66 Paths.get(new URI(exceptionTestCase.input));
/libcore/luni/src/test/java/libcore/java/util/function/
H A DBiPredicateTest.java48 assertTrue(alwaysTrueInvoked.get() && alwaysTrue2Invoked.get());
53 assertTrue(alwaysTrueInvoked.get() && alwaysFalseInvoked.get());
58 assertTrue(alwaysFalseInvoked.get() && !alwaysFalse2Invoked.get());
63 assertTrue(alwaysFalseInvoked.get() && !alwaysTrueInvoked.get());
108 assertTrue(alwaysTrueInvoked.get() && !alwaysTrue2Invoked.get());
[all...]
/libcore/ojluni/src/main/java/java/net/
H A DCookieStore.java36 * for every incoming HTTP response, and call {@code CookieStore.get} to
64 * @see #get
85 public List<HttpCookie> get(URI uri); method in interface:CookieStore

Completed in 2652 milliseconds

1234567891011>>