Searched refs:ref (Results 1 - 25 of 103) sorted by relevance

12345

/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/platform/
H A DRuntimeMemorySpy.java19 import java.lang.ref.Reference;
30 Reference ref = notifyQueue.poll(); // non-blocking check
31 while (ref != null) {
32 orphanedMemory(ref);
33 ref = notifyQueue.poll();
H A DAbstractMemorySpy.java21 import java.lang.ref.ReferenceQueue;
22 import java.lang.ref.Reference;
23 import java.lang.ref.PhantomReference;
104 protected void orphanedMemory(Reference ref) { argument
109 PlatformAddress shadow = refToShadow.remove(ref);
120 ref.clear();
/dalvik/vm/mterp/c/
H A DOP_CONST_CLASS.c6 ref = FETCH(1);
7 ILOGV("|const-class v%d class@0x%04x", vdst, ref);
8 clazz = dvmDexGetResolvedClass(methodClassDex, ref);
11 clazz = dvmResolveClass(curMethod->clazz, ref, true);
H A DOP_CONST_STRING.c6 ref = FETCH(1);
7 ILOGV("|const-string v%d string@0x%04x", vdst, ref);
8 strObj = dvmDexGetResolvedString(methodClassDex, ref);
11 strObj = dvmResolveString(curMethod->clazz, ref);
H A DOP_CHECK_CAST.c9 ref = FETCH(1); /* class to check against */
10 ILOGV("|check-cast v%d,class@0x%04x", vsrc1, ref);
18 clazz = dvmDexGetResolvedClass(methodClassDex, ref);
20 clazz = dvmResolveClass(curMethod->clazz, ref, false);
H A DOP_INSTANCE_OF.c8 ref = FETCH(1); /* class to check against */
9 ILOGV("|instance-of v%d,v%d,class@0x%04x", vdst, vsrc1, ref);
19 clazz = dvmDexGetResolvedClass(methodClassDex, ref);
22 clazz = dvmResolveClass(curMethod->clazz, ref, true);
H A DOP_NEW_INSTANCE.c9 ref = FETCH(1);
10 ILOGV("|new-instance v%d,class@0x%04x", vdst, ref);
11 clazz = dvmDexGetResolvedClass(methodClassDex, ref);
13 clazz = dvmResolveClass(curMethod->clazz, ref, false);
H A DOP_EXECUTE_INLINE.c24 ref = FETCH(1); /* inline call "ref" */
27 vsrc1, ref, vdst);
50 if (!dvmPerformInlineOp4Dbg(arg0, arg1, arg2, arg3, &retval, ref))
53 if (!dvmPerformInlineOp4Std(arg0, arg1, arg2, arg3, &retval, ref))
H A DOP_NEW_ARRAY.c11 ref = FETCH(1);
13 vdst, vsrc1, ref, (s4) GET_REGISTER(vsrc1));
19 arrayClass = dvmDexGetResolvedClass(methodClassDex, ref);
21 arrayClass = dvmResolveClass(curMethod->clazz, ref, false);
H A DgotoTargets.c22 ref = FETCH(1); /* class ref */
29 vsrc1, ref, vdst, vdst+vsrc1-1);
34 vsrc1, ref, vdst, arg5);
40 arrayClass = dvmDexGetResolvedClass(methodClassDex, ref);
42 arrayClass = dvmResolveClass(curMethod->clazz, ref, false);
112 ref = FETCH(1); /* method ref */
122 vsrc1, ref, vdst, vdst+vsrc1-1);
127 vsrc1 >> 4, ref, vds
[all...]
/dalvik/libcore/luni/src/test/java/tests/api/java/lang/ref/
H A DReferenceTest.java17 package tests.api.java.lang.ref;
26 import java.lang.ref.PhantomReference;
27 import java.lang.ref.Reference;
28 import java.lang.ref.ReferenceQueue;
29 import java.lang.ref.SoftReference;
30 import java.lang.ref.WeakReference;
93 * @tests java.lang.ref.Reference#clear()
122 * @tests java.lang.ref.Reference#enqueue()
141 Reference ref = new SoftReference(obj, rq);
142 assertTrue("Enqueue failed.", (!ref
[all...]
H A DSoftReferenceTest.java17 package tests.api.java.lang.ref;
25 import java.lang.ref.Reference;
26 import java.lang.ref.ReferenceQueue;
27 import java.lang.ref.SoftReference;
40 * @tests java.lang.ref.SoftReference#SoftReference(java.lang.Object,
41 * java.lang.ref.ReferenceQueue)
47 args = {java.lang.Object.class, java.lang.ref.ReferenceQueue.class}
70 * @tests java.lang.ref.SoftReference#SoftReference(java.lang.Object)
90 * @tests java.lang.ref.SoftReference#get()
131 Reference ref;
[all...]
H A DWeakReferenceTest.java18 package tests.api.java.lang.ref;
25 import java.lang.ref.ReferenceQueue;
26 import java.lang.ref.WeakReference;
37 * @tests java.lang.ref.WeakReference#WeakReference(java.lang.Object,
38 * java.lang.ref.ReferenceQueue)
44 args = {java.lang.Object.class, java.lang.ref.ReferenceQueue.class}
70 * @tests java.lang.ref.WeakReference#WeakReference(java.lang.Object)
H A DPhantomReferenceTest.java18 package tests.api.java.lang.ref;
25 import java.lang.ref.PhantomReference;
26 import java.lang.ref.Reference;
27 import java.lang.ref.ReferenceQueue;
41 * @tests java.lang.ref.PhantomReference#get()
127 * @tests java.lang.ref.PhantomReference#PhantomReference(java.lang.Object,
128 * java.lang.ref.ReferenceQueue)
134 args = {java.lang.Object.class, java.lang.ref.ReferenceQueue.class}
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
H A DHttpRetryExceptionTest.java44 HttpRetryException ref = (HttpRetryException) reference;
47 assertEquals("getLocation", ref.getLocation(), tst.getLocation());
48 assertEquals("responseCode", ref.responseCode(), tst.responseCode());
49 assertEquals("getReason", ref.getReason(), tst.getReason());
50 assertEquals("getMessage", ref.getMessage(), tst.getMessage());
/dalvik/libcore/luni/src/test/java/tests/api/java/io/
H A DInputStreamTest.java162 byte[] ref = testString.getBytes();
172 equal &= (b[i] == ref[i]);
178 b = new byte[ref.length];
181 bytesRead, ref.length - 10);
184 equal &= (b[i] == ref[i + 10]);
260 byte[] ref = testString.getBytes();
270 equal &= (b[i] == ref[i]);
279 equal &= (b[i] == ref[i]);
285 b = new byte[ref.length];
290 bytesRead, ref
[all...]
/dalvik/libcore/luni-kernel/src/main/java/java/lang/ref/
H A DPhantomReference.java33 package java.lang.ref;
H A DSoftReference.java33 package java.lang.ref;
43 * A set {@code ref} of references is determined. {@code ref} contains the
56 * All references in {@code ref} are atomically cleared.
60 * ref} will be enqueued with their corresponding reference queues, if any.
H A DWeakReference.java33 package java.lang.ref;
43 * A set {@code ref} of references is determined. {@code ref} contains the
56 * All references in {@code ref} are atomically cleared.
59 * All objects formerly being referenced by {@code ref} become eligible for
63 * At some future point, all references in {@code ref} will be enqueued
H A DReference.java33 package java.lang.ref;
58 * and be a java.lang.ref.ReferenceQueue.
64 * Used internally by java.lang.ref.ReferenceQueue.
66 * and be a java.lang.ref.Reference.
99 * java.lang.ref.*Reference classes and that subclass overrides enqueue(),
/dalvik/tests/036-finalizer/src/
H A DFinalizerTest.java3 import java.lang.ref.WeakReference;
H A DMain.java3 import java.lang.ref.WeakReference;
57 Object ref = wimp.get();
58 if (ref != null) {
59 s[0] = ref.toString();
/dalvik/vm/alloc/
H A DHeapTable.c64 bool dvmHeapAddRefToLargeTable(LargeHeapRefTable **tableP, Object *ref) argument
69 assert(ref != NULL);
107 LOGE_HEAP("Can't allocate a new large ref table\n");
111 LOGE_HEAP("Can't initialize a new large ref table\n");
127 *table->refs.nextEntry++ = ref;
141 LOGE_HEAP("Can't allocate a new large ref table\n");
203 Object **ref, **lastRef; local
205 ref = table->refs.table;
214 while (ref < lastRef) {
215 dvmMarkObjectNonNull((Object *)((uintptr_t)*ref
[all...]
/dalvik/vm/mterp/x86/
H A DOP_ARRAY_LENGTH.S7 GET_VREG(%ecx,rINST_FULL) # ecx<- vB (object ref)
/dalvik/dx/src/com/android/dx/dex/file/
H A DCodeItem.java52 private final CstMethodRef ref; field in class:CodeItem
78 * @param ref non-null; method that this code implements
85 public CodeItem(CstMethodRef ref, DalvCode code, boolean isStatic, argument
89 if (ref == null) {
90 throw new NullPointerException("ref == null");
101 this.ref = ref;
122 debugInfo = new DebugInfoItem(code, isStatic, ref);
147 return ref.toHuman();
156 return ref;
[all...]

Completed in 505 milliseconds

12345