Home
last modified time | relevance | path

Searched refs:refs (Results 1 – 12 of 12) sorted by relevance

/frameworks/native/libs/utils/
DRefBase.cpp103 ref_entry* refs = mStrongRefs; in ~weakref_impl() local
104 while (refs) { in ~weakref_impl()
105 char inc = refs->ref >= 0 ? '+' : '-'; in ~weakref_impl()
106 ALOGD("\t%c ID %p (ref %d):", inc, refs->id, refs->ref); in ~weakref_impl()
108 refs->stack.dump(); in ~weakref_impl()
110 refs = refs->next; in ~weakref_impl()
121 ref_entry* refs = mWeakRefs; in ~weakref_impl() local
122 while (refs) { in ~weakref_impl()
123 char inc = refs->ref >= 0 ? '+' : '-'; in ~weakref_impl()
124 ALOGD("\t%c ID %p (ref %d):", inc, refs->id, refs->ref); in ~weakref_impl()
[all …]
/frameworks/base/tests/CoreTests/android/core/
DHeapTest.java49 private static void makeRefs(Object objects[], SoftReference<Object> refs[]) { in makeRefs() argument
52 refs[i] = new SoftReference<Object>(objects[i]); in makeRefs()
56 private static <T> int checkRefs(SoftReference<T> refs[], int last) { in checkRefs() argument
59 for (i = 0; i < refs.length; i++) { in checkRefs()
60 Object o = refs[i].get(); in checkRefs()
81 private static <T> void checkRefs(T objects[], SoftReference<T> refs[]) { in checkRefs() argument
85 if (refs[i].get() != objects[i]) { in checkRefs()
99 SoftReference<Object> refs[] = new SoftReference[objects.length]; in testGcSoftRefs() local
104 makeRefs(objects, refs); in testGcSoftRefs()
119 checkRefs(objects, refs); in testGcSoftRefs()
[all …]
/frameworks/native/libs/binder/
DIPCThreadState.cpp440 RefBase::weakref_type* refs = mPendingWeakDerefs[i]; in joinThreadPool() local
441 refs->decWeak(mProcess.get()); in joinThreadPool()
899 RefBase::weakref_type* refs; in executeCommand() local
911 refs = (RefBase::weakref_type*)mIn.readInt32(); in executeCommand()
913 ALOG_ASSERT(refs->refBase() == obj, in executeCommand()
915 refs, obj, refs->refBase()); in executeCommand()
922 mOut.writeInt32((int32_t)refs); in executeCommand()
927 refs = (RefBase::weakref_type*)mIn.readInt32(); in executeCommand()
929 ALOG_ASSERT(refs->refBase() == obj, in executeCommand()
931 refs, obj, refs->refBase()); in executeCommand()
[all …]
DProcessState.cpp176 e.refs = NULL; in lookupHandleLocked()
196 if (b == NULL || !e->refs->attemptIncWeak(this)) { in getStrongProxyForHandle()
199 if (b) e->refs = b->getWeakRefs(); in getStrongProxyForHandle()
206 e->refs->decWeak(this); in getStrongProxyForHandle()
230 if (b == NULL || !e->refs->attemptIncWeak(this)) { in getWeakProxyForHandle()
234 if (b) e->refs = b->getWeakRefs(); in getWeakProxyForHandle()
237 e->refs->decWeak(this); in getWeakProxyForHandle()
/frameworks/native/opengl/libs/EGL/
Degl_display.cpp76 magic('_dpy'), finishOnSwap(false), traceGpuCompletion(false), refs(0) { in egl_display_t()
141 if (refs > 0) { in initialize()
146 refs++; in initialize()
253 refs++; in initialize()
268 if (refs == 0) { in terminate()
279 if (refs > 1) { in terminate()
280 refs--; in terminate()
315 refs--; in terminate()
Degl_display.h95 inline bool isReady() const { return (refs > 0); } in isReady()
104 inline uint32_t getRefsCount() const { return refs; } in getRefsCount()
133 uint32_t refs; variable
/frameworks/base/media/mca/filterfw/java/android/filterfw/io/
DGraphReader.java61 public void addReferencesByMap(KeyValueMap refs) { in addReferencesByMap() argument
62 mReferences.putAll(refs); in addReferencesByMap()
/frameworks/base/core/java/android/widget/
DRemoteViewsAdapter.java335 LinkedList<RemoteViewsFrameLayout> refs; in add() local
339 refs = mReferences.get(pos); in add()
341 refs = new LinkedList<RemoteViewsFrameLayout>(); in add()
342 mReferences.put(pos, refs); in add()
344 mViewToLinkedList.put(layout, refs); in add()
347 refs.add(layout); in add()
360 final LinkedList<RemoteViewsFrameLayout> refs = mReferences.get(pos); in notifyOnRemoteViewsLoaded() local
361 for (final RemoteViewsFrameLayout ref : refs) { in notifyOnRemoteViewsLoaded()
367 refs.clear(); in notifyOnRemoteViewsLoaded()
/frameworks/native/include/utils/
DRefBase.h224 void set_object_and_refs(T* other, weakref_type* refs);
421 void wp<T>::set_object_and_refs(T* other, weakref_type* refs) in set_object_and_refs() argument
423 if (other) refs->incWeak(this); in set_object_and_refs()
426 m_refs = refs; in set_object_and_refs()
/frameworks/native/include/binder/
DProcessState.h86 RefBase::weakref_type* refs; member
/frameworks/native/opengl/libagl/
DTextureObjectManager.cpp288 const uint32_t refs = old->getStrongCount(); in replaceTexture() local
289 if (ggl_likely(refs == 1)) { in replaceTexture()
/frameworks/base/docs/html/guide/topics/ui/
Dthemes.jd416 …<li><a href="https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/re…
417 …<li><a href="https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/re…