HomeSort by relevance Sort by last modified time
    Searched refs:Arrays (Results 476 - 500 of 1910) sorted by null

<<11121314151617181920>>

  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
PriorityQueueTest.java 20 import java.util.Arrays;
53 Arrays.sort(array);
54 Arrays.sort(resultArray);
55 assertTrue(Arrays.equals(array, resultArray));
131 Arrays.sort(newArray);
257 List<Integer> list = Arrays.asList(array);
268 List<Integer> list = Arrays.asList(array);
272 Arrays.sort(array);
361 Arrays.sort(array);
471 Arrays.sort(array)
    [all...]
Collections2Test.java 26 import java.util.Arrays;
250 List<String> strings = Arrays.asList(new String[] { "1", "2", "3", "1", "1" });
264 List<Object> objects = Arrays.asList(new Object[] { new Integer(1), null, null,
289 Arrays.sort(numbers, roc);
290 assertTrue("Assert 2: the arrays are not equal, the sort failed",
291 Arrays.equals(fixtureDesc, numbers));
307 Arrays.sort(numbers, roc);
308 assertTrue("Assert 2: the arrays are not equal, the sort failed",
309 Arrays.equals(fixtureDesc, numbers));
318 Arrays.sort(numbers, roc)
    [all...]
WeakHashMapTest.java 21 import java.util.Arrays;
185 List keys = Arrays.asList(keyArray);
186 List values = Arrays.asList(valueArray);
300 List keys = Arrays.asList(keyArray);
301 List values = Arrays.asList(valueArray);
377 List keys = Arrays.asList(keyArray);
378 List values = Arrays.asList(valueArray);
AbstractCollectionTest.java 21 import java.util.Arrays;
57 final Collection<String> fixtures = Arrays.asList("0", "1", "2");
86 final Collection<String> fixtures = Arrays.asList("0", "1", "2");
168 assertTrue(ac.removeAll(Arrays.asList("0", "1", "2")));
211 assertTrue(ac.retainAll(Arrays.asList("1", "2")));
  /external/proguard/src/proguard/optimize/peephole/
BranchTargetFinder.java 32 import java.util.Arrays;
319 // Make sure there are sufficiently large arrays.
323 // Create new arrays.
330 // Reset the arrays.
331 Arrays.fill(subroutineStarts, 0, codeLength, UNKNOWN);
332 Arrays.fill(subroutineEnds, 0, codeLength, UNKNOWN);
333 Arrays.fill(creationOffsets, 0, codeLength, NONE);
334 Arrays.fill(initializationOffsets, 0, codeLength, NONE);
338 // Reset the arrays.
339 Arrays.fill(instructionMarks, 0, codeLength, (short)0)
    [all...]
  /libcore/luni/src/test/java/libcore/java/security/cert/
CertificateFactoryTest.java 46 import java.util.Arrays;
223 baos.write(Arrays.copyOfRange(VALID_CERTIFICATE_PEM_DATA, offset, end));
442 assertEquals(providerName, Arrays.toString(pathFromList.getEncoded()),
443 Arrays.toString(encodedCopy));
449 assertEquals(providerName, Arrays.toString(pathFromList.getEncoded(encoding)),
450 Arrays.toString(encodedCopy));
463 assertEquals(providerName, Arrays.toString(pathFromList.getEncoded()),
464 Arrays.toString(encoded));
470 assertEquals(providerName, Arrays.toString(pathFromList.getEncoded(encoding)),
471 Arrays.toString(encoded))
    [all...]
X509CRLTest.java 39 import java.util.Arrays;
294 assertEquals(Arrays.toString(expected), Arrays.toString(crlRsa.getSignature()));
301 assertEquals(Arrays.toString(expected), Arrays.toString(crlRsa.getTBSCertList()));
309 assertEquals(Arrays.toString(crlRsaBytes), Arrays.toString(crlRsa.getEncoded()));
371 assertTrue(Arrays.toString(dsaEntry.getNonCriticalExtensionOIDs().toArray()),
373 System.out.println(Arrays.toString(dsaEntry.getExtensionValue("2.5.29.21")));
413 assertEquals(f.getProvider().getName(), Arrays.toString(expected)
    [all...]
  /libcore/luni/src/test/java/libcore/java/lang/
OldThreadGroupTest.java 21 import java.util.Arrays;
145 initialPlusNew.addAll(Arrays.asList(initialThreads));
149 assertEquals(initialPlusNew, new HashSet<Thread>(Arrays.asList(afterStartThreads)));
160 assertEquals(Arrays.asList(initialThreads), Arrays.asList(afterDeathThreads));
174 assertTrue(Arrays.asList(listOfGroups).contains(childGroup));
359 return Arrays.copyOfRange(all, 0, actualSize);
  /external/chromium_org/third_party/protobuf/java/src/test/java/com/google/protobuf/
LiteralByteStringTest.java 41 import java.util.Arrays;
206 Arrays.equals(referenceBytes, myBuffer.array()));
216 Arrays.equals(referenceBytes, roundTripBytes));
232 Arrays.equals(referenceBytes, roundTripBytes));
238 Arrays.equals(referenceBytes, roundTripBytes));
246 Arrays.equals(referenceBytes, roundTripBytes));
267 Arrays.equals(referenceBytes, newBytes));
278 Arrays.equals(referenceBytes, bos.toByteArray()));
382 Arrays.equals(referenceBytes, roundTripBytes));
  /external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/h264/model/
PictureParameterSet.java 30 import java.util.Arrays;
287 result = prime * result + Arrays.hashCode(bottom_right);
304 result = prime * result + Arrays.hashCode(run_length_minus1);
309 result = prime * result + Arrays.hashCode(slice_group_id);
311 result = prime * result + Arrays.hashCode(top_left);
326 if (!Arrays.equals(bottom_right, other.bottom_right))
357 if (!Arrays.equals(run_length_minus1, other.run_length_minus1))
365 if (!Arrays.equals(slice_group_id, other.slice_group_id))
369 if (!Arrays.equals(top_left, other.top_left))
  /frameworks/base/core/tests/inputmethodtests/src/android/os/
InputMethodSubtypeSwitchingControllerTest.java 33 import java.util.Arrays;
93 addDummyImeSubtypeListItems(items, "LatinIme", "LatinIme", Arrays.asList("en_US", "fr"),
96 Arrays.asList("en_UK", "hi"),
100 addDummyImeSubtypeListItems(items, "JapaneseIme", "JapaneseIme", Arrays.asList("ja_JP"),
103 Arrays.asList("ja_JP"), false /* supportsSwitchingToNextInputMethod*/);
111 Arrays.asList("en_US", "hi"),
115 Arrays.asList("en_US"),
288 final List<ImeSubtypeListItem> differentEnabledItems = Arrays.asList(
303 Arrays.asList("en_US", "fr", "en", "en_uk", "enn", "e", "EN_US"),
  /libcore/jsr166-tests/src/test/java/jsr166/
ConcurrentLinkedQueueTest.java 12 import java.util.Arrays;
58 ConcurrentLinkedQueue q = new ConcurrentLinkedQueue(Arrays.asList(ints));
71 ConcurrentLinkedQueue q = new ConcurrentLinkedQueue(Arrays.asList(ints));
83 ConcurrentLinkedQueue q = new ConcurrentLinkedQueue(Arrays.asList(ints));
188 q.addAll(Arrays.asList(ints));
203 q.addAll(Arrays.asList(ints));
217 assertFalse(q.addAll(Arrays.asList(empty)));
218 assertTrue(q.addAll(Arrays.asList(ints)));
503 assertTrue(Arrays.equals(x.toArray(), y.toArray()));
  /art/test/003-omnibus-opcodes/src/
Classes.java 18 import java.util.Arrays;
124 * Exercise filled-new-array and test instanceof on arrays.
170 strForm = Arrays.deepToString(multi1);
178 strForm = Arrays.deepToString(multi2);
188 strForm = Arrays.deepToString(multi3);
198 strForm = Arrays.deepToString(multi4);
  /cts/tests/tests/database/src/android/database/cts/
AbstractWindowedCursorTest.java 19 import java.util.Arrays;
171 Arrays.fill(blob, TEST_VALUE);
179 assertTrue(Arrays.equals(blob, targetBuffer));
195 assertTrue(Arrays.equals(TEST_STRING.toCharArray(), charArrayBuffer.data));
197 Arrays.fill(charArrayBuffer.data, '\0');
  /dalvik/dx/tests/115-merge/com/android/dx/merge/
DexMergeTest.java 29 import java.util.Arrays;
49 assertTrue(Arrays.equals(
52 assertTrue(Arrays.equals(
55 assertTrue(Arrays.equals(
90 assertEquals("[0, 1]", Arrays.toString((int[]) staticValues.getField("j").get(null)));
  /external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/
ECFieldF2mTest.java 26 import java.util.Arrays;
461 assertTrue(Arrays.equals(a, b));
481 assertTrue(Arrays.equals(a, b));
518 assertTrue(Arrays.equals(a, f.getMidTermsOfReductionPolynomial()));
536 assertTrue(Arrays.equals(a, f.getMidTermsOfReductionPolynomial()));
  /external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/asn1/der/
SequenceTest.java 26 import java.util.Arrays;
164 assertTrue("Test case: " + i, Arrays.equals(
214 assertTrue("Encoded boolean:", Arrays.equals(expectedArray, encoded));
230 assertTrue("Encoded integer:", Arrays.equals(expectedArray, encoded));
271 assertTrue("Encoded boolean:", Arrays.equals(expectedArray, encoded));
  /external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/x509/
CertificateListTest.java 31 import java.util.Arrays;
100 new GeneralNames(Arrays.asList(
117 private static List revokedCertificates = Arrays.asList(
127 Arrays.asList(new Extension[] {
212 Arrays.equals(signatureValue, certificateList.getSignatureValue()));
  /external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/
ServerKeyExchangeTest.java 22 import java.util.Arrays;
43 assertTrue("incorrect ServerKeyExchange", Arrays.equals(message.hash,
60 assertTrue("incorrect message decoding", Arrays.equals(message.hash,
97 assertTrue("incorrect ServerKeyExchange", Arrays.equals(message.hash,
114 assertTrue("incorrect message decoding", Arrays.equals(message.hash,
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DERObjectIdentifier.java 7 import org.bouncycastle.util.Arrays;
172 this.body = Arrays.clone(bytes);
420 if (Arrays.areEqual(enc, possibleMatch.getBody()))
438 if (Arrays.areEqual(enc, possibleMatch.getBody()))
451 if (Arrays.areEqual(enc, possibleMatch.getBody()))
  /external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
CollectionToArrayTester.java 29 import java.util.Arrays;
128 List<E> subArray = Arrays.asList(array).subList(0, getNumElements());
179 Arrays.asList(expected), Arrays.asList(actual));
184 expected, Arrays.asList(actual));
190 * {@link Arrays#asList(Object[])} can suppress it with {@code
  /libcore/dalvik/src/main/java/dalvik/system/profiler/
SamplingProfiler.java 19 import java.util.Arrays;
264 Arrays.fill(threads, threadCount, lastThread, null);
369 if (!Arrays.equals(currentThreads, newThreads)) {
418 Set<Thread> n = new HashSet<Thread>(Arrays.asList(newThreads));
419 Set<Thread> o = new HashSet<Thread>(Arrays.asList(oldThreads));
  /libcore/luni/src/test/java/libcore/java/io/
OldInputStreamReaderTest.java 27 import java.util.Arrays;
125 assertTrue(Arrays.equals(chars, source.toCharArray()));
127 assertTrue(Arrays.equals(chars, source.toCharArray()));
145 Arrays.fill(data, (byte) 116); // 116 = ISO-8859-1 value for 't'
259 Arrays.fill(bytes, (byte) ' ');
  /libcore/luni/src/test/java/libcore/java/lang/reflect/
ClassLoaderReflectionTest.java 26 import java.util.Arrays;
177 assertEquals(Arrays.<Type>asList(args),
178 Arrays.asList(parameterizedType.getActualTypeArguments()));
183 assertEquals(Arrays.<Type>asList(bounds), Arrays.asList(actual.getBounds()));
  /libcore/luni/src/test/java/libcore/java/nio/charset/
CharsetEncoderTest.java 25 import java.util.Arrays;
42 assertEquals(Arrays.toString(bytes), Arrays.toString(result));
128 System.err.println(Arrays.toString(Arrays.copyOfRange(bb.array(), 0, bb.position())));

Completed in 818 milliseconds

<<11121314151617181920>>