/libcore/ojluni/src/main/java/java/time/temporal/ |
H A D | TemporalAmount.java | 78 * {@code long}, exposed via {@link #getUnits()} and {@link #get(TemporalUnit)}. 117 long get(TemporalUnit unit); method in interface:TemporalAmount
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | Dictionary.java | 112 abstract public V get(Object key); method in class:Dictionary 128 * <code>get</code> method with a <code>key</code> that is equal to 139 * @see java.util.Dictionary#get(java.lang.Object)
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
H A D | UnixFileStoreAttributes.java | 37 static UnixFileStoreAttributes get(UnixPath path) throws UnixException { method in class:UnixFileStoreAttributes
|
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/ |
H A D | DoubleAccumulator.java | 45 * may grow dynamically to reduce contention. Method {@link #get} 129 public double get() { method in class:DoubleAccumulator 160 * Equivalent in effect to {@link #get} followed by {@link 190 return Double.toString(get()); 194 * Equivalent to {@link #get}. 199 return get(); 203 * Returns the {@linkplain #get current value} as a {@code long} 207 return (long)get(); 211 * Returns the {@linkplain #get current value} as an {@code int} 215 return (int)get(); [all...] |
H A D | LongAccumulator.java | 45 * may grow dynamically to reduce contention. Method {@link #get} 127 public long get() { method in class:LongAccumulator 157 * Equivalent in effect to {@link #get} followed by {@link 187 return Long.toString(get()); 191 * Equivalent to {@link #get}. 196 return get(); 200 * Returns the {@linkplain #get current value} as an {@code int} 204 return (int)get(); 208 * Returns the {@linkplain #get current value} as a {@code float} 212 return (float)get(); [all...] |
H A D | AtomicReference.java | 86 public final V get() { method in class:AtomicReference 161 prev = get(); 180 prev = get(); 204 prev = get(); 228 prev = get(); 239 return String.valueOf(get());
|
H A D | AtomicIntegerFieldUpdater.java | 157 * @param obj An object whose field to get 160 public abstract int get(T obj); method in class:AtomicIntegerFieldUpdater 166 * @param obj An object whose field to get and set 173 prev = get(obj); 182 * @param obj An object whose field to get and set 188 prev = get(obj); 198 * @param obj An object whose field to get and set 204 prev = get(obj); 214 * @param obj An object whose field to get and set 221 prev = get(ob 488 public final int get(T obj) { method in class:AtomicIntegerFieldUpdater.AtomicIntegerFieldUpdaterImpl [all...] |
/libcore/ojluni/src/test/java/time/tck/java/time/ |
H A D | TCKZoneId.java | 101 assertEquals(ids.get("EST"), "-05:00"); 102 assertEquals(ids.get("MST"), "-07:00"); 103 assertEquals(ids.get("HST"), "-10:00"); 104 assertEquals(ids.get("ACT"), "Australia/Darwin"); 105 assertEquals(ids.get("AET"), "Australia/Sydney"); 106 assertEquals(ids.get("AGT"), "America/Argentina/Buenos_Aires"); 107 assertEquals(ids.get("ART"), "Africa/Cairo"); 108 assertEquals(ids.get("AST"), "America/Anchorage"); 109 assertEquals(ids.get("BET"), "America/Sao_Paulo"); 110 assertEquals(ids.get("BS [all...] |
/libcore/dalvik/test-rules/src/test/java/libcore/dalvik/system/ |
H A D | CloseGuardSupportTest.java | 45 CloseGuard closeGuard = CloseGuard.get(); 60 CloseGuard closeGuard = CloseGuard.get(); 71 Failure failure = failures.get(0); 78 CloseGuard closeGuard = CloseGuard.get(); 89 Failure failure = failures.get(0); 96 CloseGuard closeGuard = CloseGuard.get(); 108 Failure failure = failures.get(0); 127 Failure failure = failures.get(0); 152 Failure failure = failures.get(0); 161 private CloseGuard guard = CloseGuard.get(); [all...] |
/libcore/jsr166-tests/src/test/java/jsr166/ |
H A D | DoubleAccumulatorTest.java | 33 assertEquals(0.0, ai.get()); 37 * accumulate accumulates given value to current, and get returns current value 42 assertEquals(2.0, ai.get()); 44 assertEquals(2.0, ai.get()); 46 assertEquals(4.0, ai.get()); 50 * reset() causes subsequent get() to return zero 55 assertEquals(2.0, ai.get()); 57 assertEquals(0.0, ai.get()); 61 * getThenReset() returns current value; subsequent get() returns zero 66 assertEquals(2.0, ai.get()); [all...] |
H A D | LongAccumulatorTest.java | 33 assertEquals(0, ai.get()); 37 * accumulate accumulates given value to current, and get returns current value 42 assertEquals(2, ai.get()); 44 assertEquals(2, ai.get()); 46 assertEquals(4, ai.get()); 50 * reset() causes subsequent get() to return zero 55 assertEquals(2, ai.get()); 57 assertEquals(0, ai.get()); 61 * getThenReset() returns current value; subsequent get() returns zero 66 assertEquals(2, ai.get()); [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
H A D | PriorityQueueBenchmark.java | 48 // shuffle these elements so that we get a reasonable distribution of missed elements 52 pq.add(allElements.get(i)); 53 seekElements.add(allElements.get(i)); 57 pq.add(allElements.get(i)); 61 seekElements.add(allElements.get(i)); 81 dummy = usepq.remove(seekElements.get(i % elementsSize));
|
/libcore/luni/src/test/java/libcore/java/util/ |
H A D | RemoveIfTester.java | 36 Collection<Integer> integers = supp.get(); 57 Collection<Integer> integers = supp.get(); 76 supp.get().removeIf(x -> { 84 supp.get().removeIf(null); 90 Collection<Integer> c = supp.get();
|
H A D | OldAndroidHashMapTest.java | 37 assertEquals(ONE, map.get("one")); 38 assertEquals(TWO, map.get("two")); 39 assertEquals(THREE, map.get("three")); 40 assertEquals(FOUR, map.get("four")); 61 assertNull(map.get("three")); 69 assertNull(map.get(null)); 70 assertNull(map.get("one")); 82 assertEquals(0, map.get(null).intValue()); 83 assertEquals(1, map.get("one").intValue()); 84 assertEquals(2, map.get("tw [all...] |
/libcore/ojluni/src/main/java/java/nio/charset/ |
H A D | CoderResult.java | 200 private synchronized CoderResult get(int len) { method in class:CoderResult.Cache 208 } else if ((w = cache.get(k)) != null) { 209 e = w.get(); 236 return malformedCache.get(length); 255 return unmappableCache.get(length);
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
H A D | TCKWeekFields.java | 126 assertEquals(date.get(WeekFields.ISO.dayOfWeek()), 1); 127 assertEquals(date.get(WeekFields.of(DayOfWeek.MONDAY, 1).dayOfWeek()), 1); 128 assertEquals(date.get(WeekFields.of(DayOfWeek.MONDAY, 7).dayOfWeek()), 1); 129 assertEquals(date.get(WeekFields.SUNDAY_START.dayOfWeek()), 2); 130 assertEquals(date.get(WeekFields.of(DayOfWeek.SUNDAY, 1).dayOfWeek()), 2); 131 assertEquals(date.get(WeekFields.of(DayOfWeek.SUNDAY, 7).dayOfWeek()), 2); 132 assertEquals(date.get(WeekFields.of(DayOfWeek.SATURDAY, 1).dayOfWeek()), 3); 133 assertEquals(date.get(WeekFields.of(DayOfWeek.FRIDAY, 1).dayOfWeek()), 4); 134 assertEquals(date.get(WeekFields.of(DayOfWeek.TUESDAY, 1).dayOfWeek()), 7); 157 assertEquals(day.get( [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | ConcurrentModTest.java | 46 // the sub.get(1) is 3.0 47 assertTrue(((Double) sub.get(1)).doubleValue() <= 3.0); 48 assertTrue(((Double) sub.get(1)).doubleValue() > 2.0); 53 // illegal call the subList's method get(int). 54 sub.get(1); 61 al.get(-1); 68 al.get(al.size()+1); 90 // the sub.get(1) is 3.0 91 assertTrue(((Double) sub.get(1)).doubleValue() <= 3.0); 92 assertTrue(((Double) sub.get( [all...] |
H A D | ArrayListTest.java | 85 al.get(counter) == objArray[counter]); 108 assertTrue("Failed to add Object", alist.get(50) == o); 110 alist.get(51) == objArray[50] 111 && (alist.get(52) == objArray[51])); 112 Object oldItem = alist.get(25); 114 assertNull("Should have returned null", alist.get(25)); 116 .get(26) == oldItem); 119 assertEquals("Failed to add Object", alist.get(0), o); 120 assertEquals(alist.get(1), objArray[0]); 121 assertEquals(alist.get( [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
H A D | HttpCookieTest.java | 394 HttpCookie cookie1 = HttpCookie.parse("Set-Cookie:name=value;max-age=2;").get(0); 395 HttpCookie cookie2 = HttpCookie.parse("Set-Cookie:name=value;max-age=100;").get(0); 422 HttpCookie pastExpiryCookie = HttpCookie.parse(pastExpiryCookieHeader).get(0); 428 HttpCookie futureExpiryCookie = HttpCookie.parse(futureExpiryCookieHeader).get(0); 613 HttpCookie cookie = list.get(0); 619 cookie = list.get(0); 625 cookie = list.get(0); 633 cookie = list.get(0); 640 cookie = list.get(0); 651 HttpCookie cookie = list.get( [all...] |
/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | FileLockTable.java | 125 List<FileLockReference> list = lockMap.get(fileKey); 150 List<FileLockReference> current = lockMap.get(fileKey); 167 assert lockMap.get(fk) == list; 178 List<FileLockReference> list = lockMap.get(fileKey); 184 FileLockReference ref = list.get(index); 185 FileLock lock = ref.get(); 200 List<FileLockReference> list = lockMap.get(fileKey); 205 FileLockReference ref = list.get(index); 206 FileLock lock = ref.get(); 231 List<FileLockReference> list = lockMap.get(fileKe [all...] |
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
H A D | MyKeyStore.java | 66 return (Key) Keys.get(alias); 73 return (Certificate[]) Chain.get(alias); 80 return (Certificate) Cert.get(alias); 87 return (Date) Dates.get(alias); 187 KeysSL.put(alias, Keys.get(alias)); 188 DatesSL.put(alias, Dates.get(alias)); 190 ChainSL.put(alias, Chain.get(alias)); 196 CertSL.put(alias, Cert.get(alias)); 197 DatesSL.put(alias, Dates.get(alias)); 211 Keys.put(alias, KeysSL.get(alia [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/ |
H A D | SoftReferenceTest.java | 42 assertTrue("Initialization failed.", ((Boolean) sr.get()) 64 assertTrue("Initialization failed.", ((Boolean) sr.get()) 72 * java.lang.ref.SoftReference#get() 77 assertTrue("Same object not returned.", bool == sr.get()); 119 assertNull("get() should return null " + 120 "if OutOfMemoryError is thrown.", r.get()); 129 assertNull("Object is not null.", ref.get()); 130 assertNotNull("Object could not be reclaimed.", r.get());
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/serial/ |
H A D | TCKChronoLocalDateSerialization.java | 122 dos.writeInt(date.get(YEAR)); 123 dos.writeByte(date.get(MONTH_OF_YEAR)); 124 dos.writeByte(date.get(DAY_OF_MONTH)); 155 dos.writeInt(date.get(YEAR)); 156 dos.writeByte(date.get(MONTH_OF_YEAR)); 157 dos.writeByte(date.get(DAY_OF_MONTH));
|
/libcore/ojluni/src/main/java/java/lang/reflect/ |
H A D | WeakCache.java | 38 * {@link #get} method which also takes a {@code parameter}. Sub-keys are 45 * Entries are expunged from cache lazily on each invocation to {@link #get}, 100 public V get(K key, P parameter) { method in class:WeakCache 108 ConcurrentMap<Object, Supplier<V>> valuesMap = map.get(cacheKey); 121 Supplier<V> supplier = valuesMap.get(subKey); 127 V value = supplier.get(); 156 supplier = valuesMap.get(subKey); 214 public synchronized V get() { // serialize access method in class:WeakCache.Factory 216 Supplier<V> supplier = valuesMap.get(subKey); 221 // return null to signal WeakCache.get() t 276 public V get() { method in class:WeakCache.LookupValue [all...] |
/libcore/ojluni/src/main/java/java/nio/ |
H A D | CharBuffer.java | 46 * <li><p> Absolute and relative {@link #get() <i>get</i>} and 50 * <li><p> Relative {@link #get(char[]) <i>bulk get</i>} 381 // -- Singleton get/put methods -- 384 * Relative <i>get</i> method. Reads the char at this buffer's 392 public abstract char get(); method in class:CharBuffer 414 * Absolute <i>get</i> method. Reads the char at the given 426 public abstract char get(int index); method in class:CharBuffer 429 * Absolute <i>get</ 515 public CharBuffer get(char[] dst, int offset, int length) { method in class:CharBuffer 539 public CharBuffer get(char[] dst) { method in class:CharBuffer [all...] |