Home
last modified time | relevance | path

Searched refs:rules1 (Results 1 – 5 of 5) sorted by relevance

/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DEraRulesTest.java32 EraRules rules1 = EraRules.getInstance(calType, false); in testAPIs() local
33 if (rules1 == null) { in testAPIs()
41 int numEras1 = rules1.getNumberOfEras(); in testAPIs()
53 int currentIdx = rules1.getCurrentEraIndex(); in testAPIs()
55 … int idx = rules1.getEraIndex(currentYear, cal.get(Calendar.MONTH) + 1, cal.get(Calendar.DATE)); in testAPIs()
61 int eraStartYear = rules1.getStartYear(currentIdx); in testAPIs()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DEraRulesTest.java29 EraRules rules1 = EraRules.getInstance(calType, false); in testAPIs() local
30 if (rules1 == null) { in testAPIs()
38 int numEras1 = rules1.getNumberOfEras(); in testAPIs()
50 int currentIdx = rules1.getCurrentEraIndex(); in testAPIs()
52 … int idx = rules1.getEraIndex(currentYear, cal.get(Calendar.MONTH) + 1, cal.get(Calendar.DATE)); in testAPIs()
58 int eraStartYear = rules1.getStartYear(currentIdx); in testAPIs()
/external/icu/icu4c/source/test/intltest/
Derarulestest.cpp53 LocalPointer<EraRules> rules1(EraRules::createInstance(calId, FALSE, status)); in testAPIs() local
65 int32_t numEras1 = rules1->getNumberOfEras(); in testAPIs()
81 int32_t currentIdx = rules1->getCurrentEraIndex(); in testAPIs()
83 int32_t idx = rules1->getEraIndex( in testAPIs()
95 int32_t eraStartYear = rules1->getStartYear(currentIdx, status); in testAPIs()
Dtranstst.cpp4479 UnicodeString rules1; in TestRegisterAlias() local
4482 t1->toRules(rules1, TRUE); in TestRegisterAlias()
4484 if (rules1 != rules2) in TestRegisterAlias()
4518 t1->toRules(rules1, TRUE); in TestRegisterAlias()
4520 if (rules1 != rules2) in TestRegisterAlias()
/external/icu/icu4c/source/i18n/
Drbtz.cpp34 static UBool compareRules(UVector* rules1, UVector* rules2) { in compareRules() argument
35 if (rules1 == NULL && rules2 == NULL) { in compareRules()
37 } else if (rules1 == NULL || rules2 == NULL) { in compareRules()
40 int32_t size = rules1->size(); in compareRules()
45 TimeZoneRule *r1 = (TimeZoneRule*)rules1->elementAt(i); in compareRules()