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

12

/libcore/luni/src/main/java/java/math/
H A DDivision.java56 long temp = (rem << 32) | (dividend[i] & 0xffffffffL);
58 if (temp >= 0) {
59 quot = (temp / bLong);
60 rem = (temp % bLong);
66 long aPos = temp >>> 1;
71 rem = (rem << 1) + (temp & 1);
H A DConversion.java83 int[] temp = new int[numberLength];
84 System.arraycopy(digits, 0, temp, 0, numberLength);
93 resDigit = Division.divideArrayByInt(temp, temp, tempLen,
104 for (i = tempLen - 1; (i > 0) && (temp[i] == 0); i--) {
108 if ((tempLen == 1) && (temp[0] == 0)) { // the quotient is 0
202 int[] temp = new int[numberLength];
204 System.arraycopy(digits, 0, temp, 0, tempLen);
212 + (temp[i1] & 0xFFFFFFFFL);
214 temp[i
[all...]
/libcore/support/src/test/java/tests/support/
H A DSupport_GetLocal.java40 File temp = cache.get(url);
41 if (temp == null) {
43 temp = File.createTempFile("hyts_local", ".tmp", null);
44 temp.deleteOnExit();
45 FileOutputStream out = new FileOutputStream(temp);
53 cache.put(url, temp);
55 return temp;
60 File temp = cache.get(url);
61 if (temp == null) {
63 temp
[all...]
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/
H A DNullArgsTestCase.java59 Object[] temp = Arrays.copyOf(args, args.length);
60 temp[i] = null;
62 sink.accept(temp);
/libcore/ojluni/src/main/native/
H A Djava_props_md.c116 char *temp = malloc(strlen(envstring) + strlen(current) + 2); local
117 strcpy(temp, name);
118 strcat(temp, "=");
119 strcat(temp, current);
120 strcat(temp, ":");
121 strcat(temp, value);
122 putenv(temp);
138 char temp[64]; local
168 strcpy(temp, lc);
169 p = strstr(temp, "
[all...]
/libcore/luni/src/test/java/libcore/java/nio/channels/
H A DAsynchronousFileChannelTest.java140 File temp = File.createTempFile("AFCTest_tempfile", "");
143 try (FileOutputStream fos = new FileOutputStream(temp)) {
151 return temp;
155 File temp = File.createTempFile("AFCTest_tempfile", "");
157 try (FileOutputStream fos = new FileOutputStream(temp)) {
161 return temp;
166 File temp = createTemporaryFile(256);
167 assertEquals(256, temp.length());
169 AsynchronousFileChannel afc = AsynchronousFileChannel.open(temp.toPath(),
173 assertEquals(0, temp
[all...]
/libcore/ojluni/src/main/java/java/security/spec/
H A DECFieldF2m.java98 BigInteger temp = this.rp.clearBit(0).clearBit(m);
101 int index = temp.getLowestSetBit();
103 temp = temp.clearBit(index);
/libcore/ojluni/src/main/java/java/util/
H A DListResourceBundle.java196 HashMap<String,Object> temp = new HashMap<>(contents.length);
204 temp.put(key, value);
206 lookup = temp;
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DPollArrayWrapper.java102 PollArrayWrapper temp = new PollArrayWrapper(newSize);
106 replaceEntry(this, i, temp, i);
110 pollArray = temp.pollArray;
H A DAbstractPollSelectorImpl.java149 SelectionKeyImpl temp[] = new SelectionKeyImpl[newSize];
152 temp[i] = channelArray[i];
153 channelArray = temp;
/libcore/ojluni/src/main/java/sun/security/x509/
H A DGeneralNames.java119 DerOutputStream temp = new DerOutputStream();
121 gn.encode(temp);
123 out.write(DerValue.tag_Sequence, temp);
H A DAVA.java174 StringBuilder temp = new StringBuilder();
186 temp.append((char)c);
189 oid = AVAKeyword.getOID(temp.toString(), format, keywordMap);
196 temp.setLength(0);
219 value = parseQuotedString(in, temp);
221 value = parseString(in, c, format, temp);
313 (Reader in, StringBuilder temp) throws IOException {
352 temp.append(hexString);
358 temp.append((char)c);
365 temp
312 parseQuotedString(Reader in, StringBuilder temp) argument
399 parseString(Reader in, int c, int format, StringBuilder temp) argument
[all...]
/libcore/ojluni/src/main/java/java/time/temporal/
H A DTemporalAdjusters.java351 Temporal temp = temporal.with(DAY_OF_MONTH, 1);
352 int curDow = temp.get(DAY_OF_WEEK);
355 return temp.plus(dowDiff, DAYS);
359 Temporal temp = temporal.with(DAY_OF_MONTH, temporal.range(DAY_OF_MONTH).getMaximum());
360 int curDow = temp.get(DAY_OF_WEEK);
364 return temp.plus(daysDiff, DAYS);
/libcore/ojluni/src/main/java/java/net/
H A DSocketOutputStream.java52 private byte temp[] = new byte[1]; field in class:SocketOutputStream
139 temp[0] = (byte)b;
140 socketWrite(temp, 0, 1);
H A DSocketInputStream.java54 private byte temp[]; field in class:SocketInputStream
228 temp = new byte[1];
229 int n = read(temp, 0, 1);
233 return temp[0] & 0xff;
/libcore/ojluni/src/main/java/sun/util/resources/
H A DOpenListResourceBundle.java138 Map<String, Object> temp = createMap(contents.length);
146 temp.put(key, value);
150 lookup = temp;
/libcore/ojluni/src/main/java/sun/misc/
H A DLRUCache.java56 V[] temp = (V[])new Object[size];
57 oa = temp;
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DFilterInputStreamTest.java99 File temp = File.createTempFile("FilterInputStreamTest", "tst");
100 fileName = temp.getAbsolutePath();
101 OutputStream fos = new FileOutputStream(temp.getAbsolutePath());
H A DObjectStreamFieldTest.java292 private ObjectStreamClass temp = null; field in class:MockObjectInputStream
308 temp = osc;
314 return temp;
/libcore/ojluni/src/main/java/java/io/
H A DDataOutputStream.java68 int temp = written + value;
69 if (temp < 0) {
70 temp = Integer.MAX_VALUE;
72 written = temp;
/libcore/ojluni/src/main/java/sun/security/pkcs/
H A DPKCS9Attribute.java605 DerOutputStream temp = new DerOutputStream();
606 temp.putOID(oid);
609 temp.write((byte[])value);
622 temp.putOrderedSetOf(DerValue.tag_Set, temps);
630 temp.write(DerValue.tag_Set, temp2.toByteArray());
638 temp.write(DerValue.tag_Set, temp2.toByteArray());
646 temp.write(DerValue.tag_Set, temp2.toByteArray());
651 temp.putOrderedSetOf(DerValue.tag_Set, (DerEncoder[]) value);
658 temp.write(DerValue.tag_Set, temp2.toByteArray());
672 temp
[all...]
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DCopyOnWriteArrayList.java661 // temp array holds those elements we know we want to keep
663 Object[] temp = new Object[len];
667 temp[newlen++] = element;
670 setArray(Arrays.copyOf(temp, newlen));
700 // temp array holds those elements we know we want to keep
702 Object[] temp = new Object[len];
706 temp[newlen++] = element;
709 setArray(Arrays.copyOf(temp, newlen));
1376 Object[] temp = new Object[n];
1380 temp[newSiz
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
H A DJarEntryTest.java178 List<?> temp = certs_bob;
180 certs_alice = temp;
/libcore/support/src/test/java/tests/support/resource/
H A DSupport_Resources.java91 throw new RuntimeException("Unable to create temp folder: " + folder, e);
151 File temp = new File(resources.toString() + "/local.tmp");
152 copyLocalFileto(temp, in);
153 return temp;
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
H A DCharsetEncoderTest.java598 byte[] temp = new byte[surrogate.length + expected.length];
599 System.arraycopy(surrogate, 0, temp, 0, surrogate.length);
600 System.arraycopy(expected, 0, temp, surrogate.length,
602 expected = temp;
768 ByteBuffer temp = ByteBuffer.allocate(200);
770 temp.put(out);
771 out = temp;
787 temp = ByteBuffer.allocate(200);
789 temp.put(out);
790 out = temp;
[all...]

Completed in 703 milliseconds

12