/libcore/ojluni/src/main/java/sun/security/util/ |
D | ByteArrayLexOrder.java | 54 int diff; in compare() local 56 diff = (bytes1[i] & 0xFF) - (bytes2[i] & 0xFF); in compare() 57 if (diff != 0) { in compare() 58 return diff; in compare()
|
/libcore/ojluni/src/main/native/ |
D | PollArrayWrapper.c | 47 int diff; in ipoll() local 58 diff = now - start; in ipoll() 59 remaining -= diff; in ipoll() 60 if (diff < 0 || remaining <= 0) { in ipoll()
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestLocalTime.java | 194 long diff = Integer.MAX_VALUE; in now() local 198 diff = test.toNanoOfDay() - expected.toNanoOfDay(); in now() 200 diff = Math.floorMod(NANOS_PER_DAY + diff, NANOS_PER_DAY); in now() 201 if (diff < 100000000) { in now() 207 assertTrue(diff < 100000000, // less than 0.1 sec in now()
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
D | TestCertUtils.java | 314 private String diff = null; field in TestCertUtils.TestCertificate 328 public TestCertificate(String diff) { in TestCertificate() argument 330 this.diff = diff; in TestCertificate() 340 public TestCertificate(String diff, String type) { in TestCertificate() argument 342 this.diff = diff; in TestCertificate() 375 if (this.diff == null) { in equals() 376 return that.diff == null; in equals() 378 return this.diff.equals(that.diff); in equals() 395 if (diff == null) { in writeObject() 399 out.writeUTF(diff); in writeObject() [all …]
|
/libcore/tools/upstream/ |
D | upstream-diff | 59 def run_diff(diff, repositories, rel_paths): argument 78 subprocess.call([diff] + paths) 104 run_diff(args.diff, repositories, args.rel_path)
|
/libcore/ojluni/src/test/java/lang/StrictMath/ |
D | ExactArithTests.java | 119 int diff = StrictMath.subtractExact(x, y); in testIntegerExact() local 122 …fail("FAIL: int StrictMath.subtractExact(" + x + " - " + y + ") = " + diff + "; expected: " + diff… in testIntegerExact() 220 long diff = StrictMath.subtractExact(x, y); in testLongExact() local 221 checkResult("long StrictMath.subtractExact", x, y, diff, resultBig); in testLongExact()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | SSLSessionTest.java | 100 long diff = currentTime - sessionTime; in test_getCreationTime() local 102 diff < 10000); in test_getCreationTime() 112 long diff = currentTime - sessionTime; in test_getLastAccessedTime() local 114 diff < 10000); in test_getLastAccessedTime() 115 assertTrue ("diff should be < 10000 but is " + diff, diff < 10000); in test_getLastAccessedTime()
|
/libcore/ojluni/src/test/java/lang/Math/ |
D | ExactArithTests.java | 95 int diff = Math.subtractExact(x, y); in testIntegerExact() local 98 … fail("FAIL: int Math.subtractExact(" + x + " - " + y + ") = " + diff + "; expected: " + diff2); in testIntegerExact() 245 long diff = Math.subtractExact(x, y); in testLongExact() local 246 checkResult("long Math.subtractExact", x, y, diff, resultBig); in testLongExact()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DecimalStyle.java | 332 int diff = zeroDigit - '0'; in convertNumberToI18N() local 335 array[i] = (char) (array[i] + diff); in convertNumberToI18N()
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ScheduledThreadPoolExecutor.java | 249 long diff = time - x.time; in compareTo() local 250 if (diff < 0) in compareTo() 252 else if (diff > 0) in compareTo() 259 long diff = getDelay(NANOSECONDS) - other.getDelay(NANOSECONDS); in compareTo() local 260 return (diff < 0) ? -1 : (diff > 0) ? 1 : 0; in compareTo()
|
/libcore/ojluni/src/main/java/java/math/ |
D | MutableBigInteger.java | 933 long diff = 0; in subtract() local 942 diff = (a.value[x+a.offset] & LONG_MASK) - in subtract() 943 (b.value[y+b.offset] & LONG_MASK) - ((int)-(diff>>32)); in subtract() 944 result[rstart--] = (int)diff; in subtract() 949 diff = (a.value[x+a.offset] & LONG_MASK) - ((int)-(diff>>32)); in subtract() 950 result[rstart--] = (int)diff; in subtract() 976 long diff = 0; in difference() local 983 diff = (a.value[a.offset+ x] & LONG_MASK) - in difference() 984 (b.value[b.offset+ y] & LONG_MASK) - ((int)-(diff>>32)); in difference() 985 a.value[a.offset+x] = (int)diff; in difference() [all …]
|
D | BigDecimal.java | 4938 int diff = scale - preferredScale; 4939 if(diff < raise) { 4940 return scaledTenPow(raise - diff, qsign, preferredScale);
|
/libcore/metrictests/memory/ |
D | README | 56 # To diff the second heap dump against the first:
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKOffsetDateTime.java | 244 … long diff = Math.abs(test.toLocalTime().toNanoOfDay() - expected.toLocalTime().toNanoOfDay()); in now() local 245 if (diff >= 100000000) { in now() 249 … diff = Math.abs(test.toLocalTime().toNanoOfDay() - expected.toLocalTime().toNanoOfDay()); in now() 251 assertTrue(diff < 100000000); // less than 0.1 secs in now()
|
D | TCKZonedDateTime.java | 233 … long diff = Math.abs(test.toLocalTime().toNanoOfDay() - expected.toLocalTime().toNanoOfDay()); in now() local 234 if (diff >= 100000000) { in now() 238 … diff = Math.abs(test.toLocalTime().toNanoOfDay() - expected.toLocalTime().toNanoOfDay()); in now() 240 assertTrue(diff < 100000000); // less than 0.1 secs in now()
|
D | TCKLocalDateTime.java | 265 … long diff = Math.abs(test.toLocalTime().toNanoOfDay() - expected.toLocalTime().toNanoOfDay()); in now() local 266 if (diff >= 100000000) { in now() 270 … diff = Math.abs(test.toLocalTime().toNanoOfDay() - expected.toLocalTime().toNanoOfDay()); in now() 272 assertTrue(diff < 100000000); // less than 0.1 secs in now()
|
D | TCKInstant.java | 193 long diff = Math.abs(test.toEpochMilli() - expected.toEpochMilli()); in now() local 194 assertTrue(diff < 100); // less than 0.1 secs in now()
|
D | TCKOffsetTime.java | 213 … long diff = Math.abs(test.toLocalTime().toNanoOfDay() - expected.toLocalTime().toNanoOfDay()); in now() local 214 assertTrue(diff < 100000000); // less than 0.1 secs in now()
|