/libcore/luni/src/test/java/libcore/java/security/cert/ |
D | CRLReasonTest.java | 25 assertEquals("UNSPECIFIED", 0, CRLReason.UNSPECIFIED.ordinal()); in testCryptoPrimitive_ordinal_ExpectedValues() 26 assertEquals("KEY_COMPROMISE", 1, CRLReason.KEY_COMPROMISE.ordinal()); in testCryptoPrimitive_ordinal_ExpectedValues() 27 assertEquals("CA_COMPROMISE", 2, CRLReason.CA_COMPROMISE.ordinal()); in testCryptoPrimitive_ordinal_ExpectedValues() 28 assertEquals("AFFILIATION_CHANGED", 3, CRLReason.AFFILIATION_CHANGED.ordinal()); in testCryptoPrimitive_ordinal_ExpectedValues() 29 assertEquals("SUPERSEDED", 4, CRLReason.SUPERSEDED.ordinal()); in testCryptoPrimitive_ordinal_ExpectedValues() 30 assertEquals("CESSATION_OF_OPERATION", 5, CRLReason.CESSATION_OF_OPERATION.ordinal()); in testCryptoPrimitive_ordinal_ExpectedValues() 31 assertEquals("CERTIFICATE_HOLD", 6, CRLReason.CERTIFICATE_HOLD.ordinal()); in testCryptoPrimitive_ordinal_ExpectedValues() 32 assertEquals("UNUSED", 7, CRLReason.UNUSED.ordinal()); in testCryptoPrimitive_ordinal_ExpectedValues() 33 assertEquals("REMOVE_FROM_CRL", 8, CRLReason.REMOVE_FROM_CRL.ordinal()); in testCryptoPrimitive_ordinal_ExpectedValues() 34 assertEquals("PRIVILEGE_WITHDRAWN", 9, CRLReason.PRIVILEGE_WITHDRAWN.ordinal()); in testCryptoPrimitive_ordinal_ExpectedValues() [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | JumboEnumSet.java | 55 int fromIndex = from.ordinal() >>> 6; in addRange() 56 int toIndex = to.ordinal() >>> 6; in addRange() 59 elements[fromIndex] = (-1L >>> (from.ordinal() - to.ordinal() - 1)) in addRange() 60 << from.ordinal(); in addRange() 62 elements[fromIndex] = (-1L << from.ordinal()); in addRange() 65 elements[toIndex] = -1L >>> (63 - to.ordinal()); in addRange() 67 size = to.ordinal() - from.ordinal() + 1; in addRange() 187 int eOrdinal = ((Enum<?>)e).ordinal(); in contains() 204 int eOrdinal = e.ordinal(); in add() 227 int eOrdinal = ((Enum<?>)e).ordinal(); in remove()
|
D | RegularEnumSet.java | 49 elements = (-1L >>> (from.ordinal() - to.ordinal() - 1)) << from.ordinal(); in addRange() 147 return (elements & (1L << ((Enum<?>)e).ordinal())) != 0; in contains() 164 elements |= (1L << ((Enum<?>)e).ordinal()); in add() 182 elements &= ~(1L << ((Enum<?>)e).ordinal()); in remove()
|
D | EnumMap.java | 222 return isValidKey(key) && vals[((Enum<?>)key).ordinal()] != null; in containsKey() 227 maskNull(value).equals(vals[((Enum<?>)key).ordinal()]); in containsMapping() 247 unmaskNull(vals[((Enum<?>)key).ordinal()]) : null); in get() 269 int index = key.ordinal(); in put() 289 int index = ((Enum<?>)key).ordinal(); in remove() 300 int index = ((Enum<?>)key).ordinal(); in removeMapping()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Enum.java | 95 private final int ordinal; field in Enum 108 public final int ordinal() { in ordinal() method in Enum 109 return ordinal; in ordinal() 123 protected Enum(String name, int ordinal) { in Enum() argument 125 this.ordinal = ordinal; in Enum() 187 return self.ordinal - other.ordinal; in compareTo()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | TextStyle.java | 134 return (ordinal() & 1) == 1; in isStandalone() 142 return TextStyle.values()[ordinal() | 1]; in asStandalone() 151 return TextStyle.values()[ordinal() & ~1]; in asNormal()
|
D | SignStyle.java | 126 switch (ordinal()) { in parse()
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | Enum.java | 35 protected Enum(java.lang.String name, int ordinal) { in Enum() argument 43 public final int ordinal() { in ordinal() method in Enum 107 private final int ordinal; field in Enum 110 ordinal = 0;
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | ChronoField.java | 699 return ordinal() >= DAY_OF_WEEK.ordinal() && ordinal() <= ERA.ordinal(); in isDateBased() 711 return ordinal() < DAY_OF_WEEK.ordinal(); in isTimeBased()
|
D | TemporalAdjusters.java | 346 public static TemporalAdjuster dayOfWeekInMonth(int ordinal, DayOfWeek dayOfWeek) { in dayOfWeekInMonth() argument 349 if (ordinal >= 0) { in dayOfWeekInMonth() 354 dowDiff += (ordinal - 1L) * 7L; // safe from overflow in dayOfWeekInMonth() 363 daysDiff -= (-ordinal - 1L) * 7L; // safe from overflow in dayOfWeekInMonth()
|
D | IsoFields.java | 600 int dow0 = date.getDayOfWeek().ordinal(); in getWeek() 625 int dow = date.getDayOfWeek().ordinal(); in getWeekBasedYear() 630 int dow = date.getDayOfWeek().ordinal(); in getWeekBasedYear()
|
D | WeekFields.java | 642 return firstDayOfWeek.ordinal() * 7 + minimalDays; in hashCode()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | JapaneseEra.java | 216 return ERA_CONFIG[ordinal(eraValue)]; in getPrivateEra() 243 return KNOWN_ERAS[ordinal(japaneseEra)]; in of() 349 private static int ordinal(int eraValue) { in ordinal() method in JapaneseEra 404 return ERA_CONFIG[ordinal(getValue())].getAbbreviation(); in getAbbreviation() 408 return ERA_CONFIG[ordinal(getValue())].getName(); in getName()
|
D | IsoEra.java | 150 return ordinal(); in getValue()
|
D | MinguoEra.java | 152 return ordinal(); in getValue()
|
D | ThaiBuddhistEra.java | 152 return ordinal(); in getValue()
|
/libcore/ojluni/annotations/sdk/nullability/java/lang/ |
D | Enum.annotated.java | 34 protected Enum(@libcore.util.NonNull java.lang.String name, int ordinal) { throw new RuntimeExcepti… in Enum() argument 38 public final int ordinal() { throw new RuntimeException("Stub!"); } in ordinal() method in Enum
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKTemporalAdjusters.java | 339 for (int ordinal = 1; ordinal <= 5; ordinal++) { in test_dayOfWeekInMonth_positive() 342 … LocalDate test = (LocalDate) TemporalAdjusters.dayOfWeekInMonth(ordinal, dow).adjustInto(date); in test_dayOfWeekInMonth_positive() 343 assertEquals(test, expected.plusWeeks(ordinal - 1)); in test_dayOfWeekInMonth_positive() 395 for (int ordinal = 0; ordinal < 5; ordinal++) { in test_dayOfWeekInMonth_negative() 398 …LocalDate test = (LocalDate) TemporalAdjusters.dayOfWeekInMonth(-1 - ordinal, dow).adjustInto(date… in test_dayOfWeekInMonth_negative() 399 assertEquals(test, expected.minusWeeks(ordinal)); in test_dayOfWeekInMonth_negative()
|
/libcore/ojluni/src/main/java/java/time/ |
D | Month.java | 236 return ordinal() + 1; in getValue() 394 return ENUMS[(ordinal() + (amount + 12)) % 12]; in plus() 539 return ENUMS[(ordinal() / 3) * 3]; in firstMonthOfQuarter()
|
D | DayOfWeek.java | 209 return ordinal() + 1; in getValue() 367 return ENUMS[(ordinal() + (amount + 7)) % 7]; in plus()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | CopticEra.java | 118 return ordinal(); in getValue()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | EnumTest.java | 107 assertEquals(0, larry.ordinal()); in test_ordinal() 108 assertEquals(1, moe.ordinal()); in test_ordinal() 109 assertEquals(2, Sample.CURLY.ordinal()); in test_ordinal()
|
/libcore/ojluni/src/main/java/java/time/zone/ |
D | ZoneOffsetTransitionRule.java | 314 (timeDefinition.ordinal() << 12) + // 2 bits in writeExternal() 538 (month.ordinal() << 11) + ((dom + 32) << 5) + in hashCode() 539 ((dow == null ? 7 : dow.ordinal()) << 2) + (timeDefinition.ordinal()); in hashCode()
|
/libcore/ojluni/src/main/java/java/awt/font/ |
D | NumericShaper.java | 315 int index = script.ordinal(); in toRangeIndex() 326 int index = range.ordinal(); in toRangeMask()
|
/libcore/ojluni/src/main/java/sun/util/logging/ |
D | PlatformLogger.java | 132 return LEVEL_VALUES[this.ordinal()]; in intValue()
|