Home
last modified time | relevance | path

Searched refs:temp (Results 1 – 25 of 26) 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/main/java/org/apache/harmony/security/asn1/
DASN1GeneralizedTime.java89 String temp = sdf.format(out.content); in setEncodingContent() local
93 while (((nullId = temp.lastIndexOf('0', currLength = temp.length() - 1)) != -1) in setEncodingContent()
95 temp = temp.substring(0, nullId); in setEncodingContent()
98 if (temp.charAt(currLength) == '.') { in setEncodingContent()
99 temp = temp.substring(0, currLength); in setEncodingContent()
102 out.content = (temp + "Z").getBytes(StandardCharsets.UTF_8); in setEncodingContent()
/libcore/luni/src/main/java/java/math/
DDivision.java56 long temp = (rem << 32) | (dividend[i] & 0xffffffffL); in divideArrayByInt() local
58 if (temp >= 0) { in divideArrayByInt()
59 quot = (temp / bLong); in divideArrayByInt()
60 rem = (temp % bLong); in divideArrayByInt()
66 long aPos = temp >>> 1; in divideArrayByInt()
71 rem = (rem << 1) + (temp & 1); in divideArrayByInt()
DConversion.java83 int[] temp = new int[numberLength]; in bigInteger2String() local
84 System.arraycopy(digits, 0, temp, 0, numberLength); in bigInteger2String()
93 resDigit = Division.divideArrayByInt(temp, temp, tempLen, in bigInteger2String()
104 for (i = tempLen - 1; (i > 0) && (temp[i] == 0); i--) { in bigInteger2String()
108 if ((tempLen == 1) && (temp[0] == 0)) { // the quotient is 0 in bigInteger2String()
202 int[] temp = new int[numberLength]; in toDecimalScaledString() local
204 System.arraycopy(digits, 0, temp, 0, tempLen); in toDecimalScaledString()
212 + (temp[i1] & 0xFFFFFFFFL); in toDecimalScaledString()
214 temp[i1] = (int) res; in toDecimalScaledString()
227 for (; temp[j] == 0; j--) { in toDecimalScaledString()
DBigInteger.java1076 BigInteger temp = this;
1101 int digit = -temp.digits[digitIndex];
1110 digit = ~temp.digits[digitIndex];
1121 int digit = temp.digits[digitIndex];
/libcore/luni/src/main/java/org/apache/harmony/security/provider/crypto/
DSHA1Impl.java81 int temp; in computeHash() local
93 temp = arrW[t-3] ^ arrW[t-8] ^ arrW[t-14] ^ arrW[t-16]; in computeHash()
94 arrW[t] = ( temp<<1 ) | ( temp>>>31 ); in computeHash()
99 temp = ( ( a<<5 ) | ( a>>>27 ) ) + in computeHash()
106 a = temp; in computeHash()
110 temp = ((( a<<5 ) | ( a>>>27 ))) + (b ^ c ^ d) + (e + arrW[t] + 0x6ED9EBA1) ; in computeHash()
115 a = temp; in computeHash()
119 temp = (( a<<5 ) | ( a>>>27 )) + ((b & c) | (b & d) | (c & d)) + in computeHash()
125 a = temp; in computeHash()
129 temp = ((( a<<5 ) | ( a>>>27 ))) + (b ^ c ^ d) + (e + arrW[t] + 0xCA62C1D6) ; in computeHash()
[all …]
/libcore/luni/src/main/java/java/io/
DDataInputStream.java67 int temp = in.read(); in readBoolean() local
68 if (temp < 0) { in readBoolean()
71 return temp != 0; in readBoolean()
75 int temp = in.read(); in readByte() local
76 if (temp < 0) { in readByte()
79 return (byte) temp; in readByte()
157 int temp = in.read(); in readUnsignedByte() local
158 if (temp < 0) { in readUnsignedByte()
161 return temp; in readUnsignedByte()
DRandomAccessFile.java303 int temp = this.read(); in readBoolean() local
304 if (temp < 0) { in readBoolean()
307 return temp != 0; in readBoolean()
323 int temp = this.read(); in readByte() local
324 if (temp < 0) { in readByte()
327 return (byte) temp; in readByte()
531 int temp = this.read(); in readUnsignedByte() local
532 if (temp < 0) { in readUnsignedByte()
535 return temp; in readUnsignedByte()
DByteArrayInputStream.java186 int temp = pos;
188 return pos - temp;
/libcore/luni/src/main/java/java/util/prefs/
DAbstractPreferences.java563 AbstractPreferences temp; in nodeImpl() local
566 temp = currentNode.cachedNode.get(name); in nodeImpl()
567 if (temp == null) { in nodeImpl()
568 temp = getNodeFromBackend(createNew, currentNode, name); in nodeImpl()
571 currentNode = temp; in nodeImpl()
584 AbstractPreferences temp; in getNodeFromBackend() local
586 temp = currentNode.childSpi(name); in getNodeFromBackend()
587 currentNode.cachedNode.put(name, temp); in getNodeFromBackend()
588 if (temp.newNode && currentNode.nodeChangeListeners.size() > 0) { in getNodeFromBackend()
589 currentNode.notifyChildAdded(temp); in getNodeFromBackend()
[all …]
/libcore/luni/src/main/java/java/util/jar/
DJarInputStream.java86 Attributes temp = new Attributes(3); in JarInputStream() local
87 temp.map.put("hidden", null); in JarInputStream()
88 mEntry.setAttributes(temp); in JarInputStream()
/libcore/support/src/test/java/tests/support/resource/
DSupport_Resources.java155 File temp = new File(resources.toString() + "/local.tmp"); in getExternalLocalFile() local
156 copyLocalFileto(temp, in); in getExternalLocalFile()
157 return temp; in getExternalLocalFile()
/libcore/libdvm/src/main/java/java/lang/
DClassLoader.java315 byte[] temp = new byte[b.remaining()]; in defineClass()
316 b.get(temp); in defineClass()
317 return defineClass(name, temp, 0, temp.length, protectionDomain); in defineClass()
DClass.java277 Class<?>[] temp = getDeclaredClasses(c, true); in getClasses() local
278 if (temp.length != 0) { in getClasses()
279 result = arraycopy(new Class[result.length + temp.length], result, temp); in getClasses()
/libcore/luni/src/main/java/java/net/
DURI.java442 String temp = authority; in parseAuthority() local
443 int index = temp.indexOf('@'); in parseAuthority()
447 tempUserInfo = temp.substring(0, index); in parseAuthority()
449 temp = temp.substring(index + 1); // host[:port] is left in parseAuthority()
453 index = temp.lastIndexOf(':'); in parseAuthority()
454 int endIndex = temp.indexOf(']'); in parseAuthority()
460 tempHost = temp.substring(0, index); in parseAuthority()
462 if (index < (temp.length() - 1)) { // port part is not empty in parseAuthority()
464 tempPort = Integer.parseInt(temp.substring(index + 1)); in parseAuthority()
481 tempHost = temp; in parseAuthority()
/libcore/libart/src/main/java/java/lang/
DClassLoader.java327 byte[] temp = new byte[b.remaining()]; in defineClass()
328 b.get(temp); in defineClass()
329 return defineClass(name, temp, 0, temp.length, protectionDomain); in defineClass()
/libcore/luni/src/main/java/java/util/
DProperties.java376 String temp = new String(buf, 0, offset); in load() local
377 put(temp.substring(0, keyLength), temp in load()
429 String temp = new String(buf, 0, offset); in load() local
430 String key = temp.substring(0, keyLength); in load()
431 String value = temp.substring(keyLength); in load()
DCollections.java1802 Object temp = array[i];
1804 array[index] = temp;
1990 Object temp = list.get(0);
1994 temp = list.set(index, temp);
1997 temp = list.get(beginIndex);
/libcore/luni/src/main/java/java/util/zip/
DZipInputStream.java129 Attributes temp = ((JarEntry) currentEntry).getAttributes(); in closeEntry() local
130 if (temp != null && temp.containsKey("hidden")) { in closeEntry()
/libcore/harmony-tests/src/test/java/tests/api/java/nio/charset/
DCharsetEncoderTest.java608 byte[] temp = new byte[surrogate.length + expected.length]; in addSurrogate()
609 System.arraycopy(surrogate, 0, temp, 0, surrogate.length); in addSurrogate()
610 System.arraycopy(expected, 0, temp, surrogate.length, in addSurrogate()
612 expected = temp; in addSurrogate()
778 ByteBuffer temp = ByteBuffer.allocate(200); in testEncodeCharBufferByteBufferboolean() local
780 temp.put(out); in testEncodeCharBufferByteBufferboolean()
781 out = temp; in testEncodeCharBufferByteBufferboolean()
797 temp = ByteBuffer.allocate(200); in testEncodeCharBufferByteBufferboolean()
799 temp.put(out); in testEncodeCharBufferByteBufferboolean()
800 out = temp; in testEncodeCharBufferByteBufferboolean()
/libcore/luni/src/main/java/java/util/logging/
DLogger.java1031 Logger temp = this; in log() local
1032 Logger theParent = temp.parent; in log()
1033 while (theParent != null && temp.getUseParentHandlers()) { in log()
1038 temp = theParent; in log()
1039 theParent = temp.parent; in log()
/libcore/luni/src/main/java/java/text/
DBidi.java282 Bidi temp = new Bidi(text, textStart, null, 0, paragraphLength, flags); in createUBiDi() local
284 System.arraycopy(temp.offsetLevel, 0, realEmbeddings, 0, paragraphLength); in createUBiDi()
/libcore/luni/src/main/native/
Dcbigint.cpp284 uint64_t* temp; in multiplyHighPrecision() local
290 temp = arg1; in multiplyHighPrecision()
292 arg2 = temp; in multiplyHighPrecision()
/libcore/luni/src/test/java/libcore/java/text/
DOldSimpleDateFormatTest.java286 Calendar temp = new GregorianCalendar(); in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition() local
287 temp.set(Calendar.MILLISECOND, 961); in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition()
289 test.test(" SS", temp, " 961", DateFormat.MILLISECOND_FIELD); in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition()
/libcore/harmony-tests/src/test/java/tests/api/java/math/
DBigIntegerTest.java905 BigInteger[] temp = i1.divideAndRemainder(i2); in testDiv() local
908 .equals(temp[0])); in testDiv()
910 .equals(temp[1])); in testDiv()

12