libcore/ojluni/annotations/hiddenapi/java/util/Locale.java

776 lines
22 KiB
Java

/*
* Copyright (C) 2014 The Android Open Source Project
* Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* (C) Copyright Taligent, Inc. 1996, 1997 - All Rights Reserved
* (C) Copyright IBM Corp. 1996 - 1998 - All Rights Reserved
*
* The original version of this source code and documentation
* is copyrighted and owned by Taligent, Inc., a wholly-owned
* subsidiary of IBM. These materials are provided under terms
* of a License Agreement between Taligent and Sun. This technology
* is protected by multiple US and International patents.
*
* This notice and attribution to Taligent may not be removed.
* Taligent is a registered trademark of Taligent, Inc.
*
*/
package java.util;
import android.compat.annotation.UnsupportedAppUsage;
@SuppressWarnings({"unchecked", "deprecation", "all"})
public final class Locale implements java.lang.Cloneable, java.io.Serializable {
private Locale(
sun.util.locale.BaseLocale baseLocale, sun.util.locale.LocaleExtensions extensions) {
throw new RuntimeException("Stub!");
}
public Locale(java.lang.String language, java.lang.String country, java.lang.String variant) {
throw new RuntimeException("Stub!");
}
public Locale(java.lang.String language, java.lang.String country) {
throw new RuntimeException("Stub!");
}
public Locale(java.lang.String language) {
throw new RuntimeException("Stub!");
}
@UnsupportedAppUsage
private static java.util.Locale createConstant(
java.lang.String lang, java.lang.String country) {
throw new RuntimeException("Stub!");
}
static java.util.Locale getInstance(
java.lang.String language, java.lang.String country, java.lang.String variant) {
throw new RuntimeException("Stub!");
}
static java.util.Locale getInstance(
java.lang.String language,
java.lang.String script,
java.lang.String country,
java.lang.String variant,
sun.util.locale.LocaleExtensions extensions) {
throw new RuntimeException("Stub!");
}
@UnsupportedAppUsage
static java.util.Locale getInstance(
sun.util.locale.BaseLocale baseloc, sun.util.locale.LocaleExtensions extensions) {
throw new RuntimeException("Stub!");
}
public static java.util.Locale getDefault() {
throw new RuntimeException("Stub!");
}
public static java.util.Locale getDefault(java.util.Locale.Category category) {
throw new RuntimeException("Stub!");
}
public static java.util.Locale initDefault() {
throw new RuntimeException("Stub!");
}
private static java.util.Locale initDefault(java.util.Locale.Category category) {
throw new RuntimeException("Stub!");
}
public static synchronized void setDefault(java.util.Locale newLocale) {
throw new RuntimeException("Stub!");
}
public static synchronized void setDefault(
java.util.Locale.Category category, java.util.Locale newLocale) {
throw new RuntimeException("Stub!");
}
public static java.util.Locale[] getAvailableLocales() {
throw new RuntimeException("Stub!");
}
public static java.lang.String[] getISOCountries() {
throw new RuntimeException("Stub!");
}
public static java.lang.String[] getISOLanguages() {
throw new RuntimeException("Stub!");
}
public java.lang.String getLanguage() {
throw new RuntimeException("Stub!");
}
public java.lang.String getScript() {
throw new RuntimeException("Stub!");
}
public java.lang.String getCountry() {
throw new RuntimeException("Stub!");
}
public java.lang.String getVariant() {
throw new RuntimeException("Stub!");
}
public boolean hasExtensions() {
throw new RuntimeException("Stub!");
}
public java.util.Locale stripExtensions() {
throw new RuntimeException("Stub!");
}
public java.lang.String getExtension(char key) {
throw new RuntimeException("Stub!");
}
public java.util.Set<java.lang.Character> getExtensionKeys() {
throw new RuntimeException("Stub!");
}
public java.util.Set<java.lang.String> getUnicodeLocaleAttributes() {
throw new RuntimeException("Stub!");
}
public java.lang.String getUnicodeLocaleType(java.lang.String key) {
throw new RuntimeException("Stub!");
}
public java.util.Set<java.lang.String> getUnicodeLocaleKeys() {
throw new RuntimeException("Stub!");
}
sun.util.locale.BaseLocale getBaseLocale() {
throw new RuntimeException("Stub!");
}
sun.util.locale.LocaleExtensions getLocaleExtensions() {
throw new RuntimeException("Stub!");
}
public java.lang.String toString() {
throw new RuntimeException("Stub!");
}
public java.lang.String toLanguageTag() {
throw new RuntimeException("Stub!");
}
public static java.util.Locale forLanguageTag(java.lang.String languageTag) {
throw new RuntimeException("Stub!");
}
public java.lang.String getISO3Language() throws java.util.MissingResourceException {
throw new RuntimeException("Stub!");
}
public java.lang.String getISO3Country() throws java.util.MissingResourceException {
throw new RuntimeException("Stub!");
}
public java.lang.String getDisplayLanguage() {
throw new RuntimeException("Stub!");
}
public java.lang.String getDisplayLanguage(java.util.Locale locale) {
throw new RuntimeException("Stub!");
}
private static java.lang.String normalizeAndValidateLanguage(
java.lang.String language, boolean strict) {
throw new RuntimeException("Stub!");
}
private static boolean isAsciiAlphaNum(java.lang.String string) {
throw new RuntimeException("Stub!");
}
public java.lang.String getDisplayScript() {
throw new RuntimeException("Stub!");
}
public java.lang.String getDisplayScript(java.util.Locale inLocale) {
throw new RuntimeException("Stub!");
}
public java.lang.String getDisplayCountry() {
throw new RuntimeException("Stub!");
}
public java.lang.String getDisplayCountry(java.util.Locale locale) {
throw new RuntimeException("Stub!");
}
private static java.lang.String normalizeAndValidateRegion(
java.lang.String region, boolean strict) {
throw new RuntimeException("Stub!");
}
private static boolean isValidBcp47Alpha(
java.lang.String string, int lowerBound, int upperBound) {
throw new RuntimeException("Stub!");
}
private static boolean isUnM49AreaCode(java.lang.String code) {
throw new RuntimeException("Stub!");
}
public java.lang.String getDisplayVariant() {
throw new RuntimeException("Stub!");
}
public java.lang.String getDisplayVariant(java.util.Locale inLocale) {
throw new RuntimeException("Stub!");
}
private static java.lang.String normalizeAndValidateVariant(java.lang.String variant) {
throw new RuntimeException("Stub!");
}
private static boolean isValidVariantSubtag(java.lang.String subTag) {
throw new RuntimeException("Stub!");
}
public java.lang.String getDisplayName() {
throw new RuntimeException("Stub!");
}
public java.lang.String getDisplayName(java.util.Locale locale) {
throw new RuntimeException("Stub!");
}
public java.lang.Object clone() {
throw new RuntimeException("Stub!");
}
public int hashCode() {
throw new RuntimeException("Stub!");
}
public boolean equals(java.lang.Object obj) {
throw new RuntimeException("Stub!");
}
private static java.lang.String formatList(
java.lang.String[] stringList,
java.lang.String listPattern,
java.lang.String listCompositionPattern) {
throw new RuntimeException("Stub!");
}
private static java.lang.String[] composeList(
java.text.MessageFormat format, java.lang.String[] list) {
throw new RuntimeException("Stub!");
}
private static boolean isUnicodeExtensionKey(java.lang.String s) {
throw new RuntimeException("Stub!");
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
throw new RuntimeException("Stub!");
}
private void readObject(java.io.ObjectInputStream in)
throws java.lang.ClassNotFoundException, java.io.IOException {
throw new RuntimeException("Stub!");
}
private java.lang.Object readResolve() throws java.io.ObjectStreamException {
throw new RuntimeException("Stub!");
}
private static java.lang.String convertOldISOCodes(java.lang.String language) {
throw new RuntimeException("Stub!");
}
private static sun.util.locale.LocaleExtensions getCompatibilityExtensions(
java.lang.String language,
java.lang.String script,
java.lang.String country,
java.lang.String variant) {
throw new RuntimeException("Stub!");
}
public static java.lang.String adjustLanguageCode(java.lang.String languageCode) {
throw new RuntimeException("Stub!");
}
public static java.util.List<java.util.Locale> filter(
java.util.List<java.util.Locale.LanguageRange> priorityList,
java.util.Collection<java.util.Locale> locales,
java.util.Locale.FilteringMode mode) {
throw new RuntimeException("Stub!");
}
public static java.util.List<java.util.Locale> filter(
java.util.List<java.util.Locale.LanguageRange> priorityList,
java.util.Collection<java.util.Locale> locales) {
throw new RuntimeException("Stub!");
}
public static java.util.List<java.lang.String> filterTags(
java.util.List<java.util.Locale.LanguageRange> priorityList,
java.util.Collection<java.lang.String> tags,
java.util.Locale.FilteringMode mode) {
throw new RuntimeException("Stub!");
}
public static java.util.List<java.lang.String> filterTags(
java.util.List<java.util.Locale.LanguageRange> priorityList,
java.util.Collection<java.lang.String> tags) {
throw new RuntimeException("Stub!");
}
public static java.util.Locale lookup(
java.util.List<java.util.Locale.LanguageRange> priorityList,
java.util.Collection<java.util.Locale> locales) {
throw new RuntimeException("Stub!");
}
public static java.lang.String lookupTag(
java.util.List<java.util.Locale.LanguageRange> priorityList,
java.util.Collection<java.lang.String> tags) {
throw new RuntimeException("Stub!");
}
public static final java.util.Locale CANADA;
static {
CANADA = null;
}
public static final java.util.Locale CANADA_FRENCH;
static {
CANADA_FRENCH = null;
}
public static final java.util.Locale CHINA;
static {
CHINA = null;
}
public static final java.util.Locale CHINESE;
static {
CHINESE = null;
}
private static final int DISPLAY_COUNTRY = 1; // 0x1
private static final int DISPLAY_LANGUAGE = 0; // 0x0
private static final int DISPLAY_SCRIPT = 3; // 0x3
private static final int DISPLAY_VARIANT = 2; // 0x2
public static final java.util.Locale ENGLISH;
static {
ENGLISH = null;
}
public static final java.util.Locale FRANCE;
static {
FRANCE = null;
}
public static final java.util.Locale FRENCH;
static {
FRENCH = null;
}
public static final java.util.Locale GERMAN;
static {
GERMAN = null;
}
public static final java.util.Locale GERMANY;
static {
GERMANY = null;
}
public static final java.util.Locale ITALIAN;
static {
ITALIAN = null;
}
public static final java.util.Locale ITALY;
static {
ITALY = null;
}
public static final java.util.Locale JAPAN;
static {
JAPAN = null;
}
public static final java.util.Locale JAPANESE;
static {
JAPANESE = null;
}
public static final java.util.Locale KOREA;
static {
KOREA = null;
}
public static final java.util.Locale KOREAN;
static {
KOREAN = null;
}
private static final java.util.Locale.Cache LOCALECACHE;
static {
LOCALECACHE = null;
}
public static final java.util.Locale PRC;
static {
PRC = null;
}
public static final char PRIVATE_USE_EXTENSION = 120; // 0x0078 'x'
public static final java.util.Locale ROOT;
static {
ROOT = null;
}
public static final java.util.Locale SIMPLIFIED_CHINESE;
static {
SIMPLIFIED_CHINESE = null;
}
public static final java.util.Locale TAIWAN;
static {
TAIWAN = null;
}
public static final java.util.Locale TRADITIONAL_CHINESE;
static {
TRADITIONAL_CHINESE = null;
}
public static final java.util.Locale UK;
static {
UK = null;
}
private static final java.lang.String UNDETERMINED_LANGUAGE = "und";
public static final char UNICODE_LOCALE_EXTENSION = 117; // 0x0075 'u'
public static final java.util.Locale US;
static {
US = null;
}
private transient sun.util.locale.BaseLocale baseLocale;
private static volatile java.util.Locale defaultDisplayLocale;
private static volatile java.util.Locale defaultFormatLocale;
private transient volatile int hashCodeValue = 0; // 0x0
private static volatile java.lang.String[] isoCountries;
private static volatile java.lang.String[] isoLanguages;
private transient volatile java.lang.String languageTag;
private transient sun.util.locale.LocaleExtensions localeExtensions;
private static final java.io.ObjectStreamField[] serialPersistentFields;
static {
serialPersistentFields = new java.io.ObjectStreamField[0];
}
static final long serialVersionUID = 9149081749638150636L; // 0x7ef811609c30f9ecL
@SuppressWarnings({"unchecked", "deprecation", "all"})
public static final class Builder {
public Builder() {
throw new RuntimeException("Stub!");
}
public java.util.Locale.Builder setLocale(java.util.Locale locale) {
throw new RuntimeException("Stub!");
}
public java.util.Locale.Builder setLanguageTag(java.lang.String languageTag) {
throw new RuntimeException("Stub!");
}
public java.util.Locale.Builder setLanguage(java.lang.String language) {
throw new RuntimeException("Stub!");
}
public java.util.Locale.Builder setScript(java.lang.String script) {
throw new RuntimeException("Stub!");
}
public java.util.Locale.Builder setRegion(java.lang.String region) {
throw new RuntimeException("Stub!");
}
public java.util.Locale.Builder setVariant(java.lang.String variant) {
throw new RuntimeException("Stub!");
}
public java.util.Locale.Builder setExtension(char key, java.lang.String value) {
throw new RuntimeException("Stub!");
}
public java.util.Locale.Builder setUnicodeLocaleKeyword(
java.lang.String key, java.lang.String type) {
throw new RuntimeException("Stub!");
}
public java.util.Locale.Builder addUnicodeLocaleAttribute(java.lang.String attribute) {
throw new RuntimeException("Stub!");
}
public java.util.Locale.Builder removeUnicodeLocaleAttribute(java.lang.String attribute) {
throw new RuntimeException("Stub!");
}
public java.util.Locale.Builder clear() {
throw new RuntimeException("Stub!");
}
public java.util.Locale.Builder clearExtensions() {
throw new RuntimeException("Stub!");
}
public java.util.Locale build() {
throw new RuntimeException("Stub!");
}
private final sun.util.locale.InternalLocaleBuilder localeBuilder;
{
localeBuilder = null;
}
}
@SuppressWarnings({"unchecked", "deprecation", "all"})
private static class Cache
extends sun.util.locale.LocaleObjectCache<
java.util.Locale.LocaleKey, java.util.Locale> {
private Cache() {
throw new RuntimeException("Stub!");
}
protected java.util.Locale createObject(java.util.Locale.LocaleKey key) {
throw new RuntimeException("Stub!");
}
}
@SuppressWarnings({"unchecked", "deprecation", "all"})
public static enum Category {
DISPLAY,
FORMAT;
private Category(
java.lang.String languageKey,
java.lang.String scriptKey,
java.lang.String countryKey,
java.lang.String variantKey) {
throw new RuntimeException("Stub!");
}
private Category() {
throw new RuntimeException("Stub!");
}
final java.lang.String countryKey = null;
final java.lang.String languageKey = null;
final java.lang.String scriptKey = null;
final java.lang.String variantKey = null;
}
@SuppressWarnings({"unchecked", "deprecation", "all"})
public static enum FilteringMode {
AUTOSELECT_FILTERING,
EXTENDED_FILTERING,
IGNORE_EXTENDED_RANGES,
MAP_EXTENDED_RANGES,
REJECT_EXTENDED_RANGES;
private FilteringMode() {
throw new RuntimeException("Stub!");
}
}
@SuppressWarnings({"unchecked", "deprecation", "all"})
public static final class LanguageRange {
public LanguageRange(java.lang.String range) {
throw new RuntimeException("Stub!");
}
public LanguageRange(java.lang.String range, double weight) {
throw new RuntimeException("Stub!");
}
private static boolean isSubtagIllFormed(java.lang.String subtag, boolean isFirstSubtag) {
throw new RuntimeException("Stub!");
}
public java.lang.String getRange() {
throw new RuntimeException("Stub!");
}
public double getWeight() {
throw new RuntimeException("Stub!");
}
public static java.util.List<java.util.Locale.LanguageRange> parse(
java.lang.String ranges) {
throw new RuntimeException("Stub!");
}
public static java.util.List<java.util.Locale.LanguageRange> parse(
java.lang.String ranges,
java.util.Map<java.lang.String, java.util.List<java.lang.String>> map) {
throw new RuntimeException("Stub!");
}
public static java.util.List<java.util.Locale.LanguageRange> mapEquivalents(
java.util.List<java.util.Locale.LanguageRange> priorityList,
java.util.Map<java.lang.String, java.util.List<java.lang.String>> map) {
throw new RuntimeException("Stub!");
}
public int hashCode() {
throw new RuntimeException("Stub!");
}
public boolean equals(java.lang.Object obj) {
throw new RuntimeException("Stub!");
}
public static final double MAX_WEIGHT = 1.0;
public static final double MIN_WEIGHT = 0.0;
private volatile int hash = 0; // 0x0
private final java.lang.String range;
{
range = null;
}
private final double weight;
{
weight = 0;
}
}
@SuppressWarnings({"unchecked", "deprecation", "all"})
private static final class LocaleKey {
private LocaleKey(
sun.util.locale.BaseLocale baseLocale,
sun.util.locale.LocaleExtensions extensions) {
throw new RuntimeException("Stub!");
}
public boolean equals(java.lang.Object obj) {
throw new RuntimeException("Stub!");
}
public int hashCode() {
throw new RuntimeException("Stub!");
}
private final sun.util.locale.BaseLocale base;
{
base = null;
}
private final sun.util.locale.LocaleExtensions exts;
{
exts = null;
}
private final int hash;
{
hash = 0;
}
}
@SuppressWarnings({"unchecked", "deprecation", "all"})
private static class NoImagePreloadHolder {
private NoImagePreloadHolder() {
throw new RuntimeException("Stub!");
}
public static volatile java.util.Locale defaultLocale;
}
}