Home
last modified time | relevance | path

Searched refs:arr (Results 1 – 25 of 37) sorted by relevance

12

/dalvik/dx/tests/073-dex-null-array-refs/
DBlort.java32 Object[] arr = null; in test4() local
33 return arr[0]; in test4()
37 Object[] arr = null; in test5() local
38 arr[0] = null; in test5()
42 Object[] arr = null; in test6() local
43 return arr.length; in test6()
46 public static Object test7(Object[] arr) { in test7() argument
48 arr = null; in test7()
51 return arr[0]; in test7()
54 public static void test8(Object[] arr) { in test8() argument
[all …]
/dalvik/dx/src/com/android/dx/util/
DFixedSizeList.java27 private Object[] arr; field in FixedSizeList
38 arr = new Object[size]; in FixedSizeList()
59 return Arrays.equals(arr, list.arr); in equals()
65 return Arrays.hashCode(arr); in hashCode()
124 return arr.length; in size()
133 int sz = arr.length; in shrinkToFit()
137 if (arr[i] != null) { in shrinkToFit()
152 Object one = arr[i]; in shrinkToFit()
159 arr = newa; in shrinkToFit()
177 Object result = arr[n]; in get0()
[all …]
DHex.java249 public static String dump(byte[] arr, int offset, int length, in dump() argument
254 if (((offset | length | end) < 0) || (end > arr.length)) { in dump()
256 arr.length + "; " + in dump()
286 sb.append(Hex.u1(arr[offset])); in dump()
DByteArray.java314 public int read(byte[] arr, int offset, int length) { in read() argument
315 if ((offset + length) > arr.length) { in read()
316 length = arr.length - offset; in read()
324 System.arraycopy(bytes, cursor, arr, offset, length); in read()
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/util/
DTwoKeyHashMap.java47 private Entry<E, K, V>[] arr; field in TwoKeyHashMap
85 arr = new Entry[arrSize + 1]; in TwoKeyHashMap()
114 Arrays.fill(arr, 0, arr.length, null); in clear()
138 if (arr[index] == null) { in put()
139 arr[index] = createEntry(0, null, null, value, null); in put()
144 V oldValue = arr[index].value; in put()
145 arr[index].value = value; in put()
152 Entry<E, K, V> e = arr[index]; in put()
163 arr[index] = createEntry(hash, key1, key2, value, arr[index]); in put()
184 for (int i = 0; i < arr.length - 1; i++) { in rehash()
[all …]
/dalvik/dx/tests/078-dex-local-variable-table/
DBlort.java24 Object[] arr = null; in test02() local
25 return arr[0]; in test02()
42 int[] arr = (int[]) x; in test05() local
43 arr[0] = 123; in test05()
44 return arr[0]; in test05()
/dalvik/vm/native/
Djava_lang_reflect_AccessibleObject.c34 ArrayObject* arr = dvmGetClassSignatureAnnotation(clazz); in Dalvik_java_lang_reflect_AccessibleObject_getClassSignatureAnnotation() local
36 dvmReleaseTrackedAlloc((Object*) arr, NULL); in Dalvik_java_lang_reflect_AccessibleObject_getClassSignatureAnnotation()
37 RETURN_PTR(arr); in Dalvik_java_lang_reflect_AccessibleObject_getClassSignatureAnnotation()
Djava_lang_reflect_Constructor.c147 ArrayObject* arr = dvmGetMethodSignatureAnnotation(meth); in Dalvik_java_lang_reflect_Constructor_getSignatureAnnotation() local
148 dvmReleaseTrackedAlloc((Object*) arr, NULL); in Dalvik_java_lang_reflect_Constructor_getSignatureAnnotation()
149 RETURN_PTR(arr); in Dalvik_java_lang_reflect_Constructor_getSignatureAnnotation()
Djava_lang_reflect_Method.c200 ArrayObject* arr = dvmGetMethodSignatureAnnotation(meth); in Dalvik_java_lang_reflect_Method_getSignatureAnnotation() local
201 dvmReleaseTrackedAlloc((Object*) arr, NULL); in Dalvik_java_lang_reflect_Method_getSignatureAnnotation()
202 RETURN_PTR(arr); in Dalvik_java_lang_reflect_Method_getSignatureAnnotation()
/dalvik/libcore/security/src/test/java/tests/api/javax/security/auth/
DPrivateCredentialPermissionTest.java130 PrivateCredentialPermission[][] arr = { { p1, p2 }, in test_implies() local
140 for(int i = 0; i < arr.length; i++) in test_implies()
141 … assertEquals("implies() returned wrong result (" + i + ")", r[i], arr[i][0].implies(arr[i][1])); in test_implies()
198 PrivateCredentialPermission arr[][] = { { p1, p2 }, in test_equals() local
205 for(int i = 0; i < arr.length; i++) { in test_equals()
206 assertEquals("equals() returned wrong result", r[i], arr[i][0].equals(arr[i][1])); in test_equals()
228 int arr[][] = new int[10][]; in test_hashCode() local
235 arr[i] = new int[50000]; in test_hashCode()
DSubjectDomainCombinerTest.java465 boolean contains(String[] arr, String val) { in contains() argument
466 for(int i = 0; i < arr.length; i++) in contains()
467 if(arr[i].compareTo(val) == 0) in contains()
472 private void dumpPD(ProtectionDomain[] arr) { in dumpPD() argument
474 if(arr == null) return; in dumpPD()
475 for(int i = 0; i < arr.length; i++) { in dumpPD()
476 System.out.println(arr[i].getCodeSource().getLocation().toString()); in dumpPD()
477 dumpPerms(arr[i].getPermissions()); in dumpPD()
478 dumpPrincipals(arr[i].getPrincipals()); in dumpPD()
/dalvik/dx/tests/075-dex-cat2-value-merge/
DBlort.java19 public static void test(long[] arr) in test() argument
24 x += arr[0]; in test()
/dalvik/dx/tests/064-dex-array-access/
DBlort.java70 int[][][] arr = (int[][][]) x; in test11() local
71 arr[0][0][0] = 123; in test11()
72 return arr[1][2][3]; in test11()
/dalvik/libcore/security/src/test/java/org/apache/harmony/security/tests/java/security/
DPermissionsTest.java78 Permission[] arr = new Permission[] { in testAdd() local
80 for (int i = 0; i < arr.length; i++) { in testAdd()
81 ps.add(arr[i]); in testAdd()
137 Permission[] arr = new Permission[] { in testElements() local
139 for (int i = 0; i < arr.length; i++) { in testElements()
140 ps.add(arr[i]); in testElements()
148 assertTrue(els.containsAll(Arrays.asList(arr))); in testElements()
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/provider/cert/
DCache.java189 public long getHash(byte[] arr) { in getHash() argument
192 hash += (arr[i] & 0xFF); in getHash()
330 private long getSuffHash(byte[] arr) { in getSuffHash() argument
332 for (int i=arr.length-1; i>arr.length - prefix_size; i--) { in getSuffHash()
333 hash_addon += (arr[i] & 0xFF); in getSuffHash()
/dalvik/libcore/support/src/test/java/tests/support/
DSupport_Exec.java43 Object[] arr = in execJava() local
46 return getProcessOutput(arr, displayOutput); in execJava()
54 Object[] arr = in execJava() local
57 return getProcessOutput(arr, displayOutput); in execJava()
60 public static String getProcessOutput(Object[] arr, boolean displayOutput) in getProcessOutput() argument
62 Process proc = (Process) arr[0]; in getProcessOutput()
78 checkStderr(arr); in getProcessOutput()
/dalvik/libcore/crypto/src/main/java/javax/crypto/
DCipherOutputStream.java41 private final byte[] arr = new byte[1]; field in CipherOutputStream
85 arr[0] = (byte) b; in write()
86 result = cipher.update(arr); in write()
/dalvik/dx/src/com/android/dx/dex/code/
DPositionList.java76 PositionList.Entry[] arr = new PositionList.Entry[sz]; in make() local
99 arr[at] = new PositionList.Entry(insn.getAddress(), pos); in make()
107 result.set(i, arr[i]); in make()
/dalvik/libcore/text/src/test/java/org/apache/harmony/text/tests/java/text/
DCollatorTest.java455 byte [] arr = mColl.getCollationKey(sixteen).toByteArray(); in test_collationKeySize()
456 int len = arr.length; in test_collationKeySize()
457 assertTrue("Collation key not 0 terminated", arr[arr.length - 1] == 0); in test_collationKeySize()
459 String foo = new String(arr, 0, len, "iso8859-1"); in test_collationKeySize()
461 arr = mColl.getCollationKey(sixteen).toByteArray(); in test_collationKeySize()
462 len = arr.length; in test_collationKeySize()
463 assertTrue("Collation key not 0 terminated", arr[arr.length - 1] == 0); in test_collationKeySize()
465 String bar = new String(arr, 0, len, "iso8859-1"); in test_collationKeySize()
/dalvik/libcore/openssl/src/main/native/
DBNInterface.c201 static jboolean NativeBN_BN_bin2bn(JNIEnv* env, jclass cls, jbyteArray arr, int len, jboolean neg, … in NativeBN_BN_bin2bn() argument
205 tmpBytes = (unsigned char *)((*env)->GetPrimitiveArrayCritical(env, arr, 0)); in NativeBN_BN_bin2bn()
211 (*env)->ReleasePrimitiveArrayCritical(env, arr, tmpBytes, JNI_ABORT); in NativeBN_BN_bin2bn()
225 static jboolean NativeBN_litEndInts2bn(JNIEnv* env, jclass cls, jintArray arr, int len, jboolean ne… in NativeBN_litEndInts2bn() argument
230 tmpInts = (BN_ULONG*)((*env)->GetPrimitiveArrayCritical(env, arr, 0)); in NativeBN_litEndInts2bn()
233 (*env)->ReleasePrimitiveArrayCritical(env, arr, tmpInts, JNI_ABORT); in NativeBN_litEndInts2bn()
244 (*env)->ReleasePrimitiveArrayCritical(env, arr, tmpInts, JNI_ABORT); in NativeBN_litEndInts2bn()
317 static jboolean NativeBN_twosComp2bn(JNIEnv* env, jclass cls, jbyteArray arr, int bytesLen, BIGNUM*… in NativeBN_twosComp2bn() argument
321 tmpBytes = (unsigned char*)((*env)->GetPrimitiveArrayCritical(env, arr, 0)); in NativeBN_twosComp2bn()
337 (*env)->ReleasePrimitiveArrayCritical(env, arr, tmpBytes, JNI_ABORT); in NativeBN_twosComp2bn()
/dalvik/dx/src/com/android/dx/cf/code/
DByteCatchList.java138 private static boolean typeNotFound(Item item, Item[] arr, int count) { in typeNotFound() argument
142 CstType one = arr[i].getExceptionClass(); in typeNotFound()
/dalvik/tests/004-annotations/src/android/test/anno/
DTestAnnotations.java14 static private void printAnnotationArray(String prefix, Annotation[] arr) { in printAnnotationArray() argument
18 for (Annotation a : arr) { in printAnnotationArray()
/dalvik/libcore/x-net/src/test/java/tests/api/javax/net/ssl/
DSSLEngineResultTest.java248 private boolean findEl(Object[] arr, Object el) { in findEl() argument
250 for (int i = 0; i < arr.length; i++) { in findEl()
251 if (arr[i].equals(el)) { in findEl()
/dalvik/dx/src/com/android/dx/command/dump/
DBaseDumper.java173 protected final void setAt(ByteArray arr, int offset) { in setAt() argument
174 at = arr.underlyingOffset(offset, bytes); in setAt()
/dalvik/libcore/concurrent/src/main/java/java/util/concurrent/
DCopyOnWriteArrayList.java50 private transient volatile E[] arr; field in CopyOnWriteArrayList
93 arr = data; in CopyOnWriteArrayList()
483 arr = data; in setData()
492 if (arr == null) { in getData()
495 return arr; in getData()
749 private final Object[] arr; field in CopyOnWriteArrayList.ListIteratorImpl
761 arr = data; in ListIteratorImpl()
782 return arr[current++]; in next()
793 return arr[--current]; in previous()

12