/external/libchrome/base/memory/ |
D | weak_ptr.cc | 10 WeakReference::Flag::Flag() : is_valid_(true) { in Flag() 17 void WeakReference::Flag::Invalidate() { in Invalidate() 25 bool WeakReference::Flag::IsValid() const { in IsValid() 31 WeakReference::Flag::~Flag() = default; 33 WeakReference::WeakReference() = default; 35 WeakReference::WeakReference(const scoped_refptr<Flag>& flag) : flag_(flag) {} in WeakReference() function in base::internal::WeakReference 37 WeakReference::~WeakReference() = default; 39 WeakReference::WeakReference(WeakReference&& other) = default; 41 WeakReference::WeakReference(const WeakReference& other) = default; 43 bool WeakReference::is_valid() const { in is_valid() [all …]
|
D | 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; 118 WeakReference& operator=(const WeakReference& other) = default; 131 WeakReference GetRef() const; 138 mutable scoped_refptr<WeakReference::Flag> flag_; [all …]
|
/external/guice/core/test/com/google/inject/internal/ |
D | WeakKeySetTest.java | 43 import java.lang.ref.WeakReference; 70 WeakReference<Key<Integer>> weakKeyRef = new WeakReference<>(key); in testEviction() 91 WeakReference<Key<Integer>> weakKeyRef = new WeakReference<>(key); in testEviction_nullSource() 121 WeakReference<Key<Integer>> weakKey1Ref = new WeakReference<>(key1); in testEviction_keyOverlap_2x() 122 WeakReference<Key<Integer>> weakKey2Ref = new WeakReference<>(key2); in testEviction_keyOverlap_2x() 123 WeakReference<Object> weakSource1Ref = new WeakReference<>(source1); in testEviction_keyOverlap_2x() 124 WeakReference<Object> weakSource2Ref = new WeakReference<>(source2); in testEviction_keyOverlap_2x() 169 WeakReference<Key<Integer>> weakKey1Ref = new WeakReference<>(key1); in testNoEviction_keyOverlap_2x() 170 WeakReference<Key<Integer>> weakKey2Ref = new WeakReference<>(key2); in testNoEviction_keyOverlap_2x() 198 WeakReference<Key<Integer>> weakKey1Ref = new WeakReference<>(key1); in testEviction_keyAndSourceOverlap_null() [all …]
|
/external/guava/guava-tests/test/com/google/common/base/ |
D | FinalizableReferenceQueueClassLoaderUnloadingTest.java | 24 import java.lang.ref.WeakReference; 80 private WeakReference<ClassLoader> useFrqInSeparateLoader() throws Exception { in useFrqInSeparateLoader() 117 AtomicReference<WeakReference<?>> sepStopwatchRef = new AtomicReference<WeakReference<?>>( in useFrqInSeparateLoader() 118 (WeakReference<?>) sepFwrCons.newInstance(sepStopwatchA.get(), sepFrqA.get())); in useFrqInSeparateLoader() 125 return new WeakReference<ClassLoader>(sepLoader); in useFrqInSeparateLoader() 129 WeakReference<ClassLoader> loaderRef = useFrqInSeparateLoader(); in doTestUnloadable() 163 public static class FrqUser implements Callable<WeakReference<Object>> { 168 public WeakReference<Object> call() { in call() 169 WeakReference<Object> wr = new FinalizableWeakReference<Object>(new Integer(23), frq) { in call() 185 WeakReference<ClassLoader> loaderRef = doTestUnloadableInStaticFieldIfClosed(); in testUnloadableInStaticFieldIfClosed() [all …]
|
D | FinalizableReferenceQueueTest.java | 25 import java.lang.ref.WeakReference; 75 private WeakReference<ReferenceQueue<Object>> queueReference; 94 queueReference = new WeakReference<ReferenceQueue<Object>>(frq.queue); in weaklyReferenceQueue()
|
/external/guava/guava/src/com/google/common/base/ |
D | Enums.java | 26 import 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<?>>>>(); 86 private static <T extends Enum<T>> Map<String, WeakReference<? extends Enum<?>>> populateCache( in populateCache() 88 Map<String, WeakReference<? extends Enum<?>>> result in populateCache() 89 = new HashMap<String, WeakReference<? extends Enum<?>>>(); in populateCache() 91 result.put(enumInstance.name(), new WeakReference<Enum<?>>(enumInstance)); in populateCache() 98 static <T extends Enum<T>> Map<String, WeakReference<? extends Enum<?>>> getEnumConstants( in getEnumConstants() 101 Map<String, WeakReference<? extends Enum<?>>> constants = in getEnumConstants()
|
D | FinalizableWeakReference.java | 20 import java.lang.ref.WeakReference; 30 public abstract class FinalizableWeakReference<T> extends WeakReference<T>
|
/external/oj-libjdwp/src/share/classes/com/sun/tools/jdi/ |
D | VMState.java | 30 import java.lang.ref.WeakReference; 37 …private final List<WeakReference<VMListener>> listeners = new ArrayList<WeakReference<VMListener>>… 145 Iterator<WeakReference<VMListener>> iter = listeners.iterator(); in processVMAction() 147 WeakReference<VMListener> ref = iter.next(); in processVMAction() 173 listeners.add(new WeakReference<VMListener>(listener)); in addListener() 181 Iterator<WeakReference<VMListener>> iter = listeners.iterator(); in removeListener() 183 WeakReference<VMListener> ref = iter.next(); in removeListener()
|
D | ThreadReferenceImpl.java | 31 import java.lang.ref.WeakReference; 116 …private List<WeakReference<ThreadListener>> listeners = new ArrayList<WeakReference<ThreadListener… 598 listeners.add(new WeakReference<ThreadListener>(listener)); in addListener() 604 Iterator<WeakReference<ThreadListener>> iter = listeners.iterator(); in removeListener() 606 WeakReference<ThreadListener> ref = iter.next(); in removeListener() 622 Iterator<WeakReference<ThreadListener>> iter = listeners.iterator(); in processThreadAction() 624 WeakReference<ThreadListener> ref = iter.next(); in processThreadAction()
|
/external/libchrome/base/android/junit/src/org/chromium/base/ |
D | DiscardableReferencePoolTest.java | 16 import java.lang.ref.WeakReference; 32 WeakReference<Object> weakReference = new WeakReference<>(object); in testDrain() 63 WeakReference<Object> weakReference = new WeakReference<>(object); in testReferenceGCd()
|
/external/guava/guava-testlib/test/com/google/common/testing/ |
D | GcFinalizationTest.java | 24 import java.lang.ref.WeakReference; 75 final WeakReference<Object> ref = new WeakReference<Object>(new Object()); in testAwaitClear() 160 final WeakReference<Object> ref = new WeakReference<Object>(Boolean.TRUE); in testAwaitClear_Interrupted() 200 final WeakReference<Object> ref = new WeakReference<Object>( in testAwaitFullGc()
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
D | StripedTest.java | 33 import java.lang.ref.WeakReference; 115 WeakReference<Object> weakRef = new WeakReference<Object>(striped.get(new Object())); in testWeakImplementations() 122 WeakReference<Object> weakRef = new WeakReference<Object>(striped.get(new Object())); in testStrongImplementations() 123 WeakReference<Object> garbage = new WeakReference<Object>(new Object()); in testStrongImplementations()
|
/external/mockito/src/main/java/org/mockito/internal/invocation/mockref/ |
D | MockWeakReference.java | 9 import java.lang.ref.WeakReference; 17 private final WeakReference<T> ref; 20 this.ref = new WeakReference<T>(t); in MockWeakReference()
|
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/ |
D | Engine.java | 20 import java.lang.ref.WeakReference; 35 private final Map<Key, WeakReference<EngineResource<?>>> activeResources; 64 … Map<Key, WeakReference<EngineResource<?>>> activeResources, EngineJobFactory engineJobFactory, in Engine() 70 activeResources = new HashMap<Key, WeakReference<EngineResource<?>>>(); in Engine() 162 WeakReference<EngineResource<?>> activeRef = activeResources.get(key); in load() 263 private static class ResourceWeakReference extends WeakReference<EngineResource<?>> { 274 private final Map<Key, WeakReference<EngineResource<?>>> activeResources; 277 public RefQueueIdleHandler(Map<Key, WeakReference<EngineResource<?>>> activeResources, in RefQueueIdleHandler()
|
/external/guice/core/test/com/google/inject/ |
D | Asserts.java | 42 import java.lang.ref.WeakReference; 184 WeakReference<Object> ref = new WeakReference<>(new Object(), queue); 195 public static void awaitClear(WeakReference<?> ref) { 200 WeakReference extraRef = null; 203 extraRef = new WeakReference<>(data, queue);
|
/external/guava/guava-testlib/src/com/google/common/testing/ |
D | GcFinalization.java | 23 import java.lang.ref.WeakReference; 254 public static void awaitClear(final WeakReference<?> ref) { in awaitClear() 286 WeakReference<Object> ref = new WeakReference<Object>( in awaitFullGc()
|
/external/grpc-grpc/examples/android/helloworld/app/src/main/java/io/grpc/helloworldexample/cpp/ |
D | HelloworldActivity.java | 31 import java.lang.ref.WeakReference; 107 private final WeakReference<HelloworldActivity> activityReference; 110 this.activityReference = new WeakReference<HelloworldActivity>(activity); in RunServerTask() 125 private final WeakReference<HelloworldActivity> activityReference; 128 this.activityReference = new WeakReference<HelloworldActivity>(activity); in GrpcTask()
|
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/service/ |
D | TerminalManager.java | 46 import java.lang.ref.WeakReference; 63 private final Map<Integer, WeakReference<TerminalBridge>> mHostBridgeMap = 64 new ConcurrentHashMap<Integer, WeakReference<TerminalBridge>>(); 133 WeakReference<TerminalBridge> wr = new WeakReference<TerminalBridge>(bridge); in openConnection() 148 WeakReference<TerminalBridge> wr = mHostBridgeMap.get(id); in getConnectedBridge()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | StringPrep.java | 14 import java.lang.ref.WeakReference; 197 …private static final WeakReference<StringPrep>[] CACHE = (WeakReference<StringPrep>[])new WeakRefe… 322 WeakReference<StringPrep> ref = CACHE[profile]; in getInstance() 337 CACHE[profile] = new WeakReference<StringPrep>(instance); in getInstance()
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | StringPrep.java | 15 import java.lang.ref.WeakReference; 185 …private static final WeakReference<StringPrep>[] CACHE = (WeakReference<StringPrep>[])new WeakRefe… 309 WeakReference<StringPrep> ref = CACHE[profile]; in getInstance() 324 CACHE[profile] = new WeakReference<StringPrep>(instance); in getInstance()
|
/external/mockito/src/test/java/org/mockito/internal/creation/bytebuddy/ |
D | TypeCachingMockBytecodeGeneratorTest.java | 15 import java.lang.ref.WeakReference; 133 …cache.put(short_lived_classloader, new HoldingAReference(new WeakReference<Class<?>>(short_lived_c… in validate_simple_code_idea_where_weakhashmap_with_classloader_as_key_get_GCed_when_no_more_references() 148 final WeakReference<Class<?>> a; 150 HoldingAReference(WeakReference<Class<?>> a) { in HoldingAReference()
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | InternersTest.java | 25 import java.lang.ref.WeakReference; 75 WeakReference<Integer> signal = new WeakReference<Integer>(canonical); in testWeak_afterGC()
|
/external/guice/extensions/servlet/src/com/google/inject/servlet/ |
D | GuiceFilter.java | 25 import java.lang.ref.WeakReference; 71 static volatile WeakReference<ServletContext> servletContext = 72 new WeakReference<ServletContext>(null); 226 GuiceFilter.servletContext = new WeakReference<>(servletContext);
|
/external/guava/guava/src/com/google/common/base/internal/ |
D | Finalizer.java | 22 import java.lang.ref.WeakReference; 102 private final WeakReference<Class<?>> finalizableReferenceClassReference; 117 = new WeakReference<Class<?>>(finalizableReferenceClass); in Finalizer()
|
/external/apache-http/src/org/apache/http/impl/conn/tsccm/ |
D | BasicPoolEntryRef.java | 34 import java.lang.ref.WeakReference; 51 public class BasicPoolEntryRef extends WeakReference<BasicPoolEntry> {
|