Lines Matching defs:format
36 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
293 * you supply a format string generated by
295 * takes care of generating a format string adapted to the desired locale.</p>
298 * @param format A date/time formatting pattern as described in {@link DateFormat}
308 public void setFormat12Hour(CharSequence format) {
309 mFormat12 = format;
319 public void setContentDescriptionFormat12Hour(CharSequence format) {
320 mDescFormat12 = format;
352 * you supply a format string generated by
354 * takes care of generating a format string adapted to the desired locale.</p>
356 * @param format A date/time formatting pattern as described in {@link DateFormat}
366 public void setFormat24Hour(CharSequence format) {
367 mFormat24 = format;
377 public void setContentDescriptionFormat24Hour(CharSequence format) {
378 mDescFormat24 = format;
407 * If either one of the formats is null, the other format is used. If
410 * @return true if time should be displayed in 24-hour format, false if it
411 * should be displayed in 12-hour format.
464 * Returns the current format string. Always valid after constructor has
475 * depending on whether the user has selected 24-hour format.
601 setText(DateFormat.format(mFormat, mTime));
602 setContentDescription(DateFormat.format(mDescFormat, mTime));
616 stream.addProperty("format", mFormat == null ? null : mFormat.toString());