/libcore/support/src/test/java/tests/resources/x509/ |
D | create.sh | 25 openssl req -config "$DIR/default.cnf" -new -key "$DIR/privkey.pem" -nodes -batch > /tmp/cert-rsa-r… 26 openssl req -in /tmp/cert-rsa-req.pem -pubkey -noout | openssl rsa -pubin -pubout -outform der > "$… 27 …signkey "$DIR/privkey.pem" -outform d -set_serial -99999999999999999999 < /tmp/cert-rsa-req.pem > … 28 rm /tmp/cert-rsa-req.pem 71 openssl dsaparam -out /tmp/dsaparam.pem 1024 72 openssl gendsa -out "$DIR/dsapriv.pem" /tmp/dsaparam.pem 73 rm -f /tmp/dsaparam.pem 83 rm -rf /tmp/ca 84 mkdir -p /tmp/ca 85 touch /tmp/ca/index.txt [all …]
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | IssuingDistributionPointExtension.java | 238 DerOutputStream tmp = new DerOutputStream(); in encode() local 244 super.encode(tmp); in encode() 245 out.write(tmp.toByteArray()); in encode() 394 DerOutputStream tmp = new DerOutputStream(); in encodeThis() local 395 distributionPoint.encode(tmp); in encodeThis() 397 TAG_DISTRIBUTION_POINT), tmp); in encodeThis() local 401 DerOutputStream tmp = new DerOutputStream(); in encodeThis() local 402 tmp.putBoolean(hasOnlyUserCerts); in encodeThis() 404 TAG_ONLY_USER_CERTS), tmp); in encodeThis() local 408 DerOutputStream tmp = new DerOutputStream(); in encodeThis() local [all …]
|
D | X509CertInfo.java | 183 DerOutputStream tmp = new DerOutputStream(); in encode() local 184 emit(tmp); in encode() 185 rawCertInfo = tmp.toByteArray(); in encode() 225 DerOutputStream tmp = new DerOutputStream(); in getEncodedInfo() local 226 emit(tmp); in getEncodedInfo() 227 rawCertInfo = tmp.toByteArray(); in getEncodedInfo() 626 DerValue tmp; in parse() local 636 tmp = in.getDerValue(); in parse() 637 if (tmp.isContextSpecific((byte)0)) { in parse() 638 version = new CertificateVersion(tmp); in parse() [all …]
|
D | PolicyConstraintsExtension.java | 89 DerOutputStream tmp = new DerOutputStream(); in encodeThis() local 90 tmp.putInteger(require); in encodeThis() 92 false, TAG_REQUIRE), tmp); in encodeThis() local 95 DerOutputStream tmp = new DerOutputStream(); in encodeThis() local 96 tmp.putInteger(inhibit); in encodeThis() 98 false, TAG_INHIBIT), tmp); in encodeThis() local 202 DerOutputStream tmp = new DerOutputStream(); in encode() local 208 super.encode(tmp); in encode() 209 out.write(tmp.toByteArray()); in encode()
|
D | PrivateKeyUsageExtension.java | 93 DerOutputStream tmp = new DerOutputStream(); in encodeThis() local 94 tmp.putGeneralizedTime(notBefore); in encodeThis() 96 false, TAG_BEFORE), tmp); in encodeThis() local 99 DerOutputStream tmp = new DerOutputStream(); in encodeThis() local 100 tmp.putGeneralizedTime(notAfter); in encodeThis() 102 false, TAG_AFTER), tmp); in encodeThis() local 233 DerOutputStream tmp = new DerOutputStream(); in encode() local 239 super.encode(tmp); in encode() 240 out.write(tmp.toByteArray()); in encode()
|
D | GeneralSubtree.java | 198 DerOutputStream tmp = new DerOutputStream(); in encode() local 199 tmp.putInteger(minimum); in encode() 201 false, TAG_MIN), tmp); in encode() local 204 DerOutputStream tmp = new DerOutputStream(); in encode() local 205 tmp.putInteger(maximum); in encode() 207 false, TAG_MAX), tmp); in encode() local
|
D | CertificatePolicyMap.java | 100 DerOutputStream tmp = new DerOutputStream(); in encode() local 102 issuerDomain.encode(tmp); in encode() 103 subjectDomain.encode(tmp); in encode() 104 out.write(DerValue.tag_Sequence,tmp); in encode()
|
D | X509CRLImpl.java | 287 DerOutputStream tmp = new DerOutputStream(); in encodeInfo() local 292 tmp.putInteger(version); in encodeInfo() 293 infoSigAlgId.encode(tmp); in encodeInfo() 296 issuer.encode(tmp); in encodeInfo() 299 tmp.putUTCTime(thisUpdate); in encodeInfo() 301 tmp.putGeneralizedTime(thisUpdate); in encodeInfo() 305 tmp.putUTCTime(nextUpdate); in encodeInfo() 307 tmp.putGeneralizedTime(nextUpdate); in encodeInfo() 314 tmp.write(DerValue.tag_Sequence, rCerts); in encodeInfo() 318 extensions.encode(tmp, isExplicit); in encodeInfo() [all …]
|
D | BasicConstraintsExtension.java | 74 DerOutputStream tmp = new DerOutputStream(); in encodeThis() local 77 tmp.putBoolean(ca); in encodeThis() 80 tmp.putInteger(pathLen); in encodeThis() 83 out.write(DerValue.tag_Sequence, tmp); in encodeThis() 191 DerOutputStream tmp = new DerOutputStream(); in encode() local 201 super.encode(tmp); in encode() 203 out.write(tmp.toByteArray()); in encode()
|
D | PolicyMappingsExtension.java | 76 DerOutputStream tmp = new DerOutputStream(); in encodeThis() local 79 map.encode(tmp); in encodeThis() 82 os.write(DerValue.tag_Sequence, tmp); in encodeThis() 153 DerOutputStream tmp = new DerOutputStream(); in encode() local 159 super.encode(tmp); in encode() 160 out.write(tmp.toByteArray()); in encode()
|
/libcore/luni/src/test/java/dalvik/system/ |
D | create_test_jar.sh | 6 rm -rf /tmp/delegate_last_child 7 mkdir -p /tmp/delegate_last_child/libcore/test/delegatelast; 8 pushd /tmp/delegate_last_child 31 rm -rf /tmp/delegate_last_parent 32 mkdir -p /tmp/delegate_last_parent/libcore/test/delegatelast; 33 pushd /tmp/delegate_last_parent 57 rm -rf /tmp/delegate_last_bootoverride 58 mkdir -p /tmp/delegate_last_bootoverride/java/util; 59 pushd /tmp/delegate_last_bootoverride
|
/libcore/ojluni/src/main/java/java/util/ |
D | ComparableTimSort.java | 94 private Object[] tmp; field in ComparableTimSort 128 tmp = new Object[tlen]; in ComparableTimSort() 133 tmp = work; in ComparableTimSort() 541 int tmp = lastOfs; in gallopLeft() local 543 ofs = hint - tmp; in gallopLeft() 596 int tmp = lastOfs; in gallopRight() 598 ofs = hint - tmp; in gallopRight() 657 Object[] tmp = ensureCapacity(len1); 662 System.arraycopy(a, base1, tmp, cursor1, len1); 667 System.arraycopy(tmp, cursor1, a, dest, len1); [all …]
|
D | TimSort.java | 119 private T[] tmp; field in TimSort 158 tmp = newArray; in TimSort() 163 tmp = work; in TimSort() 574 int tmp = lastOfs; in gallopLeft() local 576 ofs = hint - tmp; in gallopLeft() 630 int tmp = lastOfs; in gallopRight() 632 ofs = hint - tmp; in gallopRight() 690 T[] tmp = ensureCapacity(len1); 694 System.arraycopy(a, base1, tmp, cursor1, len1); 699 System.arraycopy(tmp, cursor1, a, dest, len1); [all …]
|
D | DoubleSummaryStatistics.java | 171 double tmp = value - sumCompensation; in sumWithCompensation() local 172 double velvel = sum + tmp; // Little wolf of rounding error in sumWithCompensation() 173 sumCompensation = (velvel - sum) - tmp; in sumWithCompensation() 246 double tmp = sum - sumCompensation; in getSum() local 247 if (Double.isNaN(tmp) && Double.isInfinite(simpleSum)) in getSum() 254 return tmp; in getSum()
|
/libcore/ojluni/src/main/java/java/lang/reflect/ |
D | Parameter.java | 202 Type tmp = parameterTypeCache; in getParameterizedType() local 203 if (null == tmp) { in getParameterizedType() 204 tmp = executable.getAllGenericParameterTypes()[index]; in getParameterizedType() 205 parameterTypeCache = tmp; in getParameterizedType() 208 return tmp; in getParameterizedType() 222 Class<?> tmp = parameterClassCache; in getType() local 223 if (null == tmp) { in getType() 224 tmp = executable.getParameterTypes()[index]; in getType() 225 parameterClassCache = tmp; in getType() 227 return tmp; in getType()
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | FileChannelTest.java | 52 File tmp = File.createTempFile("FileChannelTest", "tmp"); in testReadOnlyByteArrays() local 55 FileChannel fc = new FileInputStream(tmp).getChannel(); in testReadOnlyByteArrays() 80 fc = new FileOutputStream(tmp).getChannel(); in testReadOnlyByteArrays() 89 File tmp = File.createTempFile("FileChannelTest", "tmp"); in test_readv() local 90 FileChannel fc = new FileOutputStream(tmp).getChannel(); in test_readv() 94 fc = new FileInputStream(tmp).getChannel(); in test_readv() 109 File tmp = File.createTempFile("FileChannelTest", "tmp"); in test_writev() local 110 FileChannel fc = new FileOutputStream(tmp).getChannel(); in test_writev() 117 assertEquals(8, tmp.length()); in test_writev() 118 assertEquals("abcdABCD", new String(IoUtils.readFileAsString(tmp.getPath()))); in test_writev() [all …]
|
/libcore/ojluni/src/test/java/io/InputStream/ |
D | ReadNBytes.java | 73 byte[] tmp; in test() 76 check(Arrays.equals((tmp = Arrays.copyOf(inputBytes, nread)), readBytes), in test() 77 "Expected[" + tmp + "], got:[" + readBytes + "]"); in test() 85 check(Arrays.equals((tmp = Arrays.copyOfRange(inputBytes, readBytes.length, length)), in test() 87 "Expected[" + tmp + "], got:[" + readBytes + "]"); in test() 91 check((x = in.read(tmp)) == -1, in test() 93 check((x = in.read(tmp, 0, tmp.length)) == -1, in test() 95 check((x = in.readNBytes(tmp, 0, tmp.length)) == 0, in test()
|
/libcore/ojluni/src/test/java/math/BigInteger/ |
D | SerializationTests.java | 58 BigInteger tmp = (BigInteger)ois.readObject(); in checkSerialForm0() local 60 if (!bi.equals(tmp) || in checkSerialForm0() 61 bi.hashCode() != tmp.hashCode() || in checkSerialForm0() 62 bi.getClass() != tmp.getClass() || in checkSerialForm0() 64 bi.signum() != tmp.signum() || in checkSerialForm0() 65 !Arrays.equals(bi.toByteArray(), (tmp.toByteArray())) ) { in checkSerialForm0() 68 System.err.print("serialized : " + tmp); in checkSerialForm0() 69 System.err.println(" (hash: 0x" + Integer.toHexString(tmp.hashCode()) + ")"); in checkSerialForm0()
|
/libcore/ojluni/src/tools/make/gensrc/ |
D | GensrcCharsetCoder.gmk | 39 $(RM) $@.tmp 41 $(TOOL_SPP) -i$< -o$@.tmp \ 67 $(MV) $@.tmp $@ 75 $(RM) $@.tmp 77 $(TOOL_SPP) -i$< -o$@.tmp \ 103 $(MV) $@.tmp $@
|
/libcore/support/src/test/java/tests/support/ |
D | Support_ClassLoaderDalvik.java | 32 private static File tmp; field in Support_ClassLoaderDalvik 35 tmp = new File(System.getProperty("java.io.tmpdir"), "dex-cache"); 36 tmp.mkdirs(); in tmp.mkdirs() 42 return new DexClassLoader(url.getPath(), tmp.getAbsolutePath(), in getClassLoader()
|
/libcore/ojluni/src/main/java/java/security/cert/ |
D | PolicyQualifierInfo.java | 108 byte [] tmp = val.data.toByteArray(); in PolicyQualifierInfo() 109 if (tmp == null) { in PolicyQualifierInfo() 112 mData = new byte[tmp.length]; in PolicyQualifierInfo() 113 System.arraycopy(tmp, 0, mData, 0, tmp.length); in PolicyQualifierInfo()
|
/libcore/ojluni/src/test/java/math/BigDecimal/ |
D | SerializationTests.java | 49 BigDecimal tmp = (BigDecimal)ois.readObject(); in checkSerialForm() local 51 if (!bd.equals(tmp) || bd.hashCode() != tmp.hashCode()) { in checkSerialForm() 54 " serialized : " + tmp + in checkSerialForm() 55 " (hash: 0x" + Integer.toHexString(tmp.hashCode()) + ")"); in checkSerialForm()
|
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
D | X509CertificatePair.java | 195 DerOutputStream tmp = new DerOutputStream(); in getEncoded() local 196 emit(tmp); in getEncoded() 197 encoded = tmp.toByteArray(); in getEncoded() 275 DerOutputStream tmp = new DerOutputStream(); in emit() local 276 tmp.putDerValue(new DerValue(forward.getEncoded())); in emit() 278 true, TAG_FORWARD), tmp); in emit() local 282 DerOutputStream tmp = new DerOutputStream(); in emit() local 283 tmp.putDerValue(new DerValue(reverse.getEncoded())); in emit() 285 true, TAG_REVERSE), tmp); in emit() local
|
/libcore/ojluni/src/main/java/sun/security/util/ |
D | DerInputStream.java | 625 int value, tmp; in getLength() local 631 tmp = lenByte; in getLength() 632 if ((tmp & 0x080) == 0x00) { // short form, 1 byte datum in getLength() 633 value = tmp; in getLength() 635 tmp &= 0x07f; in getLength() 641 if (tmp == 0) in getLength() 643 if (tmp < 0 || tmp > 4) in getLength() 644 throw new IOException(mdName + "lengthTag=" + tmp + ", " in getLength() 645 + ((tmp < 0) ? "incorrect DER encoding." : "too big.")); in getLength() 648 tmp--; in getLength() [all …]
|
/libcore/luni/src/main/native/ |
D | ScopedByteBufferArray.h | 45 jobject tmp = ((ScopedBytesRW*)mArrayPtr[i])->getObject(); in ~ScopedByteBufferArray() local 47 mEnv->DeleteLocalRef(tmp); in ~ScopedByteBufferArray() 49 jobject tmp = ((ScopedBytesRO*)mArrayPtr[i])->getObject(); in ~ScopedByteBufferArray() local 51 mEnv->DeleteLocalRef(tmp); in ~ScopedByteBufferArray()
|