Home
last modified time | relevance | path

Searched refs:yearString (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/java/com/android/internal/http/
DHttpDateTime.java181 private static int getYear(String yearString) { in getYear() argument
182 if (yearString.length() == 2) { in getYear()
183 int year = (yearString.charAt(0) - '0') * 10 in getYear()
184 + (yearString.charAt(1) - '0'); in getYear()
190 } else if (yearString.length() == 3) { in getYear()
192 int year = (yearString.charAt(0) - '0') * 100 in getYear()
193 + (yearString.charAt(1) - '0') * 10 in getYear()
194 + (yearString.charAt(2) - '0'); in getYear()
196 } else if (yearString.length() == 4) { in getYear()
197 return (yearString.charAt(0) - '0') * 1000 in getYear()
[all …]
/frameworks/ex/common/java/com/android/common/
DLegacyHttpDateTime.java181 private static int getYear(String yearString) { in getYear() argument
182 if (yearString.length() == 2) { in getYear()
183 int year = (yearString.charAt(0) - '0') * 10 in getYear()
184 + (yearString.charAt(1) - '0'); in getYear()
190 } else if (yearString.length() == 3) { in getYear()
192 int year = (yearString.charAt(0) - '0') * 100 in getYear()
193 + (yearString.charAt(1) - '0') * 10 in getYear()
194 + (yearString.charAt(2) - '0'); in getYear()
196 } else if (yearString.length() == 4) { in getYear()
197 return (yearString.charAt(0) - '0') * 1000 in getYear()
[all …]
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
DDatePickerDialog.java327 CharSequence yearString = YEAR_FORMAT.format(millis); in setCurrentView() local
328 mAnimator.setContentDescription(mYearPickerDescription+": "+yearString); in setCurrentView()