* commit '6220810b8167deee7bf2577f5136736473cbea1c': Remove deprecated DateFormat APIs.
This commit is contained in:
@@ -30273,19 +30273,6 @@ package android.text.format {
|
|||||||
method public static java.text.DateFormat getMediumDateFormat(android.content.Context);
|
method public static java.text.DateFormat getMediumDateFormat(android.content.Context);
|
||||||
method public static java.text.DateFormat getTimeFormat(android.content.Context);
|
method public static java.text.DateFormat getTimeFormat(android.content.Context);
|
||||||
method public static boolean is24HourFormat(android.content.Context);
|
method public static boolean is24HourFormat(android.content.Context);
|
||||||
field public static final deprecated char AM_PM = 97; // 0x0061 'a'
|
|
||||||
field public static final deprecated char CAPITAL_AM_PM = 65; // 0x0041 'A'
|
|
||||||
field public static final deprecated char DATE = 100; // 0x0064 'd'
|
|
||||||
field public static final deprecated char DAY = 69; // 0x0045 'E'
|
|
||||||
field public static final deprecated char HOUR = 104; // 0x0068 'h'
|
|
||||||
field public static final deprecated char HOUR_OF_DAY = 107; // 0x006b 'k'
|
|
||||||
field public static final deprecated char MINUTE = 109; // 0x006d 'm'
|
|
||||||
field public static final deprecated char MONTH = 77; // 0x004d 'M'
|
|
||||||
field public static final deprecated char QUOTE = 39; // 0x0027 '\''
|
|
||||||
field public static final deprecated char SECONDS = 115; // 0x0073 's'
|
|
||||||
field public static final deprecated char STANDALONE_MONTH = 76; // 0x004c 'L'
|
|
||||||
field public static final deprecated char TIME_ZONE = 122; // 0x007a 'z'
|
|
||||||
field public static final deprecated char YEAR = 121; // 0x0079 'y'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class DateUtils {
|
public class DateUtils {
|
||||||
|
|||||||
@@ -22,6 +22,26 @@ package android.os {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
package android.text.format {
|
||||||
|
|
||||||
|
public class DateFormat {
|
||||||
|
field public static final deprecated char AM_PM = 97; // 0x0061 'a'
|
||||||
|
field public static final deprecated char CAPITAL_AM_PM = 65; // 0x0041 'A'
|
||||||
|
field public static final deprecated char DATE = 100; // 0x0064 'd'
|
||||||
|
field public static final deprecated char DAY = 69; // 0x0045 'E'
|
||||||
|
field public static final deprecated char HOUR = 104; // 0x0068 'h'
|
||||||
|
field public static final deprecated char HOUR_OF_DAY = 107; // 0x006b 'k'
|
||||||
|
field public static final deprecated char MINUTE = 109; // 0x006d 'm'
|
||||||
|
field public static final deprecated char MONTH = 77; // 0x004d 'M'
|
||||||
|
field public static final deprecated char QUOTE = 39; // 0x0027 '\''
|
||||||
|
field public static final deprecated char SECONDS = 115; // 0x0073 's'
|
||||||
|
field public static final deprecated char STANDALONE_MONTH = 76; // 0x004c 'L'
|
||||||
|
field public static final deprecated char TIME_ZONE = 122; // 0x007a 'z'
|
||||||
|
field public static final deprecated char YEAR = 121; // 0x0079 'y'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
package android.view {
|
package android.view {
|
||||||
|
|
||||||
public class View implements android.view.accessibility.AccessibilityEventSource android.graphics.drawable.Drawable.Callback android.view.KeyEvent.Callback {
|
public class View implements android.view.accessibility.AccessibilityEventSource android.graphics.drawable.Drawable.Callback android.view.KeyEvent.Callback {
|
||||||
|
|||||||
@@ -60,27 +60,45 @@ import libcore.icu.LocaleData;
|
|||||||
* {@code SimpleDateFormat}.
|
* {@code SimpleDateFormat}.
|
||||||
*/
|
*/
|
||||||
public class DateFormat {
|
public class DateFormat {
|
||||||
/** @deprecated Use a literal {@code '} instead. */
|
/**
|
||||||
|
* @deprecated Use a literal {@code '} instead.
|
||||||
|
* @removed
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static final char QUOTE = '\'';
|
public static final char QUOTE = '\'';
|
||||||
|
|
||||||
/** @deprecated Use a literal {@code 'a'} instead. */
|
/**
|
||||||
|
* @deprecated Use a literal {@code 'a'} instead.
|
||||||
|
* @removed
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static final char AM_PM = 'a';
|
public static final char AM_PM = 'a';
|
||||||
|
|
||||||
/** @deprecated Use a literal {@code 'a'} instead; 'A' was always equivalent to 'a'. */
|
/**
|
||||||
|
* @deprecated Use a literal {@code 'a'} instead; 'A' was always equivalent to 'a'.
|
||||||
|
* @removed
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static final char CAPITAL_AM_PM = 'A';
|
public static final char CAPITAL_AM_PM = 'A';
|
||||||
|
|
||||||
/** @deprecated Use a literal {@code 'd'} instead. */
|
/**
|
||||||
|
* @deprecated Use a literal {@code 'd'} instead.
|
||||||
|
* @removed
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static final char DATE = 'd';
|
public static final char DATE = 'd';
|
||||||
|
|
||||||
/** @deprecated Use a literal {@code 'E'} instead. */
|
/**
|
||||||
|
* @deprecated Use a literal {@code 'E'} instead.
|
||||||
|
* @removed
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static final char DAY = 'E';
|
public static final char DAY = 'E';
|
||||||
|
|
||||||
/** @deprecated Use a literal {@code 'h'} instead. */
|
/**
|
||||||
|
* @deprecated Use a literal {@code 'h'} instead.
|
||||||
|
* @removed
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static final char HOUR = 'h';
|
public static final char HOUR = 'h';
|
||||||
|
|
||||||
@@ -88,31 +106,51 @@ public class DateFormat {
|
|||||||
* @deprecated Use a literal {@code 'H'} (for compatibility with {@link SimpleDateFormat}
|
* @deprecated Use a literal {@code 'H'} (for compatibility with {@link SimpleDateFormat}
|
||||||
* and Unicode) or {@code 'k'} (for compatibility with Android releases up to and including
|
* and Unicode) or {@code 'k'} (for compatibility with Android releases up to and including
|
||||||
* Jelly Bean MR-1) instead. Note that the two are incompatible.
|
* Jelly Bean MR-1) instead. Note that the two are incompatible.
|
||||||
|
*
|
||||||
|
* @removed
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static final char HOUR_OF_DAY = 'k';
|
public static final char HOUR_OF_DAY = 'k';
|
||||||
|
|
||||||
/** @deprecated Use a literal {@code 'm'} instead. */
|
/**
|
||||||
|
* @deprecated Use a literal {@code 'm'} instead.
|
||||||
|
* @removed
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static final char MINUTE = 'm';
|
public static final char MINUTE = 'm';
|
||||||
|
|
||||||
/** @deprecated Use a literal {@code 'M'} instead. */
|
/**
|
||||||
|
* @deprecated Use a literal {@code 'M'} instead.
|
||||||
|
* @removed
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static final char MONTH = 'M';
|
public static final char MONTH = 'M';
|
||||||
|
|
||||||
/** @deprecated Use a literal {@code 'L'} instead. */
|
/**
|
||||||
|
* @deprecated Use a literal {@code 'L'} instead.
|
||||||
|
* @removed
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static final char STANDALONE_MONTH = 'L';
|
public static final char STANDALONE_MONTH = 'L';
|
||||||
|
|
||||||
/** @deprecated Use a literal {@code 's'} instead. */
|
/**
|
||||||
|
* @deprecated Use a literal {@code 's'} instead.
|
||||||
|
* @removed
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static final char SECONDS = 's';
|
public static final char SECONDS = 's';
|
||||||
|
|
||||||
/** @deprecated Use a literal {@code 'z'} instead. */
|
/**
|
||||||
|
* @deprecated Use a literal {@code 'z'} instead.
|
||||||
|
* @removed
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static final char TIME_ZONE = 'z';
|
public static final char TIME_ZONE = 'z';
|
||||||
|
|
||||||
/** @deprecated Use a literal {@code 'y'} instead. */
|
/**
|
||||||
|
* @deprecated Use a literal {@code 'y'} instead.
|
||||||
|
* @removed
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static final char YEAR = 'y';
|
public static final char YEAR = 'y';
|
||||||
|
|
||||||
@@ -306,9 +344,9 @@ public class DateFormat {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the current date format stored as a char array. The array will contain
|
* Gets the current date format stored as a char array. Returns a 3 element
|
||||||
* 3 elements ({@link #DATE}, {@link #MONTH}, and {@link #YEAR}) in the order
|
* array containing the day ({@code 'd'}), month ({@code 'M'}), and year ({@code 'y'}))
|
||||||
* specified by the user's format preference. Note that this order is
|
* in the order specified by the user's format preference. Note that this order is
|
||||||
* <i>only</i> appropriate for all-numeric dates; spelled-out (MEDIUM and LONG)
|
* <i>only</i> appropriate for all-numeric dates; spelled-out (MEDIUM and LONG)
|
||||||
* dates will generally contain other punctuation, spaces, or words,
|
* dates will generally contain other punctuation, spaces, or words,
|
||||||
* not just the day, month, and year, and not necessarily in the same
|
* not just the day, month, and year, and not necessarily in the same
|
||||||
|
|||||||
Reference in New Issue
Block a user