Lines Matching refs:format

33 import android.text.format.DateFormat;
52 * <p>This view honors the 24-hour format system setting. As such, it is
61 * <p>The rules used by this widget to decide how to format the date and
285 * you supply a format string generated by
287 * takes care of generating a format string adapted to the desired locale.</p>
290 * @param format A date/time formatting pattern as described in {@link DateFormat}
300 public void setFormat12Hour(CharSequence format) {
301 mFormat12 = format;
311 public void setContentDescriptionFormat12Hour(CharSequence format) {
312 mDescFormat12 = format;
344 * you supply a format string generated by
346 * takes care of generating a format string adapted to the desired locale.</p>
348 * @param format A date/time formatting pattern as described in {@link DateFormat}
358 public void setFormat24Hour(CharSequence format) {
359 mFormat24 = format;
369 public void setContentDescriptionFormat24Hour(CharSequence format) {
370 mDescFormat24 = format;
399 * If either one of the formats is null, the other format is used. If
402 * @return true if time should be displayed in 24-hour format, false if it
403 * should be displayed in 12-hour format.
457 * depending on whether the user has selected 24-hour format.
466 * Returns the current format string. Always valid after constructor has
477 * depending on whether the user has selected 24-hour format.
577 setText(DateFormat.format(mFormat, mTime));
578 setContentDescription(DateFormat.format(mDescFormat, mTime));
591 stream.addProperty("format", mFormat == null ? null : mFormat.toString());