Searched refs:values (Results 1 - 25 of 149) sorted by relevance

123456

/libcore/luni/src/test/java/libcore/io/
H A DMemoryTest.java26 int[] values = { 3, 7, 31, 127, 8191, 131071, 524287, 2147483647 };
27 int[] swappedValues = new int[values.length];
28 for (int i = 0; i < values.length; ++i) {
29 swappedValues[i] = Integer.reverseBytes(values[i]);
34 byte[] array = (byte[]) runtime.newNonMovableArray(byte.class, scale * values.length + 1);
42 Memory.pokeIntArray(ptr, values, 0, values.length, false);
43 assertIntsEqual(values, ptr, false);
47 Memory.pokeIntArray(ptr, values, 0, values
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/
H A DRetentionPolicyTest.java51 * @tests java.lang.annotation.RetentionPolicy#values()
55 RetentionPolicy[] values = RetentionPolicy.values();
56 assertTrue(values.length > 1);
57 Arrays.sort(values);
58 assertTrue(Arrays.binarySearch(values, RetentionPolicy.RUNTIME) >= 0);
/libcore/luni/src/main/java/org/apache/harmony/security/x509/tsp/
H A DTimeStampReq.java171 Object[] values = (Object[]) in.content;
173 String objID = (values[2] == null) ? null : ObjectIdentifier
174 .toString((int[]) values[2]);
175 BigInteger nonce = (values[3] == null) ? null : new BigInteger(
176 (byte[]) values[3]);
178 if (values[5] == null) {
180 ASN1Integer.toIntValue(values[0]),
181 (MessageImprint) values[1],
184 (Boolean) values[4],
190 ASN1Integer.toIntValue(values[
[all...]
H A DTSTInfo.java221 Object[] values = (Object[]) in.content;
225 if (values[i] != null) {
226 accuracy[i] = ASN1Integer.toIntValue(values[i]);
235 protected void getValues(Object object, Object[] values) {
241 values[i] = BigInteger.valueOf(accuracy[i]).toByteArray();
266 Object[] values = (Object[]) in.content;
268 BigInteger nonce = (values[7] == null) ? null : new BigInteger(
269 (byte[]) values[7]);
272 ASN1Integer.toIntValue(values[0]),
273 ObjectIdentifier.toString((int[]) values[
[all...]
H A DMessageImprint.java52 Object[] values = (Object[]) in.content;
54 (AlgorithmIdentifier)values[0],
55 (byte[])values[1]);
58 protected void getValues(Object object, Object[] values) {
60 values[0] = mi.algId;
61 values[1] = mi.hashedMessage;
H A DTimeStampResp.java82 Object[] values = (Object[]) in.content;
84 (PKIStatusInfo) values[0],
85 (ContentInfo) values[1]);
88 protected void getValues(Object object, Object[] values) {
91 values[0] = resp.status;
92 values[1] = resp.timeStampToken;
H A DPKIStatusInfo.java103 protected void getValues(Object object, Object[] values) {
105 values[0] = BigInteger.valueOf(psi.status.getStatus())
107 values[1] = psi.statusString;
113 values[2] = new BitString(failInfoBoolArray);
115 values[2] = null;
120 Object[] values = (Object[]) in.content;
123 if (values[2] != null) {
124 boolean[] failInfoBoolArray = ((BitString) values[2]).toBooleanArray();
133 PKIStatus.getInstance(ASN1Integer.toIntValue(values[0])),
134 (List)values[
[all...]
/libcore/luni/src/main/java/org/apache/harmony/security/x509/
H A DIssuingDistributionPoint.java45 // values of the fields of the structure
55 * onlySomeReasons fields values.
147 Object[] values = (Object[]) in.content;
149 (DistributionPointName) values[0], (ReasonFlags) values[3]);
151 if (values[1] != null) {
152 idp.setOnlyContainsUserCerts((Boolean) values[1]);
154 if (values[2] != null) {
155 idp.setOnlyContainsCACerts((Boolean) values[2]);
157 if (values[
[all...]
H A DGeneralSubtree.java109 Object[] values = (Object[]) in.content;
111 if (values[2] != null) {
112 maximum = ASN1Integer.toIntValue(values[2]); // no!
114 return new GeneralSubtree((GeneralName) values[0],
115 ASN1Integer.toIntValue(values[1]),
119 @Override protected void getValues(Object object, Object[] values) {
121 values[0] = gs.base;
122 values[1] = ASN1Integer.fromIntValue(gs.minimum);
124 values[2] = ASN1Integer.fromIntValue(gs.maximum);
H A DDistributionPoint.java117 Object[] values = (Object[]) in.content;
118 return new DistributionPoint((DistributionPointName) values[0],
119 (ReasonFlags) values[1], (GeneralNames) values[2]);
122 @Override protected void getValues(Object object, Object[] values) {
124 values[0] = dp.distributionPoint;
125 values[1] = dp.reasons;
126 values[2] = dp.cRLIssuer;
H A DAccessDescription.java83 Object[] values = (Object[]) in.content;
85 ObjectIdentifier.toString((int[]) values[0]),
86 (GeneralName) values[1], in.getEncoded());
89 @Override protected void getValues(Object object, Object[] values) {
91 values[0] = ObjectIdentifier.toIntArray(ad.accessMethod);
92 values[1] = ad.accessLocation;
H A DEDIPartyName.java91 Object[] values = (Object[]) in.content;
92 return new EDIPartyName((String) values[0], (String) values[1],
96 @Override protected void getValues(Object object, Object[] values) {
98 values[0] = epn.nameAssigner;
99 values[1] = epn.partyName;
H A DOtherName.java91 Object[] values = (Object[]) in.content;
92 return new OtherName(ObjectIdentifier.toString((int[]) values[0]),
93 (byte[]) values[1], in.getEncoded());
96 @Override protected void getValues(Object object, Object[] values) {
98 values[0] = ObjectIdentifier.toIntArray(on.typeID);
99 values[1] = on.value;
H A DPrivateKeyUsagePeriod.java101 Object[] values = (Object[])in.content;
102 return new PrivateKeyUsagePeriod((Date) values[0], (Date) values[1], in.getEncoded());
105 @Override protected void getValues(Object object, Object[] values) {
107 values[0] = pkup.notBeforeDate;
108 values[1] = pkup.notAfterDate;
H A DTBSCertificate.java247 Object[] values = (Object[]) in.content;
249 boolean[] issuerUniqueID = (values[7] == null)
250 ? null : ((BitString) values[7]).toBooleanArray();
251 boolean[] subjectUniqueID = (values[8] == null)
252 ? null : ((BitString) values[8]).toBooleanArray();
254 ASN1Integer.toIntValue(values[0]),
255 new BigInteger((byte[]) values[1]),
256 (AlgorithmIdentifier) values[2],
257 (Name) values[3],
258 (Validity) values[
[all...]
H A DValidity.java89 Object[] values = (Object[]) in.content;
90 return new Validity((Date) values[0], (Date) values[1]);
93 @Override protected void getValues(Object object, Object[] values) {
95 values[0] = validity.notBefore;
96 values[1] = validity.notAfter;
H A DBasicConstraints.java54 Object[] values = (Object[]) ASN1.decode(encoding);
55 ca = (Boolean) values[0];
56 if (values[1] != null) {
57 pathLenConstraint = new BigInteger((byte[]) values[1]).intValue();
101 protected void getValues(Object object, Object[] values) {
103 values[0] = array[0];
104 values[1] = ((BigInteger) array[1]).toByteArray();
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/
H A DDerOutputStream.java65 Object[] values = val[index];
70 if (values[i] == null) {
74 content = values[i];
90 Object[] values = val[index];
94 for (int i = 0; i < values.length; i++) {
95 content = values[i];
101 private void push(int[] lengths, Object[] values) { argument
114 val[index] = values;
121 Object[] values = new Object[] { choice.type[i], content };
123 push(null, values);
[all...]
/libcore/luni/src/main/java/java/io/
H A DSerializationHandleMap.java29 private int[] values; field in class:SerializationHandleMap
46 int[] oldValues = values;
49 this.values = new int[newSize];
57 values[index] = value;
65 return values[index];
109 values[index] = -1;
113 int result = values[index];
114 values[index] = _value;
136 result = values[index];
157 values[inde
[all...]
/libcore/luni/src/main/java/org/apache/harmony/security/pkcs10/
H A DCertificationRequest.java96 Object[] values = (Object[]) in.content;
98 (CertificationRequestInfo) values[0],
99 (AlgorithmIdentifier) values[1],
100 ((BitString) values[2]).bytes,
104 protected void getValues(Object object, Object[] values) {
106 values[0] = certReq.info;
107 values[1] = certReq.algId;
108 values[2] = new BitString(certReq.signature, 0);
H A DCertificationRequestInfo.java116 Object[] values = (Object[]) in.content;
118 ASN1Integer.toIntValue(values[0]),
119 (Name) values[1],
120 (SubjectPublicKeyInfo) values[2],
121 (List<?>) values[3],
125 @Override protected void getValues(Object object, Object[] values) {
127 values[0] = ASN1Integer.fromIntValue(certReqInfo.version);
128 values[1] = certReqInfo.subject;
129 values[2] = certReqInfo.subjectPublicKeyInfo;
130 values[
[all...]
/libcore/luni/src/test/java/libcore/java/util/zip/
H A DOldAndroidChecksumTest.java40 private void adler32Test(byte[] values, long expected) { argument
44 adler.update(values);
49 for (int i = 0; i < values.length; i++) {
50 adler.update(values[i]);
55 private void cRC32Test(byte[] values, long expected) { argument
59 crc.update(values);
64 for (int i = 0; i < values.length; i++) {
65 crc.update(values[i]);
/libcore/luni/src/main/java/org/apache/harmony/security/pkcs8/
H A DPrivateKeyInfo.java115 Object[] values = (Object[]) in.content;
116 return new PrivateKeyInfo(ASN1Integer.toIntValue(values[0]),
117 (AlgorithmIdentifier) values[1], (byte[]) values[2],
118 (List) values[3], in.getEncoded());
121 protected void getValues(Object object, Object[] values) {
123 values[0] = ASN1Integer.fromIntValue(privateKeyInfo.version);
124 values[1] = privateKeyInfo.privateKeyAlgorithm;
125 values[2] = privateKeyInfo.privateKey;
126 values[
[all...]
/libcore/luni/src/main/java/org/apache/harmony/security/pkcs7/
H A DContentInfo.java115 @Override protected void getValues(Object object, Object[] values) {
117 values[0] = ci.oid;
121 values[1] =
125 values[1] = SignedData.ASN1.encode(ci.content);
127 values[1] = ci.content;
133 Object[] values = (Object[]) in.content;
134 int[] oid = (int[]) values[0];
136 if (values[1] != null) {
138 ASN1OctetString.getInstance().decode((byte[])values[1]),
141 return new ContentInfo((int[])values[
[all...]
H A DSignedData.java121 @Override protected void getValues(Object object, Object[] values) {
123 values[0] = new byte[] {(byte)sd.version};
124 values[1] = sd.digestAlgorithms;
125 values[2] = sd.contentInfo;
126 values[3] = sd.certificates;
127 values[4] = sd.crls;
128 values[5] = sd.signerInfos;
132 Object[] values = (Object[]) in.content;
134 ASN1Integer.toIntValue(values[0]),
135 (List<?>) values[
[all...]

Completed in 278 milliseconds

123456