Searched defs:reference (Results 1 - 8 of 8) sorted by relevance

/libcore/luni/src/main/java/java/lang/ref/
H A DFinalizerReference.java56 FinalizerReference<?> reference = new FinalizerReference<Object>(referent, queue);
58 reference.prev = null;
59 reference.next = head;
61 head.prev = reference;
63 head = reference;
67 public static void remove(FinalizerReference<?> reference) { argument
69 FinalizerReference<?> next = reference.next;
70 FinalizerReference<?> prev = reference.prev;
71 reference.next = null;
72 reference
[all...]
/libcore/ojluni/src/main/java/java/lang/ref/
H A DReferenceQueue.java32 * 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/ojluni/src/main/java/java/util/concurrent/atomic/
H A DAtomicMarkableReference.java39 * An {@code AtomicMarkableReference} maintains an object reference
44 * [reference, boolean] pairs.
48 * @param <V> The type of object referred to by this reference
53 final T reference; field in class:AtomicMarkableReference.Pair
55 private Pair(T reference, boolean mark) { argument
56 this.reference = reference;
59 static <T> Pair<T> of(T reference, boolean mark) { argument
60 return new Pair<T>(reference, mark);
70 * @param initialRef the initial reference
[all...]
H A DAtomicStampedReference.java39 * An {@code AtomicStampedReference} maintains an object reference
44 * [reference, integer] pairs.
48 * @param <V> The type of object referred to by this reference
53 final T reference; field in class:AtomicStampedReference.Pair
55 private Pair(T reference, int stamp) { argument
56 this.reference = reference;
59 static <T> Pair<T> of(T reference, int stamp) { argument
60 return new Pair<T>(reference, stamp);
70 * @param initialRef the initial reference
[all...]
/libcore/ojluni/src/test/java/time/test/java/time/
H A DTestLocalDate.java210 public void test_plusWeeks_symmetry(LocalDate reference) { argument
212 LocalDate t = reference.plusWeeks(weeks).plusWeeks(-weeks);
213 assertEquals(t, reference);
215 t = reference.plusWeeks(-weeks).plusWeeks(weeks);
216 assertEquals(t, reference);
262 public void test_plusDays_symmetry(LocalDate reference) { argument
264 LocalDate t = reference.plusDays(days).plusDays(-days);
265 assertEquals(t, reference);
267 t = reference.plusDays(-days).plusDays(days);
268 assertEquals(t, reference);
338 test_minusWeeks_symmetry(LocalDate reference) argument
390 test_minusDays_symmetry(LocalDate reference) argument
[all...]
/libcore/libart/src/main/java/java/lang/
H A DDaemons.java31 * Calls Object.finalize() on objects in the finalizer reference queue. The VM
163 * pending list to the managed reference queue.
197 // Object (not reference!) being finalized. Accesses may race!
245 private void doFinalize(FinalizerReference<?> reference) { argument
246 FinalizerReference.remove(reference);
247 Object object = reference.get();
248 reference.clear();
359 * processing a single reference, return that reference. Otherwise return null.
/libcore/dalvik/src/main/java/dalvik/system/
H A DEmulatedStackFrame.java44 * All reference arguments and reference return values that belong to this argument array.
46 * If the return type is a reference, it will be the last element of this array.
55 * in the {@code references} array. No additional slots or space for reference arguments or
180 * Sets the {@code idx} to {@code reference}. Type checks are performed.
182 public void setReference(int idx, Object reference) { argument
188 if (reference != null && !ptypes[idx].isInstance(reference)) {
189 throw new IllegalStateException("reference is not of type: " + type.ptypes()[idx]);
192 references[idx] = reference;
241 setReturnValueTo(Object reference) argument
[all...]
/libcore/ojluni/src/test/java/time/tck/java/time/
H A DTCKLocalDateTime.java1562 public void test_plusWeeks_symmetry(LocalDateTime reference) { argument
1564 LocalDateTime t = reference.plusWeeks(weeks).plusWeeks(-weeks);
1565 assertEquals(t, reference);
1567 t = reference.plusWeeks(-weeks).plusWeeks(weeks);
1568 assertEquals(t, reference);
1672 public void test_plusDays_symmetry(LocalDateTime reference) { argument
1674 LocalDateTime t = reference.plusDays(days).plusDays(-days);
1675 assertEquals(t, reference);
1677 t = reference.plusDays(-days).plusDays(days);
1678 assertEquals(t, reference);
2251 test_minusWeeks_symmetry(LocalDateTime reference) argument
2361 test_minusDays_symmetry(LocalDateTime reference) argument
[all...]

Completed in 310 milliseconds