/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 | 70 byte [] arr = mColl.getCollationKey(sixteen).toByteArray(); in test_collationKeySize() 71 int len = arr.length; in test_collationKeySize() 72 assertTrue("Collation key not 0 terminated", arr[arr.length - 1] == 0); in test_collationKeySize() 74 String foo = new String(arr, 0, len, "iso8859-1"); in test_collationKeySize() 76 arr = mColl.getCollationKey(sixteen).toByteArray(); in test_collationKeySize() 77 len = arr.length; in test_collationKeySize() 78 assertTrue("Collation key not 0 terminated", arr[arr.length - 1] == 0); in test_collationKeySize() 80 String bar = new String(arr, 0, len, "iso8859-1"); in test_collationKeySize()
|
/libcore/ojluni/src/main/native/ |
D | LinuxWatchService.c | 59 jint arr[5]; in Java_sun_nio_fs_LinuxWatchService_eventOffsets() local 60 arr[0] = (jint)offsetof(struct inotify_event, wd); in Java_sun_nio_fs_LinuxWatchService_eventOffsets() 61 arr[1] = (jint)offsetof(struct inotify_event, mask); in Java_sun_nio_fs_LinuxWatchService_eventOffsets() 62 arr[2] = (jint)offsetof(struct inotify_event, cookie); in Java_sun_nio_fs_LinuxWatchService_eventOffsets() 63 arr[3] = (jint)offsetof(struct inotify_event, len); in Java_sun_nio_fs_LinuxWatchService_eventOffsets() 64 arr[4] = (jint)offsetof(struct inotify_event, name); in Java_sun_nio_fs_LinuxWatchService_eventOffsets() 65 (*env)->SetIntArrayRegion(env, result, 0, 5, arr); in Java_sun_nio_fs_LinuxWatchService_eventOffsets()
|
D | UNIXProcess_md.c | 456 getBytes(JNIEnv *env, jbyteArray arr) in getBytes() argument 458 return arr == NULL ? NULL : in getBytes() 459 (const char*) (*env)->GetByteArrayElements(env, arr, NULL); in getBytes() 463 releaseBytes(JNIEnv *env, jbyteArray arr, const char* parr) in releaseBytes() argument 466 (*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 | 575 InetAddress[] arr = nameService.lookupAllHostAddr(host, NETID_UNSET); in getHostFromNameService() local 578 if (arr != null) { in getHostFromNameService() 579 for(int i = 0; !ok && i < arr.length; i++) { in getHostFromNameService() 580 ok = addr.equals(arr[i]); in getHostFromNameService()
|
/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/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/luni/src/test/java/com/android/org/bouncycastle/jce/provider/ |
D | CertBlacklistTest.java | 156 Set<byte[]> arr = bl.pubkeyBlacklist; in getPubkeyBlacklist() local 159 for (byte[] value: arr) { in getPubkeyBlacklist() 169 Set<BigInteger> arr = bl.serialBlacklist; in getSerialBlacklist() local 172 for (BigInteger value: arr) { in getSerialBlacklist()
|
/libcore/luni/src/main/native/ |
D | java_math_NativeBN.cpp | 175 static void NativeBN_BN_bin2bn(JNIEnv* env, jclass, jbyteArray arr, int len, jboolean neg, jlong re… in NativeBN_BN_bin2bn() argument 177 ScopedByteArrayRO bytes(env, arr); in NativeBN_BN_bin2bn() 189 static void NativeBN_litEndInts2bn(JNIEnv* env, jclass, jintArray arr, int len, jboolean neg, jlong… in NativeBN_litEndInts2bn() argument 193 ScopedIntArrayRO scopedArray(env, arr); in NativeBN_litEndInts2bn() 211 static void NativeBN_twosComp2bn(JNIEnv* env, jclass, jbyteArray arr, int bytesLen, jlong ret0) { in NativeBN_twosComp2bn() argument 215 ScopedByteArrayRO bytes(env, arr); in NativeBN_twosComp2bn()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Collections.java | 502 Object arr[] = list.toArray(); in shuffle() local 506 swap(arr, i-1, rnd.nextInt(i)); in shuffle() 513 for (int i=0; i<arr.length; i++) { in shuffle() 515 it.set(arr[i]); in shuffle() 545 private static void swap(Object[] arr, int i, int j) { in swap() argument 546 Object tmp = arr[i]; in swap() 547 arr[i] = arr[j]; in swap() 548 arr[j] = tmp; in swap() 1726 Object[] arr = c.toArray(a.length==0 ? a : Arrays.copyOf(a, 0)); 1728 for (int i=0; i<arr.length; i++) [all …]
|
/libcore/xml/src/main/java/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 | 167 String[] arr = s1.split(":"); in testSplitCharSequence() local 168 assertEquals(arr.length, 1); in testSplitCharSequence() 1010 String[] arr = s1.split(":"); in testSplitEmptyCharSequence() local 1011 assertEquals(arr.length, 1); in testSplitEmptyCharSequence()
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | Transformers.java | 1368 Object[] arr = (Object[]) Array.newInstance(targetComponentType, numArrayArgs); in transform() local 1370 arr[i] = reader.nextReference(adapterComponentType); in transform() 1373 writer.putNextReference(arr, targetType); in transform()
|