/external/icu/icu4c/source/i18n/ |
D | astro.cpp | 103 const double CalendarAstronomer::SYNODIC_MONTH = 29.530588853; 201 const double CalendarAstronomer::PI = 3.14159265358979323846; 203 #define CalendarAstronomer_PI2 (CalendarAstronomer::PI*2.0) 204 #define RAD_HOUR ( 12 / CalendarAstronomer::PI ) // radians -> hours 205 #define DEG_RAD ( CalendarAstronomer::PI / 180 ) // degrees -> radians 206 #define RAD_DEG ( 180 / CalendarAstronomer::PI ) // radians -> degrees 222 return normalize(angle, CalendarAstronomer::PI * 2.0); in norm2PI() 229 …return normalize(angle + CalendarAstronomer::PI, CalendarAstronomer::PI * 2.0) - CalendarAstronome… in normPI() 242 CalendarAstronomer::CalendarAstronomer(): in CalendarAstronomer() function in CalendarAstronomer 253 CalendarAstronomer::CalendarAstronomer(UDate d): fTime(d), fLongitude(0.0), fLatitude(0.0), fGmtOff… in CalendarAstronomer() function in CalendarAstronomer [all …]
|
D | astro.h | 54 class U_I18N_API CalendarAstronomer : public UMemory { 292 CalendarAstronomer(); 299 CalendarAstronomer(UDate d); 315 CalendarAstronomer(double longitude, double latitude); 321 ~CalendarAstronomer(); 648 virtual double eval(CalendarAstronomer&) = 0; 658 virtual void eval(Equatorial& result, CalendarAstronomer&) = 0;
|
D | chnsecal.cpp | 53 static icu::CalendarAstronomer *gChineseCalendarAstro = NULL; 432 (int) (CalendarAstronomer::SYNODIC_MONTH * (m - 0.5)); in roll() 538 gChineseCalendarAstro = new CalendarAstronomer(); in winterSolstice() 542 … UDate solarLong = gChineseCalendarAstro->getSunTime(CalendarAstronomer::WINTER_SOLSTICE(), TRUE); in winterSolstice() 568 gChineseCalendarAstro = new CalendarAstronomer(); in newMoonNear() 572 UDate newMoon = gChineseCalendarAstro->getMoonTime(CalendarAstronomer::NEW_MOON(), after); in newMoonNear() 586 double roundme = ((day2 - day1) / CalendarAstronomer::SYNODIC_MONTH); in synodicMonthsBetween() 600 gChineseCalendarAstro = new CalendarAstronomer(); in majorSolarTerm() 608 int32_t term = ( ((int32_t)(6 * solarLongitude / CalendarAstronomer::PI)) + 2 ) % 12; in majorSolarTerm() 799 newMoon += (int32_t) (CalendarAstronomer::SYNODIC_MONTH * (delta - 0.5)); in offsetMonth()
|
D | islamcal.cpp | 57 static icu::CalendarAstronomer *gIslamicCalendarAstro = NULL; 423 + uprv_floor(month * CalendarAstronomer::SYNODIC_MONTH) * kOneDay; in trueMonthStart() 476 gIslamicCalendarAstro = new CalendarAstronomer(); in moonAge() 488 age = age * 180 / CalendarAstronomer::PI; in moonAge() 621 int32_t months = (int32_t)uprv_floor((double)days / CalendarAstronomer::SYNODIC_MONTH); in handleComputeFields() 623 startDate = (int32_t)uprv_floor(months * CalendarAstronomer::SYNODIC_MONTH); in handleComputeFields()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
D | AstroTest.java | 16 import android.icu.impl.CalendarAstronomer; 17 import android.icu.impl.CalendarAstronomer.Ecliptic; 18 import android.icu.impl.CalendarAstronomer.Equatorial; 39 CalendarAstronomer astro = new CalendarAstronomer(); in TestSolarLongitude() 92 CalendarAstronomer astro = new CalendarAstronomer(); in TestLunarPosition() 131 CalendarAstronomer astro = new CalendarAstronomer(); in TestCoordinates() 139 CalendarAstronomer myastro = new CalendarAstronomer(then); in TestCoverage() 144 CalendarAstronomer myastro2 = new CalendarAstronomer(laLong, laLat); in TestCoverage() 151 CalendarAstronomer myastro3 = new CalendarAstronomer(); in TestCoverage() 154 CalendarAstronomer[] astronomers = { in TestCoverage() [all …]
|
D | IBMCalendarTest.java | 16 import android.icu.impl.CalendarAstronomer; 890 CalendarAstronomer astro = new CalendarAstronomer(); in TestCoverage()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
D | AstroTest.java | 15 import com.ibm.icu.impl.CalendarAstronomer; 16 import com.ibm.icu.impl.CalendarAstronomer.Ecliptic; 17 import com.ibm.icu.impl.CalendarAstronomer.Equatorial; 35 CalendarAstronomer astro = new CalendarAstronomer(); in TestSolarLongitude() 88 CalendarAstronomer astro = new CalendarAstronomer(); in TestLunarPosition() 127 CalendarAstronomer astro = new CalendarAstronomer(); in TestCoordinates() 135 CalendarAstronomer myastro = new CalendarAstronomer(then); in TestCoverage() 140 CalendarAstronomer myastro2 = new CalendarAstronomer(laLong, laLat); in TestCoverage() 147 CalendarAstronomer myastro3 = new CalendarAstronomer(); in TestCoverage() 150 CalendarAstronomer[] astronomers = { in TestCoverage() [all …]
|
D | IBMCalendarTest.java | 15 import com.ibm.icu.impl.CalendarAstronomer; 886 CalendarAstronomer astro = new CalendarAstronomer(); in TestCoverage()
|
/external/icu/icu4c/source/test/intltest/ |
D | astrotst.cpp | 60 astro = new CalendarAstronomer(); in initAstro() 96 CalendarAstronomer::Equatorial result; in TestSolarLongitude() 121 const CalendarAstronomer::Equatorial& result = astro->getMoonPosition(); in TestLunarPosition() 136 CalendarAstronomer::Equatorial result; in TestCoordinates() 137 …ro->eclipticToEquatorial(result, 139.686111 * CalendarAstronomer::PI / 180.0, 4.875278* CalendarAs… in TestCoordinates() 151 CalendarAstronomer *myastro = new CalendarAstronomer(then); in TestCoverage() 157 CalendarAstronomer *myastro2 = new CalendarAstronomer(laLong, laLat); in TestCoverage() 159 double eclLat = laLat * CalendarAstronomer::PI / 360; in TestCoverage() 160 double eclLong = laLong * CalendarAstronomer::PI / 360; in TestCoverage() 162 CalendarAstronomer::Ecliptic ecl(eclLat, eclLong); in TestCoverage() [all …]
|
D | astrotst.h | 44 CalendarAstronomer *astro;
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | ChineseCalendar.java | 15 import android.icu.impl.CalendarAstronomer; 119 private transient CalendarAstronomer astro = new CalendarAstronomer(); 514 newMoon += (int) (CalendarAstronomer.SYNODIC_MONTH * (delta - 0.5)); in offsetMonth() 588 (int) (CalendarAstronomer.SYNODIC_MONTH * (m - 0.5)); in roll() 693 long solarLong = astro.getSunTime(CalendarAstronomer.WINTER_SOLSTICE, in winterSolstice() 713 long newMoon = astro.getMoonTime(CalendarAstronomer.NEW_MOON, after); in newMoonNear() 726 return (int) Math.round((day2 - day1) / CalendarAstronomer.SYNODIC_MONTH); in synodicMonthsBetween() 1023 astro = new CalendarAstronomer(); in readObject()
|
D | IslamicCalendar.java | 14 import android.icu.impl.CalendarAstronomer; 620 + (long)Math.floor(month * CalendarAstronomer.SYNODIC_MONTH) * ONE_DAY; in trueMonthStart() 677 private static CalendarAstronomer astro = new CalendarAstronomer(); 813 int months = (int)Math.floor(days / CalendarAstronomer.SYNODIC_MONTH); in handleComputeFields() 815 monthStart = (long)Math.floor(months * CalendarAstronomer.SYNODIC_MONTH - 1); in handleComputeFields()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | ChineseCalendar.java | 14 import com.ibm.icu.impl.CalendarAstronomer; 119 private transient CalendarAstronomer astro = new CalendarAstronomer(); 530 newMoon += (int) (CalendarAstronomer.SYNODIC_MONTH * (delta - 0.5)); in offsetMonth() 606 (int) (CalendarAstronomer.SYNODIC_MONTH * (m - 0.5)); in roll() 711 long solarLong = astro.getSunTime(CalendarAstronomer.WINTER_SOLSTICE, in winterSolstice() 731 long newMoon = astro.getMoonTime(CalendarAstronomer.NEW_MOON, after); in newMoonNear() 744 return (int) Math.round((day2 - day1) / CalendarAstronomer.SYNODIC_MONTH); in synodicMonthsBetween() 1043 astro = new CalendarAstronomer(); in readObject()
|
D | IslamicCalendar.java | 13 import com.ibm.icu.impl.CalendarAstronomer; 642 + (long)Math.floor(month * CalendarAstronomer.SYNODIC_MONTH) * ONE_DAY; in trueMonthStart() 699 private static CalendarAstronomer astro = new CalendarAstronomer(); 841 int months = (int)Math.floor(days / CalendarAstronomer.SYNODIC_MONTH); in handleComputeFields() 843 monthStart = (long)Math.floor(months * CalendarAstronomer.SYNODIC_MONTH - 1); in handleComputeFields()
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | CalendarAstronomer.java | 49 public class CalendarAstronomer { class 202 public CalendarAstronomer() { in CalendarAstronomer() method in CalendarAstronomer 211 public CalendarAstronomer(Date d) { in CalendarAstronomer() method in CalendarAstronomer 223 public CalendarAstronomer(long aTime) { in CalendarAstronomer() method in CalendarAstronomer 241 public CalendarAstronomer(double longitude, double latitude) { in CalendarAstronomer() method in CalendarAstronomer
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | CalendarAstronomer.java | 47 public class CalendarAstronomer { class 200 public CalendarAstronomer() { in CalendarAstronomer() method in CalendarAstronomer 209 public CalendarAstronomer(Date d) { in CalendarAstronomer() method in CalendarAstronomer 221 public CalendarAstronomer(long aTime) { in CalendarAstronomer() method in CalendarAstronomer 239 public CalendarAstronomer(double longitude, double latitude) { in CalendarAstronomer() method in CalendarAstronomer
|