Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/lang/reflect/
DModifier.java67 public static boolean isPublic(int mod) { in isPublic() argument
68 return (mod & PUBLIC) != 0; in isPublic()
79 public static boolean isPrivate(int mod) { in isPrivate() argument
80 return (mod & PRIVATE) != 0; in isPrivate()
91 public static boolean isProtected(int mod) { in isProtected() argument
92 return (mod & PROTECTED) != 0; in isProtected()
103 public static boolean isStatic(int mod) { in isStatic() argument
104 return (mod & STATIC) != 0; in isStatic()
115 public static boolean isFinal(int mod) { in isFinal() argument
116 return (mod & FINAL) != 0; in isFinal()
[all …]
DField.java254 int mod = getModifiers(); in toString() local
255 return (((mod == 0) ? "" : (Modifier.toString(mod) + " ")) in toString()
282 int mod = getModifiers(); in toGenericString() local
284 return (((mod == 0) ? "" : (Modifier.toString(mod) + " ")) in toGenericString()
DExecutable.java83 int mod = getModifiers() & mask; in printModifiersIfNonzero() local
85 if (mod != 0 && !isDefault) { in printModifiersIfNonzero()
86 sb.append(Modifier.toString(mod)).append(' '); in printModifiersIfNonzero()
88 int access_mod = mod & Modifier.ACCESS_MODIFIERS; in printModifiersIfNonzero()
93 mod = (mod & ~Modifier.ACCESS_MODIFIERS); in printModifiersIfNonzero()
94 if (mod != 0) in printModifiersIfNonzero()
95 sb.append(Modifier.toString(mod)).append(' '); in printModifiersIfNonzero()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DBigIntegerTest.java364 BigInteger a = zero, mod, inv; in test_modInverseLjava_math_BigInteger() local
366 mod = BigInteger.valueOf(j); in test_modInverseLjava_math_BigInteger()
370 inv = a.modInverse(mod); in test_modInverseLjava_math_BigInteger()
371 assertTrue("bad inverse: " + a + " inv mod " + mod in test_modInverseLjava_math_BigInteger()
372 + " equals " + inv, one.equals(a.multiply(inv).mod( in test_modInverseLjava_math_BigInteger()
373 mod))); in test_modInverseLjava_math_BigInteger()
375 + " inv mod " + mod + " equals " + inv, inv in test_modInverseLjava_math_BigInteger()
376 .compareTo(mod) < 0); in test_modInverseLjava_math_BigInteger()
378 + mod + " equals " + inv, inv in test_modInverseLjava_math_BigInteger()
382 + 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.java481 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()
DAbstractCalendar.java331 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/annotations/hiddenapi/sun/util/calendar/
DCalendarUtils.java62 public static final long mod(long x, long y) { in mod() method in CalendarUtils
67 public static final int mod(int x, int y) { in mod() method in CalendarUtils
/libcore/benchmarks/src/benchmarks/
DBigIntegerBenchmark.java180 if (!lastRes.mod(odd1).equals(base.modPow(exponent, odd1))) { in repeatModPow()
182 + "; lastRes.mod(odd1)=" + lastRes.mod(odd1) + " vs. " in repeatModPow()
186 if (!lastRes.mod(odd2).equals(base.modPow(exponent, odd2))) { in repeatModPow()
207 if (!lastRes.mod(odd1).equals(arg.modInverse(odd1))) { in repeatModInverse()
210 if (!lastRes.mod(odd2).equals(arg.modInverse(odd2))) { in repeatModInverse()
/libcore/ojluni/src/main/java/java/math/
DBigInteger.java919 return u.mod(this).equals(ZERO);
956 u = n.mod(BigInteger.valueOf(p)).intValue();
986 u2 = u.multiply(v).mod(n);
988 v2 = v.square().add(d.multiply(u.square())).mod(n);
996 u2 = u.add(v).mod(n);
1001 v2 = v.add(d.multiply(u)).mod(n);
2621 @NonNull public BigInteger mod(@NonNull BigInteger m) { in mod() method
2693 ? this.mod(m) : this); in modPow()
2734 ? this.mod(m1) : this); in modPow()
2748 result = a1.multiply(m2).multiply(y1).add(a2.multiply(m1).multiply(y2)).mod(m); in modPow()
[all …]
DMutableBigInteger.java2085 static MutableBigInteger modInverseBP2(MutableBigInteger mod, int k) {
2087 return fixup(new MutableBigInteger(1), new MutableBigInteger(mod), k);
2099 private MutableBigInteger modInverse(MutableBigInteger mod) {
2100 MutableBigInteger p = new MutableBigInteger(mod);
2208 MutableBigInteger mod = new MutableBigInteger(b);
2260 mod.subtract(t1);
2261 return mod;
/libcore/ojluni/src/main/java/java/text/
DMessageFormat.java1500 int mod = findKeyword(segments[SEG_MODIFIER], DATE_TIME_MODIFIER_KEYWORDS); in makeFormat() local
1501 if (mod >= 0 && mod < DATE_TIME_MODIFIER_KEYWORDS.length) { in makeFormat()
1503 newFormat = DateFormat.getDateInstance(DATE_TIME_MODIFIERS[mod], in makeFormat()
1506 newFormat = DateFormat.getTimeInstance(DATE_TIME_MODIFIERS[mod], in makeFormat()
/libcore/ojluni/src/main/java/java/time/format/
DParsed.java433 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/
DDate.java251 month = CalendarUtils.mod(month, 12); in Date()
326 month = CalendarUtils.mod(month, 12); in UTC()
733 month = CalendarUtils.mod(month, 12); in setMonth()
DSimpleTimeZone.java628 y = (int) CalendarUtils.mod((long) y, 28); in getOffset()
/libcore/api/
Dcurrent.txt4797 method @NonNull public java.math.BigInteger mod(@NonNull java.math.BigInteger);