Home
last modified time | relevance | path

Searched refs:CalendarAstronomer (Results 1 – 18 of 18) sorted by relevance

/external/icu/icu4c/source/i18n/
Dastro.cpp105 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 …]
Dastro.h56 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;
Dchnsecal.cpp55 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()
Dislamcal.cpp58 static icu::CalendarAstronomer *gIslamicCalendarAstro = NULL;
422 + uprv_floor(month * CalendarAstronomer::SYNODIC_MONTH) * kOneDay; in trueMonthStart()
477 gIslamicCalendarAstro = new CalendarAstronomer(); in moonAge()
489 age = age * 180 / CalendarAstronomer::PI; in moonAge()
622 int32_t months = (int32_t)uprv_floor((double)days / CalendarAstronomer::SYNODIC_MONTH); in handleComputeFields()
624 startDate = (int32_t)uprv_floor(months * CalendarAstronomer::SYNODIC_MONTH); in handleComputeFields()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DAstroTest.java21 import com.ibm.icu.impl.CalendarAstronomer;
22 import com.ibm.icu.impl.CalendarAstronomer.Ecliptic;
23 import com.ibm.icu.impl.CalendarAstronomer.Equatorial;
39 CalendarAstronomer astro = new CalendarAstronomer(); in TestSolarLongitude()
93 CalendarAstronomer astro = new CalendarAstronomer(); in TestLunarPosition()
133 CalendarAstronomer astro = new CalendarAstronomer(); in TestCoordinates()
142 CalendarAstronomer myastro = new CalendarAstronomer(then); in TestCoverage()
147 CalendarAstronomer myastro2 = new CalendarAstronomer(laLong, laLat); in TestCoverage()
154 CalendarAstronomer myastro3 = new CalendarAstronomer(); in TestCoverage()
157 CalendarAstronomer[] astronomers = { in TestCoverage()
[all …]
DIBMCalendarTest.java21 import com.ibm.icu.impl.CalendarAstronomer;
909 CalendarAstronomer astro = new CalendarAstronomer(); in TestCoverage()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DAstroTest.java22 import android.icu.impl.CalendarAstronomer;
23 import android.icu.impl.CalendarAstronomer.Ecliptic;
24 import android.icu.impl.CalendarAstronomer.Equatorial;
42 CalendarAstronomer astro = new CalendarAstronomer(); in TestSolarLongitude()
96 CalendarAstronomer astro = new CalendarAstronomer(); in TestLunarPosition()
136 CalendarAstronomer astro = new CalendarAstronomer(); in TestCoordinates()
145 CalendarAstronomer myastro = new CalendarAstronomer(then); in TestCoverage()
150 CalendarAstronomer myastro2 = new CalendarAstronomer(laLong, laLat); in TestCoverage()
157 CalendarAstronomer myastro3 = new CalendarAstronomer(); in TestCoverage()
160 CalendarAstronomer[] astronomers = { in TestCoverage()
[all …]
DIBMCalendarTest.java22 import android.icu.impl.CalendarAstronomer;
912 CalendarAstronomer astro = new CalendarAstronomer(); in TestCoverage()
/external/icu/icu4c/source/test/intltest/
Dastrotst.cpp68 astro = new CalendarAstronomer(); in initAstro()
104 CalendarAstronomer::Equatorial result; in TestSolarLongitude()
129 const CalendarAstronomer::Equatorial& result = astro->getMoonPosition(); in TestLunarPosition()
144 CalendarAstronomer::Equatorial result; in TestCoordinates()
145 …ro->eclipticToEquatorial(result, 139.686111 * CalendarAstronomer::PI / 180.0, 4.875278* CalendarAs… in TestCoordinates()
159 CalendarAstronomer *myastro = new CalendarAstronomer(then); in TestCoverage()
165 CalendarAstronomer *myastro2 = new CalendarAstronomer(laLong, laLat); in TestCoverage()
167 double eclLat = laLat * CalendarAstronomer::PI / 360; in TestCoverage()
168 double eclLong = laLong * CalendarAstronomer::PI / 360; in TestCoverage()
170 CalendarAstronomer::Ecliptic ecl(eclLat, eclLong); in TestCoverage()
[all …]
Dastrotst.h46 CalendarAstronomer *astro;
/external/icu/libicu/cts_headers/
Dastro.h56 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;
/external/icu/android_icu4j/src/main/java/android/icu/util/
DChineseCalendar.java17 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()
DIslamicCalendar.java16 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/
DChineseCalendar.java16 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()
DIslamicCalendar.java15 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/android_icu4j/src/main/java/android/icu/impl/
DCalendarAstronomer.java51 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
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DCalendarAstronomer.java49 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/
DAndroid.bp72 // the system server doesn't use CalendarAstronomer in android.icu.
74 // com.ibm.icu.impl.CalendarAstronomer in the app classloader.
78 srcs: ["main/classes/core/src/com/ibm/icu/impl/CalendarAstronomer.java"],