Searched defs:data (Results 1 - 25 of 142) sorted by relevance

123456

/libcore/dalvik/src/main/java/dalvik/system/profiler/
H A DAsciiHprofWriter.java34 private final HprofData data; field in class:AsciiHprofWriter
38 * Writes the provided data to the specified stream.
40 public static void write(HprofData data, OutputStream outputStream) throws IOException { argument
41 new AsciiHprofWriter(data, outputStream).write();
44 private AsciiHprofWriter(HprofData data, OutputStream outputStream) { argument
45 this.data = data;
50 for (HprofData.ThreadEvent e : data.getThreadHistory()) {
55 = new ArrayList<HprofData.Sample>(data.getSamples());
69 Date now = new Date(data
[all...]
/libcore/luni/src/main/java/org/w3c/dom/
H A DProcessingInstruction.java48 public void setData(String data) argument
H A DCharacterData.java17 * attributes and methods for accessing character data in the DOM. For
31 * The character data of the node that implements this interface. The DOM
32 * implementation may not put arbitrary limits on the amount of data
34 * implementation limits may mean that the entirety of a node's data may
36 * may call <code>substringData</code> to retrieve the data in
46 * The character data of the node that implements this interface. The DOM
47 * implementation may not put arbitrary limits on the amount of data
49 * implementation limits may mean that the entirety of a node's data may
51 * may call <code>substringData</code> to retrieve the data in
56 public void setData(String data) argument
[all...]
H A DUserDataHandler.java20 * implement various behaviors regarding the data it associates to the DOM
60 * @param data Specifies the data for which this handler is being called.
68 Object data,
66 handle(short operation, String key, Object data, Node src, Node dst) argument
/libcore/luni/src/test/java/libcore/java/util/
H A DWeakHashMapTest.java26 static Data[] data = new Data[100]; field in class:WeakHashMapTest
31 for(int i = 0; i < data.length; i++) {
32 map.put(data[i], "");
36 for(int i = 0; i < data.length; i++) {
37 assertEquals(data[i].value, map.get(data[i]));
59 for(int i = 0; i < data.length; i++) {
60 map.put(data[i], data[i].value);
65 for(int i = 0; i < data
[all...]
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
H A DCountTest.java51 public void testOps(String name, TestData.OfRef<Integer> data) { argument
53 data.stream().forEach(e -> expectedCount.incrementAndGet());
55 withData(data).
62 public void testOps(String name, TestData.OfInt data) { argument
64 data.stream().forEach(e -> expectedCount.incrementAndGet());
66 withData(data).
73 public void testOps(String name, TestData.OfLong data) { argument
75 data.stream().forEach(e -> expectedCount.incrementAndGet());
77 withData(data).
84 public void testOps(String name, TestData.OfDouble data) { argument
[all...]
H A DPrimitiveAverageOpTest.java39 public void testOps(String name, TestData.OfInt data) { argument
40 exerciseTerminalOps(data, s -> s.average());
44 public void testOps(String name, TestData.OfLong data) { argument
45 exerciseTerminalOps(data, s -> s.average());
48 // @@@ For Double depending on the input data the average algorithm may produce slightly
50 // While the following works at the moment, it could change when double data, not cast from long
53 public void testOps(String name, TestData.OfDouble data) { argument
54 exerciseTerminalOps(data, s -> s.average());
H A DPrimitiveSumTest.java44 public void testOps(String name, TestData.OfInt data) { argument
45 exerciseTerminalOps(data, s -> s.sum());
47 withData(data).
49 expectedResult(data.stream().asLongStream().reduce(0, LambdaTestHelpers.lrPlus)).
54 public void testOps(String name, TestData.OfLong data) { argument
55 exerciseTerminalOps(data, s -> s.sum());
57 withData(data).
59 expectedResult(data.stream().reduce(0, LambdaTestHelpers.lrPlus)).
63 // @@@ For Double depending on the input data the average algorithm may produce slightly
65 // While the following works at the moment, it could change when double data, no
68 testOps(String name, TestData.OfDouble data) argument
[all...]
H A DReduceByOpTest.java50 public void testOps(String name, TestData.OfRef<Integer> data) { argument
51 Map<Boolean,List<Integer>> gbResult = data.stream().collect(groupingBy(LambdaTestHelpers.forPredicate(pEven, true, false)));
52 Map<Boolean, Integer> result = data.stream().collect(groupingBy(LambdaTestHelpers.forPredicate(pEven, true, false), reducing(0, rPlus)));
57 assertEquals(entry.getValue(), data.stream().filter(e -> pEven.test(e) == key).reduce(0, rPlus));
60 int uniqueSize = data.into(new HashSet<Integer>()).size();
61 Map<Integer, List<Integer>> mgResult = exerciseTerminalOps(data, s -> s.collect(groupingBy(mId)));
62 Map<Integer, Integer> miResult = exerciseTerminalOps(data, s -> s.collect(groupingBy(mId, reducing(0, e -> 1, Integer::sum))));
H A DExplodeOpTest.java72 public void testOps(String name, TestData.OfRef<Integer> data) { argument
73 Collection<Integer> result = exerciseOps(data, s -> s.flatMap(mfId));
74 assertEquals(data.size(), result.size());
76 result = exerciseOps(data, s -> s.flatMap(mfNull));
79 result = exerciseOps(data, s-> s.flatMap(e -> Stream.empty()));
82 exerciseOps(data, s -> s.flatMap(mfLt));
83 exerciseOps(data, s -> s.flatMap(integerRangeMapper));
84 exerciseOps(data, s -> s.flatMap((Integer e) -> IntStream.range(0, e).boxed().limit(10)));
90 public void testIntOps(String name, TestData.OfInt data) { argument
91 Collection<Integer> result = exerciseOps(data,
105 testLongOps(String name, TestData.OfLong data) argument
120 testDoubleOps(String name, TestData.OfDouble data) argument
[all...]
H A DFilterOpTest.java67 public void testOps(String name, TestData.OfRef<Integer> data) { argument
68 Collection<Integer> result = exerciseOps(data, s -> s.filter(pTrue));
69 assertEquals(result.size(), data.size());
71 result = exerciseOps(data, s -> s.filter(pFalse));
74 exerciseOps(data, s -> s.filter(pEven));
75 exerciseOps(data, s -> s.filter(pOdd));
77 result = exerciseOps(data, s -> s.filter(pOdd.and(pEven)));
80 result = exerciseOps(data, s -> s.filter(pOdd.or(pEven)));
81 assertEquals(result.size(), data.size());
85 public void testOps(String name, TestData.OfInt data) { argument
97 testOps(String name, TestData.OfLong data) argument
109 testOps(String name, TestData.OfDouble data) argument
[all...]
H A DIntReduceTest.java55 public void testOps(String name, TestData.OfInt data) { argument
56 assertEquals(0, (int) exerciseTerminalOps(data, s -> s.filter(ipFalse), s -> s.reduce(0, irPlus)));
58 OptionalInt seedless = exerciseTerminalOps(data, s -> s.reduce(irPlus));
59 int folded = exerciseTerminalOps(data, s -> s.reduce(0, irPlus));
62 seedless = exerciseTerminalOps(data, s -> s.reduce(irMin));
63 folded = exerciseTerminalOps(data, s -> s.reduce(Integer.MAX_VALUE, irMin));
66 seedless = exerciseTerminalOps(data, s -> s.reduce(irMax));
67 folded = exerciseTerminalOps(data, s -> s.reduce(Integer.MIN_VALUE, irMax));
70 seedless = exerciseTerminalOps(data, s -> s.map(irDoubler), s -> s.reduce(irPlus));
71 folded = exerciseTerminalOps(data,
[all...]
H A DIntUniqOpTest.java55 public void testOp(String name, TestData.OfInt data) { argument
56 Collection<Integer> result = exerciseOps(data, s -> s.distinct().boxed());
59 if (data.size() > 0)
63 assertTrue(result.size() <= data.size());
67 public void testOpSorted(String name, TestData.OfInt data) { argument
68 Collection<Integer> result = withData(data).
73 if (data.size() > 0)
77 assertTrue(result.size() <= data.size());
H A DMapOpTest.java86 public void testOps(String name, TestData.OfRef<Integer> data) { argument
87 exerciseOpsInt(data, s -> s.map(mId), s -> s.map(e -> e), s -> s.map(e -> e), s -> s.map(e -> e));
88 exerciseOpsInt(data, s -> s.map(mZero), s -> s.map(e -> 0), s -> s.map(e -> 0), s -> s.map(e -> 0));
89 exerciseOpsInt(data, s -> s.map(mDoubler), s -> s.map(e -> 2*e), s -> s.map(e -> 2*e), s -> s.map(e -> 2*e));
90 exerciseOpsInt(data, s -> s.map(LambdaTestHelpers.compose(mId, mDoubler)), s -> s.map(e -> 2*e), s -> s.map(e -> 2*e), s -> s.map(e -> 2*e));
91 exerciseOpsInt(data, s -> s.map(LambdaTestHelpers.compose(mDoubler, mDoubler)), s -> s.map(e -> 4*e), s -> s.map(e -> 4*e), s -> s.map(e -> 4*e));
92 exerciseOps(data, s -> s.mapToInt(i -> i));
93 exerciseOps(data, s -> s.mapToLong(i -> i));
94 exerciseOps(data, s -> s.mapToDouble(i -> i));
100 public void testIntOps(String name, TestData.OfInt data) { argument
115 testLongOps(String name, TestData.OfLong data) argument
129 testDoubleOps(String name, TestData.OfDouble data) argument
[all...]
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/
H A DChunk.java22 * A chunk of DDM data. This is really just meant to hold a few pieces
23 * of data together.
34 public byte[] data; // chunk data field in class:Chunk
35 public int offset, length; // position within "data"
45 public Chunk(int type, byte[] data, int offset, int length) { argument
47 this.data = data;
59 this.data = buf.array();
/libcore/dex/src/main/java/com/android/dex/
H A DEncodedValue.java26 private final byte[] data; field in class:EncodedValue
28 public EncodedValue(byte[] data) { argument
29 this.data = data;
33 return new ByteArrayByteInput(data);
37 return data;
41 out.write(data);
45 int size = Math.min(data.length, other.data.length);
47 if (data[
[all...]
/libcore/dom/src/test/java/org/w3c/domts/
H A DUserDataMonitor.java43 * @param data
53 Object data,
57 new UserDataNotification(operation, key, data, src, dst));
50 handle( short operation, String key, Object data, Node src, Node dst) argument
H A DUserDataNotification.java24 private final Object data; field in class:UserDataNotification
34 Object data,
39 this.data = data;
63 * Gets value of data parameter
65 * @return value of data parameter
68 return data;
32 UserDataNotification(short operation, String key, Object data, Node src, Node dst) argument
/libcore/luni/src/main/java/libcore/io/
H A DDropBox.java47 public void addData(String tag, byte[] data, int flags); argument
48 public void addText(String tag, String data); argument
56 public void addData(String tag, byte[] data, int flags) { argument
57 System.out.println(tag + ": " + Base64.encode(data));
60 public void addText(String tag, String data) { argument
61 System.out.println(tag + ": " + data);
65 public static void addData(String tag, byte[] data, int flags) { argument
66 getReporter().addData(tag, data, flags);
69 public static void addText(String tag, String data) { argument
70 getReporter().addText(tag, data);
[all...]
/libcore/luni/src/main/java/libcore/util/
H A DHexEncoding.java30 * Encodes the provided data as a sequence of hexadecimal characters.
32 public static char[] encode(byte[] data) { argument
33 return encode(data, 0, data.length);
37 * Encodes the provided data as a sequence of hexadecimal characters.
39 public static char[] encode(byte[] data, int offset, int len) { argument
42 byte b = data[offset + i];
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
H A DCDATASectionImpl.java34 public CDATASectionImpl(DocumentImpl document, String data) { argument
35 super(document, data);
H A DCommentImpl.java34 CommentImpl(DocumentImpl document, String data) { argument
35 super(document, data);
H A DProcessingInstructionImpl.java38 private String data; field in class:ProcessingInstructionImpl
40 ProcessingInstructionImpl(DocumentImpl document, String target, String data) { argument
43 this.data = data;
47 return data;
62 return data;
69 public void setData(String data) throws DOMException { argument
70 this.data = data;
/libcore/ojluni/src/main/java/sun/misc/
H A DBASE64Encoder.java82 protected void encodeAtom(OutputStream outStream, byte data[], int offset, int len) argument
87 a = data[offset];
95 a = data[offset];
96 b = data[offset+1];
103 a = data[offset];
104 b = data[offset+1];
105 c = data[offset+2];
/libcore/ojluni/src/main/native/
H A DSocketInputStream.c55 jobject fdObj, jbyteArray data,
147 (*env)->SetByteArrayRegion(env, data, off, nread, (jbyte *)bufP);
54 SocketInputStream_socketRead0(JNIEnv *env, jobject this, jobject fdObj, jbyteArray data, jint off, jint len, jint timeout) argument

Completed in 2556 milliseconds

123456