Home
last modified time | relevance | path

Searched refs:timeString (Results 1 – 7 of 7) 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()
205 private static TimeOfDay getTime(String timeString) { in getTime() argument
208 int hour = timeString.charAt(i++) - '0'; in getTime()
209 if (timeString.charAt(i) != ':') in getTime()
210 hour = hour * 10 + (timeString.charAt(i++) - '0'); in getTime()
214 int minute = (timeString.charAt(i++) - '0') * 10 in getTime()
215 + (timeString.charAt(i++) - '0'); in getTime()
219 int second = (timeString.charAt(i++) - '0') * 10 in getTime()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DPowerUtil.java65 CharSequence timeString = StringUtil.formatElapsedTime(context, in getBatteryRemainingStringFormatted() local
68 return getUnderFifteenString(context, timeString, percentageString); in getBatteryRemainingStringFormatted()
139 private static String getUnderFifteenString(Context context, CharSequence timeString, in getUnderFifteenString() argument
142 ? context.getString(R.string.power_remaining_less_than_duration_only, timeString) in getUnderFifteenString()
145 timeString, in getUnderFifteenString()
153 CharSequence timeString = StringUtil.formatElapsedTime(context, in getMoreThanOneDayString() local
161 return context.getString(id, timeString); in getMoreThanOneDayString()
166 return context.getString(id, timeString, percentageString); in getMoreThanOneDayString()
173 CharSequence timeString = StringUtil.formatElapsedTime(context, roundedTimeMs, in getMoreThanOneDayShortString() local
176 return context.getString(resId, timeString); in getMoreThanOneDayShortString()
[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/services/tests/servicestests/src/com/android/server/people/data/
DTestUtils.java30 static long timestamp(String timeString) { in timestamp() argument
31 String str = String.format("2020-%s", timeString); in timestamp()
/frameworks/av/media/libmedia/
DIMediaExtractor.cpp290 char timeString[32]; in toString() local
291 strftime(timeString, sizeof(timeString), "%m-%d %T", localtime(&when)); in toString()
292 str.append(timeString); in toString()
/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.parseLong(timeString); in getLocationUpdateTime()
/frameworks/base/services/core/java/com/android/server/wm/
DActivityTaskManagerService.java4956 String timeString = in logAppTooSlow() local
4958 sb.append(timeString); in logAppTooSlow()