/external/libchrome/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() = default; 33 WeakReference::WeakReference() = default; 35 WeakReference::WeakReference(const scoped_refptr<Flag>& flag) : flag_(flag) {} 37 WeakReference::~WeakReference() = default [all...] |
weak_ptr.h | 91 class BASE_EXPORT WeakReference { 111 WeakReference(); 112 explicit WeakReference(const scoped_refptr<Flag>& flag); 113 ~WeakReference(); 115 WeakReference(WeakReference&& other); 116 WeakReference(const WeakReference& other); 117 WeakReference& operator=(WeakReference&& other) = default [all...] |
/art/tools/ahat/src/ri-test-dump/ |
DumpedStuff.java | 17 import java.lang.ref.WeakReference; 39 public WeakReference aWeakRefToFinalizable = new WeakReference(new Finalizable());
|
/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...] |
/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());
|
/art/test/154-gc-loop/src/ |
Main.java | 17 import java.lang.ref.WeakReference; 22 watcher = new WeakReference<GcWatcher>(new GcWatcher()); 26 static WeakReference<GcWatcher> watcher = new WeakReference<GcWatcher>(new GcWatcher());
|
/art/test/072-reachability-fence/src/ |
Main.java | 18 import java.lang.ref.WeakReference; 23 WeakReference wrefs[] = new WeakReference[5]; 29 wrefs[0] = new WeakReference(str0); 30 wrefs[1] = new WeakReference(str1); 31 wrefs[2] = new WeakReference(str2); 32 wrefs[3] = new WeakReference(str3); 33 wrefs[4] = new WeakReference(str4);
|
/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>
|
Platform.java | 21 import java.lang.ref.WeakReference; 42 WeakReference<? extends Enum<?>> ref = Enums.getEnumConstants(enumClass).get(value);
|
Enums.java | 26 import java.lang.ref.WeakReference; 80 @GwtIncompatible("java.lang.ref.WeakReference") 81 private static final Map<Class<? extends Enum<?>>, Map<String, WeakReference<? extends Enum<?>>>> 83 <Class<? extends Enum<?>>, Map<String, WeakReference<? extends Enum<?>>>>(); 85 @GwtIncompatible("java.lang.ref.WeakReference") 86 private static <T extends Enum<T>> Map<String, WeakReference<? extends Enum<?>>> populateCache( 88 Map<String, WeakReference<? extends Enum<?>>> result 89 = new HashMap<String, WeakReference<? extends Enum<?>>>(); 91 result.put(enumInstance.name(), new WeakReference<Enum<?>>(enumInstance)); 97 @GwtIncompatible("java.lang.ref.WeakReference") [all...] |
/art/test/1338-gc-no-los/src-art/ |
Main.java | 18 import java.lang.ref.WeakReference; 29 WeakReference weakRef = new WeakReference(arr2);
|
/external/mockito/src/main/java/org/mockito/internal/invocation/mockref/ |
MockWeakReference.java | 9 import java.lang.ref.WeakReference; 17 private final WeakReference<T> ref; 20 this.ref = new WeakReference<T>(t);
|
/art/test/153-reference-stress/src/ |
Main.java | 17 import java.lang.ref.WeakReference; 21 static WeakReference[] weakReferences = new WeakReference[numWeakReferences]; 47 weakReferences[j] = new WeakReference(temp); 54 weakReferences[j] = new WeakReference(o);
|
/external/libchrome/base/android/junit/src/org/chromium/base/ |
DiscardableReferencePoolTest.java | 16 import java.lang.ref.WeakReference; 32 WeakReference<Object> weakReference = new WeakReference<>(object); 50 Assert.assertNull(weakReference.get()); 63 WeakReference<Object> weakReference = new WeakReference<>(object); 78 Assert.assertNull(weakReference.get());
|
/external/guice/core/test/com/google/inject/internal/ |
WeakKeySetTest.java | 43 import java.lang.ref.WeakReference; 70 WeakReference<Key<Integer>> weakKeyRef = new WeakReference<>(key); 91 WeakReference<Key<Integer>> weakKeyRef = new WeakReference<>(key); 121 WeakReference<Key<Integer>> weakKey1Ref = new WeakReference<>(key1); 122 WeakReference<Key<Integer>> weakKey2Ref = new WeakReference<>(key2); 123 WeakReference<Object> weakSource1Ref = new WeakReference<>(source1) [all...] |
/external/apache-http/src/org/apache/http/impl/conn/tsccm/ |
BasicPoolEntryRef.java | 34 import java.lang.ref.WeakReference; 51 public class BasicPoolEntryRef extends WeakReference<BasicPoolEntry> {
|
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/ |
Registries.java | 3 import java.lang.ref.WeakReference; 20 static final NativeObjRegistry<WeakReference<ResStringPool>> NATIVE_STRING_POOLS =
|
/art/test/141-class-unload/src/ |
Main.java | 20 import java.lang.ref.WeakReference; 96 WeakReference<Class> klass = setUpUnloadClassWeak(constructor); 99 WeakReference<Class> klass2 = setUpUnloadClassWeak(constructor); 108 WeakReference<ClassLoader> loader = setUpUnloadLoader(constructor, true); 117 WeakReference<Class> weak_klass = new WeakReference(klass); 128 WeakReference<ClassLoader> loader = setUpLoadLibrary(constructor); 143 classLoader = new WeakReference<ClassLoader>(l); 147 public WeakReference<ClassLoader> classLoader; 204 private static WeakReference<Class> setUpUnloadClassWeak(Constructor<?> constructor [all...] |
/external/guava/guava-tests/test/com/google/common/base/ |
FinalizableReferenceQueueClassLoaderUnloadingTest.java | 24 import java.lang.ref.WeakReference; 80 private WeakReference<ClassLoader> useFrqInSeparateLoader() throws Exception { 117 AtomicReference<WeakReference<?>> sepStopwatchRef = new AtomicReference<WeakReference<?>>( 118 (WeakReference<?>) sepFwrCons.newInstance(sepStopwatchA.get(), sepFrqA.get())); 125 return new WeakReference<ClassLoader>(sepLoader); 129 WeakReference<ClassLoader> loaderRef = useFrqInSeparateLoader(); 163 public static class FrqUser implements Callable<WeakReference<Object>> { 168 public WeakReference<Object> call() { 169 WeakReference<Object> wr = new FinalizableWeakReference<Object>(new Integer(23), frq) [all...] |
/external/guice/extensions/servlet/src/com/google/inject/servlet/ |
GuiceServletContextListener.java | 20 import java.lang.ref.WeakReference; 43 GuiceFilter.servletContext = new WeakReference<>(servletContext);
|
/external/oj-libjdwp/src/share/classes/com/sun/tools/jdi/ |
VMState.java | 30 import java.lang.ref.WeakReference; 37 private final List<WeakReference<VMListener>> listeners = new ArrayList<WeakReference<VMListener>>(); // synchronized (this) 145 Iterator<WeakReference<VMListener>> iter = listeners.iterator(); 147 WeakReference<VMListener> ref = iter.next(); 173 listeners.add(new WeakReference<VMListener>(listener)); 181 Iterator<WeakReference<VMListener>> iter = listeners.iterator(); 183 WeakReference<VMListener> ref = iter.next();
|
/art/test/616-cha-unloading/src-art/ |
Main.java | 17 import java.lang.ref.WeakReference; 28 private CHAUnloaderRetType(WeakReference<ClassLoader> cl, 35 public WeakReference<ClassLoader> cl; 53 WeakReference<ClassLoader> loader = result.cl; 93 return new CHAUnloaderRetType(new WeakReference(loader), ret, artMethod);
|
/external/guava/guava-testlib/test/com/google/common/testing/ |
GcFinalizationTest.java | 24 import java.lang.ref.WeakReference; 75 final WeakReference<Object> ref = new WeakReference<Object>(new Object()); 160 final WeakReference<Object> ref = new WeakReference<Object>(Boolean.TRUE); 200 final WeakReference<Object> ref = new WeakReference<Object>(
|
/art/tools/ahat/src/test-dump/ |
DumpedStuff.java | 20 import java.lang.ref.WeakReference; 61 aShortWeakPathToSamplePathObject = new WeakReference(new Reference(object)); 177 public WeakReference aWeakReference = new WeakReference(anObject, referenceQueue); 178 public WeakReference aNullReferentReference = new WeakReference(null, referenceQueue); 188 public WeakReference aShortWeakPathToSamplePathObject; 189 public WeakReference aWeakRefToGcRoot = new WeakReference(Main.class); 220 new WeakReference( [all...] |
/art/test/036-finalizer/src/ |
Main.java | 18 import java.lang.ref.WeakReference; 39 public static WeakReference<FinalizerTest> makeRef() { 41 WeakReference<FinalizerTest> ref = new WeakReference<FinalizerTest>(ft); 46 public static String wimpString(final WeakReference<FinalizerTest> wimp) { 75 WeakReference<FinalizerTest> wimp = makeRef(); 76 // Reference ft so we are sure the WeakReference cannot be cleared.
|