diff options
author | Dmitri Plotnikov <dplotnikov@google.com> | 2010-08-27 10:59:22 -0700 |
---|---|---|
committer | Dmitri Plotnikov <dplotnikov@google.com> | 2010-08-27 10:59:22 -0700 |
commit | 59024f1697e09ea50d4349e9813d0c101411292b (patch) | |
tree | 2387f955234273527918bef3ba674ff73f6fa7fc | |
parent | e73d10c6fb9013ee8e26f337384d4924f6db8a21 (diff) | |
download | frameworks_base-59024f1697e09ea50d4349e9813d0c101411292b.zip frameworks_base-59024f1697e09ea50d4349e9813d0c101411292b.tar.gz frameworks_base-59024f1697e09ea50d4349e9813d0c101411292b.tar.bz2 |
Unhinding more ContactsContract APIs.
Turns out we need more ContactsContract APIs to
be unhidden in order to support unbundled directories.
Change-Id: If212e769bb32cd6806e39217935d189f9d43ea67
-rw-r--r-- | api/current.xml | 353 | ||||
-rw-r--r-- | core/java/android/provider/ContactsContract.java | 24 |
2 files changed, 358 insertions, 19 deletions
diff --git a/api/current.xml b/api/current.xml index 42152b0..b8871bb 100644 --- a/api/current.xml +++ b/api/current.xml @@ -146023,6 +146023,91 @@ > </field> </class> +<interface name="ContactsContract.ContactNameColumns" + abstract="true" + static="true" + final="false" + deprecated="not deprecated" + visibility="protected" +> +<field name="DISPLAY_NAME_ALTERNATIVE" + type="java.lang.String" + transient="false" + volatile="false" + value=""display_name_alt"" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="DISPLAY_NAME_PRIMARY" + type="java.lang.String" + transient="false" + volatile="false" + value=""display_name"" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="DISPLAY_NAME_SOURCE" + type="java.lang.String" + transient="false" + volatile="false" + value=""display_name_source"" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="PHONETIC_NAME" + type="java.lang.String" + transient="false" + volatile="false" + value=""phonetic_name"" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="PHONETIC_NAME_STYLE" + type="java.lang.String" + transient="false" + volatile="false" + value=""phonetic_name_style"" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="SORT_KEY_ALTERNATIVE" + type="java.lang.String" + transient="false" + volatile="false" + value=""sort_key_alt"" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="SORT_KEY_PRIMARY" + type="java.lang.String" + transient="false" + volatile="false" + value=""sort_key"" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +</interface> <interface name="ContactsContract.ContactOptionsColumns" abstract="true" static="true" @@ -146181,6 +146266,8 @@ > <implements name="android.provider.BaseColumns"> </implements> +<implements name="android.provider.ContactsContract.ContactNameColumns"> +</implements> <implements name="android.provider.ContactsContract.ContactOptionsColumns"> </implements> <implements name="android.provider.ContactsContract.ContactStatusColumns"> @@ -146414,6 +146501,68 @@ > </field> </class> +<class name="ContactsContract.Contacts.Entity" + extends="java.lang.Object" + abstract="false" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +<implements name="android.provider.BaseColumns"> +</implements> +<implements name="android.provider.ContactsContract.BaseSyncColumns"> +</implements> +<implements name="android.provider.ContactsContract.ContactNameColumns"> +</implements> +<implements name="android.provider.ContactsContract.ContactOptionsColumns"> +</implements> +<implements name="android.provider.ContactsContract.ContactStatusColumns"> +</implements> +<implements name="android.provider.ContactsContract.ContactsColumns"> +</implements> +<implements name="android.provider.ContactsContract.DataColumns"> +</implements> +<implements name="android.provider.ContactsContract.RawContactsColumns"> +</implements> +<implements name="android.provider.ContactsContract.StatusColumns"> +</implements> +<implements name="android.provider.ContactsContract.SyncColumns"> +</implements> +<field name="CONTENT_DIRECTORY" + type="java.lang.String" + transient="false" + volatile="false" + value=""entities"" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="DATA_ID" + type="java.lang.String" + transient="false" + volatile="false" + value=""data_id"" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="RAW_CONTACT_ID" + type="java.lang.String" + transient="false" + volatile="false" + value=""raw_contact_id"" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +</class> <class name="ContactsContract.Contacts.Photo" extends="java.lang.Object" abstract="false" @@ -146851,6 +147000,8 @@ > <implements name="android.provider.BaseColumns"> </implements> +<implements name="android.provider.ContactsContract.ContactNameColumns"> +</implements> <implements name="android.provider.ContactsContract.ContactOptionsColumns"> </implements> <implements name="android.provider.ContactsContract.ContactStatusColumns"> @@ -147096,6 +147247,154 @@ > </field> </class> +<interface name="ContactsContract.DisplayNameSources" + abstract="true" + static="true" + final="false" + deprecated="not deprecated" + visibility="public" +> +<field name="EMAIL" + type="int" + transient="false" + volatile="false" + value="10" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="NICKNAME" + type="int" + transient="false" + volatile="false" + value="35" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="ORGANIZATION" + type="int" + transient="false" + volatile="false" + value="30" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="PHONE" + type="int" + transient="false" + volatile="false" + value="20" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="STRUCTURED_NAME" + type="int" + transient="false" + volatile="false" + value="40" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="UNDEFINED" + type="int" + transient="false" + volatile="false" + value="0" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +</interface> +<interface name="ContactsContract.FullNameStyle" + abstract="true" + static="true" + final="false" + deprecated="not deprecated" + visibility="public" +> +<field name="CHINESE" + type="int" + transient="false" + volatile="false" + value="3" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="CJK" + type="int" + transient="false" + volatile="false" + value="2" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="JAPANESE" + type="int" + transient="false" + volatile="false" + value="4" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="KOREAN" + type="int" + transient="false" + volatile="false" + value="5" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="UNDEFINED" + type="int" + transient="false" + volatile="false" + value="0" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="WESTERN" + type="int" + transient="false" + volatile="false" + value="1" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +</interface> <class name="ContactsContract.Groups" extends="java.lang.Object" abstract="false" @@ -147760,6 +148059,58 @@ > </field> </interface> +<interface name="ContactsContract.PhoneticNameStyle" + abstract="true" + static="true" + final="false" + deprecated="not deprecated" + visibility="public" +> +<field name="JAPANESE" + type="int" + transient="false" + volatile="false" + value="4" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="KOREAN" + type="int" + transient="false" + volatile="false" + value="5" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="PINYIN" + type="int" + transient="false" + volatile="false" + value="3" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="UNDEFINED" + type="int" + transient="false" + volatile="false" + value="0" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +</interface> <class name="ContactsContract.Presence" extends="android.provider.ContactsContract.StatusUpdates" abstract="false" @@ -147942,6 +148293,8 @@ > <implements name="android.provider.BaseColumns"> </implements> +<implements name="android.provider.ContactsContract.ContactNameColumns"> +</implements> <implements name="android.provider.ContactsContract.ContactOptionsColumns"> </implements> <implements name="android.provider.ContactsContract.RawContactsColumns"> diff --git a/core/java/android/provider/ContactsContract.java b/core/java/android/provider/ContactsContract.java index 276aa84..5775c64 100644 --- a/core/java/android/provider/ContactsContract.java +++ b/core/java/android/provider/ContactsContract.java @@ -755,7 +755,6 @@ public final class ContactsContract { * 'family name', 'given name' 'middle name'. The CJK tradition is * 'family name' 'middle name' 'given name', with Japanese favoring a space between * the names and Chinese omitting the space. - * @hide */ public interface FullNameStyle { public static final int UNDEFINED = 0; @@ -774,7 +773,6 @@ public final class ContactsContract { /** * Constants for various styles of capturing the pronunciation of a person's name. - * @hide */ public interface PhoneticNameStyle { public static final int UNDEFINED = 0; @@ -800,8 +798,6 @@ public final class ContactsContract { /** * Types of data used to produce the display name for a contact. Listed in the order * of increasing priority. - * - * @hide */ public interface DisplayNameSources { public static final int UNDEFINED = 0; @@ -817,15 +813,12 @@ public final class ContactsContract { * * @see Contacts * @see RawContacts - * @hide */ protected interface ContactNameColumns { /** * The kind of data that is used as the display name for the contact, such as - * structured name or email address. See DisplayNameSources. - * - * TODO: convert DisplayNameSources to a link after it is un-hidden + * structured name or email address. See {@link DisplayNameSources}. */ public static final String DISPLAY_NAME_SOURCE = "display_name_source"; @@ -873,9 +866,7 @@ public final class ContactsContract { /** * The phonetic alphabet used to represent the {@link #PHONETIC_NAME}. See - * PhoneticNameStyle. - * - * TODO: convert PhoneticNameStyle to a link after it is un-hidden + * {@link PhoneticNameStyle}. */ public static final String PHONETIC_NAME_STYLE = "phonetic_name_style"; @@ -885,13 +876,10 @@ public final class ContactsContract { * {@link #PHONETIC_NAME_STYLE}. * </p> * <p> - * The value may be set manually by the user. - * This capability is is of interest only in countries - * with commonly used phonetic - * alphabets, such as Japan and Korea. See PhoneticNameStyle. + * The value may be set manually by the user. This capability is of + * interest only in countries with commonly used phonetic alphabets, + * such as Japan and Korea. See {@link PhoneticNameStyle}. * </p> - * - * TODO: convert PhoneticNameStyle to a link after it is un-hidden */ public static final String PHONETIC_NAME = "phonetic_name"; @@ -1374,8 +1362,6 @@ public final class ContactsContract { * against the cost of transferring large amounts of denormalized data * from the Provider. * </p> - * - * @hide */ public static final class Entity implements BaseColumns, ContactsColumns, ContactNameColumns, RawContactsColumns, BaseSyncColumns, SyncColumns, DataColumns, |