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

1 23 4 5 6 7

  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
SimpleCache.java 14 import java.lang.ref.WeakReference;
64 ref = new WeakReference<Map<K, V>>(map);
  /external/grpc-grpc-java/examples/example-kotlin/android/helloworld/app/src/main/kotlin/io/grpc/helloworldexample/
HelloworldActivity.kt 36 import java.lang.ref.WeakReference
61 private val activityReference: WeakReference<Activity> = WeakReference(activity)
  /external/guice/core/test/com/google/inject/
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/sl4a/ScriptingLayerForAndroid/src/org/connectbot/service/
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);
148 WeakReference<TerminalBridge> wr = mHostBridgeMap.get(id);
  /developers/samples/android/wearable/wear/WearSpeakerSample/wear/src/main/java/com/example/android/wearable/speaker/
SoundRecorder.java 35 import java.lang.ref.WeakReference;
148 private WeakReference<SoundRecorder> mSoundRecorderWeakReference;
154 mSoundRecorderWeakReference = new WeakReference<>(context);
236 private WeakReference<SoundRecorder> mSoundRecorderWeakReference;
241 mSoundRecorderWeakReference = new WeakReference<>(context);
  /development/samples/XmlAdapters/src/com/example/android/xmladapters/
ImageDownloader.java 41 import java.lang.ref.WeakReference;
238 private final WeakReference<ImageView> imageViewReference;
241 imageViewReference = new WeakReference<ImageView>(imageView);
355 private final WeakReference<BitmapDownloaderTask> bitmapDownloaderTaskReference;
360 new WeakReference<BitmapDownloaderTask>(bitmapDownloaderTask);
  /development/samples/training/ContactsList/src/com/example/android/contactslist/util/
ImageLoader.java 35 import java.lang.ref.WeakReference;
193 private final WeakReference<ImageView> imageViewReference;
196 imageViewReference = new WeakReference<ImageView>(imageView);
293 private final WeakReference<BitmapWorkerTask> bitmapWorkerTaskReference;
298 new WeakReference<BitmapWorkerTask>(bitmapWorkerTask);
  /external/grpc-grpc/examples/android/helloworld/app/src/main/java/io/grpc/helloworldexample/cpp/
HelloworldActivity.java 31 import java.lang.ref.WeakReference;
107 private final WeakReference<HelloworldActivity> activityReference;
110 this.activityReference = new WeakReference<HelloworldActivity>(activity);
125 private final WeakReference<HelloworldActivity> activityReference;
128 this.activityReference = new WeakReference<HelloworldActivity>(activity);
  /development/samples/ControllerSample/src/com/example/inputmanagercompat/
InputManagerV9.java 27 import java.lang.ref.WeakReference;
47 private final WeakReference<InputManagerV9> mInputManager;
50 mInputManager = new WeakReference<InputManagerV9>(im);
  /external/glide/library/src/main/java/com/bumptech/glide/request/target/
ViewTarget.java 13 import java.lang.ref.WeakReference;
206 private final WeakReference<SizeDeterminer> sizeDeterminerRef;
209 sizeDeterminerRef = new WeakReference<SizeDeterminer>(sizeDeterminer);
  /external/grpc-grpc/src/android/test/interop/app/src/main/java/io/grpc/interop/cpp/
InteropActivity.java 30 import java.lang.ref.WeakReference;
77 private final WeakReference<InteropActivity> activityReference;
80 this.activityReference = new WeakReference<InteropActivity>(activity);
  /external/grpc-grpc-java/android-interop-testing/app/src/main/java/io/grpc/android/integrationtest/
InteropTask.java 26 import java.lang.ref.WeakReference;
40 private final WeakReference<Listener> listenerReference;
49 this.listenerReference = new WeakReference<Listener>(listener);
  /external/grpc-grpc-java/examples/android/helloworld/app/src/main/java/io/grpc/helloworldexample/
HelloworldActivity.java 38 import java.lang.ref.WeakReference;
73 private final WeakReference<Activity> activityReference;
77 this.activityReference = new WeakReference<Activity>(activity);
  /external/guava/guava-tests/test/com/google/common/collect/
AbstractIteratorTest.java 25 import java.lang.ref.WeakReference;
144 WeakReference<Object> ref = new WeakReference<Object>(itr.next());
  /developers/build/prebuilts/gradle/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/
ImageWorker.java 34 import java.lang.ref.WeakReference;
259 private final WeakReference<ImageView> imageViewReference;
264 imageViewReference = new WeakReference<ImageView>(imageView);
270 imageViewReference = new WeakReference<ImageView>(imageView);
412 private final WeakReference<BitmapWorkerTask> bitmapWorkerTaskReference;
417 new WeakReference<BitmapWorkerTask>(bitmapWorkerTask);
  /developers/samples/android/ui/graphics/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/
ImageWorker.java 34 import java.lang.ref.WeakReference;
259 private final WeakReference<ImageView> imageViewReference;
264 imageViewReference = new WeakReference<ImageView>(imageView);
270 imageViewReference = new WeakReference<ImageView>(imageView);
412 private final WeakReference<BitmapWorkerTask> bitmapWorkerTaskReference;
417 new WeakReference<BitmapWorkerTask>(bitmapWorkerTask);
  /development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
ImageWorker.java 34 import java.lang.ref.WeakReference;
259 private final WeakReference<ImageView> imageViewReference;
264 imageViewReference = new WeakReference<ImageView>(imageView);
270 imageViewReference = new WeakReference<ImageView>(imageView);
412 private final WeakReference<BitmapWorkerTask> bitmapWorkerTaskReference;
417 new WeakReference<BitmapWorkerTask>(bitmapWorkerTask);
  /external/icu/android_icu4j/src/main/java/android/icu/text/
StringPrep.java 15 import java.lang.ref.WeakReference;
185 private static final WeakReference<StringPrep>[] CACHE = (WeakReference<StringPrep>[])new WeakReference[MAX_PROFILE+1];
309 WeakReference<StringPrep> ref = CACHE[profile];
324 CACHE[profile] = new WeakReference<StringPrep>(instance);
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
StringPrep.java 14 import java.lang.ref.WeakReference;
197 private static final WeakReference<StringPrep>[] CACHE = (WeakReference<StringPrep>[])new WeakReference[MAX_PROFILE+1];
322 WeakReference<StringPrep> ref = CACHE[profile];
337 CACHE[profile] = new WeakReference<StringPrep>(instance);
  /art/test/626-const-class-linking/src/
Main.java 17 import java.lang.ref.WeakReference;
48 WeakReference<Class<?>> weak_test1 = wrapHelperGet(helper);
52 WeakReference<Class<?>> weak_test2 = wrapHelperGet(helper);
74 WeakReference<Class<?>> weak_test1 = wrapHelperGet(helper1);
79 WeakReference<Class<?>> weak_test2 = wrapHelperGet(helper2);
106 WeakReference<Class<?>> weak_test = wrapHelperGet(helper);
313 private static WeakReference<Class<?>> wrapHelperGet(Class<?> helper) throws Exception {
317 return new WeakReference<Class<?>>(getSecond(pair));
  /external/oj-libjdwp/src/share/classes/com/sun/tools/jdi/
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));
604 Iterator<WeakReference<ThreadListener>> iter = listeners.iterator();
606 WeakReference<ThreadListener> ref = iter.next();
622 Iterator<WeakReference<ThreadListener>> iter = listeners.iterator();
624 WeakReference<ThreadListener> ref = iter.next();
  /art/test/074-gc-thrash/src/
Main.java 18 import java.lang.ref.WeakReference;
201 private static WeakReference weak[] = new WeakReference[MAX_DEPTH];
304 weak[depth] = new WeakReference(funStr);
  /cts/tests/accessibility/common/src/android/accessibility/cts/common/
InstrumentedAccessibilityService.java 39 import java.lang.ref.WeakReference;
57 private static final HashMap<Class, WeakReference<InstrumentedAccessibilityService>>
72 sInstances.put(getClass(), new WeakReference<>(this));
212 final WeakReference<InstrumentedAccessibilityService> ref = sInstances.get(clazz);
  /external/apache-http/src/org/apache/commons/logging/impl/
WeakHashtable.java 21 import java.lang.ref.WeakReference;
25 * <p>Implementation of <code>Hashtable</code> that uses <code>WeakReference</code>'s
54 * of <code>java.lang.ref.WeakReference</code> and associates).
397 private final WeakReference reference;
405 reference = new WeakReference(referant);
407 // work if the WeakReference has been cleared
418 // work if the WeakReference has been cleared
464 * WeakReference subclass that holds a hard reference to an
468 private final static class WeakKey extends WeakReference {
  /external/guava/guava-tests/test/com/google/common/base/
EnumsTest.java 30 import java.lang.ref.WeakReference;
78 WeakReference<?> shadowLoaderReference = doTestClassUnloading();
83 // Run Enums.getIfPresent on that other TestEnum and then return a WeakReference containing the
85 // (and therefore its ClassLoader) from being unloaded, then this WeakReference will never be
88 private WeakReference<?> doTestClassUnloading() throws Exception {
104 return new WeakReference<ClassLoader>(shadowLoader);

Completed in 1071 milliseconds

1 23 4 5 6 7