HomeSort by relevance Sort by last modified time
    Searched refs:WeakReference (Results 26 - 50 of 261) sorted by null

12 3 4 5 6 7 8 91011

  /external/chromium_org/base/memory/
weak_ptr.h 82 class BASE_EXPORT WeakReference {
102 WeakReference();
103 explicit WeakReference(const Flag* flag);
104 ~WeakReference();
117 WeakReference GetRef() const;
126 mutable scoped_refptr<WeakReference::Flag> flag_;
139 explicit WeakPtrBase(const WeakReference& ref);
141 WeakReference ref_;
228 ref_ = internal::WeakReference();
243 WeakPtr(const internal::WeakReference& ref, T* ptr
    [all...]
  /packages/apps/Camera/tests/src/com/android/camera/functional/
CameraTest.java 31 import java.lang.ref.WeakReference;
62 ArrayList<WeakReference<Activity>> refs =
63 new ArrayList<WeakReference<Activity>>();
66 refs.add(new WeakReference<Activity>(activity));
75 for (WeakReference<Activity> c: refs) {
  /packages/apps/Camera2/tests/src/com/android/camera/functional/
CameraTest.java 31 import java.lang.ref.WeakReference;
62 ArrayList<WeakReference<Activity>> refs =
63 new ArrayList<WeakReference<Activity>>();
66 refs.add(new WeakReference<Activity>(activity));
75 for (WeakReference<Activity> c: refs) {
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/
PersonalizationDictionaryUpdateSession.java 21 import java.lang.ref.WeakReference;
48 public WeakReference<PersonalizationDictionary> mDictionary;
49 public WeakReference<DecayingExpandableBinaryDictionaryBase> mPredictionDictionary;
60 mDictionary = new WeakReference<PersonalizationDictionary>(dictionary);
65 new WeakReference<DecayingExpandableBinaryDictionaryBase>(dictionary);
  /frameworks/base/core/java/android/text/style/
DynamicDrawableSpan.java 27 import java.lang.ref.WeakReference;
112 WeakReference<Drawable> wr = mDrawableRef;
120 mDrawableRef = new WeakReference<Drawable>(d);
126 private WeakReference<Drawable> mDrawableRef;
  /frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
ProviderExecutor.java 26 import java.lang.ref.WeakReference;
56 private final ArrayList<WeakReference<Preemptable>> mPreemptable = Lists.newArrayList();
61 for (WeakReference<Preemptable> ref : mPreemptable) {
79 mPreemptable.add(new WeakReference<Preemptable>((Preemptable) task));
  /external/jmonkeyengine/engine/src/core/com/jme3/asset/
AssetCache.java 35 import java.lang.ref.WeakReference;
49 public WeakReference<AssetKey> smartKey;
72 smartInfo.smartKey = new WeakReference<AssetKey>(key);
  /frameworks/base/core/java/android/os/
Registrant.java 22 import java.lang.ref.WeakReference;
31 refH = new WeakReference(h);
120 WeakReference refH;
FileObserver.java 23 import java.lang.ref.WeakReference;
79 private HashMap<Integer, WeakReference> m_observers = new HashMap<Integer, WeakReference>();
97 m_observers.put(i, new WeakReference(observer));
113 WeakReference weak = m_observers.get(wfd);
  /libcore/luni/src/test/java/tests/api/java/lang/ref/
ReferenceTest.java 23 import java.lang.ref.WeakReference;
38 static class TestWeakReference<T> extends WeakReference<T> {
93 WeakReference wr = new WeakReference(tmpB, new ReferenceQueue());
126 ref = new WeakReference(obj, rq);
237 WeakReference ref = newWeakReference(null);
240 assertNull("get() doesn't return null after gc for WeakReference", ref.get());
243 ref = new WeakReference<Object>(obj, new ReferenceQueue<Object>());
245 assertNull("get() doesn't return null after clear for WeakReference", ref.get());
253 private WeakReference<Object> newWeakReference(ReferenceQueue<Object> queue)
    [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/util/
WeakAsyncTask.java 21 import java.lang.ref.WeakReference;
25 protected WeakReference<WeakTarget> mTarget;
28 mTarget = new WeakReference<WeakTarget>(target);
  /packages/apps/LegacyCamera/tests/src/com/android/camera/functional/
CameraTest.java 35 import java.lang.ref.WeakReference;
67 ArrayList<WeakReference<Activity>> refs =
68 new ArrayList<WeakReference<Activity>>();
71 refs.add(new WeakReference<Activity>(activity));
80 for (WeakReference<Activity> c: refs) {
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ref/
ReferenceTest.java 22 import java.lang.ref.WeakReference;
27 volatile WeakReference wr;
40 WeakReference wr = new WeakReference(tmpB, new ReferenceQueue());
68 ref = new WeakReference(obj, rq);
103 wr = new WeakReference(testObj, rq);
139 Reference ref = new WeakReference(obj, new ReferenceQueue());
  /libcore/libdvm/src/main/java/java/lang/reflect/
Proxy.java 21 import java.lang.ref.WeakReference;
39 private static final Map<ClassLoader, Map<String, WeakReference<Class<?>>>> loaderCache = new WeakHashMap<ClassLoader, Map<String, WeakReference<Class<?>>>>();
133 Map<String, WeakReference<Class<?>>> interfaceCache = loaderCache
139 (interfaceCache = new HashMap<String, WeakReference<Class<?>>>()));
155 WeakReference<Class<?>> ref = interfaceCache.get(interfaceKey);
167 interfaceCache.put(interfaceKey, new WeakReference<Class<?>>(newClass));
  /frameworks/base/core/java/android/emoji/
EmojiFactory.java 21 import java.lang.ref.WeakReference;
60 private Map<Integer, WeakReference<Bitmap>> mCache;
74 mCache = new CustomLinkedHashMap<Integer, WeakReference<Bitmap>>();
102 WeakReference<Bitmap> cache = mCache.get(pua);
109 mCache.put(pua, new WeakReference<Bitmap>(ret));
116 mCache.put(pua, new WeakReference<Bitmap>(ret));
  /libcore/luni/src/main/java/java/io/
ObjectStreamField.java 20 import java.lang.ref.WeakReference;
67 this.type = new WeakReference<Class<?>>(cl);
92 this.type = (cl.getClassLoader() == null) ? cl : new WeakReference<Class<?>>(cl);
168 if (type instanceof WeakReference) {
169 return (Class<?>) ((WeakReference<?>) type).get();
312 type = (cl.getClassLoader() == null) ? cl : new WeakReference<Class<?>>(cl);
  /external/chromium_org/chrome/test/android/javatests/src/org/chromium/chrome/test/util/
TabBaseTabUtils.java 18 import java.lang.ref.WeakReference;
59 private WeakReference<ContextMenu> mContextMenu;
62 mContextMenu = new WeakReference<ContextMenu>(menu);
  /external/guava/guava-tests/test/com/google/common/base/
FinalizableReferenceQueueTest.java 24 import java.lang.ref.WeakReference;
77 private WeakReference<ReferenceQueue<Object>> queueReference;
107 queueReference = new WeakReference<ReferenceQueue<Object>>(frq.queue);
  /external/guava/guava-tests/test/com/google/common/collect/
InternersTest.java 24 import java.lang.ref.WeakReference;
74 WeakReference<Integer> signal = new WeakReference<Integer>(canonical);
  /external/jmonkeyengine/engine/src/core/com/jme3/util/
NativeObjectManager.java 37 import java.lang.ref.WeakReference;
69 private WeakReference<NativeObject> realObj;
75 this.realObj = new WeakReference<NativeObject>(obj);
  /frameworks/base/core/java/android/view/
InputEventSender.java 25 import java.lang.ref.WeakReference;
43 private static native int nativeInit(WeakReference<InputEventSender> sender,
65 mSenderPtr = nativeInit(new WeakReference<InputEventSender>(this),
  /frameworks/base/tests/CoreTests/android/core/
HeapTest.java 30 import java.lang.ref.WeakReference;
40 * Returns a WeakReference to an object that has no
45 private WeakReference<Object> newRef() {
46 return new WeakReference<Object>(new Object());
177 private static void makeRefs(Object objects[], WeakReference<Object> refs[]) {
180 refs[i] = new WeakReference<Object>(objects[i]);
184 private static <T> void checkRefs(T objects[], WeakReference<T> refs[]) {
203 WeakReference<Object> refs[] = new WeakReference[objects.length];
360 WeakReference<FinalizableObject> refs[])
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/ui/
EmptyFolderDialogFragment.java 30 import java.lang.ref.WeakReference;
51 private WeakReference<EmptyFolderDialogFragmentListener> mListener = null;
111 mListener = new WeakReference<EmptyFolderDialogFragmentListener>(listener);
  /frameworks/base/graphics/java/android/graphics/
SurfaceTexture.java 19 import java.lang.ref.WeakReference;
306 WeakReference weakSelf = (WeakReference)selfRef;
327 nativeInit(texName, singleBufferMode, new WeakReference<SurfaceTexture>(this));
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/
BitmapCache.java 25 import java.lang.ref.WeakReference;
31 private HashMap<Long, ArrayList<WeakReference<Bitmap>>>
32 mBitmapCache = new HashMap<Long, ArrayList<WeakReference<Bitmap>>>();
145 ArrayList<WeakReference<Bitmap>> list = mBitmapCache.get(key);
147 list = new ArrayList<WeakReference<Bitmap>>();
165 WeakReference<Bitmap> ref = list.get(i);
170 list.add(new WeakReference<Bitmap>(bitmap));
177 WeakReference<Bitmap> ref = null;
178 ArrayList<WeakReference<Bitmap>> list = mBitmapCache.get(key);

Completed in 2545 milliseconds

12 3 4 5 6 7 8 91011