/external/chromium/base/memory/ |
weak_ptr.cc | 10 WeakReference::Flag::Flag(Flag** handle) : handle_(handle) { 13 void WeakReference::Flag::Invalidate() { 18 bool WeakReference::Flag::IsValid() const { 23 WeakReference::Flag::~Flag() { 28 WeakReference::WeakReference() { 31 WeakReference::WeakReference(Flag* flag) : flag_(flag) { 34 WeakReference::~WeakReference() { [all...] |
weak_ptr.h | 66 class BASE_API WeakReference { 88 WeakReference(); 89 WeakReference(Flag* flag); 90 ~WeakReference(); 103 WeakReference GetRef() const; 117 mutable WeakReference::Flag* flag_; 130 WeakPtrBase(const WeakReference& ref); 132 WeakReference ref_; 177 ref_ = internal::WeakReference(); 185 WeakPtr(const internal::WeakReference& ref, T* ptr [all...] |
/libcore/luni/src/main/java/java/lang/ref/ |
WeakReference.java | 70 * The difference between a {@code SoftReference} and a {@code WeakReference} is 81 * A {@code WeakReference} may be cleared and enqueued as soon as is 86 public class WeakReference<T> extends Reference<T> { 94 public WeakReference(T r) { 107 public WeakReference(T r, ReferenceQueue<? super T> q) {
|
/dalvik/tests/072-precise-gc/src/ |
Main.java | 17 import java.lang.ref.WeakReference; 25 WeakReference wrefs[] = new WeakReference[10]; 32 static void populate(WeakReference[] wrefs) { 49 wrefs[0] = new WeakReference(str0); 50 wrefs[1] = new WeakReference(str1); 51 wrefs[2] = new WeakReference(str2); 52 wrefs[3] = new WeakReference(str3); 53 wrefs[4] = new WeakReference(str4); 54 wrefs[5] = new WeakReference(str5) [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ref/ |
WeakReferenceTest.java | 21 import java.lang.ref.WeakReference; 31 * @tests java.lang.ref.WeakReference#WeakReference(java.lang.Object, 38 WeakReference wr = new WeakReference(bool, rq); 47 new WeakReference(bool, null); 55 * @tests java.lang.ref.WeakReference#WeakReference(java.lang.Object) 59 WeakReference wr = new WeakReference(bool) [all...] |
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/luni/src/test/java/tests/api/java/lang/ref/ |
WeakReferenceTest.java | 21 import java.lang.ref.WeakReference; 31 * java.lang.ref.WeakReference#WeakReference(java.lang.Object, 39 WeakReference wr = new WeakReference(bool, rq); 50 new WeakReference(bool, null); 58 * java.lang.ref.WeakReference#WeakReference(java.lang.Object) 63 WeakReference wr = new WeakReference(bool) [all...] |
ReferenceTest.java | 23 import java.lang.ref.WeakReference; 37 static class TestWeakReference<T> extends WeakReference<T> { 92 WeakReference wr = new WeakReference(tmpB, new ReferenceQueue()); 125 ref = new WeakReference(obj, rq); 239 WeakReference ref = newWeakReference(null); 243 assertNull("get() doesn't return null after gc for WeakReference", ref.get()); 246 ref = new WeakReference<Object>(obj, new ReferenceQueue<Object>()); 248 assertNull("get() doesn't return null after clear for WeakReference", ref.get()); 256 private WeakReference<Object> newWeakReference(ReferenceQueue<Object> queue) [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
StaticInnerHandlerWrapper.java | 22 import java.lang.ref.WeakReference; 25 final private WeakReference<T> mOuterInstanceRef; 30 mOuterInstanceRef = new WeakReference<T>(outerInstance); 36 mOuterInstanceRef = new WeakReference<T>(outerInstance);
|
/external/guava/src/com/google/common/base/ |
FinalizableWeakReference.java | 19 import java.lang.ref.WeakReference; 29 public abstract class FinalizableWeakReference<T> extends WeakReference<T>
|
/dalvik/tests/003-omnibus-opcodes/src/ |
InternedString.java | 31 WeakReference strRef = new WeakReference<String>(s.intern()); 40 WeakReference strRef = new WeakReference<String>(CONST.intern()); 50 strRef = new WeakReference<String>(s.intern());
|
/frameworks/base/core/java/com/android/internal/os/ |
BinderInternal.java | 29 import java.lang.ref.WeakReference; 38 static WeakReference<GcWatcher> mGcWatcher 39 = new WeakReference<GcWatcher>(new GcWatcher()); 47 mGcWatcher = new WeakReference<GcWatcher>(new GcWatcher());
|
/dalvik/tests/036-finalizer/src/ |
Main.java | 3 import java.lang.ref.WeakReference; 20 public static WeakReference makeRef() { 27 final WeakReference[] wimp = new WeakReference[1]; 31 wimp[0] = new WeakReference(ft); 47 public static String wimpString(final WeakReference wimp) { 76 WeakReference wimp = makeRef();
|
FinalizerTest.java | 3 import java.lang.ref.WeakReference;
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
SparseWeakArray.java | 24 import java.lang.ref.WeakReference; 27 * This is a custom {@link SparseArray} that uses {@link WeakReference} around the objects added 45 private static final WeakReference<?> DELETED = new WeakReference(DELETED_REF); 64 mValues = new WeakReference[initialCapacity]; 125 WeakReference<?>[] values = mValues; 128 WeakReference<?> val = values[i]; 148 WeakReference<?>[] nvalues = new WeakReference[newSize]; 167 mValues[i] = new WeakReference(value) [all...] |
/external/javassist/src/main/javassist/ |
LoaderClassPath.java | 20 import java.lang.ref.WeakReference; 28 * <code>WeakReference</code>. If the class loader is garbage collected, 42 private WeakReference clref; 48 clref = new WeakReference(cl);
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
NotifyingAsyncQueryHandler.java | 23 import java.lang.ref.WeakReference; 27 * {@link WeakReference} back to a listener. Will properly close any 34 private WeakReference<AsyncQueryListener> mListener; 53 mListener = new WeakReference<AsyncQueryListener>(listener);
|
WeakAsyncTask.java | 21 import java.lang.ref.WeakReference; 25 protected WeakReference<WeakTarget> mTarget; 28 mTarget = new WeakReference<WeakTarget>(target);
|
/external/apache-http/src/org/apache/http/impl/conn/tsccm/ |
BasicPoolEntryRef.java | 34 import java.lang.ref.WeakReference; 46 public class BasicPoolEntryRef extends WeakReference<BasicPoolEntry> {
|
/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/graphics/java/android/graphics/ |
SurfaceTexture.java | 19 import java.lang.ref.WeakReference; 120 nativeInit(texName, new WeakReference<SurfaceTexture>(this), allowSynchronousMode); 254 WeakReference weakSelf = (WeakReference)selfRef;
|
/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);
|
/packages/apps/Camera/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) {
|
/libcore/luni/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));
|