/external/webrtc/rtc_base/ |
D | weak_ptr.cc | 19 WeakReference::Flag::Flag() : is_valid_(true) { in Flag() 26 void WeakReference::Flag::Invalidate() { in Invalidate() 32 bool WeakReference::Flag::IsValid() const { in IsValid() 38 WeakReference::Flag::~Flag() {} in ~Flag() 40 WeakReference::WeakReference() {} in WeakReference() function in rtc::internal::WeakReference 42 WeakReference::WeakReference(const Flag* flag) : flag_(flag) {} in WeakReference() function in rtc::internal::WeakReference 44 WeakReference::~WeakReference() {} in ~WeakReference() 46 WeakReference::WeakReference(WeakReference&& other) = default; 48 WeakReference::WeakReference(const WeakReference& other) = default; 50 bool WeakReference::is_valid() const { in is_valid() [all …]
|
D | weak_ptr.h | 90 class WeakReference { 110 WeakReference(); 111 explicit WeakReference(const Flag* flag); 112 ~WeakReference(); 114 WeakReference(WeakReference&& other); 115 WeakReference(const WeakReference& other); 116 WeakReference& operator=(WeakReference&& other) = default; 117 WeakReference& operator=(const WeakReference& other) = default; 130 WeakReference GetRef() const; 137 mutable scoped_refptr<RefCountedObject<WeakReference::Flag>> flag_; [all …]
|
/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 | 27 import java.lang.ref.WeakReference; 85 private WeakReference<ClassLoader> useFrqInSeparateLoader() throws Exception { in useFrqInSeparateLoader() 121 AtomicReference<WeakReference<?>> sepStopwatchRef = in useFrqInSeparateLoader() 122 new AtomicReference<WeakReference<?>>( in useFrqInSeparateLoader() 123 (WeakReference<?>) sepFwrCons.newInstance(sepStopwatchA.get(), sepFrqA.get())); in useFrqInSeparateLoader() 130 return new WeakReference<ClassLoader>(sepLoader); in useFrqInSeparateLoader() 134 WeakReference<ClassLoader> loaderRef = useFrqInSeparateLoader(); in doTestUnloadable() 179 public static class FrqUser implements Callable<WeakReference<Object>> { 184 public WeakReference<Object> call() { in call() 185 WeakReference<Object> wr = in call() [all …]
|
/external/guava/android/guava-tests/test/com/google/common/base/ |
D | FinalizableReferenceQueueClassLoaderUnloadingTest.java | 27 import java.lang.ref.WeakReference; 85 private WeakReference<ClassLoader> useFrqInSeparateLoader() throws Exception { in useFrqInSeparateLoader() 121 AtomicReference<WeakReference<?>> sepStopwatchRef = in useFrqInSeparateLoader() 122 new AtomicReference<WeakReference<?>>( in useFrqInSeparateLoader() 123 (WeakReference<?>) sepFwrCons.newInstance(sepStopwatchA.get(), sepFrqA.get())); in useFrqInSeparateLoader() 130 return new WeakReference<ClassLoader>(sepLoader); in useFrqInSeparateLoader() 134 WeakReference<ClassLoader> loaderRef = useFrqInSeparateLoader(); in doTestUnloadable() 179 public static class FrqUser implements Callable<WeakReference<Object>> { 184 public WeakReference<Object> call() { in call() 185 WeakReference<Object> wr = in call() [all …]
|
/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()
|
/external/guava/guava/src/com/google/common/base/ |
D | Enums.java | 22 import java.lang.ref.WeakReference; 73 private static final Map<Class<? extends Enum<?>>, Map<String, WeakReference<? extends Enum<?>>>> 77 private static <T extends Enum<T>> Map<String, WeakReference<? extends Enum<?>>> populateCache( in populateCache() 79 Map<String, WeakReference<? extends Enum<?>>> result = new HashMap<>(); in populateCache() 81 result.put(enumInstance.name(), new WeakReference<Enum<?>>(enumInstance)); in populateCache() 88 static <T extends Enum<T>> Map<String, WeakReference<? extends Enum<?>>> getEnumConstants( in getEnumConstants() 91 Map<String, WeakReference<? extends Enum<?>>> constants = enumConstantCache.get(enumClass); in getEnumConstants()
|
/external/guava/android/guava/src/com/google/common/base/ |
D | Enums.java | 22 import java.lang.ref.WeakReference; 73 private static final Map<Class<? extends Enum<?>>, Map<String, WeakReference<? extends Enum<?>>>> 77 private static <T extends Enum<T>> Map<String, WeakReference<? extends Enum<?>>> populateCache( in populateCache() 79 Map<String, WeakReference<? extends Enum<?>>> result = new HashMap<>(); in populateCache() 81 result.put(enumInstance.name(), new WeakReference<Enum<?>>(enumInstance)); in populateCache() 88 static <T extends Enum<T>> Map<String, WeakReference<? extends Enum<?>>> getEnumConstants( in getEnumConstants() 91 Map<String, WeakReference<? extends Enum<?>>> constants = enumConstantCache.get(enumClass); in getEnumConstants()
|
/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 | 23 import java.lang.ref.WeakReference; 87 final WeakReference<Object> ref = new WeakReference<>(new Object()); in testAwaitClear() 180 final WeakReference<Object> ref = new WeakReference<Object>(Boolean.TRUE); in testAwaitClear_Interrupted() 221 final WeakReference<Object> ref = in testAwaitFullGc() 222 new WeakReference<Object>( in testAwaitFullGc()
|
/external/guava/android/guava-testlib/test/com/google/common/testing/ |
D | GcFinalizationTest.java | 23 import java.lang.ref.WeakReference; 87 final WeakReference<Object> ref = new WeakReference<>(new Object()); in testAwaitClear() 178 final WeakReference<Object> ref = new WeakReference<Object>(Boolean.TRUE); in testAwaitClear_Interrupted() 218 final WeakReference<Object> ref = in testAwaitFullGc() 219 new WeakReference<Object>( in testAwaitFullGc()
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
D | StripedTest.java | 30 import java.lang.ref.WeakReference; 134 WeakReference<Object> weakRef = new WeakReference<>(striped.get(new Object())); 143 WeakReference<Object> garbage = new WeakReference<>(new Object()); 153 WeakReference<Object> weakRef = new WeakReference<>(striped.get(new Object())); 154 WeakReference<Object> garbage = new WeakReference<>(new Object());
|
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/ |
D | StripedTest.java | 30 import java.lang.ref.WeakReference; 134 WeakReference<Object> weakRef = new WeakReference<>(striped.get(new Object())); 143 WeakReference<Object> garbage = new WeakReference<>(new Object()); 153 WeakReference<Object> weakRef = new WeakReference<>(striped.get(new Object())); 154 WeakReference<Object> garbage = new WeakReference<>(new Object());
|
/external/lottie/lottie/src/main/java/com/airbnb/lottie/parser/ |
D | KeyframeParser.java | 17 import java.lang.ref.WeakReference; 27 private static SparseArrayCompat<WeakReference<Interpolator>> pathInterpolatorCache; 40 private static SparseArrayCompat<WeakReference<Interpolator>> pathInterpolatorCache() { in pathInterpolatorCache() 48 private static WeakReference<Interpolator> getInterpolator(int hash) { in getInterpolator() 56 private static void putInterpolator(int hash, WeakReference<Interpolator> interpolator) { in putInterpolator() 135 WeakReference<Interpolator> interpolatorRef = getInterpolator(hash); in parseKeyframe() 162 putInterpolator(hash, new WeakReference<>(interpolator)); in parseKeyframe()
|
/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/libwebsockets/test-apps/android/app/src/main/java/org/libwebsockets/client/ |
D | ThreadService.java | 32 import java.lang.ref.WeakReference; 59 private final WeakReference<ThreadService> mService; 61 mService = new WeakReference<ThreadService>(service); in InputHandler() 99 private final WeakReference<ThreadService> mService; 101 mService = new WeakReference<ThreadService>(service); in WorkerThreadRunnable()
|
/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/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/guava/android/guava-testlib/src/com/google/common/testing/ |
D | GcFinalization.java | 25 import java.lang.ref.WeakReference; 266 public static void awaitClear(final WeakReference<?> ref) { in awaitClear() 300 WeakReference<Object> ref = in awaitFullGc() 301 new WeakReference<Object>( in awaitFullGc()
|
/external/guava/guava-testlib/src/com/google/common/testing/ |
D | GcFinalization.java | 25 import java.lang.ref.WeakReference; 266 public static void awaitClear(final WeakReference<?> ref) { in awaitClear() 300 WeakReference<Object> ref = in awaitFullGc() 301 new WeakReference<Object>( in awaitFullGc()
|
/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/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/debug/internal/ |
D | DebugCoroutineInfoImpl.kt | 32 private val _context = WeakReference(context) 52 private var _lastObservedFrame: WeakReference<CoroutineStackFrame>? = null 55 set(value) { _lastObservedFrame = value?.let { WeakReference(it) } } in <lambda>()
|