diff options
| author | Chiao Cheng <chiaocheng@google.com> | 2012-11-13 18:38:56 -0800 |
|---|---|---|
| committer | Chiao Cheng <chiaocheng@google.com> | 2012-11-13 18:38:56 -0800 |
| commit | 428f008513d1591cc08fcfe2cf0c9237fb313241 (patch) | |
| tree | 91d7e0ec7e18d839191f00046dc46627db51d95f /tests/res | |
| parent | e776d0366d5bf2f93a0cd0f14e48804e564bccf2 (diff) | |
| download | packages_apps_Contacts-428f008513d1591cc08fcfe2cf0c9237fb313241.tar.gz packages_apps_Contacts-428f008513d1591cc08fcfe2cf0c9237fb313241.tar.bz2 packages_apps_Contacts-428f008513d1591cc08fcfe2cf0c9237fb313241.zip | |
Move dependencies of AccountTypeManager into ContactsCommon.
Moving dependencies in preparation to move AccountTypeManager.
Bug: 6993891
Change-Id: I804cdbe64b9b8111ed286037943d593e11dc4044
Diffstat (limited to 'tests/res')
| -rw-r--r-- | tests/res/values/donottranslate_strings.xml | 1 | ||||
| -rw-r--r-- | tests/res/xml/contacts_fallback.xml | 96 | ||||
| -rw-r--r-- | tests/res/xml/contacts_readonly.xml | 51 | ||||
| -rw-r--r-- | tests/res/xml/iconset.xml | 33 | ||||
| -rw-r--r-- | tests/res/xml/missing_contacts_base.xml | 39 | ||||
| -rw-r--r-- | tests/res/xml/missing_contacts_name.xml | 28 | ||||
| -rw-r--r-- | tests/res/xml/missing_contacts_name_attr1.xml | 37 | ||||
| -rw-r--r-- | tests/res/xml/missing_contacts_name_attr2.xml | 37 | ||||
| -rw-r--r-- | tests/res/xml/missing_contacts_name_attr3.xml | 37 | ||||
| -rw-r--r-- | tests/res/xml/missing_contacts_name_attr4.xml | 37 | ||||
| -rw-r--r-- | tests/res/xml/missing_contacts_name_attr5.xml | 37 | ||||
| -rw-r--r-- | tests/res/xml/missing_contacts_name_attr6.xml | 37 | ||||
| -rw-r--r-- | tests/res/xml/missing_contacts_name_attr7.xml | 37 | ||||
| -rw-r--r-- | tests/res/xml/missing_contacts_photo.xml | 38 | ||||
| -rw-r--r-- | tests/res/xml/test_basic_contacts.xml | 283 | ||||
| -rw-r--r-- | tests/res/xml/test_basic_syncadapter.xml | 25 |
16 files changed, 17 insertions, 836 deletions
diff --git a/tests/res/values/donottranslate_strings.xml b/tests/res/values/donottranslate_strings.xml index dc8bf2ff6..b3f3ee7da 100644 --- a/tests/res/values/donottranslate_strings.xml +++ b/tests/res/values/donottranslate_strings.xml @@ -17,7 +17,6 @@ <string name="contactsIntents">Contacts Intents</string> <string name="result">Result returned by activity</string> - <string name="test_string">TEST STRING</string> <string-array name="allIntents"> <!-- List modes --> diff --git a/tests/res/xml/contacts_fallback.xml b/tests/res/xml/contacts_fallback.xml deleted file mode 100644 index ae262eba7..000000000 --- a/tests/res/xml/contacts_fallback.xml +++ /dev/null @@ -1,96 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- -/** - * Copyright (c) 2011, The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ ---> - -<!-- - contacts.xml to build "fallback account type" equivalent. - This is directly used in ExternalAccountTypeTest to test the parser. There's no sync adapter - that actually defined with this definition. ---> - -<ContactsAccountType - xmlns:android="http://schemas.android.com/apk/res/android" - > - <EditSchema - > - <DataKind kind="name" - maxOccurs="1" - supportsDisplayName="true" - supportsPrefix="true" - supportsMiddleName="true" - supportsSuffix="true" - supportsPhoneticFamilyName="true" - supportsPhoneticMiddleName="true" - supportsPhoneticGivenName="true" - > - </DataKind> - <DataKind kind="photo" maxOccurs="1" /> - <DataKind kind="phone" > - <Type type="mobile" /> - <Type type="home" /> - <Type type="work" /> - <Type type="fax_work" /> - <Type type="fax_home" /> - <Type type="pager" /> - <Type type="other" /> - <Type type="custom"/> - <Type type="callback" /> - <Type type="car" /> - <Type type="company_main" /> - <Type type="isdn" /> - <Type type="main" /> - <Type type="other_fax" /> - <Type type="radio" /> - <Type type="telex" /> - <Type type="tty_tdd" /> - <Type type="work_mobile"/> - <Type type="work_pager" /> - <Type type="assistant" /> - <Type type="mms" /> - </DataKind> - <DataKind kind="email" > - <Type type="home" /> - <Type type="work" /> - <Type type="other" /> - <Type type="mobile" /> - <Type type="custom" /> - </DataKind> - <DataKind kind="nickname" maxOccurs="1" /> - <DataKind kind="im" > - <Type type="aim" /> - <Type type="msn" /> - <Type type="yahoo" /> - <Type type="skype" /> - <Type type="qq" /> - <Type type="google_talk" /> - <Type type="icq" /> - <Type type="jabber" /> - <Type type="custom" /> - </DataKind> - <DataKind kind="postal" needsStructured="false" > - <Type type="home" /> - <Type type="work" /> - <Type type="other" /> - <Type type="custom" /> - </DataKind> - <DataKind kind="organization" maxOccurs="1" /> - <DataKind kind="website" /> - <DataKind kind="sip_address" maxOccurs="1" /> - <DataKind kind="note" maxOccurs="1" /> - </EditSchema> -</ContactsAccountType> diff --git a/tests/res/xml/contacts_readonly.xml b/tests/res/xml/contacts_readonly.xml deleted file mode 100644 index df8d9c06e..000000000 --- a/tests/res/xml/contacts_readonly.xml +++ /dev/null @@ -1,51 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- -/** - * Copyright (c) 2011, The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ ---> - -<!-- - Contacts.xml without EditSchema. ---> - -<ContactsAccountType - xmlns:android="http://schemas.android.com/apk/res/android" - > - <ContactsDataKind - android:icon="@drawable/android" - android:mimeType="vnd.android.cursor.item/a.b.c" - android:summaryColumn="data1" - android:detailColumn="data2" - android:detailSocialSummary="true" - > - </ContactsDataKind> - <ContactsDataKind - android:icon="@drawable/default_icon" - android:mimeType="vnd.android.cursor.item/d.e.f" - android:summaryColumn="data3" - android:detailColumn="data4" - android:detailSocialSummary="false" - > - </ContactsDataKind> - <ContactsDataKind - android:icon="@drawable/android" - android:mimeType="vnd.android.cursor.item/xyz" - android:summaryColumn="data5" - android:detailColumn="data6" - android:detailSocialSummary="true" - > - </ContactsDataKind> -</ContactsAccountType> diff --git a/tests/res/xml/iconset.xml b/tests/res/xml/iconset.xml index d1207e798..b9e419dd9 100644 --- a/tests/res/xml/iconset.xml +++ b/tests/res/xml/iconset.xml @@ -1,24 +1,25 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2009 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> +<!-- + ~ Copyright (C) 2012 The Android Open Source Project + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, software + ~ distributed under the License is distributed on an "AS IS" BASIS, + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ~ See the License for the specific language governing permissions and + ~ limitations under the License + --> <icon-set xmlns:android="http://schemas.android.com/apk/res/android"> <icon-default android:icon="@drawable/default_icon" /> - <icon android:mimeType="vnd.android.cursor.item/phone" + <icon android:mimeType="vnd.android.cursor.item/phone" android:icon="@drawable/phone_icon" /> -</icon-set>
\ No newline at end of file +</icon-set> diff --git a/tests/res/xml/missing_contacts_base.xml b/tests/res/xml/missing_contacts_base.xml deleted file mode 100644 index 2c9aa6dbc..000000000 --- a/tests/res/xml/missing_contacts_base.xml +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- -/** - * Copyright (c) 2011, The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ ---> - -<!-- XML for must-have checks. Base definition, which is valid. --> - -<ContactsAccountType - xmlns:android="http://schemas.android.com/apk/res/android" - > - <EditSchema> - <DataKind kind="name" - maxOccurs="1" - supportsDisplayName="true" - supportsPrefix="true" - supportsMiddleName="true" - supportsSuffix="true" - supportsPhoneticFamilyName="true" - supportsPhoneticMiddleName="true" - supportsPhoneticGivenName="true" - > - </DataKind> - <DataKind kind="photo" maxOccurs="1" /> - </EditSchema> -</ContactsAccountType> diff --git a/tests/res/xml/missing_contacts_name.xml b/tests/res/xml/missing_contacts_name.xml deleted file mode 100644 index 1ac26be33..000000000 --- a/tests/res/xml/missing_contacts_name.xml +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- -/** - * Copyright (c) 2011, The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ ---> - -<!-- XML for must-have checks. Missing "name" kind. --> - -<ContactsAccountType - xmlns:android="http://schemas.android.com/apk/res/android" - > - <EditSchema> - <DataKind kind="photo" maxOccurs="1" /> - </EditSchema> -</ContactsAccountType> diff --git a/tests/res/xml/missing_contacts_name_attr1.xml b/tests/res/xml/missing_contacts_name_attr1.xml deleted file mode 100644 index b7b0f191a..000000000 --- a/tests/res/xml/missing_contacts_name_attr1.xml +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- -/** - * Copyright (c) 2011, The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ ---> - -<!-- XML for must-have checks. Missing one of the "support*" attributes". --> - -<ContactsAccountType - xmlns:android="http://schemas.android.com/apk/res/android" - > - <EditSchema> - <DataKind kind="name" - maxOccurs="1" - supportsPrefix="true" - supportsMiddleName="true" - supportsSuffix="true" - supportsPhoneticFamilyName="true" - supportsPhoneticMiddleName="true" - supportsPhoneticGivenName="true" - /> - <DataKind kind="photo" maxOccurs="1" /> - </EditSchema> -</ContactsAccountType> diff --git a/tests/res/xml/missing_contacts_name_attr2.xml b/tests/res/xml/missing_contacts_name_attr2.xml deleted file mode 100644 index 41be9e879..000000000 --- a/tests/res/xml/missing_contacts_name_attr2.xml +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- -/** - * Copyright (c) 2011, The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ ---> - -<!-- XML for must-have checks. Missing one of the "support*" attributes". --> - -<ContactsAccountType - xmlns:android="http://schemas.android.com/apk/res/android" - > - <EditSchema> - <DataKind kind="name" - maxOccurs="1" - supportsDisplayName="true" - supportsMiddleName="true" - supportsSuffix="true" - supportsPhoneticFamilyName="true" - supportsPhoneticMiddleName="true" - supportsPhoneticGivenName="true" - /> - <DataKind kind="photo" maxOccurs="1" /> - </EditSchema> -</ContactsAccountType> diff --git a/tests/res/xml/missing_contacts_name_attr3.xml b/tests/res/xml/missing_contacts_name_attr3.xml deleted file mode 100644 index e639a7678..000000000 --- a/tests/res/xml/missing_contacts_name_attr3.xml +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- -/** - * Copyright (c) 2011, The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ ---> - -<!-- XML for must-have checks. Missing one of the "support*" attributes". --> - -<ContactsAccountType - xmlns:android="http://schemas.android.com/apk/res/android" - > - <EditSchema> - <DataKind kind="name" - maxOccurs="1" - supportsDisplayName="true" - supportsPrefix="true" - supportsSuffix="true" - supportsPhoneticFamilyName="true" - supportsPhoneticMiddleName="true" - supportsPhoneticGivenName="true" - /> - <DataKind kind="photo" maxOccurs="1" /> - </EditSchema> -</ContactsAccountType> diff --git a/tests/res/xml/missing_contacts_name_attr4.xml b/tests/res/xml/missing_contacts_name_attr4.xml deleted file mode 100644 index b42cdcd93..000000000 --- a/tests/res/xml/missing_contacts_name_attr4.xml +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- -/** - * Copyright (c) 2011, The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ ---> - -<!-- XML for must-have checks. Missing one of the "support*" attributes". --> - -<ContactsAccountType - xmlns:android="http://schemas.android.com/apk/res/android" - > - <EditSchema> - <DataKind kind="name" - maxOccurs="1" - supportsDisplayName="true" - supportsPrefix="true" - supportsMiddleName="true" - supportsPhoneticFamilyName="true" - supportsPhoneticMiddleName="true" - supportsPhoneticGivenName="true" - /> - <DataKind kind="photo" maxOccurs="1" /> - </EditSchema> -</ContactsAccountType> diff --git a/tests/res/xml/missing_contacts_name_attr5.xml b/tests/res/xml/missing_contacts_name_attr5.xml deleted file mode 100644 index 3778d2f69..000000000 --- a/tests/res/xml/missing_contacts_name_attr5.xml +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- -/** - * Copyright (c) 2011, The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ ---> - -<!-- XML for must-have checks. Missing one of the "support*" attributes". --> - -<ContactsAccountType - xmlns:android="http://schemas.android.com/apk/res/android" - > - <EditSchema> - <DataKind kind="name" - maxOccurs="1" - supportsDisplayName="true" - supportsPrefix="true" - supportsMiddleName="true" - supportsSuffix="true" - supportsPhoneticMiddleName="true" - supportsPhoneticGivenName="true" - /> - <DataKind kind="photo" maxOccurs="1" /> - </EditSchema> -</ContactsAccountType> diff --git a/tests/res/xml/missing_contacts_name_attr6.xml b/tests/res/xml/missing_contacts_name_attr6.xml deleted file mode 100644 index b3a34114c..000000000 --- a/tests/res/xml/missing_contacts_name_attr6.xml +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- -/** - * Copyright (c) 2011, The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ ---> - -<!-- XML for must-have checks. Missing one of the "support*" attributes". --> - -<ContactsAccountType - xmlns:android="http://schemas.android.com/apk/res/android" - > - <EditSchema> - <DataKind kind="name" - maxOccurs="1" - supportsDisplayName="true" - supportsPrefix="true" - supportsMiddleName="true" - supportsSuffix="true" - supportsPhoneticFamilyName="true" - supportsPhoneticGivenName="true" - /> - <DataKind kind="photo" maxOccurs="1" /> - </EditSchema> -</ContactsAccountType> diff --git a/tests/res/xml/missing_contacts_name_attr7.xml b/tests/res/xml/missing_contacts_name_attr7.xml deleted file mode 100644 index c87e4f176..000000000 --- a/tests/res/xml/missing_contacts_name_attr7.xml +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- -/** - * Copyright (c) 2011, The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ ---> - -<!-- XML for must-have checks. Missing one of the "support*" attributes". --> - -<ContactsAccountType - xmlns:android="http://schemas.android.com/apk/res/android" - > - <EditSchema> - <DataKind kind="name" - maxOccurs="1" - supportsDisplayName="true" - supportsPrefix="true" - supportsMiddleName="true" - supportsSuffix="true" - supportsPhoneticFamilyName="true" - supportsPhoneticMiddleName="true" - /> - <DataKind kind="photo" maxOccurs="1" /> - </EditSchema> -</ContactsAccountType> diff --git a/tests/res/xml/missing_contacts_photo.xml b/tests/res/xml/missing_contacts_photo.xml deleted file mode 100644 index 87f4fc692..000000000 --- a/tests/res/xml/missing_contacts_photo.xml +++ /dev/null @@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- -/** - * Copyright (c) 2011, The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ ---> - -<!-- XML for must-have checks. Missing "photo" kind. --> - -<ContactsAccountType - xmlns:android="http://schemas.android.com/apk/res/android" - > - <EditSchema> - <DataKind kind="name" - maxOccurs="1" - supportsDisplayName="true" - supportsPrefix="true" - supportsMiddleName="true" - supportsSuffix="true" - supportsPhoneticFamilyName="true" - supportsPhoneticMiddleName="true" - supportsPhoneticGivenName="true" - > - </DataKind> - </EditSchema> -</ContactsAccountType> diff --git a/tests/res/xml/test_basic_contacts.xml b/tests/res/xml/test_basic_contacts.xml deleted file mode 100644 index 0047204f7..000000000 --- a/tests/res/xml/test_basic_contacts.xml +++ /dev/null @@ -1,283 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- -/** - * Copyright (c) 2011, The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ ---> - -<ContactsAccountType - xmlns:android="http://schemas.android.com/apk/res/android" - > - <EditSchema - > - <!-- - Name: - - maxOccurs must be 1 - - No types. - - - Currently all the supportsXxx attributes must be true, but here's the plan for the - future: - (There's some hardcoded assumptions in the contact editor, which is one reason - for the above restriction) - - - "Family name" and "Given name" must be supported. - - All sync adapters must support structured name. "display name only" is not - supported. - -> Supporting this would require relatively large changes to - the contact editor. - - - Fields are decided from the attributes: - StructuredName.DISPLAY_NAME if supportsDisplayName == true - StructuredName.PREFIX if supportsPrefix == true - StructuredName.FAMILY_NAME (always) - StructuredName.MIDDLE_NAME if supportsPrefix == true - StructuredName.GIVEN_NAME (always) - StructuredName.SUFFIX if supportsSuffix == true - StructuredName.PHONETIC_FAMILY_NAME if supportsPhoneticFamilyName == true - StructuredName.PHONETIC_MIDDLE_NAME if supportsPhoneticMiddleName == true - StructuredName.PHONETIC_GIVEN_NAME if supportsPhoneticGivenName == true - - - DataKind.PSEUDO_MIME_TYPE_DISPLAY_NAME is always added. - - DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME is added - if any of supportsPhoneticXxx == true - --> - <!-- Fallback/Google definition. Supports all. --> - <DataKind kind="name" - maxOccurs="1" - supportsDisplayName="true" - supportsPrefix="true" - supportsMiddleName="true" - supportsSuffix="true" - supportsPhoneticFamilyName="true" - supportsPhoneticMiddleName="true" - supportsPhoneticGivenName="true" - > - </DataKind> - - <!-- Exchange definition. No display-name, no phonetic-middle. - <DataKind kind="name" - supportsDisplayName="false" - supportsPrefix="true" - supportsMiddleName="true" - supportsSuffix="true" - supportsPhoneticFamilyName="true" - supportsPhoneticMiddleName="false" - supportsPhoneticGivenName ="true" - > - </DataKind> - --> - - <!-- - Photo: - - maxOccurs must be 1 - - No types. - --> - <DataKind kind="photo" maxOccurs="1" /> - - <!-- - Phone definition. - - "is secondary?" is inferred from type. - --> - <!-- Fallback, Google definition. --> - <DataKind kind="phone" > - <!-- Note: Google type doesn't have obsolete ones --> - <Type type="mobile" /> - <Type type="home" /> - <Type type="work" /> - <Type type="fax_work" /> - <Type type="fax_home" /> - <Type type="pager" /> - <Type type="other" /> - <Type type="custom"/> - <Type type="callback" /> - <Type type="car" /> - <Type type="company_main" /> - <Type type="isdn" /> - <Type type="main" /> - <Type type="other_fax" /> - <Type type="radio" /> - <Type type="telex" /> - <Type type="tty_tdd" /> - <Type type="work_mobile"/> - <Type type="work_pager" /> - <Type type="assistant" /> - <Type type="mms" /> - </DataKind> - - <!-- Exchange definition. - <DataKind kind="phone" > - <Type type="home" maxOccurs="2" /> - <Type type="mobile" maxOccurs="1" /> - <Type type="work" maxOccurs="2" /> - <Type type="fax_work" maxOccurs="1" /> - <Type type="fax_home" maxOccurs="1" /> - <Type type="pager" maxOccurs="1" /> - <Type type="car" maxOccurs="1" /> - <Type type="company_main" maxOccurs="1" /> - <Type type="mms" maxOccurs="1" /> - <Type type="radio" maxOccurs="1" /> - <Type type="assistant" maxOccurs="1" /> - </DataKind> - --> - - <!-- - Email - --> - <!-- Fallback/Google definition. --> - <DataKind kind="email" > - <!-- Note: Google type doesn't have obsolete ones --> - <Type type="home" /> - <Type type="work" /> - <Type type="other" /> - <Type type="mobile" /> - <Type type="custom" /> - </DataKind> - - <!-- - Exchange definition. - - Same definition as "fallback" except for maxOccurs=3 - <DataKind kind="email" maxOccurs="3" > - <Type type="home" /> - <Type type="work" /> - <Type type="other" /> - <Type type="mobile" /> - <Type type="custom" /> - </DataKind> - --> - - <!-- - Nickname - - maxOccurs must be 1 - - No types. - --> - <DataKind kind="nickname" maxOccurs="1" /> - - <!-- - Im: - - The TYPE column always stores Im.TYPE_OTHER (defaultValues is always set) - - The user-selected type is stored in Im.PROTOCOL - --> - <!-- Fallback, Google definition. --> - <DataKind kind="im" > - <Type type="aim" /> - <Type type="msn" /> - <Type type="yahoo" /> - <Type type="skype" /> - <Type type="qq" /> - <Type type="google_talk" /> - <Type type="icq" /> - <Type type="jabber" /> - <Type type="custom" /> - </DataKind> - - <!-- Exchange definition. - <DataKind kind="im" maxOccurs="3" > - <Type type="aim" /> - <Type type="msn" /> - <Type type="yahoo" /> - <Type type="skype" /> - <Type type="qq" /> - <Type type="google_talk" /> - <Type type="icq" /> - <Type type="jabber" /> - <Type type="custom" /> - </DataKind> - --> - - <!-- - Postal address. - --> - <!-- Fallback/Google definition. Not structured. --> - <DataKind kind="postal" needsStructured="false" > - <Type type="home" /> - <Type type="work" /> - <Type type="other" /> - <Type type="custom" /> - </DataKind> - - <!-- Exchange definition. Structured. - <DataKind kind="postal" needsStructured="true" > - <Type type="work" /> - <Type type="home" /> - <Type type="other" /> - </DataKind> - --> - - <!-- - Organization: - - Fields are fixed: COMPANY, TITLE - - maxOccurs must be 1 - - No types. - --> - <DataKind kind="organization" maxOccurs="1" /> - - <!-- - Website: - - No types. - --> - <DataKind kind="website" /> - - <!-- - Below kinds have nothing configurable. - - No types are supported. - - maxOccurs must be 1 - --> - <DataKind kind="sip_address" maxOccurs="1" /> - <DataKind kind="note" maxOccurs="1" /> - - <!-- - Google/Exchange supports it, but fallback doesn't. - <DataKind kind="group_membership" maxOccurs="1" /> - --> - - <!-- - Event - --> - <DataKind kind="event" dateWithTime="false"> - <Type type="birthday" maxOccurs="1" yearOptional="true" /> - <Type type="anniversary" /> - <Type type="other" /> - <Type type="custom" /> - </DataKind> - - <!-- - Exchange definition. dateWithTime is needed only for Exchange. - <DataKind kind="event" dateWithTime="true"> - <Type type="birthday" maxOccurs="1" /> - </DataKind> - --> - - <!-- - Relationship - --> - <DataKind kind="relationship" > - <Type type="assistant" /> - <Type type="brother" /> - <Type type="child" /> - <Type type="domestic_partner" /> - <Type type="father" /> - <Type type="friend" /> - <Type type="manager" /> - <Type type="mother" /> - <Type type="parent" /> - <Type type="partner" /> - <Type type="referred_by" /> - <Type type="relative" /> - <Type type="sister" /> - <Type type="spouse" /> - <Type type="custom" /> - </DataKind> - </EditSchema> -</ContactsAccountType> diff --git a/tests/res/xml/test_basic_syncadapter.xml b/tests/res/xml/test_basic_syncadapter.xml deleted file mode 100644 index fecc0eb16..000000000 --- a/tests/res/xml/test_basic_syncadapter.xml +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- -/** - * Copyright (c) 2011, The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ ---> - -<sync-adapter xmlns:android="http://schemas.android.com/apk/res/android" - android:contentAuthority="com.android.contacts" - android:accountType="com.android.contacts.tests.authtest.basic" - android:supportsUploading="true" - android:userVisible="true" -/> |
