/libcore/luni/src/main/java/java/util/concurrent/atomic/ |
H A D | AtomicMarkableReference.java | 10 * An {@code AtomicMarkableReference} maintains an object reference 15 * [reference, boolean] pairs. 19 * @param <V> The type of object referred to by this reference 24 final T reference; field in class:AtomicMarkableReference.Pair 26 private Pair(T reference, boolean mark) { argument 27 this.reference = reference; 30 static <T> Pair<T> of(T reference, boolean mark) { argument 31 return new Pair<T>(reference, mark); 41 * @param initialRef the initial reference [all...] |
H A D | AtomicStampedReference.java | 10 * An {@code AtomicStampedReference} maintains an object reference 15 * [reference, integer] pairs. 19 * @param <V> The type of object referred to by this reference 24 final T reference; field in class:AtomicStampedReference.Pair 26 private Pair(T reference, int stamp) { argument 27 this.reference = reference; 30 static <T> Pair<T> of(T reference, int stamp) { argument 31 return new Pair<T>(reference, stamp); 41 * @param initialRef the initial reference [all...] |
/libcore/luni/src/main/java/java/lang/ref/ |
H A D | FinalizerReference.java | 54 FinalizerReference<?> reference = new FinalizerReference<Object>(referent, queue); 56 reference.prev = null; 57 reference.next = head; 59 head.prev = reference; 61 head = reference; 65 public static void remove(FinalizerReference<?> reference) { argument 67 FinalizerReference<?> next = reference.next; 68 FinalizerReference<?> prev = reference.prev; 69 reference.next = null; 70 reference [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
H A D | OptionalIntTest.java | 53 final AtomicInteger reference = new AtomicInteger(); 54 IntConsumer recorder = value -> reference.set(value);; 56 assertEquals(56, reference.get());
|
H A D | OptionalLongTest.java | 53 final AtomicLong reference = new AtomicLong(); 54 LongConsumer recorder = (long value) -> reference.set(value); 56 assertEquals(56, reference.get());
|
H A D | OptionalTest.java | 77 final AtomicReference<String> reference = new AtomicReference<>(); 80 Optional.of(foo).ifPresent(s -> reference.set(s)); 81 assertSame(foo, reference.get()); 102 final AtomicReference<String> reference = new AtomicReference<>(); 103 optionalFoo.filter(s -> { reference.set(s); return true; }); 104 assertSame(foo, reference.get()); 116 final AtomicReference<String> reference = new AtomicReference<>(); 117 Function<String, String> identity = (String s) -> { reference.set(s); return s; }; 122 assertSame(foo, reference.get()); 137 final AtomicReference<String> reference [all...] |
H A D | OptionalDoubleTest.java | 55 final AtomicReference<Double> reference = new AtomicReference<>(); 56 DoubleConsumer recorder = value -> reference.set(value); 58 assertEquals(56.0, reference.get().doubleValue());
|
H A D | OldCollectionsTest.java | 47 public void assertDeserialized(Serializable reference, Serializable test) { 48 assertSame(reference, test);
|
/libcore/dalvik/src/test/java/dalvik/system/ |
H A D | CloseGuardMonitor.java | 33 * class needs to run on the reference implementation which does not have this class. It implements 77 // Create a weak reference to an object so that we can detect when it is garbage collected. 78 WeakReference<Object> reference = new WeakReference<>(new Object()); 94 // Check to see if the weak reference has been garbage collected. 95 if (reference.get() == null) {
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/ |
H A D | HttpRetryExceptionTest.java | 36 public void assertDeserialized(Serializable reference, Serializable test) { 38 HttpRetryException ref = (HttpRetryException) reference;
|
/libcore/ojluni/src/main/java/java/lang/ref/ |
H A D | ReferenceQueue.java | 32 * Reference queues, to which registered reference objects are appended by the 41 // when a reference has been enqueued and removed from its queue. 52 * Constructs a new reference-object queue. 57 * Enqueue the given reference onto this queue. 59 * and for calling notifyAll on this queue after the reference has been 60 * enqueued. Returns true if the reference was enqueued successfully, 61 * false if the reference had already been enqueued. 65 // Verify the reference has not already been enqueued. 71 // If this reference is a Cleaner, then simply invoke the clean method instead 77 // Update queueNext to indicate that the reference ha 97 isEnqueued(Reference<? extends T> reference) argument 110 enqueue(Reference<? extends T> reference) argument [all...] |
/libcore/libart/src/main/java/java/lang/ |
H A D | Daemons.java | 31 * Calls Object.finalize() on objects in the finalizer reference queue. The VM 135 * pending list to the managed reference queue. 169 // Object (not reference!) being finalized. Accesses may race! 217 private void doFinalize(FinalizerReference<?> reference) { argument 218 FinalizerReference.remove(reference); 219 Object object = reference.get(); 220 reference.clear(); 331 * processing a single reference, return that reference. Otherwise return null.
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | Collections2Test.java | 49 public void assertDeserialized(Serializable reference, Serializable test) { 50 assertSame(reference, test);
|
/libcore/xml/src/main/java/org/kxml2/io/ |
H A D | KXmlParser.java | 446 * reference. 1183 * Reads an entity reference from the buffer, resolves it, and writes the 1185 * {@code out} will contain the partial entity reference. 1216 // intentionally leave the partial reference in 'out' 1240 throw new XmlPullParserException("Invalid character reference: &" + code); 1242 throw new XmlPullParserException("Invalid character reference: &" + code);
|
/libcore/ |
H A D | JavaLibrary.mk | 397 # ../out/target/common/docs/libcore/reference/packages.html
|