/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/ |
H A D | ContentHandlerTest.java | 38 Object content = handler.getContent(conn, classes); 39 assertEquals("Foo", ((Foo) content).getFoo()); 42 content = handler.getContent(conn, classes); 43 assertEquals("FooSub", ((Foo) content).getFoo()); 47 content = handler.getContent(conn, classes2); 48 assertNull(content); 54 private Object content; field in class:ContentHandlerImpl 58 return content; 61 public void setContent(Object content) { argument 62 this.content [all...] |
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
H A D | CollectionAndMapModifyStreamTest.java | 58 List<Integer> content = LambdaTestHelpers.countTo(10); 61 collections.add(new ArrayList<>(content)); 62 collections.add(new LinkedList<>(content)); 63 collections.add(new Vector<>(content)); 65 collections.add(new HashSet<>(content)); 66 collections.add(new LinkedHashSet<>(content)); 67 collections.add(new TreeSet<>(content)); 70 stack.addAll(content); 72 collections.add(new PriorityQueue<>(content)); 73 collections.add(new ArrayDeque<>(content)); [all...] |
H A D | DoublePrimitiveOpsTests.java | 60 double[] content = DoubleStream.generate(() -> r.nextDouble()).limit(10).toArray(); 61 double[] sortedContent = content.clone(); 65 double[] array = Arrays.stream(content).sorted().toArray(); 70 double[] array = Arrays.stream(content).parallel().sorted().toArray(); 78 double[] content = DoubleStream.generate(() -> r.nextDouble()).limit(10).toArray(); 79 double[] sortedContent = content.clone(); 83 double[] array = Arrays.stream(content).sorted().sorted().toArray(); 88 double[] array = Arrays.stream(content).parallel().sorted().sorted().toArray();
|
H A D | IntPrimitiveOpsTests.java | 103 int[] content = IntStream.generate(() -> r.nextInt(100)).limit(10).toArray(); 104 int[] sortedContent = content.clone(); 108 int[] array = Arrays.stream(content).sorted().toArray(); 113 int[] array = Arrays.stream(content).parallel().sorted().toArray(); 121 int[] content = IntStream.generate(() -> r.nextInt(100)).limit(10).toArray(); 122 int[] sortedContent = content.clone(); 126 int[] array = Arrays.stream(content).sorted().sorted().toArray(); 131 int[] array = Arrays.stream(content).parallel().sorted().sorted().toArray();
|
H A D | LongPrimitiveOpsTests.java | 103 long[] content = LongStream.generate(() -> r.nextLong()).limit(10).toArray(); 104 long[] sortedContent = content.clone(); 108 long[] array = Arrays.stream(content).sorted().toArray(); 113 long[] array = Arrays.stream(content).parallel().sorted().toArray(); 121 long[] content = LongStream.generate(() -> r.nextLong()).limit(10).toArray(); 122 long[] sortedContent = content.clone(); 126 long[] array = Arrays.stream(content).sorted().sorted().toArray(); 131 long[] array = Arrays.stream(content).parallel().sorted().sorted().toArray();
|
/libcore/luni/src/main/java/org/w3c/dom/ |
H A D | Text.java | 17 * and represents the textual content (termed <a href='http://www.w3.org/TR/2004/REC-xml-20040204#syntax'>character data</a> in XML) of an <code>Element</code> or <code>Attr</code>. If there is no 18 * markup inside an element's content, the text is contained in a single 31 * <p> No lexical check is done on the content of a <code>Text</code> node 34 * characters "<&" if the textual content is part of an element or of 44 * will contain all the content up to the <code>offset</code> point. A 45 * new node of the same type, which contains all the content at and 63 * element content whitespace</a>, often abusively called "ignorable whitespace". The text node is 64 * determined to contain whitespace in element content during the load 116 * @param content The content o 123 replaceWholeText(String content) argument [all...] |
/libcore/ojluni/src/main/java/sun/security/pkcs/ |
H A D | ContentInfo.java | 40 // pkcs7 pre-defined content types 87 DerValue content; // OPTIONAL field in class:ContentInfo 89 public ContentInfo(ObjectIdentifier contentType, DerValue content) { argument 91 this.content = content; 100 this.content = octetString; 104 * Parses a PKCS#7 content info. 113 * Parses a PKCS#7 content info. 118 * @param derin the ASN.1 encoding of the content info. 119 * @param oldStyle flag indicating whether or not the given content inf [all...] |
H A D | SignerInfo.java | 335 ContentInfo content = block.getContentInfo(); 338 inputStream = new ByteArrayInputStream(content.getContentBytes()); 356 // first, check content type 361 !contentType.equals((Object)content.contentType)) 501 /* Verify the content of the pkcs7 block. */ 592 // Extract the content (an encoded timestamp token info) 595 // while verifying the content
|
H A D | PKCS7.java | 195 DerValue content = contentInfo.getContent(); 198 parseSignedData(content); 201 parseOldSignedData(content); 204 parseNetscapeCertChain(content); 206 throw new ParsingException("content type " + contentType + 215 * @param contentInfo the content information. 584 // making it a content info sequence 596 * @param bytes the DER encoded content information. 612 * @param dataInputStream the DER encoded content information. 626 * @param bytes the DER encoded content informatio [all...] |
H A D | PKCS9Attribute.java | 495 byte[] content = val[1].toByteArray(); 496 DerValue[] elems = new DerInputStream(content).getSet(1); 503 value = content; 533 case 3: // content type 626 case 3: // content type
|
/libcore/luni/src/test/java/libcore/java/io/ |
H A D | OldObjectOutputStreamPutFieldTest.java | 72 byte[] content; 86 content = baos.toByteArray(); 88 Arrays.equals(content, refContent)); 97 byte[] content; 111 content = baos.toByteArray(); 113 Arrays.equals(content, refContent));
|
/libcore/ojluni/src/main/java/java/security/ |
H A D | SignedObject.java | 124 * The original content is "deep copied" in its serialized format 129 private byte[] content; field in class:SignedObject 153 // write and flush the object content to byte array 157 this.content = b.toByteArray(); 178 ByteArrayInputStream b = new ByteArrayInputStream(this.content); 224 verificationEngine.update(this.content.clone()); 242 signingEngine.update(this.content.clone()); 254 content = ((byte[])fields.get("content", null)).clone();
|
/libcore/luni/src/test/java/libcore/libcore/util/ |
H A D | ZoneInfoDBTest.java | 72 byte[] content = new byte[(int) in.length()]; 73 in.readFully(content); 77 content[6] = '9'; 78 content[7] = '9'; 79 content[8] = '9'; 80 content[9] = '9'; 81 content[10] = 'z'; 83 File goodFile = makeTemporaryFile(content); 97 byte[] content = new byte[(int) in.length()]; 98 in.readFully(content); 299 makeTemporaryFile(byte[] content) argument [all...] |
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/ |
H A D | TextImpl.java | 66 // constitute "element content whitespace" is defined by the containing 84 public final Text replaceWholeText(String content) throws DOMException { argument 95 // ...except the current node if we have content for it 96 if (n == this && content != null && content.length() > 0) { 97 setData(content);
|
H A D | NodeImpl.java | 398 String content = getNodeValue(); 399 if (content != null) { 400 buf.append(content); 419 // create a text node to hold the given content
|
/libcore/ojluni/src/main/java/javax/crypto/ |
H A D | SealedObject.java | 44 * confidentiality. The encrypted content can later be decrypted (with 156 byte[] content; 158 // write and flush the object content to byte array 161 content = b.toByteArray(); 170 this.encryptedContent = c.doFinal(content); 293 byte[] content = c.doFinal(this.encryptedContent); 299 ByteArrayInputStream b = new ByteArrayInputStream(content); 423 byte[] content = c.doFinal(this.encryptedContent); 429 ByteArrayInputStream b = new ByteArrayInputStream(content);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | PropertyResourceBundleTest.java | 74 String content = "p1=one\nfeature=good_feature"; 75 CharBuffer cbuffer = charset.decode(ByteBuffer.wrap(content 86 cbuffer = charset.decode(ByteBuffer.wrap(content.getBytes("UTF-8")));
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
H A D | StreamTestDataProvider.java | 128 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/ |
H A D | StreamTestDataProvider.java | 134 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/ojluni/src/main/java/java/util/stream/ |
H A D | SortedOps.java | 195 int[] content = n.asPrimitiveArray(); 196 Arrays.parallelSort(content); 198 return Nodes.node(content); 234 long[] content = n.asPrimitiveArray(); 235 Arrays.parallelSort(content); 237 return Nodes.node(content); 273 double[] content = n.asPrimitiveArray(); 274 Arrays.parallelSort(content); 276 return Nodes.node(content);
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
H A D | ChannelsTest.java | 64 private Pipe.SourceChannel createNonBlockingChannel(byte[] content) throws IOException { argument 67 sinkChannel.write(ByteBuffer.wrap(content));
|
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | URLConnectionTest.java | 792 .setBody("bogus proxy connect response content"); 3009 * content equals {@code expected}. 3051 @Override void setBody(MockResponse response, byte[] content, int chunkSize) 3053 response.setChunkedBody(content, chunkSize); 3057 @Override void setBody(MockResponse response, byte[] content, int chunkSize) { 3058 response.setBody(content); 3062 @Override void setBody(MockResponse response, byte[] content, int chunkSize) { 3063 response.setBody(content); 3074 abstract void setBody(MockResponse response, byte[] content, int chunkSize) argument 3077 void setBody(MockResponse response, String content, in argument [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
H A D | R.java | 1485 public static final int content = 0; field in class:R
|