Home
last modified time | relevance | path

Searched refs:timeString (Results 1 – 6 of 6) sorted by relevance

/frameworks/ex/common/java/com/android/common/
DLegacyHttpDateTime.java85 public static long parse(String timeString) in parse() argument
93 Matcher rfcMatcher = HTTP_DATE_RFC_PATTERN.matcher(timeString); in parse()
100 Matcher ansicMatcher = HTTP_DATE_ANSIC_PATTERN.matcher(timeString); in parse()
206 private static TimeOfDay getTime(String timeString) { in getTime() argument
209 int hour = timeString.charAt(i++) - '0'; in getTime()
210 if (timeString.charAt(i) != ':') in getTime()
211 hour = hour * 10 + (timeString.charAt(i++) - '0'); in getTime()
215 int minute = (timeString.charAt(i++) - '0') * 10 in getTime()
216 + (timeString.charAt(i++) - '0'); in getTime()
220 int second = (timeString.charAt(i++) - '0') * 10 in getTime()
[all …]
/frameworks/base/core/java/com/android/internal/http/
DHttpDateTime.java85 public static long parse(String timeString) in parse() argument
93 Matcher rfcMatcher = HTTP_DATE_RFC_PATTERN.matcher(timeString); in parse()
100 Matcher ansicMatcher = HTTP_DATE_ANSIC_PATTERN.matcher(timeString); in parse()
206 private static TimeOfDay getTime(String timeString) { in getTime() argument
209 int hour = timeString.charAt(i++) - '0'; in getTime()
210 if (timeString.charAt(i) != ':') in getTime()
211 hour = hour * 10 + (timeString.charAt(i++) - '0'); in getTime()
215 int minute = (timeString.charAt(i++) - '0') * 10 in getTime()
216 + (timeString.charAt(i++) - '0'); in getTime()
220 int second = (timeString.charAt(i++) - '0') * 10 in getTime()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSplitClockView.java93 String timeString; in updatePatterns() local
96 timeString = formatString; in updatePatterns()
99 timeString = formatString.substring(0, index); in updatePatterns()
102 mTimeView.setFormat12Hour(timeString); in updatePatterns()
103 mTimeView.setFormat24Hour(timeString); in updatePatterns()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DBatteryInfo.java88 String timeString = context.getString(R.string.charge_length_format, in bindHistory() local
95 view.setBottomLabels(new CharSequence[]{timeString, remaining}); in bindHistory()
142 String timeString = Formatter.formatShortElapsedTime(context, in getBatteryInfo() local
147 timeString); in getBatteryInfo()
151 info.batteryPercentString, timeString); in getBatteryInfo()
165 String timeString = Formatter.formatShortElapsedTime(context, in getBatteryInfo() local
183 timeString); in getBatteryInfo()
185 resId, info.batteryPercentString, timeString); in getBatteryInfo()
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/
DTrackerService.java216 String timeString = getPreferences().getString(MIN_TIME_PREF, "0"); in getLocationUpdateTime() local
217 long secondsTime = Long.valueOf(timeString); in getLocationUpdateTime()
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/
DRadialPickerLayout.java765 String timeString = DateUtils.formatDateTime(getContext(), millis, flags); in dispatchPopulateAccessibilityEvent() local
766 event.getText().add(timeString); in dispatchPopulateAccessibilityEvent()