Home
last modified time | relevance | path

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

12345678910>>...12

/libcore/luni/src/main/java/org/xml/sax/helpers/
DAttributesImpl.java61 data = null; in AttributesImpl()
108 return data[index*5]; in getURI()
126 return data[index*5+1]; in getLocalName()
144 return data[index*5+2]; in getQName()
162 return data[index*5+3]; in getType()
179 return data[index*5+4]; in getValue()
203 if (data[i].equals(uri) && data[i+1].equals(localName)) { in getIndex()
222 if (data[i+2].equals(qName)) { in getIndex()
244 if (data[i].equals(uri) && data[i+1].equals(localName)) { in getType()
245 return data[i+3]; in getType()
[all …]
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
DStreamReuseTest.java40 D data, in assertSecondFails() argument
45 S stream = data.stream(); in assertSecondFails()
63 stream = data.parallelStream(); in assertSecondFails()
85 public void testTwoStreams(String name, TestData<Integer, Stream<Integer>> data) { in testTwoStreams() argument
86 assertSecondFails(data, in testTwoStreams()
90 assertSecondFails(data, in testTwoStreams()
94 assertSecondFails(data, in testTwoStreams()
98 assertSecondFails(data, in testTwoStreams()
105 public void testTwoTerminals(String name, TestData<Integer, Stream<Integer>> data) { in testTwoTerminals() argument
106 assertSecondFails(data, in testTwoTerminals()
[all …]
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DToArrayOpTest.java60 public void testOps(String name, TestData.OfRef<Integer> data) { in testOps() argument
61 exerciseTerminalOps(data, s -> s.toArray()); in testOps()
65 public void testOpsWithMap(String name, TestData.OfRef<Integer> data) { in testOpsWithMap() argument
69 …Object[] objects = exerciseTerminalOps(data, s -> s.map(i -> (Integer) (i + i)), s -> s.toArray()); in testOpsWithMap()
70 assertTrue(objects.length == data.size()); in testOpsWithMap()
74 public void testOpsWithSorted(String name, TestData.OfRef<Integer> data) { in testOpsWithSorted() argument
78 Object[] objects = exerciseTerminalOps(data, s -> s.sorted(), s -> s.toArray()); in testOpsWithSorted()
79 assertTrue(objects.length == data.size()); in testOpsWithSorted()
83 public void testOpsWithFlatMap(String name, TestData.OfRef<Integer> data) { in testOpsWithFlatMap() argument
87 Object[] objects = exerciseTerminalOps(data, in testOpsWithFlatMap()
[all …]
DFindFirstOpTest.java60 public void testStream(String name, TestData.OfRef<Integer> data) { in testStream() argument
61 exerciseStream(data, s -> s); in testStream()
62 exerciseStream(data, s -> s.filter(pTrue)); in testStream()
63 exerciseStream(data, s -> s.filter(pFalse)); in testStream()
64 exerciseStream(data, s -> s.filter(pEven)); in testStream()
67 … void exerciseStream(TestData.OfRef<Integer> data, Function<Stream<Integer>, Stream<Integer>> fs) { in exerciseStream() argument
68 Optional<Integer> r = exerciseTerminalOps(data, fs, s -> s.findFirst()); in exerciseStream()
70 Iterator<Integer> i = fs.apply(data.stream()).iterator(); in exerciseStream()
75 assertFalse(fs.apply(data.stream()).iterator().hasNext()); in exerciseStream()
80 public void testIntStream(String name, TestData.OfInt data) { in testIntStream() argument
[all …]
DFindAnyOpTest.java67 public void testStream(String name, TestData.OfRef<Integer> data) { in testStream() argument
68 exerciseStream(data, s -> s); in testStream()
69 exerciseStream(data, s -> s.filter(pTrue)); in testStream()
70 exerciseStream(data, s -> s.filter(pFalse)); in testStream()
71 exerciseStream(data, s -> s.filter(pEven)); in testStream()
74 … void exerciseStream(TestData.OfRef<Integer> data, Function<Stream<Integer>, Stream<Integer>> fs) { in exerciseStream() argument
75 …Optional<Integer> or = withData(data).terminal(fs, s -> s.findAny()).equalator(VALID_ANSWER).exerc… in exerciseStream()
78 Iterator<Integer> it = fs.apply(data.stream()).iterator(); in exerciseStream()
86 assertFalse(fs.apply(data.stream()).iterator().hasNext()); in exerciseStream()
91 public void testIntStream(String name, TestData.OfInt data) { in testIntStream() argument
[all …]
DMapOpTest.java86 public void testOps(String name, TestData.OfRef<Integer> data) { in testOps() argument
87 … exerciseOpsInt(data, s -> s.map(mId), s -> s.map(e -> e), s -> s.map(e -> e), s -> s.map(e -> e)); in testOps()
88 …exerciseOpsInt(data, s -> s.map(mZero), s -> s.map(e -> 0), s -> s.map(e -> 0), s -> s.map(e -> 0)… in testOps()
89 …exerciseOpsInt(data, s -> s.map(mDoubler), s -> s.map(e -> 2*e), s -> s.map(e -> 2*e), s -> s.map(… in testOps()
90 …exerciseOpsInt(data, s -> s.map(LambdaTestHelpers.compose(mId, mDoubler)), s -> s.map(e -> 2*e), s… in testOps()
91 …exerciseOpsInt(data, s -> s.map(LambdaTestHelpers.compose(mDoubler, mDoubler)), s -> s.map(e -> 4*… in testOps()
92 exerciseOps(data, s -> s.mapToInt(i -> i)); in testOps()
93 exerciseOps(data, s -> s.mapToLong(i -> i)); in testOps()
94 exerciseOps(data, s -> s.mapToDouble(i -> i)); in testOps()
100 public void testIntOps(String name, TestData.OfInt data) { in testIntOps() argument
[all …]
DExplodeOpTest.java72 public void testOps(String name, TestData.OfRef<Integer> data) { in testOps() argument
73 Collection<Integer> result = exerciseOps(data, s -> s.flatMap(mfId)); in testOps()
74 assertEquals(data.size(), result.size()); in testOps()
76 result = exerciseOps(data, s -> s.flatMap(mfNull)); in testOps()
79 result = exerciseOps(data, s-> s.flatMap(e -> Stream.empty())); in testOps()
82 exerciseOps(data, s -> s.flatMap(mfLt)); in testOps()
83 exerciseOps(data, s -> s.flatMap(integerRangeMapper)); in testOps()
84 exerciseOps(data, s -> s.flatMap((Integer e) -> IntStream.range(0, e).boxed().limit(10))); in testOps()
90 public void testIntOps(String name, TestData.OfInt data) { in testIntOps() argument
91 …Collection<Integer> result = exerciseOps(data, s -> s.flatMap(i -> Collections.singleton(i).stream… in testIntOps()
[all …]
DFilterOpTest.java67 public void testOps(String name, TestData.OfRef<Integer> data) { in testOps() argument
68 Collection<Integer> result = exerciseOps(data, s -> s.filter(pTrue)); in testOps()
69 assertEquals(result.size(), data.size()); in testOps()
71 result = exerciseOps(data, s -> s.filter(pFalse)); in testOps()
74 exerciseOps(data, s -> s.filter(pEven)); in testOps()
75 exerciseOps(data, s -> s.filter(pOdd)); in testOps()
77 result = exerciseOps(data, s -> s.filter(pOdd.and(pEven))); in testOps()
80 result = exerciseOps(data, s -> s.filter(pOdd.or(pEven))); in testOps()
81 assertEquals(result.size(), data.size()); in testOps()
85 public void testOps(String name, TestData.OfInt data) { in testOps() argument
[all …]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DCipherInputStream1Test.java46 public TestInputStream(byte[] data) { in TestInputStream() argument
47 super(data); in TestInputStream()
65 byte[] data = new byte[] { -127, -100, -50, -10, -1, 0, 1, 10, 50, 127 }; in testCipherInputStream()
66 TestInputStream tis = new TestInputStream(data); in testCipherInputStream()
69 for (int i = 0; i < data.length; i++) { in testCipherInputStream()
70 if ((byte) cis.read() != data[i]) { in testCipherInputStream()
85 byte[] data = new byte[] { -127, -100, -50, -10, -1, 0, 1, 10, 50, 127 }; in testRead1()
86 TestInputStream tis = new TestInputStream(data); in testRead1()
89 for (int i = 0; i < data.length; i++) { in testRead1()
90 if ((res = (byte) cis.read()) != data[i]) { in testRead1()
[all …]
/libcore/libart/src/main/java/java/lang/
DStringFactory.java45 public static String newStringFromBytes(byte[] data) { in newStringFromBytes() argument
46 return newStringFromBytes(data, 0, data.length); in newStringFromBytes()
49 public static String newStringFromBytes(byte[] data, int high) { in newStringFromBytes() argument
50 return newStringFromBytes(data, high, 0, data.length); in newStringFromBytes()
53 public static String newStringFromBytes(byte[] data, int offset, int byteCount) { in newStringFromBytes() argument
54 return newStringFromBytes(data, offset, byteCount, Charset.defaultCharset()); in newStringFromBytes()
58 … public static native String newStringFromBytes(byte[] data, int high, int offset, int byteCount); in newStringFromBytes() argument
60 …public static String newStringFromBytes(byte[] data, int offset, int byteCount, String charsetName… in newStringFromBytes() argument
61 return newStringFromBytes(data, offset, byteCount, Charset.forNameUEE(charsetName)); in newStringFromBytes()
64 …public static String newStringFromBytes(byte[] data, String charsetName) throws UnsupportedEncodin… in newStringFromBytes() argument
[all …]
/libcore/luni/src/test/java/libcore/java/util/
DWeakHashMapTest.java26 static Data[] data = new Data[100]; field in WeakHashMapTest
31 for(int i = 0; i < data.length; i++) { in test_replaceAll()
32 map.put(data[i], ""); in test_replaceAll()
36 for(int i = 0; i < data.length; i++) { in test_replaceAll()
37 assertEquals(data[i].value, map.get(data[i])); in test_replaceAll()
59 for(int i = 0; i < data.length; i++) { in test_replaceAll()
60 map.put(data[i], data[i].value); in test_replaceAll()
65 for(int i = 0; i < data.length; i++) { in test_replaceAll()
66 assertNull(map.get(data[i])); in test_replaceAll()
68 assertEquals(data.length, map.size()); in test_replaceAll()
[all …]
DPrimitiveIteratorTest.java92 final int[] data = new int[] { 1, 2, 4, 5 }; in testIntIterator_forEachRemaining_Consumer() local
95 CannedIntIterator cit = new CannedIntIterator(data); in testIntIterator_forEachRemaining_Consumer()
100 cit = new CannedIntIterator(data); in testIntIterator_forEachRemaining_Consumer()
109 final int[] data = new int[] { 1, 2, 4, 5 }; in testIntIterator_forEachRemaining_boxedConsumer() local
112 CannedIntIterator cit = new CannedIntIterator(data); in testIntIterator_forEachRemaining_boxedConsumer()
120 cit = new CannedIntIterator(data); in testIntIterator_forEachRemaining_boxedConsumer()
124 cit = new CannedIntIterator(data); in testIntIterator_forEachRemaining_boxedConsumer()
133 final int[] data = new int[] { 1 }; in testIntIterator_forEachRemaining_boxedNext() local
134 CannedIntIterator cit = new CannedIntIterator(data); in testIntIterator_forEachRemaining_boxedNext()
139 final long[] data = new long[] { 1, 2, 4, 5 }; in testLongIterator_forEachRemaining_Consumer() local
[all …]
/libcore/ojluni/src/main/java/sun/misc/
DFDBigInteger.java150 private int data[]; // value: data[0] is least significant field in FDBigInteger
185 private FDBigInteger(int[] data, int offset) { in FDBigInteger() argument
186 this.data = data; in FDBigInteger()
188 this.nWords = data.length; in FDBigInteger()
209 data = new int[n]; // allocate enough space in FDBigInteger()
210 data[0] = (int) lValue; // starting value in FDBigInteger()
211 data[1] = (int) (lValue >>> 32); in FDBigInteger()
319 mult(pow5.data, pow5.nWords, v0, r); in valueOfMulPow52()
322 mult(pow5.data, pow5.nWords, v0, v1, r); in valueOfMulPow52()
371 if (i > 0 && (data[--i] == 0)) { in trimLeadingZeros()
[all …]
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DLongStreamTestScenario.java51 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_FOR_EACH_WITH_CLOSE() argument
52 LongStream s = m.apply(data.stream()); in STREAM_FOR_EACH_WITH_CLOSE()
63 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_TO_ARRAY() argument
64 for (long t : m.apply(data.stream()).toArray()) { in STREAM_TO_ARRAY()
72 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_ITERATOR() argument
73 … for (PrimitiveIterator.OfLong seqIter = m.apply(data.stream()).iterator(); seqIter.hasNext(); ) in STREAM_ITERATOR()
81 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_SPLITERATOR() argument
82 … for (Spliterator.OfLong spl = m.apply(data.stream()).spliterator(); spl.tryAdvance(b); ) { in STREAM_SPLITERATOR()
90 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT() argument
91 SpliteratorTestHelper.mixedTraverseAndSplit(b, m.apply(data.stream()).spliterator()); in STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT()
[all …]
DIntStreamTestScenario.java51 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_FOR_EACH_WITH_CLOSE() argument
52 IntStream s = m.apply(data.stream()); in STREAM_FOR_EACH_WITH_CLOSE()
63 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_TO_ARRAY() argument
64 for (int t : m.apply(data.stream()).toArray()) { in STREAM_TO_ARRAY()
72 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_ITERATOR() argument
73 … for (PrimitiveIterator.OfInt seqIter = m.apply(data.stream()).iterator(); seqIter.hasNext(); ) in STREAM_ITERATOR()
81 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_SPLITERATOR() argument
82 … for (Spliterator.OfInt spl = m.apply(data.stream()).spliterator(); spl.tryAdvance(b); ) { in STREAM_SPLITERATOR()
90 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT() argument
91 SpliteratorTestHelper.mixedTraverseAndSplit(b, m.apply(data.stream()).spliterator()); in STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT()
[all …]
DDoubleStreamTestScenario.java52 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in STREAM_FOR_EACH_WITH_CLOSE() argument
53 DoubleStream s = m.apply(data.stream()); in STREAM_FOR_EACH_WITH_CLOSE()
64 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in STREAM_TO_ARRAY() argument
65 for (double t : m.apply(data.stream()).toArray()) { in STREAM_TO_ARRAY()
73 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in STREAM_ITERATOR() argument
74 … for (PrimitiveIterator.OfDouble seqIter = m.apply(data.stream()).iterator(); seqIter.hasNext(); ) in STREAM_ITERATOR()
82 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in STREAM_SPLITERATOR() argument
83 … for (Spliterator.OfDouble spl = m.apply(data.stream()).spliterator(); spl.tryAdvance(b); ) { in STREAM_SPLITERATOR()
91 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT() argument
92 SpliteratorTestHelper.mixedTraverseAndSplit(b, m.apply(data.stream()).spliterator()); in STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT()
[all …]
DStreamTestScenario.java50 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_FOR_EACH_WITH_CLOSE() argument
51 Stream<U> s = m.apply(data.stream()); in STREAM_FOR_EACH_WITH_CLOSE()
63 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_COLLECT() argument
64 for (U t : m.apply(data.stream()).collect(Collectors.toList())) { in STREAM_COLLECT()
73 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_TO_ARRAY() argument
74 for (Object t : m.apply(data.stream()).toArray()) { in STREAM_TO_ARRAY()
83 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_ITERATOR() argument
84 for (Iterator<U> seqIter = m.apply(data.stream()).iterator(); seqIter.hasNext(); ) in STREAM_ITERATOR()
92 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_SPLITERATOR() argument
93 for (Spliterator<U> spl = m.apply(data.stream()).spliterator(); spl.tryAdvance(b); ) { } in STREAM_SPLITERATOR()
[all …]
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DIntStreamTestScenario.java48 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_FOR_EACH_WITH_CLOSE() argument
49 IntStream s = m.apply(data.stream()); in STREAM_FOR_EACH_WITH_CLOSE()
60 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_TO_ARRAY() argument
61 for (int t : m.apply(data.stream()).toArray()) { in STREAM_TO_ARRAY()
69 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_ITERATOR() argument
70 … for (PrimitiveIterator.OfInt seqIter = m.apply(data.stream()).iterator(); seqIter.hasNext(); ) in STREAM_ITERATOR()
78 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_SPLITERATOR() argument
79 … for (Spliterator.OfInt spl = m.apply(data.stream()).spliterator(); spl.tryAdvance(b); ) { in STREAM_SPLITERATOR()
87 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT() argument
88 SpliteratorTestHelper.mixedTraverseAndSplit(b, m.apply(data.stream()).spliterator()); in STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT()
[all …]
DLongStreamTestScenario.java48 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_FOR_EACH_WITH_CLOSE() argument
49 LongStream s = m.apply(data.stream()); in STREAM_FOR_EACH_WITH_CLOSE()
60 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_TO_ARRAY() argument
61 for (long t : m.apply(data.stream()).toArray()) { in STREAM_TO_ARRAY()
69 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_ITERATOR() argument
70 … for (PrimitiveIterator.OfLong seqIter = m.apply(data.stream()).iterator(); seqIter.hasNext(); ) in STREAM_ITERATOR()
78 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_SPLITERATOR() argument
79 … for (Spliterator.OfLong spl = m.apply(data.stream()).spliterator(); spl.tryAdvance(b); ) { in STREAM_SPLITERATOR()
87 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT() argument
88 SpliteratorTestHelper.mixedTraverseAndSplit(b, m.apply(data.stream()).spliterator()); in STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT()
[all …]
DDoubleStreamTestScenario.java48 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in STREAM_FOR_EACH_WITH_CLOSE() argument
49 DoubleStream s = m.apply(data.stream()); in STREAM_FOR_EACH_WITH_CLOSE()
60 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in STREAM_TO_ARRAY() argument
61 for (double t : m.apply(data.stream()).toArray()) { in STREAM_TO_ARRAY()
69 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in STREAM_ITERATOR() argument
70 … for (PrimitiveIterator.OfDouble seqIter = m.apply(data.stream()).iterator(); seqIter.hasNext(); ) in STREAM_ITERATOR()
78 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in STREAM_SPLITERATOR() argument
79 … for (Spliterator.OfDouble spl = m.apply(data.stream()).spliterator(); spl.tryAdvance(b); ) { in STREAM_SPLITERATOR()
87 void _run(TestData<T, S_IN> data, DoubleConsumer b, Function<S_IN, DoubleStream> m) { in STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT() argument
88 SpliteratorTestHelper.mixedTraverseAndSplit(b, m.apply(data.stream()).spliterator()); in STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT()
[all …]
DStreamTestScenario.java47 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_FOR_EACH_WITH_CLOSE() argument
48 Stream<U> s = m.apply(data.stream()); in STREAM_FOR_EACH_WITH_CLOSE()
60 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_COLLECT() argument
61 for (U t : m.apply(data.stream()).collect(Collectors.toList())) { in STREAM_COLLECT()
70 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_TO_ARRAY() argument
71 for (Object t : m.apply(data.stream()).toArray()) { in STREAM_TO_ARRAY()
80 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_ITERATOR() argument
81 for (Iterator<U> seqIter = m.apply(data.stream()).iterator(); seqIter.hasNext(); ) in STREAM_ITERATOR()
89 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_SPLITERATOR() argument
90 for (Spliterator<U> spl = m.apply(data.stream()).spliterator(); spl.tryAdvance(b); ) { } in STREAM_SPLITERATOR()
[all …]
/libcore/luni/src/test/java/libcore/util/
DZoneInfoDBTest.java36 ZoneInfoDB.TzData data = ZoneInfoDB.TzData.loadTzData(SYSTEM_TZDATA_FILE); in testLoadTzDataWithFallback_emptyOverrideFile() local
41 assertEquals(data.getVersion(), dataWithEmptyOverride.getVersion()); in testLoadTzDataWithFallback_emptyOverrideFile()
42 assertEquals(data.getAvailableIDs().length, dataWithEmptyOverride.getAvailableIDs().length); in testLoadTzDataWithFallback_emptyOverrideFile()
47 ZoneInfoDB.TzData data = ZoneInfoDB.TzData.loadTzData(SYSTEM_TZDATA_FILE); in testLoadTzDataWithFallback_corruptOverrideFile() local
52 assertEquals(data.getVersion(), dataWithCorruptOverride.getVersion()); in testLoadTzDataWithFallback_corruptOverrideFile()
53 assertEquals(data.getAvailableIDs().length, dataWithCorruptOverride.getAvailableIDs().length); in testLoadTzDataWithFallback_corruptOverrideFile()
59 ZoneInfoDB.TzData data = ZoneInfoDB.TzData.loadTzDataWithFallback(emptyFilePath); in testLoadTzDataWithFallback_noGoodFile() local
60 assertEquals("missing", data.getVersion()); in testLoadTzDataWithFallback_noGoodFile()
61 assertEquals(1, data.getAvailableIDs().length); in testLoadTzDataWithFallback_noGoodFile()
62 assertEquals("GMT", data.getAvailableIDs()[0]); in testLoadTzDataWithFallback_noGoodFile()
[all …]
/libcore/luni/src/main/java/libcore/io/
DDropBox.java49 public void addData(String tag, byte[] data, int flags); in addData() argument
50 public void addText(String tag, String data); in addText() argument
58 public void addData(String tag, byte[] data, int flags) { in addData() argument
59 System.out.println(tag + ": " + Base64.getEncoder().encodeToString(data)); in addData()
62 public void addText(String tag, String data) { in addText() argument
63 System.out.println(tag + ": " + data); in addText()
67 public static void addData(String tag, byte[] data, int flags) { in addData() argument
68 getReporter().addData(tag, data, flags); in addData()
71 public static void addText(String tag, String data) { in addText() argument
72 getReporter().addText(tag, data); in addText()
/libcore/luni/src/test/java/libcore/java/util/zip/
DGZIPInputStreamTest.java90 byte[] data = new byte[1024 * 1024]; in testLongMessage()
91 new Random().nextBytes(data); in testLongMessage()
92 assertTrue(Arrays.equals(data, gunzip(GZIPOutputStreamTest.gzip(data)))); in testLongMessage()
97 byte[] data = new byte[1024 * 1024]; in testSkip()
98 byte[] gzipped = GZIPOutputStreamTest.gzip(data); in testSkip()
108 assertEquals(data.length, totalSkipped); in testSkip()
115 byte[] data = new byte[length * 2]; in testMultipleMembers()
116 System.arraycopy(HELLO_WORLD_GZIPPED, 0, data, 0, length); in testMultipleMembers()
117 System.arraycopy(HELLO_WORLD_GZIPPED, 0, data, length, length); in testMultipleMembers()
119 assertEquals("Hello WorldHello World", new String(gunzip(data), "UTF-8")); in testMultipleMembers()
[all …]
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
DProcessingInstructionImpl.java38 private String data; field in ProcessingInstructionImpl
40 ProcessingInstructionImpl(DocumentImpl document, String target, String data) { in ProcessingInstructionImpl() argument
43 this.data = data; in ProcessingInstructionImpl()
47 return data; in getData()
62 return data; in getNodeValue()
69 public void setData(String data) throws DOMException { in setData() argument
70 this.data = data; in setData()

12345678910>>...12