/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
IntUniqOpTest.java | 47 assertCountSum(IntStream.generate(() -> 0).limit(10).distinct().boxed(), 1, 0); 48 assertCountSum(IntStream.generate(() -> 1).limit(10).distinct().boxed(), 1, 1); 49 assertCountSum(IntStream.range(0, 0).distinct().boxed(), 0, 0); 50 assertCountSum(IntStream.range(1, 11).distinct().boxed(), 10, 55); 51 assertCountSum(IntStream.range(1, 11).distinct().boxed(), 10, 55); 56 Collection<Integer> result = exerciseOps(data, s -> s.distinct().boxed()); 69 stream(s -> s.sorted().distinct().boxed()).
|
IntSliceOpTest.java | 59 assertCountSum(IntStream.range(0, 0).skip(0).boxed(), 0, 0); method 60 assertCountSum(IntStream.range(0, 0).skip(4).boxed(), 0, 0); method 61 assertCountSum(IntStream.range(1, 5).skip(4).boxed(), 0, 0); method 62 assertCountSum(IntStream.range(1, 5).skip(2).boxed(), 2, 7); method 63 assertCountSum(IntStream.range(1, 5).skip(0).boxed(), 4, 10); method 65 assertCountSum(IntStream.range(0, 0).parallel().skip(0).boxed(), 0, 0); method 66 assertCountSum(IntStream.range(0, 0).parallel().skip(4).boxed(), 0, 0); method 67 assertCountSum(IntStream.range(1, 5).parallel().skip(4).boxed(), 0, 0); method 68 assertCountSum(IntStream.range(1, 5).parallel().skip(2).boxed(), 2, 7); method 69 assertCountSum(IntStream.range(1, 5).parallel().skip(0).boxed(), 4, 10) method 83 assertCountSum(IntStream.range(0, 0).limit(4).boxed(), 0, 0); method 84 assertCountSum(IntStream.range(1, 3).limit(4).boxed(), 2, 3); method 85 assertCountSum(IntStream.range(1, 5).limit(4).boxed(), 4, 10); method 86 assertCountSum(IntStream.range(1, 9).limit(4).boxed(), 4, 10); method 88 assertCountSum(IntStream.range(0, 0).parallel().limit(4).boxed(), 0, 0); method 89 assertCountSum(IntStream.range(1, 3).parallel().limit(4).boxed(), 2, 3); method 90 assertCountSum(IntStream.range(1, 5).parallel().limit(4).boxed(), 4, 10); method 91 assertCountSum(IntStream.range(1, 9).parallel().limit(4).boxed(), 4, 10); method [all...] |
ConcatOpTest.java | 59 LongStream.range(0, Long.MAX_VALUE / 2).boxed(), method 60 LongStream.range(0, Long.MAX_VALUE / 2).boxed())); method 63 LongStream.range(0, Long.MAX_VALUE).boxed(), method 64 LongStream.range(0, Long.MAX_VALUE).boxed())); method 67 LongStream.range(0, Long.MAX_VALUE).boxed(), method 72 LongStream.range(0, Long.MAX_VALUE).boxed())); method
|
StreamBuilderTest.java | 94 IntStream.range(0, size).boxed().forEach(sb); 106 IntStream.range(0, s).boxed().forEach(sb); 112 IntStream.range(0, s).boxed().forEach(i -> { 126 expectedResult(IntStream.range(0, size).boxed().collect(toList())). 131 expectedResult(IntStream.range(0, size).boxed().collect(toList())).
|
MapOpTest.java | 106 exerciseOps(data, s -> s.boxed()); 120 exerciseOps(data, s -> s.boxed()); 133 exerciseOps(data, s -> s.boxed());
|
ExplodeOpTest.java | 56 = e -> IntStream.range(0, e).boxed(); 84 exerciseOps(data, s -> s.flatMap((Integer e) -> IntStream.range(0, e).boxed().limit(10)));
|
InfiniteStreamWithLimitOpTest.java | 143 () -> LongStream.range(l, u).boxed()); 232 stream(s -> fs.apply(s.filter(i -> true).unordered().boxed())). 313 stream(s -> fs.apply(s.unordered().boxed())).
|
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/ |
SliceSpliteratorTest.java | 74 final Collection<Integer> source = IntStream.range(0, size).boxed().collect(toList()); 87 final Collection<Integer> source = IntStream.range(0, size).boxed().collect(toList()); 100 final Collection<Long> source = LongStream.range(0, size).boxed().collect(toList()); 113 final Collection<Double> source = LongStream.range(0, size).asDoubleStream().boxed().collect(toList()); 129 final Collection<Integer> source = IntStream.range(0, size).boxed().collect(toList()); 143 final Collection<Integer> source = IntStream.range(0, size).boxed().collect(toList()); 157 final Collection<Long> source = LongStream.range(0, size).boxed().collect(toList()); 171 final Collection<Double> source = LongStream.range(0, size).asDoubleStream().boxed().collect(toList());
|
SpinedBufferTest.java | 47 .boxed() 68 Arrays.stream(array).boxed().forEach(sb); 72 Arrays.stream(array).boxed().forEach(sb); 76 Arrays.stream(array).boxed().forEach(sb); 80 Arrays.stream(array).boxed().forEach(sb); 111 .boxed() 186 .boxed() 261 .boxed() 337 .boxed()
|
/art/test/959-invoke-polymorphic-accessors/src/ |
Main.java | 569 Boolean boxed = new Boolean(b); local 571 valueHolder, PrimitiveType.Boolean, boxed, AccessorType.IPUT); local 573 valueHolder, PrimitiveType.Boolean, boxed, AccessorType.IGET); local 576 valueHolder, PrimitiveType.Boolean, boxed, AccessorType.SPUT); local 578 valueHolder, PrimitiveType.Boolean, boxed, AccessorType.SGET); local 584 Byte boxed = new Byte(b); local 586 valueHolder, PrimitiveType.Byte, boxed, AccessorType.IPUT); local 588 valueHolder, PrimitiveType.Byte, boxed, AccessorType.IGET); local 591 valueHolder, PrimitiveType.Byte, boxed, AccessorType.SPUT); local 593 valueHolder, PrimitiveType.Byte, boxed, AccessorType.SGET) local 599 Character boxed = new Character(c); local 601 valueHolder, PrimitiveType.Char, boxed, AccessorType.IPUT); local 603 valueHolder, PrimitiveType.Char, boxed, AccessorType.IGET); local 606 valueHolder, PrimitiveType.Char, boxed, AccessorType.SPUT); local 608 valueHolder, PrimitiveType.Char, boxed, AccessorType.SGET); local 614 Short boxed = new Short(s); local 616 valueHolder, PrimitiveType.Short, boxed, AccessorType.IPUT); local 618 valueHolder, PrimitiveType.Short, boxed, AccessorType.IGET); local 621 valueHolder, PrimitiveType.Short, boxed, AccessorType.SPUT); local 623 valueHolder, PrimitiveType.Short, boxed, AccessorType.SGET); local 629 Integer boxed = new Integer(i); local 631 valueHolder, PrimitiveType.Int, boxed, AccessorType.IPUT); local 633 valueHolder, PrimitiveType.Int, boxed, AccessorType.IGET); local 636 valueHolder, PrimitiveType.Int, boxed, AccessorType.SPUT); local 638 valueHolder, PrimitiveType.Int, boxed, AccessorType.SGET); local 644 Float boxed = Float.valueOf(f); local 646 valueHolder, PrimitiveType.Float, boxed, AccessorType.IPUT); local 648 valueHolder, PrimitiveType.Float, boxed, AccessorType.IGET); local 651 valueHolder, PrimitiveType.Float, boxed, AccessorType.SPUT); local 653 valueHolder, PrimitiveType.Float, boxed, AccessorType.SGET); local 659 Double boxed = Double.valueOf(d); local 661 valueHolder, PrimitiveType.Double, boxed, AccessorType.IPUT); local 663 valueHolder, PrimitiveType.Double, boxed, AccessorType.IGET); local 666 valueHolder, PrimitiveType.Double, boxed, AccessorType.SPUT); local 668 valueHolder, PrimitiveType.Double, boxed, AccessorType.SGET); local 674 Long boxed = new Long(j); local 676 valueHolder, PrimitiveType.Long, boxed, AccessorType.IPUT); local 678 valueHolder, PrimitiveType.Long, boxed, AccessorType.IGET); local 681 valueHolder, PrimitiveType.Long, boxed, AccessorType.SPUT); local 683 valueHolder, PrimitiveType.Long, boxed, AccessorType.SGET); local [all...] |
/libcore/luni/src/test/java/libcore/java/lang/invoke/ |
MethodHandleAccessorsTest.java | 542 Boolean boxed = new Boolean(b); local 544 valueHolder, PrimitiveType.Boolean, boxed, AccessorType.IPUT); local 546 valueHolder, PrimitiveType.Boolean, boxed, AccessorType.IGET); local 549 valueHolder, PrimitiveType.Boolean, boxed, AccessorType.SPUT); local 551 valueHolder, PrimitiveType.Boolean, boxed, AccessorType.SGET); local 562 Byte boxed = new Byte(b); local 564 valueHolder, PrimitiveType.Byte, boxed, AccessorType.IPUT); local 566 valueHolder, PrimitiveType.Byte, boxed, AccessorType.IGET); local 569 valueHolder, PrimitiveType.Byte, boxed, AccessorType.SPUT); local 571 valueHolder, PrimitiveType.Byte, boxed, AccessorType.SGET) local 582 Character boxed = new Character(c); local 584 valueHolder, PrimitiveType.Char, boxed, AccessorType.IPUT); local 586 valueHolder, PrimitiveType.Char, boxed, AccessorType.IGET); local 589 valueHolder, PrimitiveType.Char, boxed, AccessorType.SPUT); local 591 valueHolder, PrimitiveType.Char, boxed, AccessorType.SGET); local 602 Short boxed = new Short(s); local 604 valueHolder, PrimitiveType.Short, boxed, AccessorType.IPUT); local 606 valueHolder, PrimitiveType.Short, boxed, AccessorType.IGET); local 609 valueHolder, PrimitiveType.Short, boxed, AccessorType.SPUT); local 611 valueHolder, PrimitiveType.Short, boxed, AccessorType.SGET); local 622 Integer boxed = new Integer(i); local 624 valueHolder, PrimitiveType.Int, boxed, AccessorType.IPUT); local 626 valueHolder, PrimitiveType.Int, boxed, AccessorType.IGET); local 629 valueHolder, PrimitiveType.Int, boxed, AccessorType.SPUT); local 631 valueHolder, PrimitiveType.Int, boxed, AccessorType.SGET); local 642 Float boxed = new Float(f); local 644 valueHolder, PrimitiveType.Float, boxed, AccessorType.IPUT); local 646 valueHolder, PrimitiveType.Float, boxed, AccessorType.IGET); local 649 valueHolder, PrimitiveType.Float, boxed, AccessorType.SPUT); local 651 valueHolder, PrimitiveType.Float, boxed, AccessorType.SGET); local 662 Double boxed = new Double(d); local 664 valueHolder, PrimitiveType.Double, boxed, AccessorType.IPUT); local 666 valueHolder, PrimitiveType.Double, boxed, AccessorType.IGET); local 669 valueHolder, PrimitiveType.Double, boxed, AccessorType.SPUT); local 671 valueHolder, PrimitiveType.Double, boxed, AccessorType.SGET); local 682 Long boxed = new Long(j); local 684 valueHolder, PrimitiveType.Long, boxed, AccessorType.IPUT); local 686 valueHolder, PrimitiveType.Long, boxed, AccessorType.IGET); local 689 valueHolder, PrimitiveType.Long, boxed, AccessorType.SPUT); local 691 valueHolder, PrimitiveType.Long, boxed, AccessorType.SGET); local [all...] |
/libcore/ojluni/src/main/java/java/util/stream/ |
Node.java | 259 * an instance of a boxed primitive array with a length of 271 T[] boxed = generator.apply((int) count()); local 272 copyInto(boxed, 0); 273 return boxed; 341 * array into the boxed Integer[] array. This is not efficient and it 345 default void copyInto(Integer[] boxed, int offset) { 351 boxed[offset + i] = array[i]; 414 * long[] array into the boxed Long[] array. This is not efficient and 418 default void copyInto(Long[] boxed, int offset) { 424 boxed[offset + i] = array[i] [all...] |
DoubleStream.java | 694 * boxed to {@code Double}. 700 * each boxed to a {@code Double} 702 Stream<Double> boxed(); method in interface:DoubleStream [all...] |
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/solver/types/ |
BoxedPrimitiveColumnTypeAdapter.kt | 26 * Adapters for all boxed primitives that has direct cursor mappings. 29 boxed: TypeMirror, 31 ) : ColumnTypeAdapter(boxed, primitiveAdapter.typeAffinity) {
|
/libcore/ojluni/src/test/java/util/stream/ |
TestDoubleSumAverage.java | 92 ds.get().boxed().collect(Collectors.summingDouble(d -> d)), 3); 94 ds.get().boxed().collect(Collectors.averagingDouble(d -> d)),3); 138 failures += compareUlpDifference(expected, ds.get().boxed().collect(Collectors.summingDouble(d -> d)), 0); 139 failures += compareUlpDifference(expected, ds.get().boxed().collect(Collectors.averagingDouble(d -> d)), 0);
|
/external/protobuf/src/google/protobuf/compiler/javanano/ |
javanano_map_field.cc | 46 bool boxed) { 59 if (boxed) {
|
/external/annotation-tools/asmx/src/org/objectweb/asm/commons/ |
GeneratorAdapter.java | 806 * replaced by its boxed equivalent on top of the stack. 817 Type boxed = type; local 820 boxed = BYTE_TYPE; 823 boxed = BOOLEAN_TYPE; 826 boxed = SHORT_TYPE; 829 boxed = CHARACTER_TYPE; 832 boxed = INTEGER_TYPE; 835 boxed = FLOAT_TYPE; 838 boxed = LONG_TYPE; 841 boxed = DOUBLE_TYPE [all...] |
/frameworks/support/room/compiler/src/test/kotlin/androidx/room/solver/ |
BasicColumnTypeAdaptersTest.kt | 120 private fun generateCode(invocation: TestInvocation, boxed: Boolean) { 121 val typeMirror = if (boxed) input.getBoxedTypeMirror(invocation.processingEnv)
|
/external/protobuf/src/google/protobuf/compiler/java/ |
java_map_field.cc | 62 bool boxed) { 68 return boxed ? BoxedPrimitiveTypeName(GetJavaType(field))
|
java_map_field_lite.cc | 62 bool boxed) { 68 return boxed ? BoxedPrimitiveTypeName(GetJavaType(field))
|
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/expr/ |
BracketExpr.java | 168 ModelClass boxed = value.getResolvedType().box(); local 169 value = model.castExpr(boxed.toJavaCode(), value);
|
/external/libmojo/mojo/public/tools/bindings/generators/ |
mojom_java_generator.py | 257 def GetJavaType(context, kind, boxed=False, with_generics=True): 258 if boxed: 279 return '%s[]' % GetJavaType(context, kind.kind, boxed, with_generics) 305 GetJavaType(context, kind.kind, boxed=False, with_generics=False), size)
|
/prebuilts/tools/common/m2/repository/org/apache/maven/doxia/doxia-module-xdoc/1.0/ |
doxia-module-xdoc-1.0.jar | |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
BoxInsetLayout.java | 36 * child's edges to be boxed in: 123 // round screen, check boxed, don't use margins on boxed 137 // rectangular, ignore boxed, use margins 172 // determine boxed inset 412 public LayoutParams(int width, int height, int gravity, int boxed) { 414 boxedEdges = boxed;
|
/frameworks/support/wear/src/main/java/androidx/wear/widget/ |
BoxInsetLayout.java | 44 * specify the child's edges to be boxed in: {@code left|top|right|bottom} or {@code all}. The 155 // round screen, check boxed, don't use margins on boxed 169 // rectangular, ignore boxed, use margins 203 // determine boxed inset 464 public LayoutParams(int width, int height, int gravity, @BoxedEdges int boxed) { 466 boxedEdges = boxed;
|