Home
last modified time | relevance | path

Searched refs:temp (Results 1 – 25 of 31) sorted by relevance

12

/libcore/support/src/test/java/tests/support/
DSupport_GetLocal.java40 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/
DAsynchronousFileChannelTest.java140 File temp = File.createTempFile("AFCTest_tempfile", ""); in createTemporaryFile() local
143 try (FileOutputStream fos = new FileOutputStream(temp)) { in createTemporaryFile()
151 return temp; in createTemporaryFile()
155 File temp = File.createTempFile("AFCTest_tempfile", ""); in createTemporaryFile() local
157 try (FileOutputStream fos = new FileOutputStream(temp)) { in createTemporaryFile()
161 return temp; in createTemporaryFile()
166 File temp = createTemporaryFile(256); in testOpen_truncate() local
167 assertEquals(256, temp.length()); in testOpen_truncate()
169 AsynchronousFileChannel afc = AsynchronousFileChannel.open(temp.toPath(), in testOpen_truncate()
173 assertEquals(0, temp.length()); in testOpen_truncate()
[all …]
/libcore/ojluni/src/main/java/java/time/temporal/
DTemporalAdjusters.java351 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/main/java/sun/security/x509/
DAVA.java174 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 …]
DGeneralNames.java119 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/test/java/util/stream/test/org/openjdk/tests/java/util/
DNullArgsTestCase.java59 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/
DECFieldF2m.java98 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/
DListResourceBundle.java196 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/
DPKCS9Attribute.java605 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/sun/nio/ch/
DPollArrayWrapper.java102 PollArrayWrapper temp = new PollArrayWrapper(newSize); in grow() local
106 replaceEntry(this, i, temp, i); in grow()
110 pollArray = temp.pollArray; in grow()
DAbstractPollSelectorImpl.java149 SelectionKeyImpl temp[] = new SelectionKeyImpl[newSize]; in implRegister() local
152 temp[i] = channelArray[i]; in implRegister()
153 channelArray = temp; in implRegister()
/libcore/ojluni/src/main/java/java/net/
DSocketInputStream.java54 private byte temp[]; field in SocketInputStream
228 temp = new byte[1]; in read()
229 int n = read(temp, 0, 1); in read()
233 return temp[0] & 0xff; in read()
DSocketOutputStream.java52 private byte temp[] = new byte[1]; field in SocketOutputStream
139 temp[0] = (byte)b; in write()
140 socketWrite(temp, 0, 1); in write()
/libcore/ojluni/src/main/java/sun/util/resources/
DOpenListResourceBundle.java138 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/
DFilterInputStreamTest.java99 File temp = File.createTempFile("FilterInputStreamTest", "tst"); in setUp() local
100 fileName = temp.getAbsolutePath(); in setUp()
101 OutputStream fos = new FileOutputStream(temp.getAbsolutePath()); in setUp()
DObjectStreamFieldTest.java292 private ObjectStreamClass temp = null; field in MockObjectInputStream
308 temp = osc; in readClassDescriptor()
314 return temp; in getObjectStreamClass()
/libcore/ojluni/src/main/java/java/io/
DDataOutputStream.java68 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/main/java/sun/misc/
DLRUCache.java56 V[] temp = (V[])new Object[size]; in forName() local
57 oa = temp; in forName()
/libcore/ojluni/src/main/java/java/util/concurrent/
DCopyOnWriteArrayList.java658 Object[] temp = new Object[len]; in removeAll() local
662 temp[newlen++] = element; in removeAll()
665 setArray(Arrays.copyOf(temp, newlen)); in removeAll()
697 Object[] temp = new Object[len]; in retainAll() local
701 temp[newlen++] = element; in retainAll()
704 setArray(Arrays.copyOf(temp, newlen)); in retainAll()
1371 Object[] temp = new Object[n]; in removeAll() local
1375 temp[newSize++] = element; in removeAll()
1380 System.arraycopy(temp, 0, newElements, lo, newSize); in removeAll()
1407 Object[] temp = new Object[n]; in retainAll() local
[all …]
/libcore/ojluni/src/main/java/java/math/
DMutableBigInteger.java775 int temp[] = new int[resultLen]; in add() local
778 System.arraycopy(result, 0, temp, 1, result.length); in add()
779 temp[0] = 1; in add()
780 result = temp; in add()
841 int temp[] = new int[resultLen]; in addShifted() local
844 System.arraycopy(result, 0, temp, 1, result.length); in addShifted()
845 temp[0] = 1; in addShifted()
846 result = temp; in addShifted()
2105 MutableBigInteger temp = null;
2125 temp = f; f = g; g = temp;
[all …]
/libcore/support/src/test/java/tests/support/resource/
DSupport_Resources.java151 File temp = new File(resources.toString() + "/local.tmp"); in getExternalLocalFile() local
152 copyLocalFileto(temp, in); in getExternalLocalFile()
153 return temp; in getExternalLocalFile()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
DCharsetEncoderTest.java598 byte[] temp = new byte[surrogate.length + expected.length]; in addSurrogate()
599 System.arraycopy(surrogate, 0, temp, 0, surrogate.length); in addSurrogate()
600 System.arraycopy(expected, 0, temp, surrogate.length, in addSurrogate()
602 expected = temp; in addSurrogate()
768 ByteBuffer temp = ByteBuffer.allocate(200); in testEncodeCharBufferByteBufferboolean() local
770 temp.put(out); in testEncodeCharBufferByteBufferboolean()
771 out = temp; in testEncodeCharBufferByteBufferboolean()
787 temp = ByteBuffer.allocate(200); in testEncodeCharBufferByteBufferboolean()
789 temp.put(out); in testEncodeCharBufferByteBufferboolean()
790 out = temp; in testEncodeCharBufferByteBufferboolean()
/libcore/luni/src/test/java/libcore/dalvik/system/
DBlockGuardTest.java287 File temp = File.createTempFile("foo", "bar"); in testOpen() local
291 FileDescriptor fd = Os.open(temp.getPath(), OsConstants.O_RDWR, 0); in testOpen()
297 fd = Os.open(temp.getPath(), OsConstants.O_RDONLY, 0); in testOpen()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
DJarEntryTest.java178 List<?> temp = certs_bob; in test_getCodeSigners() local
180 certs_alice = temp; in test_getCodeSigners()
/libcore/ojluni/annotations/hiddenapi/sun/security/x509/
DAVA.java86 java.io.Reader in, java.lang.StringBuilder temp) throws java.io.IOException { in parseQuotedString() argument
91 java.io.Reader in, int c, int format, java.lang.StringBuilder temp) in parseString() argument

12