Searched refs:ordinal (Results 1 – 11 of 11) sorted by relevance
/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/lang/ |
D | Enum.java | 94 private final int ordinal; field in Enum 107 public final int ordinal() { in ordinal() method in Enum 108 return ordinal; in ordinal() 122 protected Enum(String name, int ordinal) { in Enum() argument 124 this.ordinal = ordinal; in Enum() 186 return self.ordinal - other.ordinal; in compareTo()
|
/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() 183 int eOrdinal = ((Enum)e).ordinal(); in contains() 200 int eOrdinal = e.ordinal(); in add() 223 int eOrdinal = ((Enum)e).ordinal(); in remove()
|
D | RegularEnumSet.java | 49 elements = (-1L >>> (from.ordinal() - to.ordinal() - 1)) << from.ordinal(); in addRange() 146 return (elements & (1L << ((Enum)e).ordinal())) != 0; in contains() 163 elements |= (1L << ((Enum)e).ordinal()); in add() 181 elements &= ~(1L << ((Enum)e).ordinal()); in remove()
|
D | EnumMap.java | 221 return isValidKey(key) && vals[((Enum)key).ordinal()] != null; in containsKey() 226 maskNull(value).equals(vals[((Enum)key).ordinal()]); in containsMapping() 246 unmaskNull(vals[((Enum)key).ordinal()]) : null); in get() 268 int index = key.ordinal(); in put() 288 int index = ((Enum)key).ordinal(); in remove() 299 int index = ((Enum)key).ordinal(); in removeMapping()
|
/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/luni/src/main/java/java/math/ |
D | MathContext.java | 213 return ((precision << 3) | roundingMode.ordinal()); in hashCode()
|
/libcore/support/src/test/java/libcore/java/security/ |
D | StandardNames.java | 142 if (minimum.ordinal() > maximum.ordinal()) { in provideSslContextEnabledProtocols() 145 int versionsLength = maximum.ordinal() - minimum.ordinal() + 1; in provideSslContextEnabledProtocols() 148 versionNames[i] = TLSVersion.values()[i + minimum.ordinal()].name; in provideSslContextEnabledProtocols()
|
/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 | 136 return levelValues[this.ordinal()]; in intValue()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | EnumSetTest.java | 128 assertEquals(count, (HugeEnumCount) array[count.ordinal()]); in test_iterator_HugeEnumSet() 136 assertEquals(count, (HugeEnumCount) array[count.ordinal()]); in test_iterator_HugeEnumSet()
|