Lines Matching defs:format
30 import android.text.format.DateFormat;
46 * <p>This view honors the 24-hour format system setting. As such, it is
54 * <p>The rules used by this widget to decide how to format the date and
204 CharSequence format;
206 format = a.getText(R.styleable.TextClock_format12Hour);
207 mFormat12 = format == null ? DEFAULT_FORMAT_12_HOUR : format;
209 format = a.getText(R.styleable.TextClock_format24Hour);
210 mFormat24 = format == null ? DEFAULT_FORMAT_24_HOUR : format;
259 * @param format A date/time formatting pattern as described in {@link DateFormat}
269 public void setFormat12Hour(CharSequence format) {
270 mFormat12 = format;
301 * @param format A date/time formatting pattern as described in {@link DateFormat}
311 public void setFormat24Hour(CharSequence format) {
312 mFormat24 = format;
325 * If either one of the formats is null, the other format is used. If
329 * @return true if time should be displayed in 24-hour format, false if it
330 * should be displayed in 12-hour format.
380 * depending on whether the user has selected 24-hour format.
390 * depending on whether the user has selected 24-hour format.
480 setText(DateFormat.format(mFormat, mTime));