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

/frameworks/base/tests/CoreTests/android/core/
H A DHeapTest.java49 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 DRefBase.cpp103 ref_entry* refs = mStrongRefs; local
104 while (refs) {
105 char inc = refs->ref >= 0 ? '+' : '-';
106 ALOGD("\t%c ID %p (ref %d):", inc, refs->id, refs->ref);
108 refs->stack.dump();
110 refs = refs->next;
121 ref_entry* refs = mWeakRefs; local
122 while (refs) {
224 addRef(ref_entry** refs, const void* id, int32_t mRef) argument
243 removeRef(ref_entry** refs, const void* id) argument
330 weakref_impl* const refs = mRefs; local
349 weakref_impl* const refs = mRefs; local
367 weakref_impl* const refs = mRefs; local
[all...]
/frameworks/base/media/mca/filterfw/java/android/filterfw/io/
H A DGraphReader.java61 public void addReferencesByMap(KeyValueMap refs) { argument
62 mReferences.putAll(refs);
/frameworks/native/opengl/libs/EGL/
H A Degl_display.cpp76 magic('_dpy'), finishOnSwap(false), traceGpuCompletion(false), refs(0) {
141 if (refs > 0) {
146 refs++;
253 refs++;
268 if (refs == 0) {
279 if (refs > 1) {
280 refs--;
315 refs--;
H A Degl_display.h95 inline bool isReady() const { return (refs > 0); }
104 inline uint32_t getRefsCount() const { return refs; }
133 uint32_t refs; member in class:android::egl_display_t
147 // STRONG refs cancel (inc) or initiate (dec) a hibernation attempt
148 // the next time the wakecount reaches zero. WEAK refs don't affect
149 // whether a hibernation attempt will be made. Use STRONG refs only
/frameworks/native/libs/binder/
H A DIPCThreadState.cpp440 RefBase::weakref_type* refs = mPendingWeakDerefs[i]; local
441 refs->decWeak(mProcess.get());
899 RefBase::weakref_type* refs; local
911 refs = (RefBase::weakref_type*)mIn.readInt32();
913 ALOG_ASSERT(refs->refBase() == obj,
915 refs, obj, refs->refBase());
922 mOut.writeInt32((int32_t)refs);
927 refs = (RefBase::weakref_type*)mIn.readInt32();
929 ALOG_ASSERT(refs
[all...]
H A DProcessState.cpp176 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 DProcessState.h86 RefBase::weakref_type* refs; member in struct:android::ProcessState::handle_entry
/frameworks/base/core/java/android/widget/
H A DRemoteViewsAdapter.java309 LinkedList<RemoteViewsFrameLayout> refs;
313 refs = mReferences.get(pos);
315 refs = new LinkedList<RemoteViewsFrameLayout>();
316 mReferences.put(pos, refs);
320 refs.add(layout);
333 final LinkedList<RemoteViewsFrameLayout> refs = mReferences.get(pos);
334 for (final RemoteViewsFrameLayout ref : refs) {
337 refs.clear();
/frameworks/native/opengl/libagl/
H A DTextureObjectManager.cpp288 const uint32_t refs = old->getStrongCount(); local
289 if (ggl_likely(refs == 1)) {
/frameworks/native/include/utils/
H A 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)
423 if (other) refs->incWeak(this);
426 m_refs = refs;

Completed in 5777 milliseconds