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

/external/chromium_org/ui/base/l10n/
H A Dtime_format_unittest.cc78 EXPECT_EQ(ASCIIToUTF16("1 sec"), TimeFormat::Simple(
79 TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_SHORT, delta_1s_));
80 EXPECT_EQ(ASCIIToUTF16("1 min"), TimeFormat::Simple(
81 TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_SHORT, delta_1m_));
82 EXPECT_EQ(ASCIIToUTF16("1 hour"), TimeFormat::Simple(
83 TimeFormat::FORMAT_DURATION, TimeFormat::LENGTH_SHORT, delta_1h_));
84 EXPECT_EQ(ASCIIToUTF16("1 day"), TimeFormat
[all...]
H A Dtime_format.h20 class UI_BASE_EXPORT TimeFormat { class in namespace:ui
94 DISALLOW_IMPLICIT_CONSTRUCTORS(TimeFormat);
H A Dformatter.h25 // with four parameters for use in TimeFormat::Simple() or with ten parameters
26 // for use in TimeFormat::Detailed().
87 const Formatter* Get(TimeFormat::Format format,
88 TimeFormat::Length length) const;
100 formatter_[TimeFormat::FORMAT_COUNT][TimeFormat::LENGTH_COUNT];
H A Dtime_format.cc21 using ui::TimeFormat;
29 base::string16 TimeFormat::Simple(TimeFormat::Format format,
30 TimeFormat::Length length,
36 base::string16 TimeFormat::Detailed(TimeFormat::Format format,
37 TimeFormat::Length length,
119 base::string16 TimeFormat::RelativeDate(
H A Dformatter.cc270 const Formatter* FormatterContainer::Get(TimeFormat::Format format,
271 TimeFormat::Length length) const {
285 formatter_[TimeFormat::FORMAT_ELAPSED][TimeFormat::LENGTH_SHORT].reset(
290 formatter_[TimeFormat::FORMAT_ELAPSED][TimeFormat::LENGTH_LONG].reset();
291 formatter_[TimeFormat::FORMAT_REMAINING][TimeFormat::LENGTH_SHORT].reset(
296 formatter_[TimeFormat::FORMAT_REMAINING][TimeFormat
[all...]
H A Dl10n_util_android.cc106 ui::TimeFormat::Simple(
107 ui::TimeFormat::FORMAT_REMAINING, ui::TimeFormat::LENGTH_SHORT,
/external/chromium_org/chrome/common/
H A Dtime_format_browsertest.cc38 ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_DURATION,
39 ui::TimeFormat::LENGTH_SHORT,
/external/chromium_org/third_party/WebKit/Source/core/html/
H A DMediaFragmentURIParser.h50 enum TimeFormat { None, Invalid, NormalPlayTime, SMPTETimeCode, WallClockTimeCode }; enum in class:blink::FINAL
56 TimeFormat m_timeFormat;
/external/chromium_org/base/i18n/
H A Dtime_formatting.cc18 string16 TimeFormat(const icu::DateFormat* formatter, function in namespace:base::__anon2294
55 return TimeFormat(formatter.get(), time);
85 return TimeFormat(&formatter, time);
94 return TimeFormat(formatter.get(), time);
100 return TimeFormat(formatter.get(), time);
106 return TimeFormat(formatter.get(), time);
112 return TimeFormat(formatter.get(), time);
118 return TimeFormat(formatter.get(), time);
/external/chromium_org/ash/system/chromeos/power/
H A Dpower_status.cc49 return ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_DURATION,
50 ui::TimeFormat::LENGTH_LONG,
54 return ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_DURATION,
55 ui::TimeFormat::LENGTH_LONG,
60 ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_DURATION,
61 ui::TimeFormat::LENGTH_LONG,
63 ui::TimeFormat
[all...]
H A Dpower_status_view_unittest.cc178 // Low power warning has to be calculated by ui::TimeFormat, but ignore
180 EXPECT_EQ(ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_REMAINING,
181 ui::TimeFormat::LENGTH_LONG,
192 EXPECT_NE(ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_REMAINING,
193 ui::TimeFormat::LENGTH_LONG,
H A Dpower_status_view.cc187 time_label_->SetText(ui::TimeFormat::Simple(
188 ui::TimeFormat::FORMAT_REMAINING, ui::TimeFormat::LENGTH_LONG,
/external/chromium_org/ash/system/chromeos/session/
H A Dtray_session_length_limit.cc185 ui::TimeFormat::Detailed(ui::TimeFormat::FORMAT_DURATION,
186 ui::TimeFormat::LENGTH_LONG,
194 ui::TimeFormat::Detailed(ui::TimeFormat::FORMAT_DURATION,
195 ui::TimeFormat::LENGTH_LONG,
H A Dlogout_confirmation_dialog.cc102 ui::TimeFormat::Detailed(ui::TimeFormat::FORMAT_DURATION,
103 ui::TimeFormat::LENGTH_LONG,
/external/chromium_org/chrome/browser/chromeos/power/
H A Didle_action_warning_dialog_view.cc120 ui::TimeFormat::Detailed(ui::TimeFormat::FORMAT_DURATION,
121 ui::TimeFormat::LENGTH_LONG,
/external/chromium_org/chrome/browser/download/
H A Ddownload_item_model.cc341 time_remaining = ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_REMAINING,
342 ui::TimeFormat::LENGTH_SHORT,
668 ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_DURATION,
669 ui::TimeFormat::LENGTH_SHORT, time_remaining));
676 ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_REMAINING,
677 ui::TimeFormat::LENGTH_SHORT, time_remaining));
/external/chromium_org/chrome/browser/ui/webui/ntp/
H A Dforeign_session_handler.cc223 // TimeFormat does not support negative TimeDelta values, so then we use 0.
224 return ui::TimeFormat::Simple(
225 ui::TimeFormat::FORMAT_ELAPSED, ui::TimeFormat::LENGTH_SHORT,
411 ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_ELAPSED,
412 ui::TimeFormat::LENGTH_SHORT, last_synced));
/external/chromium_org/ash/display/
H A Dresolution_notification_controller.cc210 ui::TimeFormat::Simple(
211 ui::TimeFormat::FORMAT_DURATION, ui::TimeFormat::LENGTH_LONG,
/external/chromium_org/chrome/browser/search/suggestions/
H A Dsuggestions_source.cc58 base::string16 remaining_time_formatted = ui::TimeFormat::Detailed(
59 ui::TimeFormat::Format::FORMAT_DURATION,
60 ui::TimeFormat::Length::LENGTH_LONG,
/external/chromium_org/chrome/browser/ui/webui/chromeos/imageburner/
H A Dimageburner_ui.cc172 ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_REMAINING,
173 ui::TimeFormat::LENGTH_SHORT, time_remaining));
/external/chromium_org/chrome/browser/ui/webui/
H A Dpolicy_ui.cc191 ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_DURATION,
192 ui::TimeFormat::LENGTH_SHORT,
196 ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_ELAPSED,
197 ui::TimeFormat::LENGTH_SHORT,
H A Dhistory_ui.cc202 base::string16 date_str = ui::TimeFormat::RelativeDate(visit_time, &midnight);
357 base::string16 date_str = ui::TimeFormat::RelativeDate(time, &midnight);
H A Ddownloads_dom_handler.cc130 "since_string", ui::TimeFormat::RelativeDate(
/external/chromium_org/chrome/browser/ui/webui/options/
H A Dwebsite_settings_handler.cc336 usage_string = ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_ELAPSED,
337 ui::TimeFormat::LENGTH_SHORT,
/external/chromium_org/chrome/browser/sync/
H A Dprofile_sync_service.cc1715 return ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_ELAPSED,
1716 ui::TimeFormat::LENGTH_SHORT,

Completed in 2497 milliseconds