Home
last modified time | relevance | path

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

123

/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/luni/src/main/java/org/apache/harmony/security/pkcs7/
DContentInfo.java54 private final Object content; field in ContentInfo
57 private ContentInfo(int[] oid, Object content, byte[] encoding) { in ContentInfo() argument
59 this.content = content; in ContentInfo()
65 return (SignedData)content; in getSignedData()
71 return content; in getContent()
97 if (content != null) { in toString()
99 res.append(content.toString()); in toString()
118 if (ci.content != null) {
120 if (ci.content != null) {
122 ASN1OctetString.getInstance().encode(ci.content);
[all …]
DAuthenticatedAttributes.java62 (List<AttributeTypeAndValue>) in.content);
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/
DDerOutputStream.java40 content = object; in DerOutputStream()
50 content = val[index][1]; in encodeChoice()
56 content = val[index][0]; in encodeExplicit()
74 content = values[i]; in encodeSequence()
95 content = values[i]; in encodeValueCollection()
118 int i = choice.getIndex(content); in getChoiceLength()
119 content = choice.getObjectToEncode(content); in getChoiceLength()
121 Object[] values = new Object[] { choice.type[i], content }; in getChoiceLength()
129 values[1] = content; in getChoiceLength()
136 values[0] = content; in getExplicitLength()
[all …]
DBerOutputStream.java43 public Object content; field in BerOutputStream
70 System.arraycopy(content, 0, encoded, offset, length); in encodeANY()
76 BitString bStr = (BitString) content; in encodeBitString()
83 if ((Boolean) content) { in encodeBoolean()
100 System.arraycopy(content, 0, encoded, offset, length); in encodeGeneralizedTime()
105 System.arraycopy(content, 0, encoded, offset, length); in encodeUTCTime()
110 System.arraycopy(content, 0, encoded, offset, length); in encodeInteger()
115 System.arraycopy(content, 0, encoded, offset, length); in encodeOctetString()
121 int[] oid = (int[]) content; in encodeOID()
176 System.arraycopy(content, 0, encoded, offset, length); in encodeString()
DASN1StringType.java47 byte[] bytes = ((String) out.content).getBytes(StandardCharsets.UTF_8); in setEncodingContent()
48 out.content = bytes; in setEncodingContent()
112 byte[] bytes = ((String) out.content).getBytes(StandardCharsets.UTF_8); in setEncodingContent()
113 out.content = bytes; in setEncodingContent()
DASN1UTCTime.java100 out.content = sdf.format(out.content).getBytes(StandardCharsets.UTF_8); in setEncodingContent()
101 out.length = ((byte[]) out.content).length; in setEncodingContent()
DASN1GeneralizedTime.java89 String temp = sdf.format(out.content); in setEncodingContent()
102 out.content = (temp + "Z").getBytes(StandardCharsets.UTF_8); in setEncodingContent()
103 out.length = ((byte[]) out.content).length; in setEncodingContent()
DASN1BitString.java90 out.length = ((BitString) out.content).bytes.length + 1; in setEncodingContent()
160 boolean[] toEncode = (boolean[]) out.content; in setEncodingContent()
168 out.content = emptyString; in setEncodingContent()
191 out.content = new BitString(bytes, unusedBits); in setEncodingContent()
DASN1Oid.java106 int[] oid = (int[]) out.content; in setEncodingContent()
180 out.content = ObjectIdentifier.toIntArray((String) out.content);
DASN1Enumerated.java86 out.length = ((byte[]) out.content).length; in setEncodingContent()
DASN1OctetString.java84 out.length = ((byte[]) out.content).length; in setEncodingContent()
/libcore/luni/src/main/java/java/security/
DSignedObject.java36 private byte[] content; field in SignedObject
46 byte[] tmp = new byte[content.length]; in readObject()
47 System.arraycopy(content, 0, tmp, 0, content.length); in readObject()
48 content = tmp; in readObject()
85 content = baos.toByteArray(); in SignedObject()
88 signingEngine.update(content); in SignedObject()
105 content)); in getObject()
153 verificationEngine.update(content); in verify()
/libcore/luni/src/test/java/libcore/util/
DZoneInfoDBTest.java59 byte[] content = new byte[(int) in.length()]; in testGoodOverrideFile()
60 in.readFully(content); in testGoodOverrideFile()
62 content[6] = '9'; in testGoodOverrideFile()
63 content[7] = '9'; in testGoodOverrideFile()
64 content[8] = '9'; in testGoodOverrideFile()
65 content[9] = '9'; in testGoodOverrideFile()
66 content[10] = 'z'; in testGoodOverrideFile()
70 String goodFile = makeTemporaryFile(content); in testGoodOverrideFile()
111 private static String makeTemporaryFile(byte[] content) throws Exception { in makeTemporaryFile() argument
114 fos.write(content); in makeTemporaryFile()
/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/luni/src/main/java/java/util/
DListResourceBundle.java120 for (Object[] content : contents) {
121 if (content[0] == null || content[1] == null) {
124 table.put((String) content[0], content[1]);
/libcore/luni/src/main/java/java/net/
DContentHandler.java59 Object content = getContent(uConn); in getContent() local
61 if (types[i].isInstance(content)) { in getContent()
62 return content; in getContent()
/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/luni/src/main/java/org/apache/harmony/security/x501/
DAttributeTypeAndValue.java363 AttributeValue av = (AttributeValue) out.content;
366 out.content = av.encoded;
370 out.content = av.bytes;
376 AttributeValue av = (AttributeValue) out.content;
382 out.content = av.rawString;
384 av.bytes = (byte[]) out.content;
385 out.content = av;
399 AttributeValue av = (AttributeValue) out.content;
412 Object[] values = (Object[]) in.content;
/libcore/luni/src/test/java/libcore/java/nio/channels/
DChannelsTest.java51 private Pipe.SourceChannel createNonBlockingChannel(byte[] content) throws IOException { in createNonBlockingChannel() argument
54 sinkChannel.write(ByteBuffer.wrap(content)); in createNonBlockingChannel()
/libcore/luni/src/main/java/org/apache/harmony/security/x509/
DReasonFlags.java101 out.content = ((ReasonFlags) out.content).flags;
DGeneralName.java705 result = new GeneralName((OtherName) in.content);
709 result = new GeneralName(in.choiceIndex, (String) in.content);
712 result = new GeneralName((ORAddress) in.content);
715 result = new GeneralName((Name) in.content);
718 result = new GeneralName((EDIPartyName) in.content);
721 String uri = (String) in.content;
728 result = new GeneralName((byte[]) in.content);
732 ObjectIdentifier.toString((int[]) in.content));
DDistributionPointName.java109 result = new DistributionPointName((GeneralNames) in.content);
113 result = new DistributionPointName((Name) in.content);
/libcore/luni/src/main/java/org/w3c/dom/
DText.java123 public Text replaceWholeText(String content) in replaceWholeText() argument
/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()

123