Home
last modified time | relevance | path

Searched refs:content (Results 1 – 25 of 46) sorted by relevance

12

/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DCollectionAndMapModifyStreamTest.java59 List<Integer> content = LambdaTestHelpers.countTo(10); in createCollections() local
62 collections.add(new ArrayList<>(content)); in createCollections()
63 collections.add(new LinkedList<>(content)); in createCollections()
64 collections.add(new Vector<>(content)); in createCollections()
66 collections.add(new HashSet<>(content)); in createCollections()
67 collections.add(new LinkedHashSet<>(content)); in createCollections()
68 collections.add(new TreeSet<>(content)); in createCollections()
71 stack.addAll(content); in createCollections()
73 collections.add(new PriorityQueue<>(content)); in createCollections()
74 collections.add(new ArrayDeque<>(content)); in createCollections()
[all …]
DDoublePrimitiveOpsTests.java75 double[] content = DoubleStream.generate(() -> r.nextDouble()).limit(10).toArray(); in testSort() local
76 double[] sortedContent = content.clone(); in testSort()
80 double[] array = Arrays.stream(content).sorted().toArray(); in testSort()
85 double[] array = Arrays.stream(content).parallel().sorted().toArray(); in testSort()
109 double[] content = DoubleStream.generate(() -> r.nextDouble()).limit(10).toArray(); in testSortSort() local
110 double[] sortedContent = content.clone(); in testSortSort()
114 double[] array = Arrays.stream(content).sorted().sorted().toArray(); in testSortSort()
119 double[] array = Arrays.stream(content).parallel().sorted().sorted().toArray(); in testSortSort()
DLongPrimitiveOpsTests.java127 long[] content = LongStream.generate(() -> r.nextLong()).limit(10).toArray(); in testSort() local
128 long[] sortedContent = content.clone(); in testSort()
132 long[] array = Arrays.stream(content).sorted().toArray(); in testSort()
137 long[] array = Arrays.stream(content).parallel().sorted().toArray(); in testSort()
169 long[] content = LongStream.generate(() -> r.nextLong()).limit(10).toArray(); in testSortSort() local
170 long[] sortedContent = content.clone(); in testSortSort()
174 long[] array = Arrays.stream(content).sorted().sorted().toArray(); in testSortSort()
179 long[] array = Arrays.stream(content).parallel().sorted().sorted().toArray(); in testSortSort()
DIntPrimitiveOpsTests.java134 int[] content = IntStream.generate(() -> r.nextInt(100)).limit(10).toArray(); in testSort() local
135 int[] sortedContent = content.clone(); in testSort()
139 int[] array = Arrays.stream(content).sorted().toArray(); in testSort()
144 int[] array = Arrays.stream(content).parallel().sorted().toArray(); in testSort()
181 int[] content = IntStream.generate(() -> r.nextInt(100)).limit(10).toArray(); in testSortSort() local
182 int[] sortedContent = content.clone(); in testSortSort()
186 int[] array = Arrays.stream(content).sorted().sorted().toArray(); in testSortSort()
191 int[] array = Arrays.stream(content).parallel().sorted().sorted().toArray(); in testSortSort()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
DContentHandlerTest.java38 Object content = handler.getContent(conn, classes); in test_getContent() local
39 assertEquals("Foo", ((Foo) content).getFoo()); in test_getContent()
42 content = handler.getContent(conn, classes); in test_getContent()
43 assertEquals("FooSub", ((Foo) content).getFoo()); in test_getContent()
47 content = handler.getContent(conn, classes2); in test_getContent()
48 assertNull(content); in test_getContent()
54 private Object content; field in ContentHandlerImpl
58 return content; in getContent()
61 public void setContent(Object content) { in setContent() argument
62 this.content = content; in setContent()
/libcore/ojluni/src/main/java/sun/security/pkcs/
DContentInfo.java86 DerValue content; // OPTIONAL field in ContentInfo
88 public ContentInfo(ObjectIdentifier contentType, DerValue content) { in ContentInfo() argument
90 this.content = content; in ContentInfo()
99 this.content = octetString; in ContentInfo()
140 content = typeAndContent[1]; in ContentInfo()
151 content = contents[0]; in ContentInfo()
157 return content; in getContent()
168 if (content == null) in getData()
171 return content.getOctetString(); in getData()
184 if (content != null) { in encode()
[all …]
/libcore/luni/src/test/java/libcore/java/io/
DOldObjectOutputStreamPutFieldTest.java72 byte[] content; in test_put()
86 content = baos.toByteArray(); in test_put()
88 Arrays.equals(content, refContent)); in test_put()
97 byte[] content; in test_writeLjava_io_ObjectOutputStream()
111 content = baos.toByteArray(); in test_writeLjava_io_ObjectOutputStream()
113 Arrays.equals(content, refContent)); in test_writeLjava_io_ObjectOutputStream()
/libcore/ojluni/src/main/java/java/security/
DSignedObject.java129 private byte[] content; field in SignedObject
157 this.content = b.toByteArray(); in SignedObject()
178 ByteArrayInputStream b = new ByteArrayInputStream(this.content); in getObject()
224 verificationEngine.update(this.content.clone()); in verify()
242 signingEngine.update(this.content.clone()); in sign()
254 content = ((byte[])fields.get("content", null)).clone(); in readObject()
/libcore/ojluni/src/main/java/javax/crypto/
DSealedObject.java156 byte[] content; in SealedObject()
161 content = b.toByteArray(); in SealedObject()
170 this.encryptedContent = c.doFinal(content); in SealedObject()
293 byte[] content = c.doFinal(this.encryptedContent); in getObject()
299 ByteArrayInputStream b = new ByteArrayInputStream(content); in getObject()
423 byte[] content = c.doFinal(this.encryptedContent); in unseal()
429 ByteArrayInputStream b = new ByteArrayInputStream(content); in unseal()
/libcore/ojluni/src/test/java/io/FileWriter/
DConstructorTest.java150 void writeWithFileWriter(ConstructorType type, File file, String content, Charset charset) in writeWithFileWriter() argument
154 writer.write(content); in writeWithFileWriter()
158 writer.write(content); in writeWithFileWriter()
162 … void writeWithOutputStreamWriter(ConstructorType type, File file, String content, Charset charset) in writeWithOutputStreamWriter() argument
165 writer.write(content); in writeWithOutputStreamWriter()
167 writer.write(content); in writeWithOutputStreamWriter()
/libcore/ojluni/src/main/java/java/util/
DListResourceBundle.java197 for (Object[] content : contents) { in loadLookup()
199 String key = (String) content[0]; in loadLookup()
200 Object value = content[1]; in loadLookup()
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
DTextImpl.java84 public final Text replaceWholeText(String content) throws DOMException { in replaceWholeText() argument
96 if (n == this && content != null && content.length() > 0) { in replaceWholeText()
97 setData(content); in replaceWholeText()
/libcore/ojluni/src/test/java/util/Properties/
DSaveSeparator.java50 String content = myOut.toString(); in main() local
51 if (!content.endsWith(theSeparator)) in main()
/libcore/ojluni/src/test/java/lang/String/CompactString/
DCompactString.java249 private void setUpOneString(String content, byte[] ba, char[] ca, int[] cpa) in setUpOneString() argument
257 m.put(SRC_STRING, new String(content)); in setUpOneString()
258 m.put(SRC_STRINGBUFFER, new String(new StringBuffer(content))); in setUpOneString()
259 m.put(SRC_STRINGBUILDER, new String(new StringBuilder(content))); in setUpOneString()
262 map.put(content, m); in setUpOneString()
/libcore/ojluni/src/main/java/java/util/stream/
DSortedOps.java195 int[] content = n.asPrimitiveArray(); in opEvaluateParallel() local
196 Arrays.parallelSort(content); in opEvaluateParallel()
198 return Nodes.node(content); in opEvaluateParallel()
234 long[] content = n.asPrimitiveArray(); in opEvaluateParallel() local
235 Arrays.parallelSort(content); in opEvaluateParallel()
237 return Nodes.node(content); in opEvaluateParallel()
273 double[] content = n.asPrimitiveArray(); in opEvaluateParallel() local
274 Arrays.parallelSort(content); in opEvaluateParallel()
276 return Nodes.node(content); in opEvaluateParallel()
/libcore/luni/src/main/java/libcore/internal/
DJava9LanguageFeatures.java67 public <T> AtomicReference<T> createReference(T content) { in createReference() argument
69 return new AtomicReference<>(content) { }; in createReference()
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DStreamTestDataProvider.java128 Integer[] content = new Integer[size];
130 content[e] = (i & (1 << e)) > 0 ? e + 1 : null;
134 list.add(arrayDataDescr("array:" + i, content));
136 … list.add(collectionDataDescr("HashSet:" + i, new HashSet<>(Arrays.asList(content))));
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DStreamTestDataProvider.java134 Integer[] content = new Integer[size];
136 content[e] = (i & (1 << e)) > 0 ? e + 1 : null;
140 list.add(arrayDataDescr("array:" + i, content));
142 … list.add(collectionDataDescr("HashSet:" + i, new HashSet<>(Arrays.asList(content))));
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DPropertyResourceBundleTest.java74 String content = "p1=one\nfeature=good_feature"; in test_ConstructorLjava_io_Reader() local
75 CharBuffer cbuffer = charset.decode(ByteBuffer.wrap(content in test_ConstructorLjava_io_Reader()
86 cbuffer = charset.decode(ByteBuffer.wrap(content.getBytes("UTF-8"))); in test_ConstructorLjava_io_Reader()
/libcore/luni/src/main/java/libcore/content/type/
DTEST_MAPPING7 "include-filter": "libcore.libcore.content.type"
/libcore/ojluni/annotations/hiddenapi/sun/security/pkcs/
DContentInfo.java36 sun.security.util.ObjectIdentifier contentType, sun.security.util.DerValue content) { in ContentInfo() argument
116 sun.security.util.DerValue content; field in ContentInfo
/libcore/luni/src/main/java/org/w3c/dom/
DText.java123 public Text replaceWholeText(String content) in replaceWholeText() argument
/libcore/ojluni/src/test/java/io/FileReader/
DConstructorTest.java123 void prepareFile(File file, String content, Charset charset) throws IOException { in prepareFile() argument
125 writer.write(content); in prepareFile()
/libcore/ojluni/src/test/java/util/Scanner/
DEncodingTest.java135 void prepareFile(File file, String content) throws IOException { in prepareFile() argument
137 writer.write(content); in prepareFile()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DChannelsTest.java64 private Pipe.SourceChannel createNonBlockingChannel(byte[] content) throws IOException { in createNonBlockingChannel() argument
67 sinkChannel.write(ByteBuffer.wrap(content)); in createNonBlockingChannel()

12