HomeSort by relevance Sort by last modified time
    Searched refs:WeakReference (Results 76 - 100 of 164) sorted by null

1 2 34 5 6 7

  /external/opencensus-java/contrib/agent/src/main/java/io/opencensus/contrib/agent/instrumentation/
ContextStrategyImpl.java 24 import java.lang.ref.WeakReference;
41 * {@link WeakReference}s so that this map does not prevent the garbage collection of otherwise
  /external/webrtc/talk/app/webrtc/java/testcommon/src/org/webrtc/
PeerConnectionTest.java 35 import java.lang.ref.WeakReference;
79 private Map<MediaStream, WeakReference<VideoRenderer>> renderers =
80 new IdentityHashMap<MediaStream, WeakReference<VideoRenderer>>();
215 stream, new WeakReference<VideoRenderer>(renderer)));
225 WeakReference<VideoRenderer> renderer = renderers.remove(stream);
473 private static WeakReference<MediaStream> addTracksToPC(
492 return new WeakReference<MediaStream>(lMS);
562 WeakReference<MediaStream> oLMS = addTracksToPC(
593 WeakReference<MediaStream> aLMS = addTracksToPC(
  /external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
ManagedChannelOrphanWrapper.java 24 import java.lang.ref.WeakReference;
78 static final class ManagedChannelReference extends WeakReference<ManagedChannelOrphanWrapper> {
  /cts/hostsidetests/jvmti/tagging/app/src/android/jvmti/cts/
JvmtiTaggingTest.java 19 import java.lang.ref.WeakReference;
34 private static WeakReference<Object> test() {
59 return new WeakReference<Object>(o1);
70 WeakReference<Object> weak = test();
76 throw new RuntimeException("WeakReference not cleared");
  /external/opencensus-java/api/src/main/java/io/opencensus/metrics/
DerivedDoubleGauge.java 21 import java.lang.ref.WeakReference;
69 * reported value is up-to-date. It keeps a {@link WeakReference} to the object and it is the
DerivedLongGauge.java 21 import java.lang.ref.WeakReference;
69 * reported value is up-to-date. It keeps a {@link WeakReference} to the object and it is the
  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowArscApkAssets9.java 15 import java.lang.ref.WeakReference;
58 private static final HashMap<Key, WeakReference<ApkAssets>> cachedApkAssets =
116 WeakReference<ApkAssets> cachedRef = cachedApkAssets.get(key);
132 cachedApkAssets.put(key, new WeakReference<>(apkAssets));
  /cts/tests/fragment/src/android/fragment/cts/
LoaderTest.java 41 import java.lang.ref.WeakReference;
80 WeakReference<LoaderActivity> weakActivity = new WeakReference(LoaderActivity.sActivity);
  /developers/build/prebuilts/gradle/AlwaysOn/Wearable/src/main/java/com/example/android/wearable/wear/alwayson/
MainActivity.java 34 import java.lang.ref.WeakReference;
374 private final WeakReference<MainActivity> mMainActivityWeakReference;
377 mMainActivityWeakReference = new WeakReference<>(reference);
  /developers/build/prebuilts/gradle/JobScheduler/Application/src/main/java/com/example/android/jobscheduler/
MainActivity.java 43 import java.lang.ref.WeakReference;
197 private WeakReference<MainActivity> mActivity;
201 this.mActivity = new WeakReference<>(activity);
  /developers/build/prebuilts/gradle/MessagingService/Application/src/main/java/com/example/android/messagingservice/
MessagingService.java 34 import java.lang.ref.WeakReference;
157 private final WeakReference<MessagingService> mReference;
160 mReference = new WeakReference<>(service);
  /developers/samples/android/background/JobScheduler/Application/src/main/java/com/example/android/jobscheduler/
MainActivity.java 43 import java.lang.ref.WeakReference;
197 private WeakReference<MainActivity> mActivity;
201 this.mActivity = new WeakReference<>(activity);
  /developers/samples/android/notification/MessagingService/Application/src/main/java/com/example/android/messagingservice/
MessagingService.java 34 import java.lang.ref.WeakReference;
157 private final WeakReference<MessagingService> mReference;
160 mReference = new WeakReference<>(service);
  /developers/samples/android/ui/actionbarcompat/ActionBarCompat-SearchView/src/main/src/com/example/android/actionbarcompat/searchview/
AppListFragment.java 33 import java.lang.ref.WeakReference;
172 WeakReference<Drawable> drawable;
241 // Store the icon in a WeakReference so we do not cause a OutOfMemoryError.
242 item.drawable = new WeakReference<Drawable>(icon);
  /developers/samples/android/wearable/wear/AlwaysOn/Wearable/src/main/java/com/example/android/wearable/wear/alwayson/
MainActivity.java 35 import java.lang.ref.WeakReference;
377 private final WeakReference<MainActivity> mMainActivityWeakReference;
380 mMainActivityWeakReference = new WeakReference<>(reference);
  /developers/samples/android/wearable/wear/WearHighBandwidthNetworking/Wearable/src/main/java/com/example/android/wearable/wear/wearhighbandwidthnetworking/
MainActivity.java 34 import java.lang.ref.WeakReference;
327 private final WeakReference<MainActivity> mMainActivityWeakReference;
330 mMainActivityWeakReference = new WeakReference<>(mainActivity);
  /development/samples/browseable/AlwaysOn/src/com.example.android.wearable.wear.alwayson/
MainActivity.java 31 import java.lang.ref.WeakReference;
317 private final WeakReference<MainActivity> mMainActivityWeakReference;
320 mMainActivityWeakReference = new WeakReference<MainActivity>(reference);
  /development/samples/browseable/JobScheduler/src/com.example.android.jobscheduler/
MainActivity.java 43 import java.lang.ref.WeakReference;
197 private WeakReference<MainActivity> mActivity;
201 this.mActivity = new WeakReference<>(activity);
  /development/samples/browseable/MessagingService/src/com.example.android.messagingservice/
MessagingService.java 34 import java.lang.ref.WeakReference;
157 private final WeakReference<MessagingService> mReference;
160 mReference = new WeakReference<>(service);
  /external/dexmaker/dexmaker-mockito-inline/src/main/java/com/android/dx/mockito/inline/
MockMethodAdvice.java 8 import java.lang.ref.WeakReference;
260 private final WeakReference<Object> instance;
267 this.instance = new WeakReference<>(instance);
  /external/dexmaker/dexmaker-mockito-inline-extended/src/main/java/com/android/dx/mockito/inline/
StaticMockMethodAdvice.java 8 import java.lang.ref.WeakReference;
307 private final WeakReference<Object> marker;
314 this.marker = new WeakReference(marker);
  /external/grpc-grpc-java/examples/android/clientcache/app/src/main/java/io/grpc/clientcacheexample/
ClientCacheExampleActivity.java 45 import java.lang.ref.WeakReference;
94 private final WeakReference<Activity> activityReference;
99 this.activityReference = new WeakReference<Activity>(activity);
  /external/guava/guava-tests/test/com/google/common/cache/
CacheReferencesTest.java 29 import java.lang.ref.WeakReference;
158 private WeakReference<String> toString;
173 toString = new WeakReference<String>(s);
  /external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/metrics/
DerivedDoubleGaugeImpl.java 34 import java.lang.ref.WeakReference;
134 @javax.annotation.Nullable private final WeakReference<T> ref;
142 ref = obj != null ? new WeakReference<T>(obj) : null;