Home
last modified time | relevance | path

Searched refs:subArray (Results 1 – 17 of 17) sorted by relevance

/external/guava/android/guava-tests/test/com/google/common/primitives/
DImmutableDoubleArrayTest.java250 assertThat(ImmutableDoubleArray.of(0, 1, 3).subArray(1, 1).length()).isEqualTo(0); in testLength()
251 assertThat(ImmutableDoubleArray.of(0, 1, 3).subArray(1, 2).length()).isEqualTo(1); in testLength()
258 assertThat(ImmutableDoubleArray.of(0, 1, 3).subArray(1, 1).isEmpty()).isTrue(); in testIsEmpty()
259 assertThat(ImmutableDoubleArray.of(0, 1, 3).subArray(1, 2).isEmpty()).isFalse(); in testIsEmpty()
266 assertThat(iia.subArray(1, 3).get(1)).isEqualTo(3.0); in testGet_good()
282 iia = iia.subArray(1, 2); in testGet_bad()
297 assertThat(iia.subArray(1, 5).indexOf(1)).isEqualTo(0); in testIndexOf()
317 assertThat(iia.subArray(1, 5).lastIndexOf(1)).isEqualTo(0); in testLastIndexOf()
327 assertThat(iia.subArray(1, 5).contains(1)).isTrue(); in testContains()
335 assertThat(iia0.subArray(0, 0)).isSameInstanceAs(ImmutableDoubleArray.of()); in testSubArray()
[all …]
DImmutableLongArrayTest.java249 assertThat(ImmutableLongArray.of(0, 1, 3).subArray(1, 1).length()).isEqualTo(0); in testLength()
250 assertThat(ImmutableLongArray.of(0, 1, 3).subArray(1, 2).length()).isEqualTo(1); in testLength()
257 assertThat(ImmutableLongArray.of(0, 1, 3).subArray(1, 1).isEmpty()).isTrue(); in testIsEmpty()
258 assertThat(ImmutableLongArray.of(0, 1, 3).subArray(1, 2).isEmpty()).isFalse(); in testIsEmpty()
265 assertThat(iia.subArray(1, 3).get(1)).isEqualTo(3L); in testGet_good()
281 iia = iia.subArray(1, 2); in testGet_bad()
296 assertThat(iia.subArray(1, 5).indexOf(1)).isEqualTo(0); in testIndexOf()
306 assertThat(iia.subArray(1, 5).lastIndexOf(1)).isEqualTo(0); in testLastIndexOf()
316 assertThat(iia.subArray(1, 5).contains(1)).isTrue(); in testContains()
324 assertThat(iia0.subArray(0, 0)).isSameInstanceAs(ImmutableLongArray.of()); in testSubArray()
[all …]
DImmutableIntArrayTest.java247 assertThat(ImmutableIntArray.of(0, 1, 3).subArray(1, 1).length()).isEqualTo(0); in testLength()
248 assertThat(ImmutableIntArray.of(0, 1, 3).subArray(1, 2).length()).isEqualTo(1); in testLength()
255 assertThat(ImmutableIntArray.of(0, 1, 3).subArray(1, 1).isEmpty()).isTrue(); in testIsEmpty()
256 assertThat(ImmutableIntArray.of(0, 1, 3).subArray(1, 2).isEmpty()).isFalse(); in testIsEmpty()
263 assertThat(iia.subArray(1, 3).get(1)).isEqualTo(3); in testGet_good()
279 iia = iia.subArray(1, 2); in testGet_bad()
294 assertThat(iia.subArray(1, 5).indexOf(1)).isEqualTo(0); in testIndexOf()
304 assertThat(iia.subArray(1, 5).lastIndexOf(1)).isEqualTo(0); in testLastIndexOf()
314 assertThat(iia.subArray(1, 5).contains(1)).isTrue(); in testContains()
322 assertThat(iia0.subArray(0, 0)).isSameInstanceAs(ImmutableIntArray.of()); in testSubArray()
[all …]
/external/guava/guava-tests/test/com/google/common/primitives/
DImmutableDoubleArrayTest.java269 assertThat(ImmutableDoubleArray.of(0, 1, 3).subArray(1, 1).length()).isEqualTo(0); in testLength()
270 assertThat(ImmutableDoubleArray.of(0, 1, 3).subArray(1, 2).length()).isEqualTo(1); in testLength()
277 assertThat(ImmutableDoubleArray.of(0, 1, 3).subArray(1, 1).isEmpty()).isTrue(); in testIsEmpty()
278 assertThat(ImmutableDoubleArray.of(0, 1, 3).subArray(1, 2).isEmpty()).isFalse(); in testIsEmpty()
285 assertThat(iia.subArray(1, 3).get(1)).isEqualTo(3.0); in testGet_good()
301 iia = iia.subArray(1, 2); in testGet_bad()
316 assertThat(iia.subArray(1, 5).indexOf(1)).isEqualTo(0); in testIndexOf()
336 assertThat(iia.subArray(1, 5).lastIndexOf(1)).isEqualTo(0); in testLastIndexOf()
346 assertThat(iia.subArray(1, 5).contains(1)).isTrue(); in testContains()
351 ImmutableDoubleArray.of(0, 1, 3).subArray(1, 1).forEach(i -> fail()); in testForEach()
[all …]
DImmutableIntArrayTest.java266 assertThat(ImmutableIntArray.of(0, 1, 3).subArray(1, 1).length()).isEqualTo(0); in testLength()
267 assertThat(ImmutableIntArray.of(0, 1, 3).subArray(1, 2).length()).isEqualTo(1); in testLength()
274 assertThat(ImmutableIntArray.of(0, 1, 3).subArray(1, 1).isEmpty()).isTrue(); in testIsEmpty()
275 assertThat(ImmutableIntArray.of(0, 1, 3).subArray(1, 2).isEmpty()).isFalse(); in testIsEmpty()
282 assertThat(iia.subArray(1, 3).get(1)).isEqualTo(3); in testGet_good()
298 iia = iia.subArray(1, 2); in testGet_bad()
313 assertThat(iia.subArray(1, 5).indexOf(1)).isEqualTo(0); in testIndexOf()
323 assertThat(iia.subArray(1, 5).lastIndexOf(1)).isEqualTo(0); in testLastIndexOf()
333 assertThat(iia.subArray(1, 5).contains(1)).isTrue(); in testContains()
338 ImmutableIntArray.of(0, 1, 3).subArray(1, 1).forEach(i -> fail()); in testForEach()
[all …]
DImmutableLongArrayTest.java268 assertThat(ImmutableLongArray.of(0, 1, 3).subArray(1, 1).length()).isEqualTo(0); in testLength()
269 assertThat(ImmutableLongArray.of(0, 1, 3).subArray(1, 2).length()).isEqualTo(1); in testLength()
276 assertThat(ImmutableLongArray.of(0, 1, 3).subArray(1, 1).isEmpty()).isTrue(); in testIsEmpty()
277 assertThat(ImmutableLongArray.of(0, 1, 3).subArray(1, 2).isEmpty()).isFalse(); in testIsEmpty()
284 assertThat(iia.subArray(1, 3).get(1)).isEqualTo(3L); in testGet_good()
300 iia = iia.subArray(1, 2); in testGet_bad()
315 assertThat(iia.subArray(1, 5).indexOf(1)).isEqualTo(0); in testIndexOf()
325 assertThat(iia.subArray(1, 5).lastIndexOf(1)).isEqualTo(0); in testLastIndexOf()
335 assertThat(iia.subArray(1, 5).contains(1)).isTrue(); in testContains()
340 ImmutableLongArray.of(0, 1, 3).subArray(1, 1).forEach(i -> fail()); in testForEach()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DTextTrieMap.java325 Node child = new Node(subArray(text, offset), addValue(null, value), null); in add()
352 litr.add(new Node(subArray(text, offset), addValue(null, value), null)); in add()
391 char[] childText = subArray(_text, offset);
392 _text = subArray(_text, 0, offset);
419 private static char[] subArray(char[] array, int start) {
428 private static char[] subArray(char[] array, int start, int limit) {
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DTextTrieMap.java334 Node child = new Node(subArray(text, offset), addValue(null, value), null); in add()
361 litr.add(new Node(subArray(text, offset), addValue(null, value), null)); in add()
400 char[] childText = subArray(_text, offset);
401 _text = subArray(_text, 0, offset);
428 private static char[] subArray(char[] array, int start) {
437 private static char[] subArray(char[] array, int start, int limit) {
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/testers/
DCollectionToArrayTester.java133 List<E> subArray = Arrays.asList(array).subList(0, getNumElements()); in testToArray_oversizedArray() local
138 subArray.contains(expectedSubArray[i])); in testToArray_oversizedArray()
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
DCollectionToArrayTester.java133 List<E> subArray = Arrays.asList(array).subList(0, getNumElements()); in testToArray_oversizedArray() local
138 subArray.contains(expectedSubArray[i])); in testToArray_oversizedArray()
/external/guava/android/guava/src/com/google/common/primitives/
DImmutableIntArray.java393 public ImmutableIntArray subArray(int startIndex, int endIndex) { in subArray() method in ImmutableIntArray
452 return parent.subArray(fromIndex, toIndex).asList(); in subList()
DImmutableDoubleArray.java398 public ImmutableDoubleArray subArray(int startIndex, int endIndex) { in subArray() method in ImmutableDoubleArray
457 return parent.subArray(fromIndex, toIndex).asList(); in subList()
DImmutableLongArray.java395 public ImmutableLongArray subArray(int startIndex, int endIndex) { in subArray() method in ImmutableLongArray
454 return parent.subArray(fromIndex, toIndex).asList(); in subList()
/external/guava/guava/src/com/google/common/primitives/
DImmutableIntArray.java435 public ImmutableIntArray subArray(int startIndex, int endIndex) { in subArray() method in ImmutableIntArray
498 return parent.subArray(fromIndex, toIndex).asList(); in subList()
DImmutableLongArray.java437 public ImmutableLongArray subArray(int startIndex, int endIndex) { in subArray() method in ImmutableLongArray
500 return parent.subArray(fromIndex, toIndex).asList(); in subList()
DImmutableDoubleArray.java440 public ImmutableDoubleArray subArray(int startIndex, int endIndex) { in subArray() method in ImmutableDoubleArray
503 return parent.subArray(fromIndex, toIndex).asList(); in subList()
/external/jcommander/src/main/java/com/beust/jcommander/
DJCommander.java740 jc.parse(validate, subArray(args, i + 1)); in parseValues()
875 private String[] subArray(String[] args, int index) { in subArray() method in JCommander