Searched refs:get (Results 1 - 25 of 580) sorted by relevance

1234567891011>>

/libcore/luni/src/main/java/java/io/
H A DEmulatedFieldsForLoading.java33 // The actual representation, with a more powerful API (set&get)
98 public byte get(String name, byte defaultValue) throws IOException, method in class:EmulatedFieldsForLoading
100 return emulatedFields.get(name, defaultValue);
121 public char get(String name, char defaultValue) throws IOException, method in class:EmulatedFieldsForLoading
123 return emulatedFields.get(name, defaultValue);
144 public double get(String name, double defaultValue) throws IOException, method in class:EmulatedFieldsForLoading
146 return emulatedFields.get(name, defaultValue);
167 public float get(String name, float defaultValue) throws IOException, method in class:EmulatedFieldsForLoading
169 return emulatedFields.get(name, defaultValue);
190 public int get(Strin method in class:EmulatedFieldsForLoading
213 public long get(String name, long defaultValue) throws IOException, method in class:EmulatedFieldsForLoading
236 public Object get(String name, Object defaultValue) throws IOException, method in class:EmulatedFieldsForLoading
259 public short get(String name, short defaultValue) throws IOException, method in class:EmulatedFieldsForLoading
283 public boolean get(String name, boolean defaultValue) throws IOException, method in class:EmulatedFieldsForLoading
[all...]
/libcore/luni/src/test/java/libcore/java/nio/
H A DOldAndroidNIOTest.java138 assertEquals((byte) 0xA7, b.get(7));
140 b.get(12);
146 b.get(-10);
154 assertEquals((byte) 0xA0, b.get());
155 assertEquals((byte) 0xA1, b.get());
156 assertEquals((byte) 0xA2, b.get());
157 assertEquals((byte) 0xA3, b.get());
158 assertEquals((byte) 0xA4, b.get());
159 assertEquals((byte) 0xA5, b.get());
160 assertEquals((byte) 0xA6, b.get());
[all...]
H A DOldDirectIntBufferTest.java37 assertEquals(4, intBuffer.get(0));
38 assertEquals(5, intBuffer.get(1));
39 assertEquals(6, intBuffer.get(2));
40 assertEquals(7, intBuffer.get(3));
H A DOldDirectShortBufferTest.java37 assertEquals(4, shortBuffer.get(0));
38 assertEquals(5, shortBuffer.get(1));
39 assertEquals(6, shortBuffer.get(2));
40 assertEquals(7, shortBuffer.get(3));
/libcore/jsr166-tests/src/test/java/jsr166/
H A DAtomicBooleanTest.java31 assertTrue(new AtomicBoolean(true).get());
32 assertFalse(new AtomicBoolean(false).get());
40 assertFalse(ai.get());
44 * get returns the last value set
48 assertTrue(ai.get());
50 assertFalse(ai.get());
52 assertTrue(ai.get());
56 * get returns the last value lazySet in same thread
60 assertTrue(ai.get());
62 assertFalse(ai.get());
[all...]
H A DAtomicIntegerFieldUpdaterTest.java68 * get returns the last value set or assigned
74 assertEquals(1, a.get(this));
76 assertEquals(2, a.get(this));
78 assertEquals(-3, a.get(this));
82 * get returns the last value lazySet by same thread
88 assertEquals(1, a.get(this));
90 assertEquals(2, a.get(this));
92 assertEquals(-3, a.get(this));
104 assertEquals(-4, a.get(this));
106 assertEquals(-4, a.get(thi
[all...]
H A DAtomicLongFieldUpdaterTest.java69 * get returns the last value set or assigned
75 assertEquals(1, a.get(this));
77 assertEquals(2, a.get(this));
79 assertEquals(-3, a.get(this));
83 * get returns the last value lazySet by same thread
89 assertEquals(1, a.get(this));
91 assertEquals(2, a.get(this));
93 assertEquals(-3, a.get(this));
105 assertEquals(-4, a.get(this));
107 assertEquals(-4, a.get(thi
[all...]
H A DAtomicReferenceTest.java32 assertSame(one, ai.get());
40 assertNull(ai.get());
44 * get returns the last value set
48 assertSame(one, ai.get());
50 assertSame(two, ai.get());
52 assertSame(m3, ai.get());
56 * get returns the last value lazySet in same thread
60 assertSame(one, ai.get());
62 assertSame(two, ai.get());
64 assertSame(m3, ai.get());
[all...]
H A DAtomicIntegerTest.java36 assertEquals(1, ai.get());
44 assertEquals(0, ai.get());
48 * get returns the last value set
52 assertEquals(1, ai.get());
54 assertEquals(2, ai.get());
56 assertEquals(-3, ai.get());
60 * get returns the last value lazySet in same thread
64 assertEquals(1, ai.get());
66 assertEquals(2, ai.get());
68 assertEquals(-3, ai.get());
[all...]
H A DAtomicLongTest.java38 assertEquals(1, ai.get());
46 assertEquals(0, ai.get());
50 * get returns the last value set
54 assertEquals(1, ai.get());
56 assertEquals(2, ai.get());
58 assertEquals(-3, ai.get());
62 * get returns the last value lazySet in same thread
66 assertEquals(1, ai.get());
68 assertEquals(2, ai.get());
70 assertEquals(-3, ai.get());
[all...]
H A DThreadLocalTest.java46 assertSame(tl.get(), one);
48 assertSame(tl.get(), two);
50 assertSame(tl.get(), one);
58 assertSame(itl.get(), zero);
60 assertSame(itl.get(), two);
62 assertSame(itl.get(), zero);
70 if (itl.get().intValue() < x.length - 1) {
76 int threadId = itl.get().intValue();
/libcore/luni/src/main/java/java/util/concurrent/atomic/
H A DAtomicInteger.java60 public final int get() { method in class:AtomicInteger
91 int current = get();
133 int current = get();
147 int current = get();
162 int current = get();
176 int current = get();
190 int current = get();
205 int current = get();
217 return Integer.toString(get());
224 return get();
[all...]
H A DAtomicLong.java74 public final long get() { method in class:AtomicLong
105 long current = get();
147 long current = get();
161 long current = get();
176 long current = get();
190 long current = get();
204 long current = get();
219 long current = get();
231 return Long.toString(get());
239 return (int)get();
[all...]
/libcore/luni/src/test/java/libcore/internal/
H A DStringPoolTest.java26 String bcd = stringPool.get(new char[] { 'a', 'b', 'c', 'd', 'e' }, 1, 3);
28 assertSame(bcd, stringPool.get(new char[] { 'a', 'b', 'c', 'd', 'e' }, 1, 3));
37 String aString = stringPool.get(a, 0, 2);
39 String bString = stringPool.get(b, 0, 2);
41 assertSame(bString, stringPool.get(b, 0, 2));
42 assertNotSame(aString, stringPool.get(a, 0, 2));
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
H A DInheritableThreadLocalTest.java29 assertNull(itl.get());
39 assertEquals("initial", itl.get());
H A DThreadLocalTest.java42 assertEquals("initial", tl.get());
44 assertEquals("fixture", tl.get());
46 assertEquals("initial", tl.get());
50 * java.lang.ThreadLocal#get()
53 // Test for method java.lang.Object java.lang.ThreadLocal.get()
55 assertNull("ThreadLocal's initial value is null", l.get());
68 + " but is " + l1.get(), l1.get() == INITIAL_VALUE);
81 THREADVALUE.result = l1.get();
106 thrVar.get();
[all...]
/libcore/luni/src/main/java/java/util/concurrent/
H A DFuture.java14 * {@code get} when the computation has completed, blocking if
41 * displayText(future.get()); // use future
59 * actions following the corresponding {@code Future.get()} in another thread.
65 * @param <V> The result type returned by this Future's {@code get} method
122 V get() throws InterruptedException, ExecutionException; method in interface:Future
138 V get(long timeout, TimeUnit unit) method in interface:Future
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DBitSetTest.java93 assertTrue("Clear didn't clear bit " + i, !eightbs.get(i));
109 assertFalse("Failed to clear bit", eightbs.get(7));
113 assertTrue("Clear cleared incorrect bits", eightbs.get(i));
117 assertFalse("Failed to clear bit", eightbs.get(165));
180 assertFalse("Shouldn't have flipped bit " + i, bs.get(i));
182 assertTrue("Shouldn't have cleared bit " + i, bs.get(i));
186 assertFalse("Failed to clear bit " + i, bs.get(i));
191 assertFalse("Shouldn't have flipped bit " + i, bs.get(i));
193 assertTrue("Shouldn't have cleared bit " + i, bs.get(i));
198 assertFalse("Shouldn't have flipped bit " + i, bs.get(
[all...]
/libcore/luni/src/test/java/libcore/java/io/
H A DOldObjectInputStreamGetFieldTest.java32 * {@code ObjectInputStream.GetField}. The only way to get an implementation is
128 fields.get("noValue", false);
130 "argument in get(String, boolean).");
134 fields.get("noValue", (byte) 0);
136 "argument in get(String, byte).");
140 fields.get("noValue", (char) 0);
142 "argument in get(String, char).");
146 fields.get("noValue", 0.0);
148 "argument in get(String, double).");
152 fields.get("noValu
[all...]
/libcore/luni/src/main/java/java/lang/ref/
H A DPhantomReference.java54 * the {@link #get()} method always returns {@code null}.
70 public T get() { method in class:PhantomReference
/libcore/luni/src/main/java/libcore/icu/
H A DDateUtilsBridge.java151 return c2.get(Calendar.JULIAN_DAY) - c1.get(Calendar.JULIAN_DAY);
155 return c.get(Calendar.MINUTE) == 0 && c.get(Calendar.SECOND) == 0;
159 return c1.get(Calendar.YEAR) != c2.get(Calendar.YEAR) ||
160 c1.get(Calendar.MONTH) != c2.get(Calendar.MONTH) ||
161 c1.get(Calendar.DAY_OF_MONTH) != c2.get(Calenda
[all...]
/libcore/luni/src/main/native/
H A DExecStrings.h25 char** get();
/libcore/support/src/test/java/tests/support/
H A DSupport_ListTest.java43 elem = list.get(counter);
45 assertTrue("ListTest - get failed", elem
52 .get(50).equals(new Integer(1000)));
55 list.get(51).equals(new Integer(50)));
58 list.get(49).equals(new Integer(49)));
61 assertTrue("ListTest - a) set failed--did not set", list.get(50)
64 list.get(51).equals(new Integer(50)));
66 .get(49).equals(new Integer(49)));
70 list.get(50).equals(new Integer(50)));
73 list.get(5
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/
H A DPhantomReferenceTest.java36 * java.lang.ref.PhantomReference#get()
42 assertNull("get() should return null.", pr.get());
44 assertNull("get() should return null.", pr.get());
46 assertNull("get() should return null.", pr.get());
88 assertNull("get() should return null.", tprs[0].get());
89 assertNull("get() shoul
[all...]
/libcore/luni/src/test/java/libcore/java/util/
H A DGregorianCalendarTest.java33 assertEquals(1, greg.get(Calendar.WEEK_OF_YEAR));
35 assertEquals(1, greg.get(Calendar.WEEK_OF_YEAR));
42 assertEquals(1, greg.get(Calendar.WEEK_OF_YEAR));
43 assertEquals(Calendar.MONDAY, greg.get(Calendar.DAY_OF_WEEK));
50 int weekOfYear = greg.get(Calendar.WEEK_OF_YEAR);
54 assertEquals(weekOfYear, greg.get(Calendar.WEEK_OF_YEAR));

Completed in 980 milliseconds

1234567891011>>