/packages/apps/TV/common/src/com/android/tv/common/ |
WeakHandler.java | 40 * Constructs a new handler with a weak reference to the given referent using the provided 44 * @param ref the referent to track 52 * Constructs a new handler with a weak reference to the given referent. 54 * @param ref the referent to track 65 T referent = mRef.get(); local 66 if (referent == null) { 69 handleMessage(msg, referent); 78 * @param referent the referent. Guaranteed to be non null. 80 protected abstract void handleMessage(Message msg, @NonNull T referent); [all...] |
/art/tools/ahat/test/ |
NativeAllocationTest.java | 32 Instance referent = (Instance)dump.getDumpedThing("anObject"); local 34 if (alloc.referent == referent) { 36 assertEquals(referent.getHeap(), alloc.heap); 41 fail("No native allocation found with anObject as the referent");
|
InstanceUtilsTest.java | 118 Instance referent = (Instance)dump.getDumpedThing("anObject"); local 121 assertNotNull(referent); 122 assertEquals(referent, InstanceUtils.getReferent(pref)); 123 assertEquals(referent, InstanceUtils.getReferent(wref)); 124 assertNull(InstanceUtils.getReferent(referent));
|
/external/guava/guava/src/com/google/common/base/ |
FinalizablePhantomReference.java | 24 * after the garbage collector reclaims the referent. This is a simpler alternative to using a 37 * @param referent to phantom reference 38 * @param queue that should finalize the referent 40 protected FinalizablePhantomReference(T referent, FinalizableReferenceQueue queue) { 41 super(referent, queue.queue);
|
FinalizableSoftReference.java | 24 * the garbage collector reclaims the referent. This is a simpler alternative to using a {@link 35 * @param referent to softly reference 36 * @param queue that should finalize the referent 38 protected FinalizableSoftReference(T referent, FinalizableReferenceQueue queue) { 39 super(referent, queue.queue);
|
FinalizableWeakReference.java | 24 * the garbage collector reclaims the referent. This is a simpler alternative to using a {@link 35 * @param referent to weakly reference 36 * @param queue that should finalize the referent 38 protected FinalizableWeakReference(T referent, FinalizableReferenceQueue queue) { 39 super(referent, queue.queue);
|
FinalizableReference.java | 28 * Invoked on a background thread after the referent has been garbage collected unless security
|
/libcore/luni/src/main/java/libcore/util/ |
NativeAllocationRegistry.java | 91 * argument when <code>referent</code> becomes unreachable. If you 93 * <code>referent</code>, you must not access these after 94 * <code>referent</code> becomes unreachable, because they may be dangling 98 * <code>referent</code> becomes unreachable. The runnable will have no 102 * @param referent java object to associate the native allocation with 105 * @throws IllegalArgumentException if either referent or nativePtr is null. 113 public Runnable registerNativeAllocation(Object referent, long nativePtr) { 114 if (referent == null) { 115 throw new IllegalArgumentException("referent is null"); 128 Cleaner cleaner = Cleaner.create(referent, new CleanerThunk(nativePtr)) [all...] |
/libcore/ojluni/src/main/java/java/lang/ref/ |
Reference.java | 43 * If GC is not in progress (ie: not going through slow path), the referent 51 * Used by the reference processor to determine whether or not the referent 52 * can be immediately returned. Because the referent might get swept during 57 volatile T referent; /* Treated specially by GC */ field in class:Reference 85 /* -- Referent accessor and setters -- */ 88 * Returns this reference object's referent. If this reference object has 109 this.referent = null; 150 Reference(T referent) { 151 this(referent, null); 154 Reference(T referent, ReferenceQueue<? super T> queue) [all...] |
PhantomReference.java | 36 * referent of a phantom reference is <a 40 * <p> In order to ensure that a reclaimable object remains so, the referent of 56 * Returns this reference object's referent. Because the referent of a 75 * @param referent the object the new phantom reference will refer to 79 public PhantomReference(T referent, ReferenceQueue<? super T> q) { 80 super(referent, q);
|
WeakReference.java | 54 * @param referent object the new weak reference will refer to 56 public WeakReference(T referent) { 57 super(referent); 64 * @param referent object the new weak reference will refer to 68 public WeakReference(T referent, ReferenceQueue<? super T> q) { 69 super(referent, q);
|
SoftReference.java | 86 * @param referent object the new soft reference will refer to 88 public SoftReference(T referent) { 89 super(referent); 97 * @param referent object the new soft reference will refer to 102 public SoftReference(T referent, ReferenceQueue<? super T> q) { 103 super(referent, q); 108 * Returns this reference object's referent. If this reference object has
|
/art/runtime/gc/ |
reference_queue.cc | 88 // the Reference is moving or not and that the referent has been marked. 96 mirror::Object* referent = ref->GetReferent<kWithoutReadBarrier>(); local 97 // The referent could be null if it's cleared by a mutator (Reference.clear()). 98 if (referent != nullptr) { 99 CHECK(concurrent_copying->IsInToSpace(referent)) 101 << " referent=" << referent; 144 // Referent is white, clear it. 163 // Move the updated referent to the zombie field.
|
reference_processor.cc | 68 mirror::Object* const referent = reference->GetReferent(); member in class:art::gc::mirror 69 // If the referent is null then it is already cleared, we can just return null since there is no 71 if (UNLIKELY(!SlowPathEnabled()) || referent == nullptr) { 72 return referent; 80 // If the referent became cleared, return it. Don't need barrier since thread roots can't get 85 // Try to see if the referent is already marked by using the is_marked_callback. We can return 88 // If it's null it means not marked, but it could become marked if the referent is reachable 114 // We are done preserving references, some people who are blocked may see a marked referent. 165 // Clear all finalizer referent reachable soft and weak references with white referents. 189 // Process the "referent" field in a java.lang.ref.Reference. If the referent has not yet bee 196 mirror::HeapReference<mirror::Object>* referent = ref->GetReferentReferenceAddr(); local [all...] |
reference_processor.h | 59 // Decode the referent, may block if references are being processed. 88 // If this is true, then we cannot return a referent (see comment in GetReferent). 90 // Condition that people wait on if they attempt to get the referent of a reference while
|
/libcore/luni/src/test/java/libcore/util/ |
NativeAllocationRegistryTest.java | 125 Object referent = new Object(); local 126 Runnable cleaner = registry.registerNativeAllocation(referent, nativePtr); 138 // There shouldn't be any problems when the referent object is GC'd. 139 referent = null; 147 final Object referent = new Object(); local 149 // referent should not be null 159 registry.registerNativeAllocation(referent, 0); 163 // referent should not be null 178 assertNull(registry.registerNativeAllocation(referent,
|
/art/runtime/native/ |
java_lang_ref_Reference.cc | 31 mirror::Object* const referent = member in class:art::mirror 33 return soa.AddLocalReference<jobject>(referent);
|
/art/tools/ahat/src/ |
Value.java | 66 // Annotate Reference with its referent 67 Instance referent = InstanceUtils.getReferent(inst); local 68 if (referent != null) { 71 // It should not be possible for a referent to refer back to the 74 formatted.append(renderInstance(snapshot, referent));
|
InstanceUtils.java | 271 return getRefField(inst, "referent"); 297 public Instance referent; field in class:InstanceUtils.NativeAllocation 299 public NativeAllocation(long size, Heap heap, long pointer, Instance referent) { 303 this.referent = referent; 346 Instance referent = null; local 349 referent = InstanceUtils.getReferent(ref); 350 if (referent != null) { 356 if (referent == null) { 359 return new NativeAllocation(size, inst.getHeap(), pointer, referent); [all...] |
NativeAllocationsHandler.java | 59 new Column("Referent")); 72 Value.render(mSnapshot, alloc.referent));
|
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/builder/ |
PayloadAlignmentTest.java | 110 Instruction31t referent = (Instruction31t)instructions.get(0); local 111 Assert.assertEquals(6, referent.getCodeOffset()); 138 Instruction31t referent = (Instruction31t)instructions.get(0); local 139 Assert.assertEquals(8, referent.getCodeOffset()); 197 OffsetInstruction referent = (OffsetInstruction)instructions.get(7); local 198 Assert.assertEquals(-14, referent.getCodeOffset()); 248 OffsetInstruction referent = (OffsetInstruction)instructions.get(7); local 249 Assert.assertEquals(-18, referent.getCodeOffset());
|
/libcore/luni/src/main/java/java/lang/ref/ |
FinalizerReference.java | 37 // When the GC wants something finalized, it moves it from the 'referent' field to 53 public static void add(Object referent) { 54 FinalizerReference<?> reference = new FinalizerReference<Object>(referent, queue); 103 if (r.referent == sentinel) { 105 sentinelReference.referent = null;
|
/art/runtime/mirror/ |
reference.h | 71 void SetReferent(Object* referent) SHARED_REQUIRES(Locks::mutator_lock_) { 72 SetFieldObjectVolatile<kTransactionActive>(ReferentOffset(), referent); local 97 // this case the referent should not be considered for reference processing
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/ |
ReferenceTest.java | 43 public TestWeakReference(T referent, ReferenceQueue<? super T> q) { 44 super(referent, q); 74 assertNull("Referent is not null.", pr.get()); 80 assertNull("Referent is not null.", pr.get()); 257 * Checks to make sure that the referent of the WeakReference 267 public TestObject(String referent) { 268 stringRef = new WeakReference<String>(referent); 273 /* If a VM bug has caused the referent to get
|
/libcore/ojluni/src/main/java/sun/misc/ |
Cleaner.java | 44 * <p> A cleaner tracks a referent object and encapsulates a thunk of arbitrary 45 * cleanup code. Some time after the GC detects that a cleaner's referent has 114 private Cleaner(Object referent, Runnable thunk) { 115 super(referent, dummyQueue);
|