/frameworks/base/tests/CoreTests/android/core/ |
H A D | HeapTest.java | 49 private static void makeRefs(Object objects[], SoftReference<Object> refs[]) { argument 52 refs[i] = new SoftReference<Object>(objects[i]); 56 private static <T> int checkRefs(SoftReference<T> refs[], int last) { argument 59 for (i = 0; i < refs.length; i++) { 60 Object o = refs[i].get(); 81 private static <T> void checkRefs(T objects[], SoftReference<T> refs[]) { argument 85 if (refs[i].get() != objects[i]) { 90 throw new RuntimeException("Test failed: soft refs not cleared"); 99 SoftReference<Object> refs[] = new SoftReference[objects.length]; 104 makeRefs(objects, refs); 177 makeRefs(Object objects[], WeakReference<Object> refs[]) argument 184 checkRefs(T objects[], WeakReference<T> refs[]) argument 229 makeRefs(Object objects[], PhantomReference<Object> refs[], ReferenceQueue<Object> queue) argument 237 checkRefs(T objects[], PhantomReference<T> refs[], ReferenceQueue<T> queue) argument 359 makeRefs(FinalizableObject objects[], WeakReference<FinalizableObject> refs[]) argument [all...] |
/frameworks/native/libs/utils/ |
H A D | RefBase.cpp | 108 ref_entry* refs = mStrongRefs; local 109 while (refs) { 110 char inc = refs->ref >= 0 ? '+' : '-'; 111 ALOGD("\t%c ID %p (ref %d):", inc, refs->id, refs->ref); 113 refs->stack.dump(LOG_TAG); 115 refs = refs->next; 122 ref_entry* refs = mWeakRefs; local 123 while (refs) { 223 addRef(ref_entry** refs, const void* id, int32_t mRef) argument 242 removeRef(ref_entry** refs, const void* id) argument 321 weakref_impl* const refs = mRefs; local 340 weakref_impl* const refs = mRefs; local 358 weakref_impl* const refs = mRefs; local [all...] |
/frameworks/base/media/mca/filterfw/java/android/filterfw/io/ |
H A D | GraphReader.java | 61 public void addReferencesByMap(KeyValueMap refs) { argument 62 mReferences.putAll(refs);
|
/frameworks/native/opengl/libs/EGL/ |
H A D | egl_display.cpp | 49 magic('_dpy'), finishOnSwap(false), traceGpuCompletion(false), refs(0) { 114 if (refs > 0) { 119 refs++; 226 refs++; 241 if (refs == 0) { 252 if (refs > 1) { 253 refs--; 288 refs--;
|
H A D | egl_display.h | 93 inline bool isReady() const { return (refs > 0); } 102 inline uint32_t getRefsCount() const { return refs; } 131 uint32_t refs; member in class:android::egl_display_t 145 // STRONG refs cancel (inc) or initiate (dec) a hibernation attempt 146 // the next time the wakecount reaches zero. WEAK refs don't affect 147 // whether a hibernation attempt will be made. Use STRONG refs only
|
/frameworks/native/libs/binder/ |
H A D | IPCThreadState.cpp | 440 RefBase::weakref_type* refs = mPendingWeakDerefs[i]; local 441 refs->decWeak(mProcess.get()); 903 RefBase::weakref_type* refs; local 915 refs = (RefBase::weakref_type*)mIn.readInt32(); 917 ALOG_ASSERT(refs->refBase() == obj, 919 refs, obj, refs->refBase()); 926 mOut.writeInt32((int32_t)refs); 931 refs = (RefBase::weakref_type*)mIn.readInt32(); 933 ALOG_ASSERT(refs [all...] |
H A D | ProcessState.cpp | 176 e.refs = NULL; 196 if (b == NULL || !e->refs->attemptIncWeak(this)) { 199 if (b) e->refs = b->getWeakRefs(); 206 e->refs->decWeak(this); 230 if (b == NULL || !e->refs->attemptIncWeak(this)) { 234 if (b) e->refs = b->getWeakRefs(); 237 e->refs->decWeak(this);
|
/frameworks/native/include/binder/ |
H A D | ProcessState.h | 88 RefBase::weakref_type* refs; member in struct:android::ProcessState::handle_entry
|
/frameworks/base/core/java/android/widget/ |
H A D | RemoteViewsAdapter.java | 335 LinkedList<RemoteViewsFrameLayout> refs; 339 refs = mReferences.get(pos); 341 refs = new LinkedList<RemoteViewsFrameLayout>(); 342 mReferences.put(pos, refs); 344 mViewToLinkedList.put(layout, refs); 347 refs.add(layout); 360 final LinkedList<RemoteViewsFrameLayout> refs = mReferences.get(pos); 361 for (final RemoteViewsFrameLayout ref : refs) { 367 refs.clear();
|
/frameworks/native/opengl/libagl/ |
H A D | TextureObjectManager.cpp | 288 const uint32_t refs = old->getStrongCount(); local 289 if (ggl_likely(refs == 1)) {
|
/frameworks/native/include/utils/ |
H A D | RefBase.h | 235 void set_object_and_refs(T* other, weakref_type* refs); 432 void wp<T>::set_object_and_refs(T* other, weakref_type* refs) 434 if (other) refs->incWeak(this); 437 m_refs = refs;
|
/frameworks/rs/server/ |
H A D | RefBase.h | 223 void set_object_and_refs(T* other, weakref_type* refs); 420 void wp<T>::set_object_and_refs(T* other, weakref_type* refs) 422 if (other) refs->incWeak(this); 425 m_refs = refs;
|