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/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.cpp60 magic('_dpy'), finishOnSwap(false), traceGpuCompletion(false), refs(0) {
125 if (refs > 0) {
130 refs++;
217 refs++;
232 if (refs == 0) {
243 if (refs > 1) {
244 refs--;
279 refs--;
H A Degl_display.h93 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.cpp458 RefBase::weakref_type* refs = mPendingWeakDerefs[i]; local
459 refs->decWeak(mProcess.get());
941 RefBase::weakref_type* refs; local
953 refs = (RefBase::weakref_type*)mIn.readInt32();
955 ALOG_ASSERT(refs->refBase() == obj,
957 refs, obj, refs->refBase());
964 mOut.writeInt32((int32_t)refs);
969 refs = (RefBase::weakref_type*)mIn.readInt32();
971 ALOG_ASSERT(refs
[all...]
H A DProcessState.cpp176 e.refs = NULL;
196 if (b == NULL || !e->refs->attemptIncWeak(this)) {
226 if (b) e->refs = b->getWeakRefs();
233 e->refs->decWeak(this);
257 if (b == NULL || !e->refs->attemptIncWeak(this)) {
261 if (b) e->refs = b->getWeakRefs();
264 e->refs->decWeak(this);
/frameworks/native/include/binder/
H A DProcessState.h88 RefBase::weakref_type* refs; member in struct:android::ProcessState::handle_entry
/frameworks/base/core/java/android/widget/
H A DRemoteViewsAdapter.java339 LinkedList<RemoteViewsFrameLayout> refs;
343 refs = mReferences.get(pos);
345 refs = new LinkedList<RemoteViewsFrameLayout>();
346 mReferences.put(pos, refs);
348 mViewToLinkedList.put(layout, refs);
351 refs.add(layout);
364 final LinkedList<RemoteViewsFrameLayout> refs = mReferences.get(pos);
365 for (final RemoteViewsFrameLayout ref : refs) {
371 refs.clear();
/frameworks/native/opengl/libagl/
H A DTextureObjectManager.cpp288 const uint32_t refs = old->getStrongCount(); local
289 if (ggl_likely(refs == 1)) {
/frameworks/rs/cpp/util/
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;
/frameworks/rs/server/
H A DRefBase.h223 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;

Completed in 550 milliseconds