/libcore/support/src/test/java/tests/support/ |
D | Support_GetLocal.java | 40 File temp = cache.get(url); in getLocalFile() local 41 if (temp == null) { in getLocalFile() 43 temp = File.createTempFile("hyts_local", ".tmp", null); in getLocalFile() 44 temp.deleteOnExit(); in getLocalFile() 45 FileOutputStream out = new FileOutputStream(temp); in getLocalFile() 53 cache.put(url, temp); in getLocalFile() 55 return temp; in getLocalFile() 60 File temp = cache.get(url); in getExternalLocalFile() local 61 if (temp == null) { in getExternalLocalFile() 63 temp = File.createTempFile("hyts_local", ".tmp", null); in getExternalLocalFile() [all …]
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | AsynchronousFileChannelTest.java | 142 File temp = File.createTempFile("AFCTest_tempfile", ""); in createTemporaryFile() local 145 try (FileOutputStream fos = new FileOutputStream(temp)) { in createTemporaryFile() 153 return temp; in createTemporaryFile() 157 File temp = File.createTempFile("AFCTest_tempfile", ""); in createTemporaryFile() local 159 try (FileOutputStream fos = new FileOutputStream(temp)) { in createTemporaryFile() 163 return temp; in createTemporaryFile() 168 File temp = createTemporaryFile(256); in testOpen_truncate() local 169 assertEquals(256, temp.length()); in testOpen_truncate() 171 AsynchronousFileChannel afc = AsynchronousFileChannel.open(temp.toPath(), in testOpen_truncate() 175 assertEquals(0, temp.length()); in testOpen_truncate() [all …]
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | ScannerBenchmark.java | 73 byte[] temp = new byte[size]; in setUp() 74 System.arraycopy(data, 0, temp, 0, size); in setUp() 75 data = temp; in setUp() 79 byte[] temp = new byte[data.length * 2]; in doubleSize() 80 System.arraycopy(data, 0, temp, 0, size); in doubleSize() 81 data = temp; in doubleSize()
|
/libcore/ojluni/src/test/java/net/URLEncoder/ |
D | DecodeNonEncoded.java | 58 String temp; in testDecodeNonEncoded() local 60 temp = URLDecoder.decode(ignoreStrings[i]); in testDecodeNonEncoded() 61 if (!temp.equals(ignoreStrings[i])) in testDecodeNonEncoded() 63 + "\" was converted to " + temp in testDecodeNonEncoded()
|
/libcore/ojluni/src/test/java/lang/ClassLoader/ |
D | AssertTest.java | 62 int temp = generator.nextInt(2187); in testAssert() local 64 switches[i] = temp % 3; in testAssert() 65 temp = temp / 3; in testAssert()
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | AVA.java | 174 StringBuilder temp = new StringBuilder(); in AVA() local 186 temp.append((char)c); in AVA() 189 oid = AVAKeyword.getOID(temp.toString(), format, keywordMap); in AVA() 196 temp.setLength(0); in AVA() 219 value = parseQuotedString(in, temp); in AVA() 221 value = parseString(in, c, format, temp); in AVA() 313 (Reader in, StringBuilder temp) throws IOException { in parseQuotedString() argument 352 temp.append(hexString); in parseQuotedString() 358 temp.append((char)c); in parseQuotedString() 365 temp.append(hexString); in parseQuotedString() [all …]
|
D | GeneralNames.java | 119 DerOutputStream temp = new DerOutputStream(); in encode() local 121 gn.encode(temp); in encode() 123 out.write(DerValue.tag_Sequence, temp); in encode()
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | TemporalAdjusters.java | 351 Temporal temp = temporal.with(DAY_OF_MONTH, 1); in dayOfWeekInMonth() 352 int curDow = temp.get(DAY_OF_WEEK); in dayOfWeekInMonth() 355 return temp.plus(dowDiff, DAYS); in dayOfWeekInMonth() 359 … Temporal temp = temporal.with(DAY_OF_MONTH, temporal.range(DAY_OF_MONTH).getMaximum()); in dayOfWeekInMonth() 360 int curDow = temp.get(DAY_OF_WEEK); in dayOfWeekInMonth() 364 return temp.plus(daysDiff, DAYS); in dayOfWeekInMonth()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/ |
D | NullArgsTestCase.java | 59 Object[] temp = Arrays.copyOf(args, args.length); in throwWithNull() local 60 temp[i] = null; in throwWithNull() 62 sink.accept(temp); in throwWithNull()
|
/libcore/ojluni/src/main/java/java/security/spec/ |
D | ECFieldF2m.java | 98 BigInteger temp = this.rp.clearBit(0).clearBit(m); in ECFieldF2m() local 101 int index = temp.getLowestSetBit(); in ECFieldF2m() 103 temp = temp.clearBit(index); in ECFieldF2m()
|
/libcore/ojluni/src/main/java/java/util/ |
D | ListResourceBundle.java | 196 HashMap<String,Object> temp = new HashMap<>(contents.length); in loadLookup() local 204 temp.put(key, value); in loadLookup() 206 lookup = temp; in loadLookup()
|
/libcore/ojluni/src/main/java/sun/security/pkcs/ |
D | PKCS9Attribute.java | 605 DerOutputStream temp = new DerOutputStream(); in derEncode() local 606 temp.putOID(oid); in derEncode() 609 temp.write((byte[])value); in derEncode() 622 temp.putOrderedSetOf(DerValue.tag_Set, temps); in derEncode() 630 temp.write(DerValue.tag_Set, temp2.toByteArray()); in derEncode() 638 temp.write(DerValue.tag_Set, temp2.toByteArray()); in derEncode() 646 temp.write(DerValue.tag_Set, temp2.toByteArray()); in derEncode() 651 temp.putOrderedSetOf(DerValue.tag_Set, (DerEncoder[]) value); in derEncode() 658 temp.write(DerValue.tag_Set, temp2.toByteArray()); in derEncode() 672 temp.putOrderedSetOf(DerValue.tag_Set, temps); in derEncode() [all …]
|
/libcore/ojluni/src/main/java/java/net/ |
D | SocketInputStream.java | 53 private byte temp[]; field in SocketInputStream 204 temp = new byte[1]; in read() 205 int n = read(temp, 0, 1); in read() 209 return temp[0] & 0xff; in read()
|
D | SocketOutputStream.java | 51 private byte temp[] = new byte[1]; field in SocketOutputStream 134 temp[0] = (byte)b; in write() 135 socketWrite(temp, 0, 1); in write()
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | PollArrayWrapper.java | 102 PollArrayWrapper temp = new PollArrayWrapper(newSize); in grow() local 106 replaceEntry(this, i, temp, i); in grow() 110 pollArray = temp.pollArray; in grow()
|
D | AbstractPollSelectorImpl.java | 149 SelectionKeyImpl temp[] = new SelectionKeyImpl[newSize]; in implRegister() local 152 temp[i] = channelArray[i]; in implRegister() 153 channelArray = temp; in implRegister()
|
/libcore/ojluni/src/test/java/text/Format/NumberFormat/ |
D | PositionTest.java | 157 StringBuffer temp; in TestFieldPosition_example() local 160 temp = new StringBuffer(); // Get new buffer in TestFieldPosition_example() 169 for (int j=0; j<tempOffset; j++) temp.append('='); // initialize in TestFieldPosition_example() 171 logln("FP " + temp + res); in TestFieldPosition_example()
|
/libcore/ojluni/src/main/java/sun/util/resources/ |
D | OpenListResourceBundle.java | 138 Map<String, Object> temp = createMap(contents.length); in loadLookup() local 146 temp.put(key, value); in loadLookup() 150 lookup = temp; in loadLookup()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | FilterInputStreamTest.java | 99 File temp = File.createTempFile("FilterInputStreamTest", "tst"); in setUp() local 100 fileName = temp.getAbsolutePath(); in setUp() 101 OutputStream fos = new FileOutputStream(temp.getAbsolutePath()); in setUp()
|
/libcore/ojluni/src/main/java/java/io/ |
D | DataOutputStream.java | 68 int temp = written + value; in incCount() local 69 if (temp < 0) { in incCount() 70 temp = Integer.MAX_VALUE; in incCount() 72 written = temp; in incCount()
|
/libcore/ojluni/src/test/java/security/KeyStore/ |
D | TestKeystoreEntry.java | 123 Key temp = null; in runTest() local 132 temp = ks.getKey(alias, PASSWDK); in runTest() 134 if (!temp.equals(sks[m])) { in runTest()
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | LRUCache.java | 56 V[] temp = (V[])new Object[size]; in forName() local 57 oa = temp; in forName()
|
/libcore/ojluni/src/main/java/java/math/ |
D | MutableBigInteger.java | 780 int temp[] = new int[resultLen]; in add() local 783 System.arraycopy(result, 0, temp, 1, result.length); in add() 784 temp[0] = 1; in add() 785 result = temp; in add() 846 int temp[] = new int[resultLen]; in addShifted() local 849 System.arraycopy(result, 0, temp, 1, result.length); in addShifted() 850 temp[0] = 1; in addShifted() 851 result = temp; in addShifted() 2200 MutableBigInteger temp = null; 2220 temp = f; f = g; g = temp; [all …]
|
/libcore/ojluni/src/test/java/nio/channels/Channels/ |
D | EncodingTest.java | 234 String temp; in writeToFile() local 237 temp = new String(data, csn); in writeToFile() 240 temp = new String(data, charset); in writeToFile() 244 writer.write(temp); in writeToFile()
|
/libcore/support/src/test/java/tests/support/resource/ |
D | Support_Resources.java | 151 File temp = new File(resources.toString() + "/local.tmp"); in getExternalLocalFile() local 152 copyLocalFileto(temp, in); in getExternalLocalFile() 153 return temp; in getExternalLocalFile()
|