Searched refs:data (Results 76 - 100 of 260) sorted by relevance

1234567891011

/libcore/ojluni/src/main/java/sun/security/x509/
H A DCertificatePolicyMap.java63 issuerDomain = new CertificatePolicyId(val.data.getDerValue());
64 subjectDomain = new CertificatePolicyId(val.data.getDerValue());
H A DGeneralNames.java60 if (derVal.data.available() == 0) {
61 throw new IOException("No data available in "
65 while (derVal.data.available() != 0) {
66 DerValue encName = derVal.data.getDerValue();
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
H A DSortedOpTest.java173 public void testOps(String name, TestData.OfRef<Integer> data) { argument
174 Collection<Integer> result = exerciseOpsInt(data, Stream::sorted, IntStream::sorted, LongStream::sorted, DoubleStream::sorted);
176 assertContentsUnordered(data, result);
178 result = exerciseOps(data, s -> s.sorted(cInteger.reversed()));
180 assertContentsUnordered(data, result);
184 public void testSortSort(String name, TestData.OfRef<Integer> data) { argument
186 Collection<Integer> result = withData(data)
192 assertContentsUnordered(data, result);
194 result = withData(data)
200 assertContentsUnordered(data, resul
250 testIntOps(String name, TestData.OfInt data) argument
257 testIntSortSort(String name, TestData.OfInt data) argument
298 testLongOps(String name, TestData.OfLong data) argument
305 testLongSortSort(String name, TestData.OfLong data) argument
346 testDoubleOps(String name, TestData.OfDouble data) argument
353 testDoubleSortSort(String name, TestData.OfDouble data) argument
[all...]
H A DTeeOpTest.java82 // be in the encounter order, if defined, of the data
83 // @@@ Consider passing more meta-data about evaluation
89 public void testOps(String name, final TestData.OfRef<Integer> data) { argument
97 withData(data)
105 public void testIntOps(String name, final TestData.OfInt data) { argument
113 withData(data)
121 public void testLongOps(String name, final TestData.OfLong data) { argument
129 withData(data)
137 public void testDoubleOps(String name, final TestData.OfDouble data) { argument
145 withData(data)
[all...]
H A DIntSliceOpTest.java138 public void testSkipOps(String name, TestData.OfInt data) { argument
139 List<Integer> skips = sizes(data.size());
143 Collection<Integer> sr = exerciseOps(data, st -> st.skip(s));
144 assertEquals(sr.size(), sliceSize(data.size(), s));
146 sr = exerciseOps(data, st -> st.skip(s).skip(s / 2));
147 assertEquals(sr.size(), sliceSize(sliceSize(data.size(), s), s / 2));
152 public void testSkipLimitOps(String name, TestData.OfInt data) { argument
153 List<Integer> skips = sizes(data.size());
160 Collection<Integer> sr = exerciseOps(data, st -> st.skip(s).limit(limit));
161 assertEquals(sr.size(), sliceSize(sliceSize(data
170 testLimitOps(String name, TestData.OfInt data) argument
[all...]
/libcore/benchmarks/src/benchmarks/
H A DBufferedZipFileBenchmark.java38 System.setProperty("java.io.tmpdir", "/data/local/tmp");
44 byte[] data = new byte[8192];
45 out.putNextEntry(new ZipEntry("entry.data"));
48 random.nextBytes(data);
49 int toWrite = Math.min(compressedSize - written, data.length);
50 out.write(data, 0, toWrite);
59 ZipEntry entry = zipFile.getEntry("entry.data");
72 ZipEntry entry = zipFile.getEntry("entry.data");
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/
H A DChunkHandler.java23 * Handle a chunk of data sent from a DDM server.
50 * Handle a single chunk of data. "request" includes the type and
80 in = ByteBuffer.wrap(request.data, request.offset, request.length);
93 char[] data = new char[len];
95 data[i] = buf.getChar();
96 return new String(data);
H A DDdmServer.java90 * Send a chunk of data to the DDM server. This takes the form of a
96 nativeSendChunk(chunk.type, chunk.data, chunk.offset, chunk.length);
100 native private static void nativeSendChunk(int type, byte[] data, argument
139 private static Chunk dispatch(int type, byte[] data, int offset, int length) argument
170 Chunk chunk = new Chunk(type, data, offset, length);
/libcore/luni/src/main/java/org/w3c/dom/
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...]
/libcore/luni/src/main/java/org/xml/sax/
H A DDocumentHandler.java26 * example, all of an element's content (character data, processing
155 * Receive notification of character data.
158 * character data. SAX parsers may return all contiguous character
159 * data in a single chunk, or they may split it into several
223 * @param data The processing instruction data, or null if
228 public abstract void processingInstruction (String target, String data) argument
/libcore/dom/src/test/java/org/w3c/domts/level1/core/
H A Dcdatasectiongetdata.java73 String data;
81 data = ((CharacterData) /*Node */lastChild).getData();
82 assertEquals("data", "This is an adjacent CDATASection with a reference to a tab &tab;", data);
/libcore/dom/src/test/java/org/w3c/domts/level2/core/
H A DimportNode14.java38 * Create a processing instruction with target as "target1" and data as "data1"
40 * Method should return a processing instruction whose target and data match the given
77 String data;
91 data = aNode.getData();
92 assertEquals("piData", "data1", data);
H A Dnormalize01.java76 String data;
84 data = textNode.getData();
85 assertEquals("data", "Roger\n Jones", data);
/libcore/luni/src/test/java/tests/org/w3c/dom/
H A DNormalize.java81 String data;
89 data = textNode.getData();
90 assertEquals("data", "Roger\n Jones", data);
/libcore/ojluni/src/main/java/java/io/
H A DLineNumberInputStream.java68 * Reads the next byte of data from this input stream. The value
72 * <code>-1</code> is returned. This method blocks until input data
84 * @return the next byte of data, or <code>-1</code> if the end of this
113 * Reads up to <code>len</code> bytes of data from this input stream
120 * @param b the buffer into which the data is read.
121 * @param off the start offset of the data.
124 * <code>-1</code> if there is no more data because the end of
162 * Skips over and discards <code>n</code> bytes of data from this
181 byte data[];
188 data
[all...]
/libcore/ojluni/src/main/java/sun/security/util/
H A DDerIndefLenConverter.java35 * This assumes that the basic data structure is "tag, length, value"
51 private byte[] data, newData; field in class:DerIndefLenConverter
95 if (isEOC(data[dataPos]) && (data[dataPos + 1] == 0)) {
135 int tag = data[dataPos++];
136 if (isEOC(tag) && (data[dataPos] == 0)) {
151 int lenByte = data[dataPos++] & 0xff;
160 throw new IOException("Too much data");
162 throw new IOException("Too little data");
164 curLen = (curLen << 8) + (data[dataPo
[all...]
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
H A DStreamTestDataProvider.java88 for (Object[] data : arrays) {
89 final Object name = data[0];
90 final Integer[] ints = (Integer[])data[1];
101 // This data is serialization-hostile since the state of the
122 // @@@ This is separate from the other data for now until nulls are consitently supported by
144 for (Object[] data : arrays) {
145 final Object name = data[0];
146 final Integer[] ints = (Integer[])data[1];
169 static <T> Object[] arrayDataDescr(String description, T[] data) { argument
170 return new Object[] { description, TestData.Factory.ofArray(description, data)};
177 collectionDataDescr(String description, Collection<T> data) argument
181 sbDataDescr(String description, SpinedBuffer<T> data) argument
[all...]
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
H A DStreamTestDataProvider.java91 for (Object[] data : arrays) {
92 final Object name = data[0];
93 final Integer[] ints = (Integer[])data[1];
104 // This data is serialization-hostile since the state of the
125 // @@@ This is separate from the other data for now until nulls are consitently supported by
147 for (Object[] data : arrays) {
148 final Object name = data[0];
149 final Integer[] ints = (Integer[])data[1];
172 static <T> Object[] arrayDataDescr(String description, T[] data) { argument
173 return new Object[] { description, TestData.Factory.ofArray(description, data)};
180 collectionDataDescr(String description, Collection<T> data) argument
184 sbDataDescr(String description, SpinedBuffer<T> data) argument
[all...]
/libcore/luni/src/test/java/libcore/java/nio/
H A DOldAndroidNIOTest.java97 byte[] data = new byte[8];
99 b.put(data, -1, 2);
107 byte[] data = new byte[8];
109 b.put(data, 1, 8);
117 byte[] data = new byte[8];
119 b.put(data, 0, 3);
412 short[] data = new short[8];
414 sb.put(data, -1, 2);
422 short[] data = new short[8];
424 sb.put(data,
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DCharArrayReaderTest.java147 char[] data = new char[str.length()];
148 str.getChars(0, str.length(), data, 0);
150 int length = data.length - offsetLength;
152 CharArrayReader reader = new CharArrayReader(data, offsetLength, length);
155 assertEquals(data[offsetLength + i], (char) reader.read());
/libcore/luni/src/test/java/libcore/java/util/
H A DSpliteratorsTest.java520 private final int[] data; field in class:SpliteratorsTest.CannedIntPrimitiveIterator
523 public CannedIntPrimitiveIterator(int[] data) { argument
524 this.data = data;
530 return data[idx++];
535 return idx < data.length;
540 private final long[] data; field in class:SpliteratorsTest.CannedLongPrimitiveIterator
543 public CannedLongPrimitiveIterator(long[] data) { argument
544 this.data = data;
560 private final double[] data; field in class:SpliteratorsTest.CannedDoublePrimitiveIterator
563 CannedDoublePrimitiveIterator(double[] data) argument
[all...]
/libcore/ojluni/src/main/java/java/security/cert/
H A DCertPath.java308 private byte[] data; field in class:CertPath.CertPathRep
315 * @param data the encoded form of the certification path
317 protected CertPathRep(String type, byte[] data) { argument
319 this.data = data;
323 * Returns a <code>CertPath</code> constructed from the type and data.
333 return cf.generateCertPath(new ByteArrayInputStream(data));
/libcore/dalvik/src/main/java/dalvik/system/profiler/
H A DBinaryHprofWriter.java41 private final HprofData data; field in class:BinaryHprofWriter
45 * Writes the provided data to the specified stream.
47 public static void write(HprofData data, OutputStream outputStream) throws IOException { argument
48 new BinaryHprofWriter(data, outputStream).write();
51 private BinaryHprofWriter(HprofData data, OutputStream outputStream) { argument
52 this.data = data;
58 writeHeader(data.getStartMillis());
60 writeControlSettings(data.getFlags(), data
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
H A DZipOutputStreamTest.java38 static final String data = "HelloWorldHelloWorldHelloWorldHelloWorldHelloWorldHelloWorldHelloWorldHelloWorldHelloWorldHelloWorldHelloWorldHelloWorldHelloWorld"; field in class:ZipOutputStreamTest
137 zos.write(data.getBytes());
142 zos.write(data.getBytes());
154 tempCrc.update(data.getBytes());
156 ze.setSize(new String(data).length());
158 zos.write(data.getBytes());
163 zos.write(data.getBytes());
174 zos.write(data.getBytes());
180 byte[] b = new byte[data.length()];
187 assertEquals("Write failed to write correct bytes", new String(b), data);
[all...]
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
H A DSliceSpliteratorTest.java68 List<Object[]> data = new ArrayList<>();
82 data.add(new Object[]{"StreamSpliterators.SliceSpliterator.OfRef", r});
95 data.add(new Object[]{"StreamSpliterators.SliceSpliterator.OfInt", r});
108 data.add(new Object[]{"StreamSpliterators.SliceSpliterator.OfLong", r});
121 data.add(new Object[]{"StreamSpliterators.SliceSpliterator.OfLong", r});
138 data.add(new Object[]{"StreamSpliterators.UnorderedSliceSpliterator.OfRef", r});
152 data.add(new Object[]{"StreamSpliterators.UnorderedSliceSpliterator.OfInt", r});
166 data.add(new Object[]{"StreamSpliterators.UnorderedSliceSpliterator.OfLong", r});
180 data.add(new Object[]{"StreamSpliterators.UnorderedSliceSpliterator.OfLong", r});
183 return data
[all...]

Completed in 932 milliseconds

1234567891011