/libcore/luni/src/test/java/libcore/java/nio/charset/ |
D | CharsetDecoderTest.java | 42 byte[] arr = encode("UTF-16", "Android"); in test_ByteArray_decode_no_offset() 43 ByteBuffer inBuffer = ByteBuffer.wrap(arr, 0, arr.length).slice(); in test_ByteArray_decode_no_offset() 44 CharBuffer outBuffer = CharBuffer.allocate(arr.length); in test_ByteArray_decode_no_offset() 56 byte[] arr = encode("UTF-16", "Android"); in test_ByteArray_decode_with_offset() 57 arr = prependByteToByteArray(arr, new Integer(1).byteValue()); in test_ByteArray_decode_with_offset() 59 ByteBuffer inBuffer = ByteBuffer.wrap(arr, offset, arr.length - offset).slice(); in test_ByteArray_decode_with_offset() 60 CharBuffer outBuffer = CharBuffer.allocate(arr.length - offset); in test_ByteArray_decode_with_offset() 72 byte[] arr = encode("UTF-16", "Android"); in test_ByteArray_decode_with_offset_using_facade_method() 73 arr = prependByteToByteArray(arr, new Integer(1).byteValue()); in test_ByteArray_decode_with_offset_using_facade_method() 75 CharBuffer outBuffer = decoder.decode(ByteBuffer.wrap(arr, offset, arr.length - offset)); in test_ByteArray_decode_with_offset_using_facade_method() [all …]
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | CollatorTest.java | 74 byte [] arr = mColl.getCollationKey(sixteen).toByteArray(); in test_collationKeySize() 75 int len = arr.length; in test_collationKeySize() 76 assertTrue("Collation key not 0 terminated", arr[arr.length - 1] == 0); in test_collationKeySize() 78 String foo = new String(arr, 0, len, "iso8859-1"); in test_collationKeySize() 80 arr = mColl.getCollationKey(sixteen).toByteArray(); in test_collationKeySize() 81 len = arr.length; in test_collationKeySize() 82 assertTrue("Collation key not 0 terminated", arr[arr.length - 1] == 0); in test_collationKeySize() 84 String bar = new String(arr, 0, len, "iso8859-1"); in test_collationKeySize()
|
/libcore/ojluni/src/main/native/ |
D | LinuxWatchService.c | 65 jint arr[5]; in Java_sun_nio_fs_LinuxWatchService_eventOffsets() local 66 arr[0] = (jint)offsetof(struct inotify_event, wd); in Java_sun_nio_fs_LinuxWatchService_eventOffsets() 67 arr[1] = (jint)offsetof(struct inotify_event, mask); in Java_sun_nio_fs_LinuxWatchService_eventOffsets() 68 arr[2] = (jint)offsetof(struct inotify_event, cookie); in Java_sun_nio_fs_LinuxWatchService_eventOffsets() 69 arr[3] = (jint)offsetof(struct inotify_event, len); in Java_sun_nio_fs_LinuxWatchService_eventOffsets() 70 arr[4] = (jint)offsetof(struct inotify_event, name); in Java_sun_nio_fs_LinuxWatchService_eventOffsets() 71 (*env)->SetIntArrayRegion(env, result, 0, 5, arr); in Java_sun_nio_fs_LinuxWatchService_eventOffsets()
|
D | UNIXProcess_md.c | 473 getBytes(JNIEnv *env, jbyteArray arr) in getBytes() argument 475 return arr == NULL ? NULL : in getBytes() 476 (const char*) (*env)->GetByteArrayElements(env, arr, NULL); in getBytes() 480 releaseBytes(JNIEnv *env, jbyteArray arr, const char* parr) in releaseBytes() argument 483 (*env)->ReleaseByteArrayElements(env, arr, (jbyte*) parr, JNI_ABORT); in releaseBytes()
|
D | jvm.h | 336 JVM_GetArrayLength(JNIEnv *env, jobject arr); 339 JVM_GetArrayElement(JNIEnv *env, jobject arr, jint index); 342 JVM_GetPrimitiveArrayElement(JNIEnv *env, jobject arr, jint index, jint wCode); 345 JVM_SetArrayElement(JNIEnv *env, jobject arr, jint index, jobject val); 348 JVM_SetPrimitiveArrayElement(JNIEnv *env, jobject arr, jint index, jvalue v,
|
/libcore/ojluni/src/main/java/java/util/prefs/ |
D | Base64.java | 245 byte[] arr = new byte[j]; in main() 247 arr[k] = (byte)rnd.nextInt(); in main() 249 String s = byteArrayToBase64(arr); in main() 251 if (!java.util.Arrays.equals(arr, b)) in main() 254 s = byteArrayToAltBase64(arr); in main() 256 if (!java.util.Arrays.equals(arr, b)) in main()
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | DoubleStreamTestDataProvider.java | 48 for (double[] arr : arrays) { 49 for (int i = 0; i < arr.length; i++) { 50 arr[i] = i;
|
D | IntStreamTestDataProvider.java | 48 for (int[] arr : arrays) { 49 for (int i = 0; i < arr.length; i++) { 50 arr[i] = i;
|
D | LongStreamTestDataProvider.java | 48 for (long[] arr : arrays) { 49 for (int i = 0; i < arr.length; i++) { 50 arr[i] = i;
|
D | StreamTestDataProvider.java | 54 for (Integer[] arr : arrays) { 55 for (int i = 0; i < arr.length; i++) { 56 arr[i] = i;
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | DoubleStreamTestDataProvider.java | 52 for (double[] arr : arrays) { 53 for (int i = 0; i < arr.length; i++) { 54 arr[i] = i;
|
D | IntStreamTestDataProvider.java | 51 for (int[] arr : arrays) { 52 for (int i = 0; i < arr.length; i++) { 53 arr[i] = i;
|
D | LongStreamTestDataProvider.java | 51 for (long[] arr : arrays) { 52 for (int i = 0; i < arr.length; i++) { 53 arr[i] = i;
|
D | StreamTestDataProvider.java | 59 for (Integer[] arr : arrays) { 60 for (int i = 0; i < arr.length; i++) { 61 arr[i] = i;
|
/libcore/ojluni/src/main/java/java/net/ |
D | InetAddress.java | 662 InetAddress[] arr = nameService.lookupAllHostAddr(host, NETID_UNSET); in getHostFromNameService() local 665 if (arr != null) { in getHostFromNameService() 666 for(int i = 0; !ok && i < arr.length; i++) { in getHostFromNameService() 667 ok = addr.equals(arr[i]); in getHostFromNameService()
|
/libcore/luni/src/test/java/tests/security/cert/ |
D | CertificateFactory1Test.java | 440 byte[] arr = os.toByteArray(); in testCertificateFactory11() 443 is = new ByteArrayInputStream(arr); in testCertificateFactory11() 449 is = new ByteArrayInputStream(arr); in testCertificateFactory11() 457 is = new ByteArrayInputStream(arr); in testCertificateFactory11() 463 is = new ByteArrayInputStream(arr); in testCertificateFactory11() 546 byte[] arr = os.toByteArray(); in testCertificateFactory13() 547 ByteArrayInputStream is = new ByteArrayInputStream(arr); in testCertificateFactory13()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | SSLEngineResultTest.java | 206 private boolean findEl(Object[] arr, Object el) { in findEl() argument 208 for (int i = 0; i < arr.length; i++) { in findEl() 209 if (arr[i].equals(el)) { in findEl()
|
/libcore/luni/src/test/java/tests/com/android/org/bouncycastle/jce/provider/ |
D | CertBlacklistTest.java | 154 Set<byte[]> arr = bl.pubkeyBlacklist; in getPubkeyBlacklist() local 157 for (byte[] value: arr) { in getPubkeyBlacklist() 167 Set<BigInteger> arr = bl.serialBlacklist; in getSerialBlacklist() local 170 for (BigInteger value: arr) { in getSerialBlacklist()
|
/libcore/luni/src/main/native/ |
D | java_math_NativeBN.cpp | 177 static void NativeBN_BN_bin2bn(JNIEnv* env, jclass, jbyteArray arr, int len, jboolean neg, jlong re… in NativeBN_BN_bin2bn() argument 179 ScopedByteArrayRO bytes(env, arr); in NativeBN_BN_bin2bn() 191 static void NativeBN_litEndInts2bn(JNIEnv* env, jclass, jintArray arr, int len, jboolean neg, jlong… in NativeBN_litEndInts2bn() argument 195 ScopedIntArrayRO scopedArray(env, arr); in NativeBN_litEndInts2bn() 213 static void NativeBN_twosComp2bn(JNIEnv* env, jclass, jbyteArray arr, int bytesLen, jlong ret0) { in NativeBN_twosComp2bn() argument 217 ScopedByteArrayRO bytes(env, arr); in NativeBN_twosComp2bn()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Collections.java | 507 Object arr[] = list.toArray(); in shuffle() local 511 swap(arr, i-1, rnd.nextInt(i)); in shuffle() 518 for (int i=0; i<arr.length; i++) { in shuffle() 520 it.set(arr[i]); in shuffle() 550 private static void swap(Object[] arr, int i, int j) { in swap() argument 551 Object tmp = arr[i]; in swap() 552 arr[i] = arr[j]; in swap() 553 arr[j] = tmp; in swap() 1733 Object[] arr = c.toArray(a.length==0 ? a : Arrays.copyOf(a, 0)); 1735 for (int i=0; i<arr.length; i++) [all …]
|
/libcore/xml/src/main/java/com/android/org/kxml2/io/ |
D | KXmlParser.java | 294 private String[] ensureCapacity(String[] arr, int required) { in ensureCapacity() argument 295 if (arr.length >= required) { in ensureCapacity() 296 return arr; in ensureCapacity() 299 System.arraycopy(arr, 0, bigger, 0, arr.length); in ensureCapacity()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | SerializationStressTest2.java | 684 Object arr; in readObject() local 686 arr = s.readObject(); in readObject() 687 transVar = (int[]) arr; in readObject() 707 Object arr; in readObject() local 709 arr = s.readObject(); in readObject() 710 transVar = (int[]) arr; in readObject()
|
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
D | PatternTest.java | 127 String[] arr = s.split(":"); in testBug6544() local 128 assertEquals(arr.length, 1); in testBug6544() 1165 String[] arr = s.split(":"); in testSplitEmptyCharSequence() local 1167 assertEquals(arr.length, 1); in testSplitEmptyCharSequence()
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | Transformers.java | 1369 Object[] arr = (Object[]) Array.newInstance(targetComponentType, numArrayArgs); in transform() local 1371 arr[i] = reader.nextReference(adapterComponentType); in transform() 1374 writer.putNextReference(arr, targetType); in transform()
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Collections.java | 96 private static void swap(java.lang.Object[] arr, int i, int j) { in swap() argument
|