Home
last modified time | relevance | path

Searched refs:mod (Results 1 – 16 of 16) sorted by relevance

/libcore/ojluni/src/main/java/java/lang/reflect/
DModifier.java54 public static boolean isPublic(int mod) { in isPublic() argument
55 return (mod & PUBLIC) != 0; in isPublic()
66 public static boolean isPrivate(int mod) { in isPrivate() argument
67 return (mod & PRIVATE) != 0; in isPrivate()
78 public static boolean isProtected(int mod) { in isProtected() argument
79 return (mod & PROTECTED) != 0; in isProtected()
90 public static boolean isStatic(int mod) { in isStatic() argument
91 return (mod & STATIC) != 0; in isStatic()
102 public static boolean isFinal(int mod) { in isFinal() argument
103 return (mod & FINAL) != 0; in isFinal()
[all …]
DField.java234 int mod = getModifiers(); in toString() local
235 return (((mod == 0) ? "" : (Modifier.toString(mod) + " ")) in toString()
261 int mod = getModifiers(); in toGenericString() local
263 return (((mod == 0) ? "" : (Modifier.toString(mod) + " ")) in toGenericString()
DConstructor.java265 int mod = getModifiers() & Modifier.constructorModifiers(); in toString() local
266 if (mod != 0) { in toString()
267 sb.append(Modifier.toString(mod) + " "); in toString()
329 int mod = getModifiers() & Modifier.constructorModifiers(); in toGenericString() local
330 if (mod != 0) { in toGenericString()
331 sb.append(Modifier.toString(mod) + " "); in toGenericString()
DMethod.java327 int mod = getModifiers() & Modifier.methodModifiers(); in toString() local
328 if (mod != 0) { in toString()
329 sb.append(Modifier.toString(mod)).append(' '); in toString()
397 int mod = getModifiers() & Modifier.methodModifiers(); in toGenericString() local
398 if (mod != 0) { in toGenericString()
399 sb.append(Modifier.toString(mod)).append(' '); in toGenericString()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DBigIntegerTest.java368 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 …]
DBigIntegerModPowTest.java107 …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()
DBigIntegerDivideTest.java621 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/
DCalendarUtils.java135 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()
DBaseCalendar.java482 return (int)CalendarUtils.mod(fixedDate, 7) + SUNDAY; in getDayOfWeekFromFixedDate()
511 d1 = (int)CalendarUtils.mod(d0, 146097L); in getGregorianYearFromFixedDate()
513 d2 = CalendarUtils.mod(d1, 36524); in getGregorianYearFromFixedDate()
515 d3 = CalendarUtils.mod(d2, 1461); in getGregorianYearFromFixedDate()
517 d4 = CalendarUtils.mod(d3, 365) + 1; in getGregorianYearFromFixedDate()
DAbstractCalendar.java312 return fixedDate - CalendarUtils.mod(fd, 7); in getDayOfWeekDateOnOrBefore()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DConstructorTest.java221 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()
DFieldTest.java965 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/
DMessageFormat.java1488 int mod = findKeyword(segments[SEG_MODIFIER], DATE_TIME_MODIFIER_KEYWORDS); in makeFormat() local
1489 if (mod >= 0 && mod < DATE_TIME_MODIFIER_KEYWORDS.length) { in makeFormat()
1491 newFormat = DateFormat.getDateInstance(DATE_TIME_MODIFIERS[mod], in makeFormat()
1494 newFormat = DateFormat.getTimeInstance(DATE_TIME_MODIFIERS[mod], in makeFormat()
/libcore/ojluni/src/main/java/java/util/
DDate.java249 month = CalendarUtils.mod(month, 12); in Date()
324 month = CalendarUtils.mod(month, 12); in UTC()
728 month = CalendarUtils.mod(month, 12); in setMonth()
DSimpleTimeZone.java628 y = (int) CalendarUtils.mod((long) y, 28); in getOffset()
/libcore/luni/src/main/java/java/math/
DBigInteger.java994 return ONE.mod(modulus); in modPow()
1012 public BigInteger mod(BigInteger m) {