/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...] |
/external/chromium_org/base/memory/ |
weak_ptr.cc | 10 WeakReference::Flag::Flag() : is_valid_(true) { 17 void WeakReference::Flag::Invalidate() { 25 bool WeakReference::Flag::IsValid() const { 31 WeakReference::Flag::~Flag() { 34 WeakReference::WeakReference() { 37 WeakReference::WeakReference(const Flag* flag) : flag_(flag) { 40 WeakReference::~WeakReference() { [all...] |
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...] |
/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) {
|
/external/chromium_org/third_party/WebKit/Source/wtf/ |
WeakPtr.h | 38 class WeakReference : public ThreadSafeRefCounted<WeakReference<T> > { 39 WTF_MAKE_NONCOPYABLE(WeakReference<T>); 42 static PassRefPtr<WeakReference<T> > create(T* ptr) { return adoptRef(new WeakReference(ptr)); } 43 static PassRefPtr<WeakReference<T> > createUnbound() { return adoptRef(new WeakReference()); } 67 WeakReference() : m_ptr(0) { } 69 explicit WeakReference(T* ptr) 88 WeakPtr(PassRefPtr<WeakReference<T> > ref) : m_ref(ref) { [all...] |
/art/test/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...] |
/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...] |
/art/test/003-omnibus-opcodes/src/ |
InternedString.java | 28 private static WeakReference<String> makeWeakString() { 31 WeakReference<String> strRef = new WeakReference<String>(s.intern()); 36 WeakReference<String> strRef = makeWeakString(); 43 WeakReference strRef = new WeakReference<String>(CONST.intern()); 53 strRef = new WeakReference<String>(s.intern());
|
/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...] |
/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...] |
/external/guava/guava/src/com/google/common/base/ |
FinalizableWeakReference.java | 20 import java.lang.ref.WeakReference; 30 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());
|
/external/chromium_org/base/android/java/src/org/chromium/base/ |
WeakContext.java | 9 import java.lang.ref.WeakReference; 12 // Holds a WeakReference to Context to allow it to be GC'd. 16 private static WeakReference<Context> sWeakContext; 19 sWeakContext = new WeakReference<Context>(context);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
StaticInnerHandlerWrapper.java | 22 import java.lang.ref.WeakReference; 25 private final WeakReference<T> mOuterInstanceRef; 36 mOuterInstanceRef = new WeakReference<T>(outerInstance);
|
/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());
|
/art/test/036-finalizer/src/ |
Main.java | 17 import java.lang.ref.WeakReference; 34 public static WeakReference makeRef() { 41 final WeakReference[] wimp = new WeakReference[1]; 45 wimp[0] = new WeakReference(ft); 61 public static String wimpString(final WeakReference wimp) { 90 WeakReference wimp = makeRef();
|
FinalizerTest.java | 17 import java.lang.ref.WeakReference;
|
/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);
|
/external/smack/src/org/jivesoftware/smackx/ping/ |
ServerPingTask.java | 19 import java.lang.ref.WeakReference; 29 private WeakReference<Connection> weakConnection; 35 this.weakConnection = new WeakReference<Connection>(connection);
|
/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);
|
/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> {
|