Home
last modified time | relevance | path

Searched refs:TimeFormat (Results 1 – 25 of 30) sorted by relevance

12

/external/chromium/chrome/common/
Dtime_format_unittest.cc17 TEST(TimeFormat, RelativeDate) { in TEST() argument
19 string16 today_str = TimeFormat::RelativeDate(now, NULL); in TEST()
23 string16 yesterday_str = TimeFormat::RelativeDate(yesterday, NULL); in TEST()
27 string16 two_days_ago_str = TimeFormat::RelativeDate(two_days_ago, NULL); in TEST()
31 string16 a_week_ago_str = TimeFormat::RelativeDate(a_week_ago, NULL); in TEST()
40 EXPECT_EQ(expected, TimeFormat::TimeRemainingShort(delta)); in TestTimeFormats()
41 EXPECT_EQ(expected_left, TimeFormat::TimeRemaining(delta)); in TestTimeFormats()
42 EXPECT_EQ(expected_ago, TimeFormat::TimeElapsed(delta)); in TestTimeFormats()
47 TEST(TimeFormat, FormatTime) { in TEST() argument
Dtime_format.cc308 string16 TimeFormat::TimeElapsed(const TimeDelta& delta) { in TimeElapsed()
313 string16 TimeFormat::TimeRemaining(const TimeDelta& delta) { in TimeRemaining()
318 string16 TimeFormat::TimeRemainingShort(const TimeDelta& delta) { in TimeRemainingShort()
323 string16 TimeFormat::RelativeDate( in RelativeDate()
Dtime_format.h20 class TimeFormat {
/external/chromium_org/ui/base/l10n/
Dtime_format_unittest.cc22 EXPECT_EQ(expected, TimeFormat::TimeRemainingShort(delta)); in TestTimeFormats()
23 EXPECT_EQ(expected_left, TimeFormat::TimeRemaining(delta)); in TestTimeFormats()
24 EXPECT_EQ(expected_ago, TimeFormat::TimeElapsed(delta)); in TestTimeFormats()
27 TEST(TimeFormat, FormatTime) { in TEST() argument
54 TEST(TimeFormat, RelativeDate) { in TEST() argument
56 string16 today_str = TimeFormat::RelativeDate(now, NULL); in TEST()
60 string16 yesterday_str = TimeFormat::RelativeDate(yesterday, NULL); in TEST()
64 string16 two_days_ago_str = TimeFormat::RelativeDate(two_days_ago, NULL); in TEST()
68 string16 a_week_ago_str = TimeFormat::RelativeDate(a_week_ago, NULL); in TEST()
Dtime_format.cc338 base::string16 TimeFormat::TimeElapsed(const TimeDelta& delta) { in TimeElapsed()
343 base::string16 TimeFormat::TimeRemaining(const TimeDelta& delta) { in TimeRemaining()
348 base::string16 TimeFormat::TimeRemainingLong(const TimeDelta& delta) { in TimeRemainingLong()
353 base::string16 TimeFormat::TimeRemainingShort(const TimeDelta& delta) { in TimeRemainingShort()
358 base::string16 TimeFormat::TimeDurationLong(const TimeDelta& delta) { in TimeDurationLong()
363 base::string16 TimeFormat::RelativeDate( in RelativeDate()
Dtime_format.h20 class UI_EXPORT TimeFormat {
62 DISALLOW_IMPLICIT_CONSTRUCTORS(TimeFormat);
Dl10n_util_android.cc96 ui::TimeFormat::TimeRemaining( in GetDurationString()
/external/chromium/base/i18n/
Dtime_formatting.cc19 string16 TimeFormat(const icu::DateFormat* formatter, in TimeFormat() function
38 return TimeFormat(formatter.get(), time); in TimeFormatTimeOfDay()
66 return TimeFormat(&formatter, time); in TimeFormatTimeOfDayWithHourClockType()
72 return TimeFormat(formatter.get(), time); in TimeFormatShortDate()
78 return TimeFormat(formatter.get(), time); in TimeFormatShortDateNumeric()
84 return TimeFormat(formatter.get(), time); in TimeFormatShortDateAndTime()
90 return TimeFormat(formatter.get(), time); in TimeFormatFriendlyDateAndTime()
96 return TimeFormat(formatter.get(), time); in TimeFormatFriendlyDate()
/external/chromium_org/base/i18n/
Dtime_formatting.cc18 string16 TimeFormat(const icu::DateFormat* formatter, in TimeFormat() function
55 return TimeFormat(formatter.get(), time); in TimeFormatTimeOfDay()
85 return TimeFormat(&formatter, time); in TimeFormatTimeOfDayWithHourClockType()
94 return TimeFormat(formatter.get(), time); in TimeFormatShortDate()
100 return TimeFormat(formatter.get(), time); in TimeFormatShortDateNumeric()
106 return TimeFormat(formatter.get(), time); in TimeFormatShortDateAndTime()
112 return TimeFormat(formatter.get(), time); in TimeFormatFriendlyDateAndTime()
118 return TimeFormat(formatter.get(), time); in TimeFormatFriendlyDate()
/external/chromium_org/third_party/WebKit/Source/core/html/
DMediaFragmentURIParser.h50 enum TimeFormat { None, Invalid, NormalPlayTime, SMPTETimeCode, WallClockTimeCode }; enum
56 TimeFormat m_timeFormat;
/external/chromium_org/ash/system/chromeos/power/
Dpower_status.cc51 return ui::TimeFormat::TimeDurationLong(base::TimeDelta::FromHours(hour)); in GetBatteryTimeAccessibilityString()
54 return ui::TimeFormat::TimeDurationLong(base::TimeDelta::FromMinutes(min)); in GetBatteryTimeAccessibilityString()
58 ui::TimeFormat::TimeDurationLong(base::TimeDelta::FromHours(hour)), in GetBatteryTimeAccessibilityString()
59 ui::TimeFormat::TimeDurationLong(base::TimeDelta::FromMinutes(min))); in GetBatteryTimeAccessibilityString()
Dpower_status_view.cc189 time_label_->SetText(ui::TimeFormat::TimeRemaining( in UpdateTextForNotificationView()
/external/chromium/chrome/browser/download/
Ddownload_item_model.cc51 TimeFormat::TimeRemainingShort(remaining) : in GetStatusText()
52 TimeFormat::TimeRemaining(remaining); in GetStatusText()
Ddownload_util.cc616 TimeFormat::RelativeDate(download->start_time(), NULL)); in CreateDownloadItemValue()
710 time_remaining = TimeFormat::TimeRemaining(remaining); in GetProgressStatusText()
/external/chromium_org/chrome/common/
Dtime_format_browsertest.cc38 ui::TimeFormat::TimeRemainingShort(TimeDelta::FromMinutes(1)); in IN_PROC_BROWSER_TEST_F()
/external/chromium/chrome/browser/chromeos/
Dlow_battery_observer.cc75 TimeFormat::TimeRemaining(remaining)), urgent, true); in Show()
Dnetwork_message_observer.cc138 TimeFormat::TimeRemaining(base::TimeDelta()) : in ShowNoDataNotification()
/external/chromium_org/chrome/browser/download/
Ddownload_item_model.cc330 time_remaining = ui::TimeFormat::TimeRemaining(remaining); in GetTabProgressStatusText()
620 ui::TimeFormat::TimeRemainingShort(time_remaining)); in GetInProgressStatusString()
627 ui::TimeFormat::TimeRemaining(time_remaining)); in GetInProgressStatusString()
/external/chromium_org/chrome/browser/ui/webui/ntp/
Dforeign_session_handler.cc225 return ui::TimeFormat::TimeElapsed( in FormatSessionTime()
406 ui::TimeFormat::TimeElapsed(last_synced)); in SessionWindowToValue()
/external/chromium_org/ash/display/
Dresolution_notification_controller.cc211 ui::TimeFormat::TimeDurationLong( in CreateOrUpdateNotification()
/external/chromium_org/chrome/browser/ui/webui/chromeos/imageburner/
Dimageburner_ui.cc170 ui::TimeFormat::TimeRemaining(time_remaining)); in OnProgressWithRemainingTime()
/external/chromium_org/ash/system/session_length_limit/
Dtray_session_length_limit.cc74 ui::TimeFormat::TimeDurationLong(remaining_session_time)); in FormatRemainingSessionTimeNotification()
/external/chromium_org/chrome/browser/ui/webui/
Dpolicy_ui.cc163 ui::TimeFormat::TimeRemainingShort(refresh_interval)); in GetStatusFromCore()
166 ui::TimeFormat::TimeElapsed(base::Time::NowFromSystemTime() - in GetStatusFromCore()
/external/chromium/chrome/browser/ui/webui/
Dhistory2_ui.cc268 string16 date_str = TimeFormat::RelativeDate(page.visit_time(), in QueryComplete()
Dhistory_ui.cc268 string16 date_str = TimeFormat::RelativeDate(page.visit_time(), in QueryComplete()

12