Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/java/nio/charset/
DCharsetDecoderTest.java42 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/
DCollatorTest.java74 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/
DLinuxWatchService.c65 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()
DUNIXProcess_md.c473 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()
Djvm.h336 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/
DBase64.java245 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/
DDoubleStreamTestDataProvider.java48 for (double[] arr : arrays) {
49 for (int i = 0; i < arr.length; i++) {
50 arr[i] = i;
DIntStreamTestDataProvider.java48 for (int[] arr : arrays) {
49 for (int i = 0; i < arr.length; i++) {
50 arr[i] = i;
DLongStreamTestDataProvider.java48 for (long[] arr : arrays) {
49 for (int i = 0; i < arr.length; i++) {
50 arr[i] = i;
DStreamTestDataProvider.java54 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/
DDoubleStreamTestDataProvider.java52 for (double[] arr : arrays) {
53 for (int i = 0; i < arr.length; i++) {
54 arr[i] = i;
DIntStreamTestDataProvider.java51 for (int[] arr : arrays) {
52 for (int i = 0; i < arr.length; i++) {
53 arr[i] = i;
DLongStreamTestDataProvider.java51 for (long[] arr : arrays) {
52 for (int i = 0; i < arr.length; i++) {
53 arr[i] = i;
DStreamTestDataProvider.java59 for (Integer[] arr : arrays) {
60 for (int i = 0; i < arr.length; i++) {
61 arr[i] = i;
/libcore/ojluni/src/main/java/java/net/
DInetAddress.java662 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/
DCertificateFactory1Test.java440 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/
DSSLEngineResultTest.java206 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/
DCertBlacklistTest.java154 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/
Djava_math_NativeBN.cpp177 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/
DCollections.java507 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/
DKXmlParser.java294 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/
DSerializationStressTest2.java684 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/
DPatternTest.java127 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/
DTransformers.java1369 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/
DCollections.java96 private static void swap(java.lang.Object[] arr, int i, int j) { in swap() argument