/external/icu/icu4c/source/i18n/ |
D | astro.cpp | 105 const double CalendarAstronomer::SYNODIC_MONTH = 29.530588853; 203 const double CalendarAstronomer::PI = 3.14159265358979323846; 205 #define CalendarAstronomer_PI2 (CalendarAstronomer::PI*2.0) 206 #define RAD_HOUR ( 12 / CalendarAstronomer::PI ) // radians -> hours 207 #define DEG_RAD ( CalendarAstronomer::PI / 180 ) // degrees -> radians 208 #define RAD_DEG ( 180 / CalendarAstronomer::PI ) // radians -> degrees 224 return normalize(angle, CalendarAstronomer::PI * 2.0); in norm2PI() 231 …return normalize(angle + CalendarAstronomer::PI, CalendarAstronomer::PI * 2.0) - CalendarAstronome… in normPI() 244 CalendarAstronomer::CalendarAstronomer(): in CalendarAstronomer() function in CalendarAstronomer 255 CalendarAstronomer::CalendarAstronomer(UDate d): fTime(d), fLongitude(0.0), fLatitude(0.0), fGmtOff… in CalendarAstronomer() function in CalendarAstronomer [all …]
|
D | astro.h | 56 class U_I18N_API CalendarAstronomer : public UMemory { 294 CalendarAstronomer(); 301 CalendarAstronomer(UDate d); 317 CalendarAstronomer(double longitude, double latitude); 323 ~CalendarAstronomer(); 650 virtual double eval(CalendarAstronomer&) = 0; 660 virtual void eval(Equatorial& result, CalendarAstronomer&) = 0;
|
D | chnsecal.cpp | 55 static icu::CalendarAstronomer *gChineseCalendarAstro = NULL; 434 (int) (CalendarAstronomer::SYNODIC_MONTH * (m - 0.5)); in roll() 540 gChineseCalendarAstro = new CalendarAstronomer(); in winterSolstice() 544 … UDate solarLong = gChineseCalendarAstro->getSunTime(CalendarAstronomer::WINTER_SOLSTICE(), TRUE); in winterSolstice() 570 gChineseCalendarAstro = new CalendarAstronomer(); in newMoonNear() 574 UDate newMoon = gChineseCalendarAstro->getMoonTime(CalendarAstronomer::NEW_MOON(), after); in newMoonNear() 588 double roundme = ((day2 - day1) / CalendarAstronomer::SYNODIC_MONTH); in synodicMonthsBetween() 602 gChineseCalendarAstro = new CalendarAstronomer(); in majorSolarTerm() 610 int32_t term = ( ((int32_t)(6 * solarLongitude / CalendarAstronomer::PI)) + 2 ) % 12; in majorSolarTerm() 801 newMoon += (int32_t) (CalendarAstronomer::SYNODIC_MONTH * (delta - 0.5)); in offsetMonth()
|
D | islamcal.cpp | 59 static icu::CalendarAstronomer *gIslamicCalendarAstro = NULL; 425 + uprv_floor(month * CalendarAstronomer::SYNODIC_MONTH) * kOneDay; in trueMonthStart() 478 gIslamicCalendarAstro = new CalendarAstronomer(); in moonAge() 490 age = age * 180 / CalendarAstronomer::PI; in moonAge() 623 int32_t months = (int32_t)uprv_floor((double)days / CalendarAstronomer::SYNODIC_MONTH); in handleComputeFields() 625 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 | 20 import android.icu.impl.CalendarAstronomer; 21 import android.icu.impl.CalendarAstronomer.Ecliptic; 22 import android.icu.impl.CalendarAstronomer.Equatorial; 37 CalendarAstronomer astro = new CalendarAstronomer(); in TestSolarLongitude() 91 CalendarAstronomer astro = new CalendarAstronomer(); in TestLunarPosition() 131 CalendarAstronomer astro = new CalendarAstronomer(); in TestCoordinates() 140 CalendarAstronomer myastro = new CalendarAstronomer(then); in TestCoverage() 145 CalendarAstronomer myastro2 = new CalendarAstronomer(laLong, laLat); in TestCoverage() 152 CalendarAstronomer myastro3 = new CalendarAstronomer(); in TestCoverage() 155 CalendarAstronomer[] astronomers = { in TestCoverage() [all …]
|
D | IBMCalendarTest.java | 20 import android.icu.impl.CalendarAstronomer; 904 CalendarAstronomer astro = new CalendarAstronomer(); in TestCoverage()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
D | AstroTest.java | 19 import com.ibm.icu.impl.CalendarAstronomer; 20 import com.ibm.icu.impl.CalendarAstronomer.Ecliptic; 21 import com.ibm.icu.impl.CalendarAstronomer.Equatorial; 36 CalendarAstronomer astro = new CalendarAstronomer(); in TestSolarLongitude() 90 CalendarAstronomer astro = new CalendarAstronomer(); in TestLunarPosition() 130 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 | 19 import com.ibm.icu.impl.CalendarAstronomer; 903 CalendarAstronomer astro = new CalendarAstronomer(); in TestCoverage()
|
/external/icu/icu4c/source/test/intltest/ |
D | astrotst.cpp | 63 astro = new CalendarAstronomer(); in initAstro() 99 CalendarAstronomer::Equatorial result; in TestSolarLongitude() 124 const CalendarAstronomer::Equatorial& result = astro->getMoonPosition(); in TestLunarPosition() 139 CalendarAstronomer::Equatorial result; in TestCoordinates() 140 …ro->eclipticToEquatorial(result, 139.686111 * CalendarAstronomer::PI / 180.0, 4.875278* CalendarAs… in TestCoordinates() 154 CalendarAstronomer *myastro = new CalendarAstronomer(then); in TestCoverage() 160 CalendarAstronomer *myastro2 = new CalendarAstronomer(laLong, laLat); in TestCoverage() 162 double eclLat = laLat * CalendarAstronomer::PI / 360; in TestCoverage() 163 double eclLong = laLong * CalendarAstronomer::PI / 360; in TestCoverage() 165 CalendarAstronomer::Ecliptic ecl(eclLat, eclLong); in TestCoverage() [all …]
|
D | astrotst.h | 46 CalendarAstronomer *astro;
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | ChineseCalendar.java | 17 import android.icu.impl.CalendarAstronomer; 121 private transient CalendarAstronomer astro = new CalendarAstronomer(); 516 newMoon += (int) (CalendarAstronomer.SYNODIC_MONTH * (delta - 0.5)); in offsetMonth() 590 (int) (CalendarAstronomer.SYNODIC_MONTH * (m - 0.5)); in roll() 695 long solarLong = astro.getSunTime(CalendarAstronomer.WINTER_SOLSTICE, in winterSolstice() 715 long newMoon = astro.getMoonTime(CalendarAstronomer.NEW_MOON, after); in newMoonNear() 728 return (int) Math.round((day2 - day1) / CalendarAstronomer.SYNODIC_MONTH); in synodicMonthsBetween() 1025 astro = new CalendarAstronomer(); in readObject()
|
D | IslamicCalendar.java | 16 import android.icu.impl.CalendarAstronomer; 624 + (long)Math.floor(month * CalendarAstronomer.SYNODIC_MONTH) * ONE_DAY; in trueMonthStart() 681 private static CalendarAstronomer astro = new CalendarAstronomer(); 826 int months = (int)Math.floor(days / CalendarAstronomer.SYNODIC_MONTH); in handleComputeFields() 828 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 | 16 import com.ibm.icu.impl.CalendarAstronomer; 121 private transient CalendarAstronomer astro = new CalendarAstronomer(); 532 newMoon += (int) (CalendarAstronomer.SYNODIC_MONTH * (delta - 0.5)); in offsetMonth() 608 (int) (CalendarAstronomer.SYNODIC_MONTH * (m - 0.5)); in roll() 713 long solarLong = astro.getSunTime(CalendarAstronomer.WINTER_SOLSTICE, in winterSolstice() 733 long newMoon = astro.getMoonTime(CalendarAstronomer.NEW_MOON, after); in newMoonNear() 746 return (int) Math.round((day2 - day1) / CalendarAstronomer.SYNODIC_MONTH); in synodicMonthsBetween() 1045 astro = new CalendarAstronomer(); in readObject()
|
D | IslamicCalendar.java | 15 import com.ibm.icu.impl.CalendarAstronomer; 651 + (long)Math.floor(month * CalendarAstronomer.SYNODIC_MONTH) * ONE_DAY; in trueMonthStart() 708 private static CalendarAstronomer astro = new CalendarAstronomer(); 859 int months = (int)Math.floor(days / CalendarAstronomer.SYNODIC_MONTH); in handleComputeFields() 861 monthStart = (long)Math.floor(months * CalendarAstronomer.SYNODIC_MONTH - 1); in handleComputeFields()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/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/android_icu4j/src/main/java/android/icu/impl/ |
D | CalendarAstronomer.java | 51 public class CalendarAstronomer { class 204 public CalendarAstronomer() { in CalendarAstronomer() method in CalendarAstronomer 213 public CalendarAstronomer(Date d) { in CalendarAstronomer() method in CalendarAstronomer 225 public CalendarAstronomer(long aTime) { in CalendarAstronomer() method in CalendarAstronomer 243 public CalendarAstronomer(double longitude, double latitude) { in CalendarAstronomer() method in CalendarAstronomer
|