/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/net/ |
D | sheriff_calendar_unittest.py | 11 import sheriff_calendar as calendar namespace 18 self.assertEqual(map(calendar._complete_email, names), expected_emails) 22 calendar._emails_from_url = lambda urls: expected_emails 23 self.assertEqual(calendar.current_gardener_emails(), expected_emails) 26 self.assertEqual(calendar._names_from_sheriff_js(js_string), expected_emails) 33 self.assertTrue(calendar._email_is_valid('somebody@example.com')) 34 self.assertTrue(calendar._email_is_valid('somebody@example.domain.com')) 35 self.assertTrue(calendar._email_is_valid('somebody@example-domain.com')) 36 self.assertTrue(calendar._email_is_valid('some.body@example.com')) 37 self.assertTrue(calendar._email_is_valid('some_body@example.com')) [all …]
|
/external/chromium_org/third_party/icu/source/test/testdata/ |
D | calendar.txt | 3 calendar:table(nofallback) { 5 Description { "These are the data driven calendar tests" } 6 LongDescription { "Data for data driven calendar tests." } 12 Description { "Test data for calendar conversion :" } 16 ToCalendar { "en_US@calendar=gregorian" } 20 ToCalendar { "en_US@calendar=gregorian" } 25 // taiwanese calendar 28 "en_US@calendar=roc", 33 "en_US@calendar=roc", 38 "en_US@calendar=roc", [all …]
|
D | format.txt | 23 // locale: locale including calendar type 27 …// or a calendar spec ERA=0,YEAR=1, etc.. applied to the calendar type specified by the loc… 34 "en_US@calendar=gregorian", 41 "zh_TW@calendar=roc", 49 "zh_TW@calendar=roc", 69 "en_US@calendar=gregorian", 76 "en_US@calendar=gregorian", 83 "en_US@calendar=gregorian", 91 "en_US@calendar=gregorian", 99 "en_US@calendar=gregorian", [all …]
|
/external/icu/icu4c/source/test/testdata/ |
D | calendar.txt | 3 calendar:table(nofallback) { 5 Description { "These are the data driven calendar tests" } 6 LongDescription { "Data for data driven calendar tests." } 12 Description { "Test data for calendar conversion :" } 16 ToCalendar { "en_US@calendar=gregorian" } 20 ToCalendar { "en_US@calendar=gregorian" } 25 // taiwanese calendar 28 "en_US@calendar=roc", 33 "en_US@calendar=roc", 38 "en_US@calendar=roc", [all …]
|
D | format.txt | 23 // locale: locale including calendar type 27 …// or a calendar spec ERA=0,YEAR=1, etc.. applied to the calendar type specified by the loc… 34 "en_US@calendar=gregorian", 41 "zh_TW@calendar=roc", 49 "zh_TW@calendar=roc", 69 "en_US@calendar=gregorian", 76 "en_US@calendar=gregorian", 83 "en_US@calendar=gregorian", 91 "en_US@calendar=gregorian", 99 "en_US@calendar=gregorian", [all …]
|
/external/icu/icu4c/source/data/locales/ |
D | root.txt | 186 calendar{ 188 AmPmMarkers:alias{"/LOCALE/calendar/gregorian/AmPmMarkers"} 189 AmPmMarkersNarrow:alias{"/LOCALE/calendar/gregorian/AmPmMarkersNarrow"} 190 DateTimePatterns:alias{"/LOCALE/calendar/generic/DateTimePatterns"} 191 NoonMarker:alias{"/LOCALE/calendar/gregorian/NoonMarker"} 192 NoonMarkerNarrow:alias{"/LOCALE/calendar/gregorian/NoonMarkerNarrow"} 193 appendItems:alias{"/LOCALE/calendar/generic/appendItems"} 194 availableFormats:alias{"/LOCALE/calendar/generic/availableFormats"} 195 dayNames:alias{"/LOCALE/calendar/gregorian/dayNames"} 200 narrow:alias{"/LOCALE/calendar/buddhist/eras/abbreviated"} [all …]
|
/external/chromium_org/third_party/icu/source/data/locales/ |
D | root.txt | 185 calendar{ 187 AmPmMarkers:alias{"/LOCALE/calendar/gregorian/AmPmMarkers"} 188 DateTimePatterns:alias{"/LOCALE/calendar/generic/DateTimePatterns"} 189 appendItems:alias{"/LOCALE/calendar/generic/appendItems"} 190 availableFormats:alias{"/LOCALE/calendar/generic/availableFormats"} 191 dayNames:alias{"/LOCALE/calendar/gregorian/dayNames"} 196 narrow:alias{"/LOCALE/calendar/buddhist/eras/abbreviated"} 197 wide:alias{"/LOCALE/calendar/buddhist/eras/abbreviated"} 199 intervalFormats:alias{"/LOCALE/calendar/generic/intervalFormats"} 200 monthNames:alias{"/LOCALE/calendar/gregorian/monthNames"} [all …]
|
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/ |
D | XMPDateTimeImpl.java | 66 public XMPDateTimeImpl(Calendar calendar) in XMPDateTimeImpl() argument 69 Date date = calendar.getTime(); in XMPDateTimeImpl() 70 TimeZone zone = calendar.getTimeZone(); in XMPDateTimeImpl() 100 GregorianCalendar calendar = new GregorianCalendar(timeZone); in XMPDateTimeImpl() local 101 calendar.setTime(date); in XMPDateTimeImpl() 102 this.year = calendar.get(Calendar.YEAR); in XMPDateTimeImpl() 103 this.month = calendar.get(Calendar.MONTH) + 1; // cal is from 0..12 in XMPDateTimeImpl() 104 this.day = calendar.get(Calendar.DAY_OF_MONTH); in XMPDateTimeImpl() 105 this.hour = calendar.get(Calendar.HOUR_OF_DAY); in XMPDateTimeImpl() 106 this.minute = calendar.get(Calendar.MINUTE); in XMPDateTimeImpl() [all …]
|
/external/chromium_org/ui/android/java/src/org/chromium/ui/picker/ |
D | DateDialogNormalizer.java | 61 Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone("GMT")); in normalize() local 62 calendar.clear(); in normalize() 63 calendar.set(year, month, day, hour, minute, 0); in normalize() 64 if (calendar.getTimeInMillis() < minMillis) { in normalize() 65 calendar.clear(); in normalize() 66 calendar.setTimeInMillis(minMillis); in normalize() 67 } else if (calendar.getTimeInMillis() > maxMillis) { in normalize() 68 calendar.clear(); in normalize() 69 calendar.setTimeInMillis(maxMillis); in normalize() 72 calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), in normalize() [all …]
|
/external/chromium_org/media/tools/layout_tests/ |
D | test_expectations_history_unittest.py | 8 import calendar 42 ptime = calendar.timegm((2011, 8, 20, 0, 0, 0, 0, 0, 0)) 43 ctime = calendar.timegm((2011, 8, 21, 0, 0, 0, 0, 0, 0)) 51 ptime = calendar.timegm((2011, 8, 20, 6, 0, 0, 0, 0, 0)) 52 ctime = calendar.timegm((2011, 8, 20, 7, 0, 0, 0, 0, 0)) 60 ptime = calendar.timegm((2011, 9, 12, 1, 0, 0, 0, 0, 0)) 61 ctime = calendar.timegm((2011, 9, 12, 2, 0, 0, 0, 0, 0))
|
/external/google-tv-pairing-protocol/java/src/com/google/polo/ssl/ |
D | SslUtil.java | 101 Calendar calendar = Calendar.getInstance(); in generateX509V1Certificate() local 102 calendar.set(2009, 0, 1); in generateX509V1Certificate() 103 Date startDate = new Date(calendar.getTimeInMillis()); in generateX509V1Certificate() 104 calendar.set(2029, 0, 1); in generateX509V1Certificate() 105 Date expiryDate = new Date(calendar.getTimeInMillis()); in generateX509V1Certificate() 232 Calendar calendar = Calendar.getInstance(); in generateX509V3Certificate() local 233 calendar.set(2009, 0, 1); in generateX509V3Certificate() 234 Date notBefore = new Date(calendar.getTimeInMillis()); in generateX509V3Certificate() 235 calendar.set(2099, 0, 1); in generateX509V3Certificate() 236 Date notAfter = new Date(calendar.getTimeInMillis()); in generateX509V3Certificate() [all …]
|
D | CsrUtil.java | 48 Calendar calendar = Calendar.getInstance(); in generateX509V3AuthorityCertificate() local 49 calendar.add(Calendar.DAY_OF_YEAR, NOT_BEFORE_NUMBER_OF_DAYS); in generateX509V3AuthorityCertificate() 50 Date notBefore = new Date(calendar.getTimeInMillis()); in generateX509V3AuthorityCertificate() 51 calendar.add(Calendar.DAY_OF_YEAR, NOT_AFTER_NUMBER_OF_DAYS); in generateX509V3AuthorityCertificate() 52 Date notAfter = new Date(calendar.getTimeInMillis()); in generateX509V3AuthorityCertificate() 109 Calendar calendar = Calendar.getInstance(); in issueX509V3Certificate() local 110 calendar.add(Calendar.DAY_OF_YEAR, NOT_BEFORE_NUMBER_OF_DAYS); in issueX509V3Certificate() 111 Date notBefore = new Date(calendar.getTimeInMillis()); in issueX509V3Certificate() 112 calendar.add(Calendar.DAY_OF_YEAR, NOT_AFTER_NUMBER_OF_DAYS); in issueX509V3Certificate() 113 Date notAfter = new Date(calendar.getTimeInMillis()); in issueX509V3Certificate()
|
/external/chromium_org/third_party/icu/source/test/intltest/ |
D | calregts.cpp | 333 Calendar *calendar = new GregorianCalendar(pdt, status); in test4040996() local 338 calendar->set(UCAL_MONTH,3); in test4040996() 339 calendar->set(UCAL_DATE,18); in test4040996() 340 calendar->set(UCAL_SECOND, 30); in test4040996() 342 logln(UnicodeString("MONTH: ") + calendar->get(UCAL_MONTH, status)); in test4040996() 344 calendar->get(UCAL_DATE, status)); in test4040996() 345 logln(UnicodeString("MINUTE: ") + calendar->get(UCAL_MINUTE, status)); in test4040996() 346 logln(UnicodeString("SECOND: ") + calendar->get(UCAL_SECOND, status)); in test4040996() 348 calendar->add(UCAL_SECOND,6, status); in test4040996() 352 logln(UnicodeString("MONTH: ") + calendar->get(UCAL_MONTH, status)); in test4040996() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | calregts.cpp | 333 Calendar *calendar = new GregorianCalendar(pdt, status); in test4040996() local 338 calendar->set(UCAL_MONTH,3); in test4040996() 339 calendar->set(UCAL_DATE,18); in test4040996() 340 calendar->set(UCAL_SECOND, 30); in test4040996() 342 logln(UnicodeString("MONTH: ") + calendar->get(UCAL_MONTH, status)); in test4040996() 344 calendar->get(UCAL_DATE, status)); in test4040996() 345 logln(UnicodeString("MINUTE: ") + calendar->get(UCAL_MINUTE, status)); in test4040996() 346 logln(UnicodeString("SECOND: ") + calendar->get(UCAL_SECOND, status)); in test4040996() 348 calendar->add(UCAL_SECOND,6, status); in test4040996() 352 logln(UnicodeString("MONTH: ") + calendar->get(UCAL_MONTH, status)); in test4040996() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | coptccal.cpp | 109 CopticCalendar calendar(Locale("@calendar=coptic"), status); in initializeSystemDefaultCentury() local 111 calendar.setTime(Calendar::getNow(), status); in initializeSystemDefaultCentury() 112 calendar.add(UCAL_YEAR, -80, status); in initializeSystemDefaultCentury() 113 gSystemDefaultCenturyStart = calendar.getTime(status); in initializeSystemDefaultCentury() 114 gSystemDefaultCenturyStartYear = calendar.get(UCAL_YEAR, status); in initializeSystemDefaultCentury()
|
D | buddhcal.cpp | 149 BuddhistCalendar calendar(Locale("@calendar=buddhist"),status); in initializeSystemDefaultCentury() local 151 calendar.setTime(Calendar::getNow(), status); in initializeSystemDefaultCentury() 152 calendar.add(UCAL_YEAR, -80, status); in initializeSystemDefaultCentury() 153 UDate newStart = calendar.getTime(status); in initializeSystemDefaultCentury() 154 int32_t newYear = calendar.get(UCAL_YEAR, status); in initializeSystemDefaultCentury()
|
D | taiwncal.cpp | 154 TaiwanCalendar calendar(Locale("@calendar=roc"),status); in initializeSystemDefaultCentury() local 157 calendar.setTime(Calendar::getNow(), status); in initializeSystemDefaultCentury() 158 calendar.add(UCAL_YEAR, -80, status); in initializeSystemDefaultCentury() 160 gSystemDefaultCenturyStart = calendar.getTime(status); in initializeSystemDefaultCentury() 161 gSystemDefaultCenturyStartYear = calendar.get(UCAL_YEAR, status); in initializeSystemDefaultCentury()
|
D | ethpccal.cpp | 149 EthiopicCalendar calendar(Locale("@calendar=ethiopic"), status); in initializeSystemDefaultCentury() local 151 calendar.setTime(Calendar::getNow(), status); in initializeSystemDefaultCentury() 152 calendar.add(UCAL_YEAR, -80, status); in initializeSystemDefaultCentury() 154 gSystemDefaultCenturyStart = calendar.getTime(status); in initializeSystemDefaultCentury() 155 gSystemDefaultCenturyStartYear = calendar.get(UCAL_YEAR, status); in initializeSystemDefaultCentury()
|
D | persncal.cpp | 263 PersianCalendar calendar(Locale("@calendar=persian"),status); in initializeSystemDefaultCentury() local 266 calendar.setTime(Calendar::getNow(), status); in initializeSystemDefaultCentury() 267 calendar.add(UCAL_YEAR, -80, status); in initializeSystemDefaultCentury() 269 gSystemDefaultCenturyStart = calendar.getTime(status); in initializeSystemDefaultCentury() 270 gSystemDefaultCenturyStartYear = calendar.get(UCAL_YEAR, status); in initializeSystemDefaultCentury()
|
/external/chromium_org/third_party/icu/source/i18n/ |
D | coptccal.cpp | 109 CopticCalendar calendar(Locale("@calendar=coptic"), status); in initializeSystemDefaultCentury() local 111 calendar.setTime(Calendar::getNow(), status); in initializeSystemDefaultCentury() 112 calendar.add(UCAL_YEAR, -80, status); in initializeSystemDefaultCentury() 113 gSystemDefaultCenturyStart = calendar.getTime(status); in initializeSystemDefaultCentury() 114 gSystemDefaultCenturyStartYear = calendar.get(UCAL_YEAR, status); in initializeSystemDefaultCentury()
|
D | buddhcal.cpp | 149 BuddhistCalendar calendar(Locale("@calendar=buddhist"),status); in initializeSystemDefaultCentury() local 151 calendar.setTime(Calendar::getNow(), status); in initializeSystemDefaultCentury() 152 calendar.add(UCAL_YEAR, -80, status); in initializeSystemDefaultCentury() 153 UDate newStart = calendar.getTime(status); in initializeSystemDefaultCentury() 154 int32_t newYear = calendar.get(UCAL_YEAR, status); in initializeSystemDefaultCentury()
|
D | ethpccal.cpp | 149 EthiopicCalendar calendar(Locale("@calendar=ethiopic"), status); in initializeSystemDefaultCentury() local 151 calendar.setTime(Calendar::getNow(), status); in initializeSystemDefaultCentury() 152 calendar.add(UCAL_YEAR, -80, status); in initializeSystemDefaultCentury() 154 gSystemDefaultCenturyStart = calendar.getTime(status); in initializeSystemDefaultCentury() 155 gSystemDefaultCenturyStartYear = calendar.get(UCAL_YEAR, status); in initializeSystemDefaultCentury()
|
D | taiwncal.cpp | 154 TaiwanCalendar calendar(Locale("@calendar=roc"),status); in initializeSystemDefaultCentury() local 157 calendar.setTime(Calendar::getNow(), status); in initializeSystemDefaultCentury() 158 calendar.add(UCAL_YEAR, -80, status); in initializeSystemDefaultCentury() 160 gSystemDefaultCenturyStart = calendar.getTime(status); in initializeSystemDefaultCentury() 161 gSystemDefaultCenturyStartYear = calendar.get(UCAL_YEAR, status); in initializeSystemDefaultCentury()
|
D | persncal.cpp | 263 PersianCalendar calendar(Locale("@calendar=persian"),status); in initializeSystemDefaultCentury() local 266 calendar.setTime(Calendar::getNow(), status); in initializeSystemDefaultCentury() 267 calendar.add(UCAL_YEAR, -80, status); in initializeSystemDefaultCentury() 269 gSystemDefaultCenturyStart = calendar.getTime(status); in initializeSystemDefaultCentury() 270 gSystemDefaultCenturyStartYear = calendar.get(UCAL_YEAR, status); in initializeSystemDefaultCentury()
|
/external/apache-http/src/org/apache/http/impl/cookie/ |
D | DateUtils.java | 86 Calendar calendar = Calendar.getInstance(); 87 calendar.setTimeZone(GMT); 88 calendar.set(2000, Calendar.JANUARY, 1, 0, 0, 0); 89 calendar.set(Calendar.MILLISECOND, 0); in calendar.set() 90 DEFAULT_TWO_DIGIT_YEAR_START = calendar.getTime();
|