Searched refs:reference (Results 1 - 19 of 19) sorted by relevance

/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/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/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/luni/src/test/java/libcore/java/util/
H A DOptionalIntTest.java53 final AtomicInteger reference = new AtomicInteger();
54 IntConsumer recorder = value -> reference.set(value);;
56 assertEquals(56, reference.get());
H A DOptionalLongTest.java53 final AtomicLong reference = new AtomicLong();
54 LongConsumer recorder = (long value) -> reference.set(value);
56 assertEquals(56, reference.get());
H A DOptionalTest.java77 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 DOptionalDoubleTest.java55 final AtomicReference<Double> reference = new AtomicReference<>();
56 DoubleConsumer recorder = value -> reference.set(value);
58 assertEquals(56.0, reference.get().doubleValue());
H A DOldCollectionsTest.java47 public void assertDeserialized(Serializable reference, Serializable test) {
48 assertSame(reference, test);
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
H A DHttpRetryExceptionTest.java36 public void assertDeserialized(Serializable reference, Serializable test) {
38 HttpRetryException ref = (HttpRetryException) reference;
/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/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/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/metrictests/memory/host/src/libcore/heapmetrics/
H A DHeapCategorization.java107 * reference graph is libcore). Excludes interned strings (which are in {@code java.lang}
292 // Do a BFS of the strong reference graph looking for matching classes.
301 // Don't continue up the reference tree, as every instance of this class has a
302 // reference to it.
309 // If it's not a match, continue searching up the strong reference graph.
314 for (AhatInstance reference : instance.getHardReverseReferences()) {
315 if (!visited.contains(reference)) {
316 visited.add(reference);
317 queue.add(reference);
/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...]
/libcore/ojluni/src/main/java/java/lang/invoke/
H A DMethodType.java52 * The types (primitive, {@code void}, and reference) are represented by {@link Class} objects.
505 /** Return the leading parameter type, which must exist and be a reference.
512 throw newIllegalArgumentException("no leading reference parameter");
603 * The reference type {@code java.lang.Void} counts as a wrapper,
612 * Erases all reference types to {@code Object}.
615 * @return a version of the original type with all reference types replaced
622 * Erases all reference types to {@code Object}, and all subword types to {@code int}.
625 * @return a version of the original type with all reference and subword types replaced
639 * Converts all types, both reference and primitive, to {@code Object}.
656 * All reference type
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DCollections2Test.java49 public void assertDeserialized(Serializable reference, Serializable test) {
50 assertSame(reference, test);
/libcore/xml/src/main/java/org/kxml2/io/
H A DKXmlParser.java446 * 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 DJavaLibrary.mk324 # ../out/target/common/docs/libcore/reference/packages.html

Completed in 449 milliseconds