Searched defs:refs (Results 1 - 7 of 7) sorted by relevance

/frameworks/base/include/binder/
H A DProcessState.h88 RefBase::weakref_type* refs; member in struct:android::ProcessState::handle_entry
/frameworks/base/include/utils/
H A DRefBase.h223 sp(T* p, weakref_type* refs);
260 void set_object_and_refs(T* other, weakref_type* refs);
386 sp<T>::sp(T* p, weakref_type* refs) argument
387 : m_ptr((p && refs->attemptIncStrong(this)) ? p : 0)
520 void wp<T>::set_object_and_refs(T* other, weakref_type* refs) argument
522 if (other) refs->incWeak(this);
525 m_refs = refs;
/frameworks/base/tests/CoreTests/android/core/
H A DHeapTest.java116 private static void makeRefs(Object objects[], SoftReference<Object> refs[]) { argument
119 refs[i] = new SoftReference<Object>(objects[i]);
123 private static <T> int checkRefs(SoftReference<T> refs[], int last) { argument
126 for (i = 0; i < refs.length; i++) {
127 Object o = refs[i].get();
148 private static <T> void checkRefs(T objects[], SoftReference<T> refs[]) { argument
152 if (refs[i].get() != objects[i]) {
157 throw new RuntimeException("Test failed: soft refs not cleared");
166 SoftReference<Object> refs[] = new SoftReference[objects.length];
171 makeRefs(objects, refs);
244 makeRefs(Object objects[], WeakReference<Object> refs[]) argument
251 checkRefs(T objects[], WeakReference<T> refs[]) argument
296 makeRefs(Object objects[], PhantomReference<Object> refs[], ReferenceQueue<Object> queue) argument
304 checkRefs(T objects[], PhantomReference<T> refs[], ReferenceQueue<T> queue) argument
426 makeRefs(FinalizableObject objects[], WeakReference<FinalizableObject> refs[]) argument
[all...]
/frameworks/base/opengl/libagl/
H A DTextureObjectManager.cpp293 const uint32_t refs = old->getStrongCount(); local
294 if (ggl_likely(refs == 1)) {
/frameworks/base/libs/utils/
H A DRefBase.cpp171 void addRef(ref_entry** refs, const void* id, int32_t mRef) argument
185 ref->next = *refs;
186 *refs = ref;
190 void removeRef(ref_entry** refs, const void* id) argument
195 ref_entry* ref = *refs;
198 *refs = ref->next;
203 refs = &ref->next;
204 ref = *refs;
212 void printRefsLocked(String8* out, const ref_entry* refs) const
215 while (refs) {
283 weakref_impl* const refs = mRefs; local
303 weakref_impl* const refs = mRefs; local
322 weakref_impl* const refs = mRefs; local
[all...]
/frameworks/base/libs/binder/
H A DIPCThreadState.cpp409 RefBase::weakref_type* refs = mPendingWeakDerefs[i]; local
410 refs->decWeak(mProcess.get());
841 RefBase::weakref_type* refs; local
853 refs = (RefBase::weakref_type*)mIn.readInt32();
855 LOG_ASSERT(refs->refBase() == obj,
857 refs, obj, refs->refBase());
864 mOut.writeInt32((int32_t)refs);
869 refs = (RefBase::weakref_type*)mIn.readInt32();
871 LOG_ASSERT(refs
[all...]
/frameworks/base/opengl/libs/EGL/
H A Degl.cpp169 uint32_t refs; member in struct:android::egl_display_t
650 if (dp->refs > 0) {
653 dp->refs++;
735 dp->refs++;
754 if (dp->refs == 0) {
759 if (dp->refs > 1) {
760 dp->refs--;
785 dp->refs--;

Completed in 150 milliseconds