/libcore/ojluni/src/main/java/java/lang/reflect/ |
D | Modifier.java | 53 public static boolean isPublic(int mod) { in isPublic() argument 54 return (mod & PUBLIC) != 0; in isPublic() 65 public static boolean isPrivate(int mod) { in isPrivate() argument 66 return (mod & PRIVATE) != 0; in isPrivate() 77 public static boolean isProtected(int mod) { in isProtected() argument 78 return (mod & PROTECTED) != 0; in isProtected() 89 public static boolean isStatic(int mod) { in isStatic() argument 90 return (mod & STATIC) != 0; in isStatic() 101 public static boolean isFinal(int mod) { in isFinal() argument 102 return (mod & FINAL) != 0; in isFinal() [all …]
|
D | Field.java | 239 int mod = getModifiers(); in toString() local 240 return (((mod == 0) ? "" : (Modifier.toString(mod) + " ")) in toString() 267 int mod = getModifiers(); in toGenericString() local 269 return (((mod == 0) ? "" : (Modifier.toString(mod) + " ")) in toGenericString()
|
D | Executable.java | 78 int mod = getModifiers() & mask; in printModifiersIfNonzero() local 80 if (mod != 0 && !isDefault) { in printModifiersIfNonzero() 81 sb.append(Modifier.toString(mod)).append(' '); in printModifiersIfNonzero() 83 int access_mod = mod & Modifier.ACCESS_MODIFIERS; in printModifiersIfNonzero() 88 mod = (mod & ~Modifier.ACCESS_MODIFIERS); in printModifiersIfNonzero() 89 if (mod != 0) in printModifiersIfNonzero() 90 sb.append(Modifier.toString(mod)).append(' '); in printModifiersIfNonzero()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | BigIntegerTest.java | 368 BigInteger a = zero, mod, inv; in test_modInverseLjava_math_BigInteger() local 370 mod = BigInteger.valueOf(j); in test_modInverseLjava_math_BigInteger() 374 inv = a.modInverse(mod); in test_modInverseLjava_math_BigInteger() 375 assertTrue("bad inverse: " + a + " inv mod " + mod in test_modInverseLjava_math_BigInteger() 376 + " equals " + inv, one.equals(a.multiply(inv).mod( in test_modInverseLjava_math_BigInteger() 377 mod))); in test_modInverseLjava_math_BigInteger() 379 + " inv mod " + mod + " equals " + inv, inv in test_modInverseLjava_math_BigInteger() 380 .compareTo(mod) < 0); in test_modInverseLjava_math_BigInteger() 382 + mod + " equals " + inv, inv in test_modInverseLjava_math_BigInteger() 386 + mod, !one.equals(a.gcd(mod))); in test_modInverseLjava_math_BigInteger() [all …]
|
D | BigIntegerModPowTest.java | 107 …BigInteger[] mod = new BigInteger[] {new BigInteger("2"), new BigInteger("10"), new BigInteger("21… in testModPowZeroExp() local 110 for (int j = 0; j < mod.length; ++j) { in testModPowZeroExp() 111 assertEquals(base[i] + " modePow(" + exp + ", " + mod[j] in testModPowZeroExp() 113 base[i].modPow(exp, mod[j])); in testModPowZeroExp() 117 mod = new BigInteger[] {new BigInteger("1")}; in testModPowZeroExp() 119 for (int j = 0; j < mod.length; ++j) { in testModPowZeroExp() 120 assertEquals(base[i] + " modePow(" + exp + ", " + mod[j] in testModPowZeroExp() 122 base[i].modPow(exp, mod[j])); in testModPowZeroExp()
|
D | BigIntegerDivideTest.java | 621 aNumber.mod(bNumber); in testCase22() 638 BigInteger result = aNumber.mod(bNumber); in testCase23() 658 BigInteger result = aNumber.mod(bNumber); in testCase24()
|
/libcore/ojluni/src/main/java/sun/util/calendar/ |
D | CalendarUtils.java | 135 public static final long mod(long x, long y) { in mod() method in CalendarUtils 139 public static final int mod(int x, int y) { in mod() method in CalendarUtils 144 int z = mod(x, y); in amod() 149 long z = mod(x, y); in amod()
|
D | BaseCalendar.java | 481 return (int)CalendarUtils.mod(fixedDate, 7) + SUNDAY; in getDayOfWeekFromFixedDate() 510 d1 = (int)CalendarUtils.mod(d0, 146097L); in getGregorianYearFromFixedDate() 512 d2 = CalendarUtils.mod(d1, 36524); in getGregorianYearFromFixedDate() 514 d3 = CalendarUtils.mod(d2, 1461); in getGregorianYearFromFixedDate() 516 d4 = CalendarUtils.mod(d3, 365) + 1; in getGregorianYearFromFixedDate()
|
D | AbstractCalendar.java | 329 return fixedDate - CalendarUtils.mod(fd, 7); in getDayOfWeekDateOnOrBefore()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
D | ConstructorTest.java | 221 int mod = 0; in test_getModifiers() local 225 mod = ctor.getModifiers(); in test_getModifiers() 227 ((mod & Modifier.PUBLIC) == Modifier.PUBLIC) in test_getModifiers() 228 && ((mod & Modifier.PRIVATE) == 0)); in test_getModifiers() 236 mod = ctor.getModifiers(); in test_getModifiers() 238 ((mod & Modifier.PRIVATE) == Modifier.PRIVATE) in test_getModifiers() 239 && ((mod & Modifier.PUBLIC) == 0)); in test_getModifiers() 247 mod = ctor.getModifiers(); in test_getModifiers() 249 ((mod & Modifier.PROTECTED) == Modifier.PROTECTED) in test_getModifiers() 250 && ((mod & Modifier.PUBLIC) == 0)); in test_getModifiers()
|
D | FieldTest.java | 965 int mod = f.getModifiers(); in test_getModifiers() local 970 ((mod & mask) == mask) && ((mod & nmask) == 0)); in test_getModifiers()
|
/libcore/ojluni/src/main/java/java/text/ |
D | MessageFormat.java | 1497 int mod = findKeyword(segments[SEG_MODIFIER], DATE_TIME_MODIFIER_KEYWORDS); in makeFormat() local 1498 if (mod >= 0 && mod < DATE_TIME_MODIFIER_KEYWORDS.length) { in makeFormat() 1500 newFormat = DateFormat.getDateInstance(DATE_TIME_MODIFIERS[mod], in makeFormat() 1503 newFormat = DateFormat.getTimeInstance(DATE_TIME_MODIFIERS[mod], in makeFormat()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | Parsed.java | 433 long mod = fieldValues.remove(MINUTE_OF_DAY); in resolveTimeFields() local 435 MINUTE_OF_DAY.checkValidValue(mod); in resolveTimeFields() 437 updateCheckConflict(MINUTE_OF_DAY, HOUR_OF_DAY, mod / 60); in resolveTimeFields() 438 updateCheckConflict(MINUTE_OF_DAY, MINUTE_OF_HOUR, mod % 60); in resolveTimeFields()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Date.java | 251 month = CalendarUtils.mod(month, 12); in Date() 326 month = CalendarUtils.mod(month, 12); in UTC() 733 month = CalendarUtils.mod(month, 12); in setMonth()
|
D | SimpleTimeZone.java | 628 y = (int) CalendarUtils.mod((long) y, 28); in getOffset()
|
/libcore/luni/src/main/java/java/math/ |
D | BigInteger.java | 994 return ONE.mod(modulus); in modPow() 1012 public BigInteger mod(BigInteger m) {
|