HomeSort by relevance Sort by last modified time
    Searched refs:ReferenceQueue (Results 1 - 25 of 61) sorted by null

1 2 3

  /libcore/luni/src/test/java/libcore/java/lang/ref/
ReferenceQueueTest.java 19 import java.lang.ref.ReferenceQueue;
28 ReferenceQueue<Object> referenceQueue = new ReferenceQueue<Object>();
30 referenceQueue.remove(-1);
37 ReferenceQueue<Object> referenceQueue = new ReferenceQueue<Object>();
38 enqueueLater(referenceQueue, 500);
39 referenceQueue.remove(Long.MAX_VALUE)
    [all...]
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ref/
PhantomReferenceTest.java 21 import java.lang.ref.ReferenceQueue;
34 ReferenceQueue rq = new ReferenceQueue();
42 * java.lang.ref.ReferenceQueue)
45 ReferenceQueue rq = new ReferenceQueue();
SoftReferenceTest.java 19 import java.lang.ref.ReferenceQueue;
31 * java.lang.ref.ReferenceQueue)
34 ReferenceQueue rq = new ReferenceQueue();
WeakReferenceTest.java 20 import java.lang.ref.ReferenceQueue;
32 * java.lang.ref.ReferenceQueue)
35 ReferenceQueue rq = new ReferenceQueue();
ReferenceTest.java 20 import java.lang.ref.ReferenceQueue;
39 SoftReference sr = new SoftReference(tmpA, new ReferenceQueue());
40 WeakReference wr = new WeakReference(tmpB, new ReferenceQueue());
55 ReferenceQueue rq = new ReferenceQueue();
66 rq = new ReferenceQueue();
96 final ReferenceQueue rq = new ReferenceQueue();
139 Reference ref = new WeakReference(obj, new ReferenceQueue());
147 ReferenceQueue rq = new ReferenceQueue()
    [all...]
ReferenceQueueTest.java 21 import java.lang.ref.ReferenceQueue;
54 ReferenceQueue rq;
57 * @tests java.lang.ref.ReferenceQueue#poll()
70 * @tests java.lang.ref.ReferenceQueue#remove()
83 * @tests java.lang.ref.ReferenceQueue#remove(long)
95 * @tests java.lang.ref.ReferenceQueue#ReferenceQueue()
102 rq = new ReferenceQueue();
  /libcore/luni/src/main/java/java/lang/ref/
PhantomReference.java 59 public PhantomReference(T r, ReferenceQueue<? super T> q) {
SoftReference.java 99 public SoftReference(T r, ReferenceQueue<? super T> q) {
WeakReference.java 107 public WeakReference(T r, ReferenceQueue<? super T> q) {
Reference.java 111 * and be a java.lang.ref.ReferenceQueue.
113 volatile ReferenceQueue<? super T> queue;
116 * Used internally by java.lang.ref.ReferenceQueue.
139 Reference(T r, ReferenceQueue<? super T> q) {
ReferenceQueue.java 21 * The {@code ReferenceQueue} is the container on which reference objects are
27 public class ReferenceQueue<T> {
35 public ReferenceQueue() {
149 synchronized (ReferenceQueue.class) {
157 ReferenceQueue.class.notifyAll();
  /libcore/luni/src/test/java/tests/api/java/lang/ref/
WeakReferenceTest.java 20 import java.lang.ref.ReferenceQueue;
32 * java.lang.ref.ReferenceQueue)
35 ReferenceQueue rq = new ReferenceQueue();
PhantomReferenceTest.java 22 import java.lang.ref.ReferenceQueue;
39 ReferenceQueue rq = new ReferenceQueue();
55 ReferenceQueue<? super T> q) {
66 final ReferenceQueue rq = new ReferenceQueue();
111 * java.lang.ref.ReferenceQueue)
114 ReferenceQueue rq = new ReferenceQueue();
ReferenceTest.java 21 import java.lang.ref.ReferenceQueue;
46 public TestWeakReference(T referent, ReferenceQueue<? super T> q) {
92 SoftReference sr = new SoftReference(tmpA, new ReferenceQueue());
93 WeakReference wr = new WeakReference(tmpB, new ReferenceQueue());
94 PhantomReference pr = new PhantomReference(tmpC, new ReferenceQueue());
112 ReferenceQueue rq = new ReferenceQueue();
123 rq = new ReferenceQueue();
147 ReferenceQueue<Object> queue = new ReferenceQueue<Object>()
    [all...]
  /art/test/079-phantom/src/
Bitmap.java 17 import java.lang.ref.ReferenceQueue;
28 private static ReferenceQueue<PhantomWrapper> sPhantomQueue =
29 new ReferenceQueue<PhantomWrapper>();
113 ReferenceQueue<PhantomWrapper> queue, int nativeDataPtr)
126 ReferenceQueue<PhantomWrapper> mQueue;
129 BitmapWatcher(ReferenceQueue<PhantomWrapper> queue) {
  /dalvik/tests/079-phantom/src/
Bitmap.java 17 import java.lang.ref.ReferenceQueue;
28 private static ReferenceQueue<PhantomWrapper> sPhantomQueue =
29 new ReferenceQueue<PhantomWrapper>();
113 ReferenceQueue<PhantomWrapper> queue, int nativeDataPtr)
126 ReferenceQueue<PhantomWrapper> mQueue;
129 BitmapWatcher(ReferenceQueue<PhantomWrapper> queue) {
  /external/apache-http/src/org/apache/http/impl/conn/tsccm/
BasicPoolEntryRef.java 35 import java.lang.ref.ReferenceQueue;
59 ReferenceQueue<Object> queue) {
BasicPoolEntry.java 34 import java.lang.ref.ReferenceQueue;
65 ReferenceQueue<Object> queue) {
RefQueueWorker.java 34 import java.lang.ref.ReferenceQueue;
44 * {@link ReferenceQueue queued}
55 protected final ReferenceQueue<?> refQueue;
74 public RefQueueWorker(ReferenceQueue<?> queue, RefQueueHandler handler) {
  /external/guava/guava/src/com/google/common/base/
FinalizablePhantomReference.java 20 import java.lang.ref.ReferenceQueue;
25 * {@link ReferenceQueue}.
FinalizableSoftReference.java 19 import java.lang.ref.ReferenceQueue;
25 * ReferenceQueue}.
FinalizableWeakReference.java 19 import java.lang.ref.ReferenceQueue;
25 * ReferenceQueue}.
  /packages/apps/Gallery/src/com/android/camera/gallery/
LruCache.java 19 import java.lang.ref.ReferenceQueue;
30 private ReferenceQueue<V> mQueue = new ReferenceQueue<V>();
45 public Entry(K key, V value, ReferenceQueue<V> queue) {
79 mQueue = new ReferenceQueue<V>();
  /packages/apps/Gallery2/src/com/android/gallery3d/util/
IdentityCache.java 19 import java.lang.ref.ReferenceQueue;
29 private ReferenceQueue<V> mQueue = new ReferenceQueue<V>();
37 public Entry(K key, V value, ReferenceQueue<V> queue) {
68 mQueue = new ReferenceQueue<V>();
  /external/javassist/src/main/javassist/scopedpool/
SoftValueHashMap.java 18 import java.lang.ref.ReferenceQueue;
36 private SoftValueRef(Object key, Object val, ReferenceQueue q) {
42 ReferenceQueue q) {
63 private ReferenceQueue queue = new ReferenceQueue();

Completed in 957 milliseconds

1 2 3