diff options
Diffstat (limited to 'java/com/android/contacts/common')
76 files changed, 39 insertions, 1993 deletions
diff --git a/java/com/android/contacts/common/dialog/CallSubjectDialog.java b/java/com/android/contacts/common/dialog/CallSubjectDialog.java index bbf31e844..bf0ac14b2 100644 --- a/java/com/android/contacts/common/dialog/CallSubjectDialog.java +++ b/java/com/android/contacts/common/dialog/CallSubjectDialog.java @@ -41,12 +41,12 @@ import android.widget.EditText; import android.widget.ListView; import android.widget.QuickContactBadge; import android.widget.TextView; -import com.android.contacts.common.R; import com.android.dialer.animation.AnimUtils; import com.android.dialer.callintent.CallInitiationType; import com.android.dialer.callintent.CallIntentBuilder; import com.android.dialer.common.LogUtil; import com.android.dialer.contactphoto.ContactPhotoManager; +import com.android.dialer.contacts.resources.R; import com.android.dialer.lettertile.LetterTileDrawable; import com.android.dialer.precall.PreCall; import com.android.dialer.util.ViewUtil; diff --git a/java/com/android/contacts/common/dialog/ClearFrequentsDialog.java b/java/com/android/contacts/common/dialog/ClearFrequentsDialog.java index 751490a22..cd9511c38 100644 --- a/java/com/android/contacts/common/dialog/ClearFrequentsDialog.java +++ b/java/com/android/contacts/common/dialog/ClearFrequentsDialog.java @@ -28,7 +28,7 @@ import android.content.DialogInterface.OnClickListener; import android.os.AsyncTask; import android.os.Bundle; import android.provider.ContactsContract; -import com.android.contacts.common.R; +import com.android.dialer.contacts.resources.R; import com.android.dialer.util.PermissionsUtil; /** Dialog that clears the frequently contacted list after confirming with the user. */ diff --git a/java/com/android/contacts/common/list/ContactTileView.java b/java/com/android/contacts/common/list/ContactTileView.java index 072e07dd2..732cee7e1 100644 --- a/java/com/android/contacts/common/list/ContactTileView.java +++ b/java/com/android/contacts/common/list/ContactTileView.java @@ -23,12 +23,12 @@ import android.view.View; import android.widget.FrameLayout; import android.widget.ImageView; import com.android.contacts.common.MoreContactUtils; -import com.android.contacts.common.R; import com.android.dialer.callintent.CallInitiationType; import com.android.dialer.callintent.CallSpecificAppData; import com.android.dialer.common.LogUtil; import com.android.dialer.contactphoto.ContactPhotoManager; import com.android.dialer.contactphoto.ContactPhotoManager.DefaultImageRequest; +import com.android.dialer.contacts.resources.R; import com.android.dialer.widget.BidiTextView; /** A ContactTile displays a contact's picture and name */ diff --git a/java/com/android/contacts/common/list/ViewPagerTabStrip.java b/java/com/android/contacts/common/list/ViewPagerTabStrip.java index 88c0369d6..7a9e506db 100644 --- a/java/com/android/contacts/common/list/ViewPagerTabStrip.java +++ b/java/com/android/contacts/common/list/ViewPagerTabStrip.java @@ -23,7 +23,7 @@ import android.graphics.Paint; import android.util.AttributeSet; import android.view.View; import android.widget.LinearLayout; -import com.android.contacts.common.R; +import com.android.dialer.contacts.resources.R; import com.android.dialer.theme.base.ThemeComponent; public class ViewPagerTabStrip extends LinearLayout { diff --git a/java/com/android/contacts/common/list/ViewPagerTabs.java b/java/com/android/contacts/common/list/ViewPagerTabs.java index f48fd29ca..b3242ee2b 100644 --- a/java/com/android/contacts/common/list/ViewPagerTabs.java +++ b/java/com/android/contacts/common/list/ViewPagerTabs.java @@ -32,7 +32,7 @@ import android.widget.HorizontalScrollView; import android.widget.LinearLayout; import android.widget.TextView; import android.widget.Toast; -import com.android.contacts.common.R; +import com.android.dialer.contacts.resources.R; /** * Lightweight implementation of ViewPager tabs. This looks similar to traditional actionBar tabs, diff --git a/java/com/android/contacts/common/model/account/AccountType.java b/java/com/android/contacts/common/model/account/AccountType.java index ed0d421a9..499286a13 100644 --- a/java/com/android/contacts/common/model/account/AccountType.java +++ b/java/com/android/contacts/common/model/account/AccountType.java @@ -29,8 +29,8 @@ import android.support.v4.content.ContextCompat; import android.util.ArrayMap; import android.view.inputmethod.EditorInfo; import android.widget.EditText; -import com.android.contacts.common.R; import com.android.contacts.common.model.dataitem.DataKind; +import com.android.dialer.contacts.resources.R; import java.text.Collator; import java.util.ArrayList; import java.util.Collections; diff --git a/java/com/android/contacts/common/model/account/BaseAccountType.java b/java/com/android/contacts/common/model/account/BaseAccountType.java index ccdad3641..2911975d5 100644 --- a/java/com/android/contacts/common/model/account/BaseAccountType.java +++ b/java/com/android/contacts/common/model/account/BaseAccountType.java @@ -37,11 +37,11 @@ import android.provider.ContactsContract.CommonDataKinds.Website; import android.util.ArrayMap; import android.util.AttributeSet; import android.view.inputmethod.EditorInfo; -import com.android.contacts.common.R; import com.android.contacts.common.model.dataitem.DataKind; import com.android.contacts.common.util.CommonDateUtils; import com.android.contacts.common.util.ContactDisplayUtils; import com.android.dialer.common.LogUtil; +import com.android.dialer.contacts.resources.R; import java.io.IOException; import java.util.ArrayList; import java.util.List; diff --git a/java/com/android/contacts/common/model/account/ExchangeAccountType.java b/java/com/android/contacts/common/model/account/ExchangeAccountType.java index a27028e80..0a95e7ecb 100644 --- a/java/com/android/contacts/common/model/account/ExchangeAccountType.java +++ b/java/com/android/contacts/common/model/account/ExchangeAccountType.java @@ -29,10 +29,10 @@ import android.provider.ContactsContract.CommonDataKinds.Photo; import android.provider.ContactsContract.CommonDataKinds.StructuredName; import android.provider.ContactsContract.CommonDataKinds.StructuredPostal; import android.provider.ContactsContract.CommonDataKinds.Website; -import android.util.Log; -import com.android.contacts.common.R; import com.android.contacts.common.model.dataitem.DataKind; import com.android.contacts.common.util.CommonDateUtils; +import com.android.dialer.common.LogUtil; +import com.android.dialer.contacts.resources.R; import java.util.ArrayList; import java.util.Locale; @@ -67,7 +67,7 @@ public class ExchangeAccountType extends BaseAccountType { mIsInitialized = true; } catch (DefinitionException e) { - Log.e(TAG, "Problem building account type", e); + LogUtil.e(TAG, "Problem building account type", e); } } diff --git a/java/com/android/contacts/common/model/account/ExternalAccountType.java b/java/com/android/contacts/common/model/account/ExternalAccountType.java index aca1f70d2..618def78a 100644 --- a/java/com/android/contacts/common/model/account/ExternalAccountType.java +++ b/java/com/android/contacts/common/model/account/ExternalAccountType.java @@ -30,10 +30,10 @@ import android.provider.ContactsContract.CommonDataKinds.StructuredName; import android.support.annotation.VisibleForTesting; import android.text.TextUtils; import android.util.AttributeSet; -import android.util.Log; import android.util.Xml; -import com.android.contacts.common.R; import com.android.contacts.common.model.dataitem.DataKind; +import com.android.dialer.common.LogUtil; +import com.android.dialer.contacts.resources.R; import java.io.IOException; import java.util.ArrayList; import java.util.List; @@ -152,7 +152,7 @@ public class ExternalAccountType extends BaseAccountType { error.append(" for external package "); error.append(packageName); - Log.e(TAG, error.toString(), e); + LogUtil.e(TAG, error.toString(), e); return; } finally { if (parser != null) { @@ -210,13 +210,11 @@ public class ExternalAccountType extends BaseAccountType { for (String metadataName : METADATA_CONTACTS_NAMES) { final XmlResourceParser parser = serviceInfo.loadXmlMetaData(pm, metadataName); if (parser != null) { - if (Log.isLoggable(TAG, Log.DEBUG)) { - Log.d( - TAG, - String.format( - "Metadata loaded from: %s, %s, %s", - serviceInfo.packageName, serviceInfo.name, metadataName)); - } + LogUtil.d( + TAG, + String.format( + "Metadata loaded from: %s, %s, %s", + serviceInfo.packageName, serviceInfo.name, metadataName)); return parser; } } @@ -250,7 +248,7 @@ public class ExternalAccountType extends BaseAccountType { return -1; // Empty text is okay. } if (resourceName.charAt(0) != '@') { - Log.e(TAG, xmlAttributeName + " must be a resource name beginnig with '@'"); + LogUtil.e(TAG, xmlAttributeName + " must be a resource name beginnig with '@'"); return -1; } final String name = resourceName.substring(1); @@ -258,12 +256,12 @@ public class ExternalAccountType extends BaseAccountType { try { res = context.getPackageManager().getResourcesForApplication(packageName); } catch (NameNotFoundException e) { - Log.e(TAG, "Unable to load package " + packageName); + LogUtil.e(TAG, "Unable to load package " + packageName); return -1; } final int resId = res.getIdentifier(name, null, packageName); if (resId == 0) { - Log.e(TAG, "Unable to load " + resourceName + " from package " + packageName); + LogUtil.e(TAG, "Unable to load " + resourceName + " from package " + packageName); return -1; } return resId; @@ -366,9 +364,7 @@ public class ExternalAccountType extends BaseAccountType { for (int i = 0; i < attributeCount; i++) { String attr = parser.getAttributeName(i); String value = parser.getAttributeValue(i); - if (Log.isLoggable(TAG, Log.DEBUG)) { - Log.d(TAG, attr + "=" + value); - } + LogUtil.d(TAG, attr + "=" + value); if (ATTR_EDIT_CONTACT_ACTIVITY.equals(attr)) { mEditContactActivityClassName = value; } else if (ATTR_CREATE_CONTACT_ACTIVITY.equals(attr)) { @@ -394,7 +390,7 @@ public class ExternalAccountType extends BaseAccountType { } else if (ATTR_ACCOUNT_ICON.equals(attr)) { mAccountTypeIconAttribute = value; } else { - Log.e(TAG, "Unsupported attribute " + attr); + LogUtil.e(TAG, "Unsupported attribute " + attr); } } diff --git a/java/com/android/contacts/common/model/account/FallbackAccountType.java b/java/com/android/contacts/common/model/account/FallbackAccountType.java index 976a7b892..ee3a7578d 100644 --- a/java/com/android/contacts/common/model/account/FallbackAccountType.java +++ b/java/com/android/contacts/common/model/account/FallbackAccountType.java @@ -17,9 +17,9 @@ package com.android.contacts.common.model.account; import android.content.Context; -import android.util.Log; -import com.android.contacts.common.R; import com.android.contacts.common.model.dataitem.DataKind; +import com.android.dialer.common.LogUtil; +import com.android.dialer.contacts.resources.R; public class FallbackAccountType extends BaseAccountType { @@ -53,7 +53,7 @@ public class FallbackAccountType extends BaseAccountType { mIsInitialized = true; } catch (DefinitionException e) { - Log.e(TAG, "Problem building account type", e); + LogUtil.e(TAG, "Problem building account type", e); } } diff --git a/java/com/android/contacts/common/model/account/GoogleAccountType.java b/java/com/android/contacts/common/model/account/GoogleAccountType.java index 2f1fe0ed6..a25544bb9 100644 --- a/java/com/android/contacts/common/model/account/GoogleAccountType.java +++ b/java/com/android/contacts/common/model/account/GoogleAccountType.java @@ -22,10 +22,10 @@ import android.provider.ContactsContract.CommonDataKinds.Email; import android.provider.ContactsContract.CommonDataKinds.Event; import android.provider.ContactsContract.CommonDataKinds.Phone; import android.provider.ContactsContract.CommonDataKinds.Relation; -import android.util.Log; -import com.android.contacts.common.R; import com.android.contacts.common.model.dataitem.DataKind; import com.android.contacts.common.util.CommonDateUtils; +import com.android.dialer.common.LogUtil; +import com.android.dialer.contacts.resources.R; import java.util.ArrayList; import java.util.Collections; import java.util.List; @@ -69,7 +69,7 @@ public class GoogleAccountType extends BaseAccountType { mIsInitialized = true; } catch (DefinitionException e) { - Log.e(TAG, "Problem building account type", e); + LogUtil.e(TAG, "Problem building account type", e); } } diff --git a/java/com/android/contacts/common/model/account/SamsungAccountType.java b/java/com/android/contacts/common/model/account/SamsungAccountType.java index 45406bc2b..77c0575ea 100644 --- a/java/com/android/contacts/common/model/account/SamsungAccountType.java +++ b/java/com/android/contacts/common/model/account/SamsungAccountType.java @@ -23,10 +23,10 @@ import android.provider.ContactsContract.CommonDataKinds.Event; import android.provider.ContactsContract.CommonDataKinds.Phone; import android.provider.ContactsContract.CommonDataKinds.Relation; import android.provider.ContactsContract.CommonDataKinds.StructuredPostal; -import android.util.Log; -import com.android.contacts.common.R; import com.android.contacts.common.model.dataitem.DataKind; import com.android.contacts.common.util.CommonDateUtils; +import com.android.dialer.common.LogUtil; +import com.android.dialer.contacts.resources.R; import java.util.ArrayList; import java.util.Locale; @@ -69,7 +69,7 @@ public class SamsungAccountType extends BaseAccountType { mIsInitialized = true; } catch (DefinitionException e) { - Log.e(TAG, "Problem building account type", e); + LogUtil.e(TAG, "Problem building account type", e); } } diff --git a/java/com/android/contacts/common/res/drawable-hdpi/ic_call_note_white_24dp.png b/java/com/android/contacts/common/res/drawable-hdpi/ic_call_note_white_24dp.png Binary files differdeleted file mode 100644 index 503e58e22..000000000 --- a/java/com/android/contacts/common/res/drawable-hdpi/ic_call_note_white_24dp.png +++ /dev/null diff --git a/java/com/android/contacts/common/res/drawable-hdpi/ic_phone_attach.png b/java/com/android/contacts/common/res/drawable-hdpi/ic_phone_attach.png Binary files differdeleted file mode 100644 index 84b1227bd..000000000 --- a/java/com/android/contacts/common/res/drawable-hdpi/ic_phone_attach.png +++ /dev/null diff --git a/java/com/android/contacts/common/res/drawable-hdpi/ic_scroll_handle.png b/java/com/android/contacts/common/res/drawable-hdpi/ic_scroll_handle.png Binary files differdeleted file mode 100644 index 3aa29b852..000000000 --- a/java/com/android/contacts/common/res/drawable-hdpi/ic_scroll_handle.png +++ /dev/null diff --git a/java/com/android/contacts/common/res/drawable-mdpi/ic_call_note_white_24dp.png b/java/com/android/contacts/common/res/drawable-mdpi/ic_call_note_white_24dp.png Binary files differdeleted file mode 100644 index 9d359db9f..000000000 --- a/java/com/android/contacts/common/res/drawable-mdpi/ic_call_note_white_24dp.png +++ /dev/null diff --git a/java/com/android/contacts/common/res/drawable-mdpi/ic_phone_attach.png b/java/com/android/contacts/common/res/drawable-mdpi/ic_phone_attach.png Binary files differdeleted file mode 100644 index fc4ddd32c..000000000 --- a/java/com/android/contacts/common/res/drawable-mdpi/ic_phone_attach.png +++ /dev/null diff --git a/java/com/android/contacts/common/res/drawable-mdpi/ic_scroll_handle.png b/java/com/android/contacts/common/res/drawable-mdpi/ic_scroll_handle.png Binary files differdeleted file mode 100644 index af75db4b4..000000000 --- a/java/com/android/contacts/common/res/drawable-mdpi/ic_scroll_handle.png +++ /dev/null diff --git a/java/com/android/contacts/common/res/drawable-xhdpi/ic_call_note_white_24dp.png b/java/com/android/contacts/common/res/drawable-xhdpi/ic_call_note_white_24dp.png Binary files differdeleted file mode 100644 index 40eed1d12..000000000 --- a/java/com/android/contacts/common/res/drawable-xhdpi/ic_call_note_white_24dp.png +++ /dev/null diff --git a/java/com/android/contacts/common/res/drawable-xhdpi/ic_phone_attach.png b/java/com/android/contacts/common/res/drawable-xhdpi/ic_phone_attach.png Binary files differdeleted file mode 100644 index fdfafed9a..000000000 --- a/java/com/android/contacts/common/res/drawable-xhdpi/ic_phone_attach.png +++ /dev/null diff --git a/java/com/android/contacts/common/res/drawable-xhdpi/ic_scroll_handle.png b/java/com/android/contacts/common/res/drawable-xhdpi/ic_scroll_handle.png Binary files differdeleted file mode 100644 index 2d43c4d5b..000000000 --- a/java/com/android/contacts/common/res/drawable-xhdpi/ic_scroll_handle.png +++ /dev/null diff --git a/java/com/android/contacts/common/res/drawable-xxhdpi/ic_call_note_white_24dp.png b/java/com/android/contacts/common/res/drawable-xxhdpi/ic_call_note_white_24dp.png Binary files differdeleted file mode 100644 index 2656cad18..000000000 --- a/java/com/android/contacts/common/res/drawable-xxhdpi/ic_call_note_white_24dp.png +++ /dev/null diff --git a/java/com/android/contacts/common/res/drawable-xxhdpi/ic_phone_attach.png b/java/com/android/contacts/common/res/drawable-xxhdpi/ic_phone_attach.png Binary files differdeleted file mode 100644 index 6a6cdeeaa..000000000 --- a/java/com/android/contacts/common/res/drawable-xxhdpi/ic_phone_attach.png +++ /dev/null diff --git a/java/com/android/contacts/common/res/drawable-xxhdpi/ic_scroll_handle.png b/java/com/android/contacts/common/res/drawable-xxhdpi/ic_scroll_handle.png Binary files differdeleted file mode 100644 index 55f1d1369..000000000 --- a/java/com/android/contacts/common/res/drawable-xxhdpi/ic_scroll_handle.png +++ /dev/null diff --git a/java/com/android/contacts/common/res/drawable-xxxhdpi/ic_call_note_white_24dp.png b/java/com/android/contacts/common/res/drawable-xxxhdpi/ic_call_note_white_24dp.png Binary files differdeleted file mode 100644 index 903c1623d..000000000 --- a/java/com/android/contacts/common/res/drawable-xxxhdpi/ic_call_note_white_24dp.png +++ /dev/null diff --git a/java/com/android/contacts/common/res/drawable-xxxhdpi/ic_phone_attach.png b/java/com/android/contacts/common/res/drawable-xxxhdpi/ic_phone_attach.png Binary files differdeleted file mode 100644 index b072ad11f..000000000 --- a/java/com/android/contacts/common/res/drawable-xxxhdpi/ic_phone_attach.png +++ /dev/null diff --git a/java/com/android/contacts/common/res/drawable-xxxhdpi/ic_scroll_handle.png b/java/com/android/contacts/common/res/drawable-xxxhdpi/ic_scroll_handle.png Binary files differdeleted file mode 100644 index d90782a32..000000000 --- a/java/com/android/contacts/common/res/drawable-xxxhdpi/ic_scroll_handle.png +++ /dev/null diff --git a/java/com/android/contacts/common/res/drawable/back_arrow.xml b/java/com/android/contacts/common/res/drawable/back_arrow.xml deleted file mode 100644 index 34fa3d7fc..000000000 --- a/java/com/android/contacts/common/res/drawable/back_arrow.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2017 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. ---> -<vector xmlns:android="http://schemas.android.com/apk/res/android" - android:width="24dp" - android:height="24dp" - android:viewportWidth="24.0" - android:viewportHeight="24.0" - android:autoMirrored="true" - android:tint="?attr/colorControlNormal"> - <path - android:fillColor="@android:color/white" - android:pathData="M20,11H7.83l5.59,-5.59L12,4l-8,8 8,8 1.41,-1.41L7.83,13H20v-2z"/> -</vector> diff --git a/java/com/android/contacts/common/res/drawable/dialog_background_material.xml b/java/com/android/contacts/common/res/drawable/dialog_background_material.xml deleted file mode 100644 index c93d43ea6..000000000 --- a/java/com/android/contacts/common/res/drawable/dialog_background_material.xml +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2015 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. ---> - -<inset xmlns:android="http://schemas.android.com/apk/res/android" - android:inset="16dp"> - <shape android:shape="rectangle"> - <corners android:radius="2dp"/> - <solid android:color="?android:attr/colorBackground"/> - </shape> -</inset> diff --git a/java/com/android/contacts/common/res/drawable/fastscroll_thumb.xml b/java/com/android/contacts/common/res/drawable/fastscroll_thumb.xml deleted file mode 100644 index 67645ff91..000000000 --- a/java/com/android/contacts/common/res/drawable/fastscroll_thumb.xml +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2014 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. ---> -<selector xmlns:android="http://schemas.android.com/apk/res/android"> - <item android:drawable="@drawable/ic_scroll_handle_pressed" android:state_pressed="true"/> - <item android:drawable="@drawable/ic_scroll_handle_default"/> -</selector>
\ No newline at end of file diff --git a/java/com/android/contacts/common/res/drawable/ic_scroll_handle_default.xml b/java/com/android/contacts/common/res/drawable/ic_scroll_handle_default.xml deleted file mode 100644 index 9164ab1ab..000000000 --- a/java/com/android/contacts/common/res/drawable/ic_scroll_handle_default.xml +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - Copyright (C) 2014 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. ---> - -<bitmap xmlns:android="http://schemas.android.com/apk/res/android" - android:src="@drawable/ic_scroll_handle" - android:tint="?colorIcon"/> diff --git a/java/com/android/contacts/common/res/drawable/ic_scroll_handle_pressed.xml b/java/com/android/contacts/common/res/drawable/ic_scroll_handle_pressed.xml deleted file mode 100644 index c9b93d925..000000000 --- a/java/com/android/contacts/common/res/drawable/ic_scroll_handle_pressed.xml +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - Copyright (C) 2014 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. ---> - -<bitmap xmlns:android="http://schemas.android.com/apk/res/android" - android:src="@drawable/ic_scroll_handle" - android:tint="?android:attr/colorPrimary"/>
\ No newline at end of file diff --git a/java/com/android/contacts/common/res/drawable/ic_work_profile.xml b/java/com/android/contacts/common/res/drawable/ic_work_profile.xml deleted file mode 100644 index 445288595..000000000 --- a/java/com/android/contacts/common/res/drawable/ic_work_profile.xml +++ /dev/null @@ -1,26 +0,0 @@ -<!-- -Copyright (C) 2017 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. ---> -<vector xmlns:android="http://schemas.android.com/apk/res/android" - android:width="16dp" - android:height="16dp" - android:viewportWidth="16.0" - android:viewportHeight="16.0"> - - - <path - android:pathData="M13.33,4h-2.67V2.67c0,-0.74 -0.59,-1.33 -1.33,-1.33H6.67c-0.74,0 -1.33,0.59 -1.33,1.33V4H2.67C1.93,4 1.34,4.59 1.34,5.33l-0.01,7.33c0,0.74 0.59,1.33 1.33,1.33h10.67c0.74,0 1.33,-0.59 1.33,-1.33V5.33C14.67,4.59 14.07,4 13.33,4zM8,10c-0.73,0 -1.33,-0.6 -1.33,-1.33S7.27,7.33 8,7.33s1.33,0.6 1.33,1.33S8.73,10 8,10zM9.33,4H6.67V2.67h2.67V4z" - android:fillColor="#757575"/> -</vector> diff --git a/java/com/android/contacts/common/res/drawable/searchedittext_custom_cursor.xml b/java/com/android/contacts/common/res/drawable/searchedittext_custom_cursor.xml deleted file mode 100644 index 51e984ca0..000000000 --- a/java/com/android/contacts/common/res/drawable/searchedittext_custom_cursor.xml +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - ~ Copyright (C) 2018 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 - --> - -<shape xmlns:android="http://schemas.android.com/apk/res/android"> - <size android:width="2dp"/> - <solid android:color="?android:attr/colorPrimary"/> -</shape>
\ No newline at end of file diff --git a/java/com/android/contacts/common/res/drawable/unread_count_background.xml b/java/com/android/contacts/common/res/drawable/unread_count_background.xml deleted file mode 100644 index b58baef7c..000000000 --- a/java/com/android/contacts/common/res/drawable/unread_count_background.xml +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2015 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. ---> -<shape - xmlns:android="http://schemas.android.com/apk/res/android" - android:shape="rectangle"> - <corners android:radius="@dimen/tab_unread_count_background_radius"/> - <solid android:color="?android:attr/colorPrimaryDark"/> -</shape> diff --git a/java/com/android/contacts/common/res/layout-ldrtl/unread_count_tab.xml b/java/com/android/contacts/common/res/layout-ldrtl/unread_count_tab.xml deleted file mode 100644 index 51d56bb22..000000000 --- a/java/com/android/contacts/common/res/layout-ldrtl/unread_count_tab.xml +++ /dev/null @@ -1,48 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2015 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. ---> -<!-- layoutDirection set to ltr as a workaround to a framework bug (a bug) causing view with - layout_centerInParent inside a RelativeLayout to expand to screen width when RTL is active --> -<RelativeLayout - xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:background="@drawable/item_background_material_borderless_dark" - android:layoutDirection="ltr"> - <!-- The tab icon --> - <ImageView - android:id="@+id/icon" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_centerInParent="true"/> - <TextView - android:id="@+id/count" - android:layout_width="wrap_content" - android:layout_height="@dimen/tab_unread_count_background_size" - android:layout_marginTop="@dimen/tab_unread_count_margin_top" - android:layout_marginStart="@dimen/tab_unread_count_margin_left" - android:layout_toStartOf="@id/icon" - android:paddingLeft="@dimen/tab_unread_count_text_padding" - android:paddingRight="@dimen/tab_unread_count_text_padding" - android:background="@drawable/unread_count_background" - android:fontFamily="sans-serif-medium" - android:importantForAccessibility="no" - android:layoutDirection="locale" - android:minWidth="@dimen/tab_unread_count_background_size" - android:textAlignment="center" - android:textColor="?android:attr/colorAccent" - android:textSize="@dimen/tab_unread_count_text_size"/> -</RelativeLayout> - diff --git a/java/com/android/contacts/common/res/layout/account_filter_header.xml b/java/com/android/contacts/common/res/layout/account_filter_header.xml deleted file mode 100644 index 592c240a9..000000000 --- a/java/com/android/contacts/common/res/layout/account_filter_header.xml +++ /dev/null @@ -1,44 +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. ---> - -<!-- Layout showing the type of account filter - (e.g. All contacts filter, custom filter, etc.), - which is the header of all contact lists. --> - -<!-- Solely used to set a background color --> -<FrameLayout - xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:background="?android:attr/colorBackground"> - <!-- Used to show the touch feedback --> - <FrameLayout - android:id="@+id/account_filter_header_container" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_marginStart="@dimen/contact_browser_list_header_left_margin" - android:layout_marginEnd="@dimen/contact_browser_list_header_right_margin" - android:paddingTop="@dimen/list_header_extra_top_padding" - android:background="?android:attr/selectableItemBackground" - android:visibility="gone"> - <!-- Shows the text and underlining --> - <TextView - android:id="@+id/account_filter_header" - style="@style/ContactListSeparatorTextViewStyle" - android:paddingStart="@dimen/contact_browser_list_item_text_indent" - android:paddingLeft="@dimen/contact_browser_list_item_text_indent"/> - </FrameLayout> -</FrameLayout> diff --git a/java/com/android/contacts/common/res/layout/call_subject_history_list_item.xml b/java/com/android/contacts/common/res/layout/call_subject_history_list_item.xml deleted file mode 100644 index c08327c29..000000000 --- a/java/com/android/contacts/common/res/layout/call_subject_history_list_item.xml +++ /dev/null @@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - ~ Copyright (C) 2015 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 - --> - -<TextView xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@android:id/text1" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:paddingTop="@dimen/call_subject_history_item_padding" - android:paddingBottom="@dimen/call_subject_history_item_padding" - android:paddingStart="@dimen/call_subject_dialog_margin" - android:paddingEnd="@dimen/call_subject_dialog_margin" - android:gravity="center_vertical" - android:singleLine="true" - android:textColor="?android:attr/textColorPrimary" - android:textSize="@dimen/call_subject_dialog_primary_text_size"/> diff --git a/java/com/android/contacts/common/res/layout/contact_detail_list_padding.xml b/java/com/android/contacts/common/res/layout/contact_detail_list_padding.xml deleted file mode 100644 index 02a5c809c..000000000 --- a/java/com/android/contacts/common/res/layout/contact_detail_list_padding.xml +++ /dev/null @@ -1,27 +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. ---> - -<!-- The actual padding is embedded in a FrameLayout since we cannot change the - visibility of a header view in a ListView without having a parent view. --> -<FrameLayout - xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="wrap_content"> - <View - android:id="@+id/contact_detail_list_padding" - android:layout_width="match_parent" - android:layout_height="@dimen/list_header_extra_top_padding"/> -</FrameLayout> diff --git a/java/com/android/contacts/common/res/layout/contact_list_card.xml b/java/com/android/contacts/common/res/layout/contact_list_card.xml deleted file mode 100644 index 37bb8ea27..000000000 --- a/java/com/android/contacts/common/res/layout/contact_list_card.xml +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2014 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. ---> -<LinearLayout - xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/list_card" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:orientation="horizontal" - android:visibility="invisible"> - <View - android:layout_width="0dp" - android:layout_height="match_parent" - android:layout_weight="@integer/contact_list_space_layout_weight" - android:background="?android:attr/colorBackground"/> - <View - android:layout_width="0dp" - android:layout_height="match_parent" - android:layout_weight="@integer/contact_list_card_layout_weight" - android:background="?android:attr/colorBackground" - android:elevation="@dimen/contact_list_card_elevation"/> - <View - android:layout_width="0dp" - android:layout_height="match_parent" - android:layout_weight="@integer/contact_list_space_layout_weight" - android:background="?android:attr/colorBackground"/> -</LinearLayout> diff --git a/java/com/android/contacts/common/res/layout/contact_list_content.xml b/java/com/android/contacts/common/res/layout/contact_list_content.xml deleted file mode 100644 index 3ee27a0ad..000000000 --- a/java/com/android/contacts/common/res/layout/contact_list_content.xml +++ /dev/null @@ -1,61 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2008 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. ---> - -<!-- android:paddingTop is used instead of android:layout_marginTop. It looks - android:layout_marginTop is ignored when used with <fragment></fragment>, which - only happens in Tablet UI since we rely on ViewPager in Phone UI. - Instead, android:layout_marginTop inside <fragment /> is effective. --> - -<LinearLayout - xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/pinned_header_list_layout" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:background="?attr/contact_browser_background" - android:orientation="vertical"> - - <!-- Shown only when an Account filter is set. - - paddingTop should be here to show "shade" effect correctly. --> - <include layout="@layout/account_filter_header"/> - - <FrameLayout - android:layout_width="match_parent" - android:layout_height="0dip" - android:layout_weight="1"> - <include layout="@layout/contact_list_card"/> - <view - android:id="@android:id/list" - class="com.android.contacts.common.list.PinnedHeaderListView" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:layout_marginStart="?attr/contact_browser_list_padding_left" - android:layout_marginEnd="?attr/contact_browser_list_padding_right" - android:layout_marginLeft="?attr/contact_browser_list_padding_left" - android:layout_marginRight="?attr/contact_browser_list_padding_right" - android:paddingTop="?attr/list_item_padding_top" - android:clipToPadding="false" - android:fadingEdge="none" - android:fastScrollEnabled="true"/> - <ProgressBar - android:id="@+id/search_progress" - style="?android:attr/progressBarStyleLarge" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center" - android:visibility="gone"/> - </FrameLayout> - -</LinearLayout> diff --git a/java/com/android/contacts/common/res/layout/default_account_checkbox.xml b/java/com/android/contacts/common/res/layout/default_account_checkbox.xml deleted file mode 100644 index 911098397..000000000 --- a/java/com/android/contacts/common/res/layout/default_account_checkbox.xml +++ /dev/null @@ -1,50 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2014 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. ---> - -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/default_account_checkbox_layout" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:padding="4dp" - android:paddingStart="0dp" - android:paddingEnd="24dp" - android:gravity="center" - android:minHeight="56dp" - android:orientation="horizontal" - android:focusable="true"> - <FrameLayout - android:layout_width="72dp" - android:layout_height="wrap_content"> - <CheckBox - android:id="@+id/default_account_checkbox_view" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center" - android:checked="false"/> - /> - </FrameLayout> - <TextView - android:id="@+id/default_account_checkbox_text" - android:layout_width="0dp" - android:layout_height="wrap_content" - android:layout_weight="1" - android:text="@string/set_default_account" - android:textAlignment="viewStart" - android:textAppearance="?android:attr/textAppearanceSmall" - android:textColor="?android:attr/textColorSecondary" - /> - -</LinearLayout> diff --git a/java/com/android/contacts/common/res/layout/dialog_call_subject.xml b/java/com/android/contacts/common/res/layout/dialog_call_subject.xml deleted file mode 100644 index d20aa3b45..000000000 --- a/java/com/android/contacts/common/res/layout/dialog_call_subject.xml +++ /dev/null @@ -1,159 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - ~ Copyright (C) 2015 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 - --> - -<LinearLayout - xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/call_subject_dialog" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:background="@android:color/transparent" - android:orientation="vertical"> - - <RelativeLayout - android:layout_width="match_parent" - android:layout_height="0dp" - android:layout_weight="1"> - - <!-- The call subject dialog will be centered in the space above the subject list. --> - <LinearLayout - android:id="@+id/dialog_view" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_centerInParent="true" - android:background="@drawable/dialog_background_material" - android:clickable="true" - android:elevation="16dp" - android:orientation="vertical" - android:theme="@android:style/Theme.Material.Light.Dialog"> - - <LinearLayout - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_marginTop="@dimen/call_subject_dialog_margin" - android:layout_marginStart="@dimen/call_subject_dialog_margin" - android:layout_marginEnd="@dimen/call_subject_dialog_margin" - android:orientation="horizontal"> - - <QuickContactBadge - android:id="@+id/contact_photo" - android:layout_width="@dimen/call_subject_dialog_contact_photo_size" - android:layout_height="@dimen/call_subject_dialog_contact_photo_size" - android:layout_marginEnd="@dimen/call_subject_dialog_margin" - android:layout_gravity="top" - android:focusable="true"/> - - <LinearLayout - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:gravity="center_vertical" - android:orientation="vertical"> - - <TextView - android:id="@+id/name" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:singleLine="true" - android:textColor="?android:attr/textColorPrimary" - android:textSize="@dimen/call_subject_dialog_secondary_text_size"/> - - <TextView - android:id="@+id/number" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="@dimen/call_subject_dialog_between_line_margin" - android:layout_gravity="center_vertical" - android:singleLine="true" - android:textColor="?android:attr/textColorSecondary" - android:textSize="@dimen/call_subject_dialog_secondary_text_size"/> - </LinearLayout> - </LinearLayout> - - <EditText - android:id="@+id/call_subject" - android:layout_width="match_parent" - android:layout_height="0dp" - android:layout_weight="1" - android:layout_marginTop="@dimen/call_subject_dialog_edit_spacing" - android:layout_marginStart="@dimen/call_subject_dialog_margin" - android:layout_marginEnd="@dimen/call_subject_dialog_margin" - android:layout_gravity="top" - android:background="@null" - android:gravity="top" - android:hint="@string/call_subject_hint" - android:textColor="?android:attr/textColorSecondary" - android:textSize="@dimen/call_subject_dialog_secondary_text_size" - /> - - <TextView - android:id="@+id/character_limit" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="@dimen/call_subject_dialog_margin" - android:layout_marginBottom="@dimen/call_subject_dialog_margin" - android:layout_marginStart="@dimen/call_subject_dialog_margin" - android:layout_marginEnd="@dimen/call_subject_dialog_margin" - android:singleLine="true" - android:textColor="?android:attr/textColorSecondary" - android:textSize="@dimen/call_subject_dialog_secondary_text_size"/> - - <View - android:layout_width="fill_parent" - android:layout_height="1dp" - android:background="@color/call_subject_divider"/> - - <RelativeLayout - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_marginTop="@dimen/call_subject_dialog_margin" - android:layout_marginBottom="@dimen/call_subject_dialog_margin" - android:layout_marginStart="@dimen/call_subject_dialog_margin" - android:layout_marginEnd="@dimen/call_subject_dialog_margin"> - - <ImageView - android:id="@+id/history_button" - android:layout_width="25dp" - android:layout_height="25dp" - android:layout_alignParentStart="true" - android:layout_centerVertical="true" - android:src="@drawable/quantum_ic_history_vd_theme_24" - android:tint="?colorIcon"/> - - <TextView - android:id="@+id/send_and_call_button" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignParentEnd="true" - android:layout_centerVertical="true" - android:singleLine="true" - android:text="@string/send_and_call_button" - android:textColor="@color/call_subject_button" - android:textSize="@dimen/call_subject_dialog_secondary_text_size"/> - - </RelativeLayout> - </LinearLayout> - </RelativeLayout> - <!-- The subject list is pinned to the bottom of the screen. --> - <ListView - android:id="@+id/subject_list" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_below="@id/dialog_view" - android:background="?android:attr/colorBackground" - android:divider="@null" - android:elevation="8dp"/> - -</LinearLayout> diff --git a/java/com/android/contacts/common/res/layout/directory_header.xml b/java/com/android/contacts/common/res/layout/directory_header.xml deleted file mode 100644 index b8f5163c0..000000000 --- a/java/com/android/contacts/common/res/layout/directory_header.xml +++ /dev/null @@ -1,55 +0,0 @@ -<?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. ---> - -<!-- Layout used for list section separators. --> -<LinearLayout - xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/directory_header" - style="@style/DirectoryHeader" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:paddingTop="@dimen/directory_header_extra_top_padding" - android:paddingBottom="@dimen/directory_header_extra_bottom_padding" - android:paddingStart="?attr/list_item_padding_left" - android:paddingEnd="?attr/list_item_padding_right" - android:paddingLeft="?attr/list_item_padding_left" - android:paddingRight="?attr/list_item_padding_right" - android:background="?attr/contact_browser_background" - android:minHeight="@dimen/list_section_divider_min_height"> - <TextView - android:id="@+id/label" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:singleLine="true" - android:textAlignment="viewStart" - android:textAppearance="@style/DirectoryHeaderStyle"/> - <TextView - android:id="@+id/display_name" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginStart="8dp" - android:singleLine="true" - android:textAlignment="viewStart" - android:textAppearance="@style/DirectoryHeaderStyle"/> - <TextView - android:id="@+id/count" - android:layout_width="0dip" - android:layout_height="wrap_content" - android:paddingTop="1dip" - android:gravity="end" - android:singleLine="true" - android:textAppearance="@style/DirectoryHeaderStyle"/> -</LinearLayout> diff --git a/java/com/android/contacts/common/res/layout/search_bar_expanded.xml b/java/com/android/contacts/common/res/layout/search_bar_expanded.xml deleted file mode 100644 index c9ab6a92d..000000000 --- a/java/com/android/contacts/common/res/layout/search_bar_expanded.xml +++ /dev/null @@ -1,64 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2014 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. ---> -<RelativeLayout - xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/search_box_expanded" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:visibility="gone"> - - <ImageButton - android:id="@+id/search_back_button" - android:layout_width="@dimen/search_box_icon_size" - android:layout_height="@dimen/search_box_icon_size" - android:layout_marginStart="16dp" - android:layout_centerVertical="true" - android:background="?attr/selectableItemBackgroundBorderless" - android:contentDescription="@string/action_menu_back_from_search" - android:src="@drawable/back_arrow" - android:tint="?colorTextOnUnthemedDarkBackground"/> - - <EditText - android:id="@+id/search_view" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_toEndOf="@+id/search_back_button" - android:layout_toStartOf="@+id/search_close_button" - android:layout_centerVertical="true" - android:layout_marginStart="8dp" - android:background="@null" - android:fontFamily="@string/search_font_family" - android:imeOptions="flagNoExtractUi" - android:inputType="textFilter" - android:maxLines="1" - android:textColor="?android:attr/textColorPrimary" - android:textColorHint="?android:attr/textColorHint" - android:textCursorDrawable="@drawable/searchedittext_custom_cursor" - android:textSize="@dimen/search_text_size"/> - - <ImageView - android:id="@+id/search_close_button" - android:layout_width="@dimen/search_box_close_icon_size" - android:layout_height="@dimen/search_box_close_icon_size" - android:layout_alignParentEnd="true" - android:layout_centerVertical="true" - android:padding="@dimen/search_box_close_icon_padding" - android:background="?attr/selectableItemBackgroundBorderless" - android:clickable="true" - android:contentDescription="@string/description_clear_search" - android:src="@drawable/quantum_ic_close_vd_theme_24" - android:tint="?colorIcon"/> -</RelativeLayout> diff --git a/java/com/android/contacts/common/res/layout/select_account_list_item.xml b/java/com/android/contacts/common/res/layout/select_account_list_item.xml deleted file mode 100644 index e77c53c7e..000000000 --- a/java/com/android/contacts/common/res/layout/select_account_list_item.xml +++ /dev/null @@ -1,69 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2014 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. ---> - -<!-- Layout of a single item in the InCallUI Account Chooser Dialog. --> -<com.android.contacts.common.widget.ActivityTouchLinearLayout - xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:minHeight="64dp" - android:padding="8dp" - android:paddingStart="24dp" - android:paddingEnd="24dp" - android:orientation="horizontal" - android:gravity="center"> - - <ImageView - android:id="@+id/icon" - android:layout_width="24dp" - android:layout_height="24dp" - android:scaleType="center"/> - - <LinearLayout - android:id="@+id/text" - android:layout_width="0dp" - android:layout_height="wrap_content" - android:layout_weight="1" - android:paddingStart="24dp" - android:gravity="start|center_vertical" - android:orientation="vertical"> - <TextView - android:id="@+id/label" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:includeFontPadding="false" - android:textAppearance="?android:attr/textAppearanceMedium" - android:textColor="?android:attr/textColorPrimary"/> - <TextView - android:id="@+id/number" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:includeFontPadding="false" - android:maxLines="1" - android:textAppearance="?android:attr/textAppearanceSmall" - android:textColor="?android:attr/textColorSecondary" - android:visibility="gone"/> - <TextView - android:id="@+id/hint" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:includeFontPadding="false" - android:textAppearance="?android:attr/textAppearanceSmall" - android:textColor="?android:attr/textColorSecondary" - android:visibility="gone"/> - </LinearLayout> - -</com.android.contacts.common.widget.ActivityTouchLinearLayout> diff --git a/java/com/android/contacts/common/res/layout/unread_count_tab.xml b/java/com/android/contacts/common/res/layout/unread_count_tab.xml deleted file mode 100644 index d8357f491..000000000 --- a/java/com/android/contacts/common/res/layout/unread_count_tab.xml +++ /dev/null @@ -1,43 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2015 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. ---> -<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:background="@drawable/item_background_material_borderless_dark"> - <!-- The tab icon --> - <ImageView - android:id="@+id/icon" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_centerInParent="true"/> - <TextView - android:id="@+id/count" - android:layout_width="wrap_content" - android:layout_height="@dimen/tab_unread_count_background_size" - android:layout_marginTop="@dimen/tab_unread_count_margin_top" - android:layout_marginStart="@dimen/tab_unread_count_margin_left" - android:layout_toEndOf="@id/icon" - android:paddingLeft="@dimen/tab_unread_count_text_padding" - android:paddingRight="@dimen/tab_unread_count_text_padding" - android:background="@drawable/unread_count_background" - android:fontFamily="sans-serif-medium" - android:gravity="center" - android:importantForAccessibility="no" - android:minWidth="@dimen/tab_unread_count_background_size" - android:textAlignment="center" - android:textColor="?android:attr/colorAccent" - android:textSize="@dimen/tab_unread_count_text_size"/> -</RelativeLayout> diff --git a/java/com/android/contacts/common/res/mipmap-hdpi/ic_contacts_launcher.png b/java/com/android/contacts/common/res/mipmap-hdpi/ic_contacts_launcher.png Binary files differdeleted file mode 100644 index 64eff002f..000000000 --- a/java/com/android/contacts/common/res/mipmap-hdpi/ic_contacts_launcher.png +++ /dev/null diff --git a/java/com/android/contacts/common/res/mipmap-mdpi/ic_contacts_launcher.png b/java/com/android/contacts/common/res/mipmap-mdpi/ic_contacts_launcher.png Binary files differdeleted file mode 100644 index b4ee8215a..000000000 --- a/java/com/android/contacts/common/res/mipmap-mdpi/ic_contacts_launcher.png +++ /dev/null diff --git a/java/com/android/contacts/common/res/mipmap-xhdpi/ic_contacts_launcher.png b/java/com/android/contacts/common/res/mipmap-xhdpi/ic_contacts_launcher.png Binary files differdeleted file mode 100644 index 6feeadfbe..000000000 --- a/java/com/android/contacts/common/res/mipmap-xhdpi/ic_contacts_launcher.png +++ /dev/null diff --git a/java/com/android/contacts/common/res/mipmap-xxhdpi/ic_contacts_launcher.png b/java/com/android/contacts/common/res/mipmap-xxhdpi/ic_contacts_launcher.png Binary files differdeleted file mode 100644 index 01a3fde9d..000000000 --- a/java/com/android/contacts/common/res/mipmap-xxhdpi/ic_contacts_launcher.png +++ /dev/null diff --git a/java/com/android/contacts/common/res/mipmap-xxxhdpi/ic_contacts_launcher.png b/java/com/android/contacts/common/res/mipmap-xxxhdpi/ic_contacts_launcher.png Binary files differdeleted file mode 100644 index 328e067ee..000000000 --- a/java/com/android/contacts/common/res/mipmap-xxxhdpi/ic_contacts_launcher.png +++ /dev/null diff --git a/java/com/android/contacts/common/res/values-ja/donottranslate_config.xml b/java/com/android/contacts/common/res/values-ja/donottranslate_config.xml deleted file mode 100644 index 29512c04a..000000000 --- a/java/com/android/contacts/common/res/values-ja/donottranslate_config.xml +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - ~ 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 - --> - -<resources> - <!-- If true, an option is shown in Display Options UI to choose a sort order --> - <bool name="config_sort_order_user_changeable">false</bool> - - <!-- If true, the default sort order is primary (i.e. by given name) --> - <bool name="config_default_sort_order_primary">true</bool> - - <!-- If true, an option is shown in Display Options UI to choose a name display order --> - <bool name="config_display_order_user_changeable">false</bool> - - <!-- If true, the default sort order is primary (i.e. by given name) --> - <bool name="config_default_display_order_primary">true</bool> - - <!-- If true, the order of name fields in the editor is primary (i.e. given name first) --> - <bool name="config_editor_field_order_primary">false</bool> -</resources>
\ No newline at end of file diff --git a/java/com/android/contacts/common/res/values-ko/donottranslate_config.xml b/java/com/android/contacts/common/res/values-ko/donottranslate_config.xml deleted file mode 100644 index 8def55498..000000000 --- a/java/com/android/contacts/common/res/values-ko/donottranslate_config.xml +++ /dev/null @@ -1,17 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<resources> - <!-- If true, an option is shown in Display Options UI to choose a sort order --> - <bool name="config_sort_order_user_changeable">false</bool> - - <!-- If true, the default sort order is primary (i.e. by given name) --> - <bool name="config_default_sort_order_primary">false</bool> - - <!-- If true, an option is shown in Display Options UI to choose a name display order --> - <bool name="config_display_order_user_changeable">false</bool> - - <!-- If true, the default sort order is primary (i.e. by given name) --> - <bool name="config_default_display_order_primary">false</bool> - - <!-- If true, the order of name fields in the editor is primary (i.e. given name first) --> - <bool name="config_editor_field_order_primary">false</bool> -</resources>
\ No newline at end of file diff --git a/java/com/android/contacts/common/res/values-land/integers.xml b/java/com/android/contacts/common/res/values-land/integers.xml deleted file mode 100644 index 26bac6222..000000000 --- a/java/com/android/contacts/common/res/values-land/integers.xml +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - 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. - --> -<resources> - <integer name="contact_tile_column_count_in_favorites">3</integer> - - <!-- The number of characters in the snippet before we need to tokenize and ellipse. --> - <integer name="snippet_length_before_tokenize">60</integer> -</resources> diff --git a/java/com/android/contacts/common/res/values-sw600dp-land/integers.xml b/java/com/android/contacts/common/res/values-sw600dp-land/integers.xml deleted file mode 100644 index be4eb0bb0..000000000 --- a/java/com/android/contacts/common/res/values-sw600dp-land/integers.xml +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - 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. - --> -<resources> - <integer name="contact_tile_column_count_in_favorites">3</integer> - - <!-- The number of characters in the snippet before we need to tokenize and ellipse. --> - <integer name="snippet_length_before_tokenize">20</integer> -</resources> diff --git a/java/com/android/contacts/common/res/values-sw600dp/dimens.xml b/java/com/android/contacts/common/res/values-sw600dp/dimens.xml deleted file mode 100644 index e5773b42d..000000000 --- a/java/com/android/contacts/common/res/values-sw600dp/dimens.xml +++ /dev/null @@ -1,26 +0,0 @@ -<!-- - ~ 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 - --> - -<resources> - <dimen name="contact_browser_list_header_left_margin">@dimen/list_visible_scrollbar_padding - </dimen> - <dimen name="contact_browser_list_header_right_margin">24dip</dimen> - - <!-- Right margin of the floating action button --> - <dimen name="floating_action_button_margin_right">32dp</dimen> - <!-- Bottom margin of the floating action button --> - <dimen name="floating_action_button_margin_bottom">32dp</dimen> -</resources> diff --git a/java/com/android/contacts/common/res/values-sw600dp/integers.xml b/java/com/android/contacts/common/res/values-sw600dp/integers.xml deleted file mode 100644 index 31aeee995..000000000 --- a/java/com/android/contacts/common/res/values-sw600dp/integers.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - 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. - --> -<resources> - <integer name="contact_tile_column_count_in_favorites">3</integer> - - <!-- The number of characters in the snippet before we need to tokenize and ellipse. --> - <!-- Yikes, there is less space on a tablet! This makes the search experience rather - poor. Another reason to get rid of the exist tablet layout. --> - <integer name="snippet_length_before_tokenize">15</integer> -</resources> diff --git a/java/com/android/contacts/common/res/values-sw720dp-land/integers.xml b/java/com/android/contacts/common/res/values-sw720dp-land/integers.xml deleted file mode 100644 index 577716d24..000000000 --- a/java/com/android/contacts/common/res/values-sw720dp-land/integers.xml +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - 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. - --> -<resources> - <integer name="contact_tile_column_count_in_favorites">4</integer> - - <!-- The number of characters in the snippet before we need to tokenize and ellipse. --> - <integer name="snippet_length_before_tokenize">30</integer> -</resources> diff --git a/java/com/android/contacts/common/res/values-sw720dp/integers.xml b/java/com/android/contacts/common/res/values-sw720dp/integers.xml deleted file mode 100644 index 05e309351..000000000 --- a/java/com/android/contacts/common/res/values-sw720dp/integers.xml +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - 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. - --> -<resources> - <integer name="contact_tile_column_count_in_favorites">2</integer> - - <!-- The number of characters in the snippet before we need to tokenize and ellipse. --> - <integer name="snippet_length_before_tokenize">20</integer> -</resources> diff --git a/java/com/android/contacts/common/res/values-zh-rCN/donottranslate_config.xml b/java/com/android/contacts/common/res/values-zh-rCN/donottranslate_config.xml deleted file mode 100644 index 08023992b..000000000 --- a/java/com/android/contacts/common/res/values-zh-rCN/donottranslate_config.xml +++ /dev/null @@ -1,17 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<resources> - <!-- If true, an option is shown in Display Options UI to choose a sort order --> - <bool name="config_sort_order_user_changeable">false</bool> - - <!-- If true, the default sort order is primary (i.e. by given name) --> - <bool name="config_default_sort_order_primary">true</bool> - - <!-- If true, an option is shown in Display Options UI to choose a name display order --> - <bool name="config_display_order_user_changeable">false</bool> - - <!-- If true, the default sort order is primary (i.e. by given name) --> - <bool name="config_default_display_order_primary">true</bool> - - <!-- If true, the order of name fields in the editor is primary (i.e. given name first) --> - <bool name="config_editor_field_order_primary">false</bool> -</resources>
\ No newline at end of file diff --git a/java/com/android/contacts/common/res/values-zh-rTW/donottranslate_config.xml b/java/com/android/contacts/common/res/values-zh-rTW/donottranslate_config.xml deleted file mode 100644 index 08023992b..000000000 --- a/java/com/android/contacts/common/res/values-zh-rTW/donottranslate_config.xml +++ /dev/null @@ -1,17 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<resources> - <!-- If true, an option is shown in Display Options UI to choose a sort order --> - <bool name="config_sort_order_user_changeable">false</bool> - - <!-- If true, the default sort order is primary (i.e. by given name) --> - <bool name="config_default_sort_order_primary">true</bool> - - <!-- If true, an option is shown in Display Options UI to choose a name display order --> - <bool name="config_display_order_user_changeable">false</bool> - - <!-- If true, the default sort order is primary (i.e. by given name) --> - <bool name="config_default_display_order_primary">true</bool> - - <!-- If true, the order of name fields in the editor is primary (i.e. given name first) --> - <bool name="config_editor_field_order_primary">false</bool> -</resources>
\ No newline at end of file diff --git a/java/com/android/contacts/common/res/values/animation_constants.xml b/java/com/android/contacts/common/res/values/animation_constants.xml deleted file mode 100644 index 9eec7d6c8..000000000 --- a/java/com/android/contacts/common/res/values/animation_constants.xml +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - ~ Copyright (C) 2014 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 - --> -<resources> - <integer name="floating_action_button_animation_duration">250</integer> -</resources> diff --git a/java/com/android/contacts/common/res/values/attrs.xml b/java/com/android/contacts/common/res/values/attrs.xml deleted file mode 100644 index 44d04f025..000000000 --- a/java/com/android/contacts/common/res/values/attrs.xml +++ /dev/null @@ -1,83 +0,0 @@ -<!-- - ~ 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. - --> - -<resources> - <declare-styleable name="Theme"> - <attr name="android:textColorSecondary"/> - </declare-styleable> - - <declare-styleable name="ContactsDataKind"> - <!-- Mime-type handled by this mapping. --> - <attr name="android:mimeType"/> - <!-- Icon used to represent data of this kind. --> - <attr name="android:icon"/> - <!-- Column in data table that summarizes this data. --> - <attr name="android:summaryColumn"/> - <!-- Column in data table that contains details for this data. --> - <attr name="android:detailColumn"/> - <!-- Flag indicating that detail should be built from SocialProvider. --> - <attr name="android:detailSocialSummary"/> - <!-- Resource representing the term "All Contacts" (e.g. "All Friends" or - "All connections"). Optional (Default is "All Contacts"). --> - <attr name="android:allContactsName"/> - </declare-styleable> - - <declare-styleable name="ContactListItemView"> - <attr format="dimension" name="list_item_height"/> - <attr format="dimension" name="list_section_header_height"/> - <attr format="reference" name="activated_background"/> - <attr format="reference" name="section_header_background"/> - <attr format="dimension" name="list_item_padding_top"/> - <attr format="dimension" name="list_item_padding_right"/> - <attr format="dimension" name="list_item_padding_bottom"/> - <attr format="dimension" name="list_item_padding_left"/> - <attr format="dimension" name="list_item_gap_between_image_and_text"/> - <attr format="dimension" name="list_item_gap_between_label_and_data"/> - <attr format="dimension" name="list_item_presence_icon_margin"/> - <attr format="dimension" name="list_item_presence_icon_size"/> - <attr format="dimension" name="list_item_photo_size"/> - <attr format="dimension" name="list_item_profile_photo_size"/> - <attr format="color" name="list_item_prefix_highlight_color"/> - <attr format="color" name="list_item_background_color"/> - <attr format="dimension" name="list_item_header_text_indent"/> - <attr format="color" name="list_item_header_text_color"/> - <attr format="dimension" name="list_item_header_text_size"/> - <attr format="dimension" name="list_item_header_height"/> - <attr format="color" name="list_item_name_text_color"/> - <attr format="dimension" name="list_item_name_text_size"/> - <attr format="dimension" name="list_item_text_indent"/> - <attr format="dimension" name="list_item_text_offset_top"/> - <attr format="integer" name="list_item_data_width_weight"/> - <attr format="integer" name="list_item_label_width_weight"/> - <attr format="dimension" name="list_item_video_call_icon_size"/> - <attr format="dimension" name="list_item_video_call_icon_margin"/> - </declare-styleable> - - <declare-styleable name="ContactBrowser"> - <attr format="dimension" name="contact_browser_list_padding_left"/> - <attr format="dimension" name="contact_browser_list_padding_right"/> - <attr format="reference" name="contact_browser_background"/> - </declare-styleable> - - <declare-styleable name="ProportionalLayout"> - <attr format="string" name="direction"/> - <attr format="float" name="ratio"/> - </declare-styleable> - - <declare-styleable name="Favorites"> - <attr format="dimension" name="favorites_padding_bottom"/> - </declare-styleable> -</resources> diff --git a/java/com/android/contacts/common/res/values/colors.xml b/java/com/android/contacts/common/res/values/colors.xml deleted file mode 100644 index ab9f19b29..000000000 --- a/java/com/android/contacts/common/res/values/colors.xml +++ /dev/null @@ -1,51 +0,0 @@ -<!-- - ~ 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 - --> - -<resources> - <!-- Color of the theme of the People app --> - <color name="people_app_theme_color">#363636</color> - - <!-- Darker versions of letter_tile_colors, two shades darker. These colors are used - for settings secondary activity colors. --> - <array name="letter_tile_colors_dark"> - <item>#C53929</item> - <item>#C2185B</item> - <item>#7B1FA2</item> - <item>#512DA8</item> - <item>#303F9F</item> - <item>#3367D6</item> - <item>#0277BD</item> - <item>#006064</item> - <item>#00796B</item> - <item>#0B8043</item> - <item>#33691E</item> - <item>#E65100</item> - <item>#E64A19</item> - <item>#424242</item> - </array> - - <!-- Text color used for character counter when the max limit has been exceeded --> - <color name="call_subject_limit_exceeded">#d1041c</color> - - <!-- Tint color for the call subject history icon. --> - <color name="call_subject_history_icon">#000000</color> - - <!-- Divider line on the call subject dialog. --> - <color name="call_subject_divider">#d8d8d8</color> - - <!-- Text color for the SEND & CALL button on the call subject dialog. --> - <color name="call_subject_button">#00c853</color> -</resources> diff --git a/java/com/android/contacts/common/res/values/dimens.xml b/java/com/android/contacts/common/res/values/dimens.xml deleted file mode 100644 index df3e53c77..000000000 --- a/java/com/android/contacts/common/res/values/dimens.xml +++ /dev/null @@ -1,99 +0,0 @@ -<!-- - ~ 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 - --> - -<resources xmlns:tools="http://schemas.android.com/tools"> - - <!-- Padding between the action bar's bottom edge and the first header - in contacts/group lists. --> - <dimen name="list_header_extra_top_padding">0dip</dimen> - - <!-- Minimum height used with @drawable/list_section_divider_holo_custom. - Right now the drawable has implicit 32dip minimal height, which is confusing. - This value is for making the hidden configuration explicit in xml. --> - <dimen name="list_section_divider_min_height">32dip</dimen> - - <dimen name="directory_header_extra_top_padding">18dp</dimen> - <dimen name="directory_header_extra_bottom_padding">8dp</dimen> - - <!-- Padding to be used between a visible scrollbar and the contact list --> - <dimen name="list_visible_scrollbar_padding">32dip</dimen> - - <dimen name="contact_browser_list_header_left_margin">16dip</dimen> - <dimen name="contact_browser_list_header_right_margin">@dimen/list_visible_scrollbar_padding - </dimen> - <dimen name="contact_browser_list_item_text_indent">8dip</dimen> - <!-- Width of a contact list item section header. --> - <dimen name="contact_list_section_header_width">56dp</dimen> - - <!-- contact browser list margins --> - <dimen name="contact_browser_list_item_text_size">16sp</dimen> - <dimen name="contact_browser_list_item_photo_size">40dp</dimen> - <dimen name="contact_browser_list_item_gap_between_image_and_text">15dp</dimen> - - <!-- Height of the floating action button --> - <dimen name="floating_action_button_height">56dp</dimen> - <!-- Width of the floating action button --> - <dimen name="floating_action_button_width">56dp</dimen> - <!-- Z translation of the floating action button --> - <dimen name="floating_action_button_translation_z">8dp</dimen> - <!-- Right margin of the floating action button --> - <dimen name="floating_action_button_margin_right">16dp</dimen> - <!-- Bottom margin of the floating action button --> - <dimen name="floating_action_button_margin_bottom">16dp</dimen> - - <!-- Height of the selection indicator of a tab. --> - <dimen name="tab_selected_underline_height">2dp</dimen> - <!-- Size of text in tabs. --> - <dimen name="tab_text_size">14sp</dimen> - <dimen name="tab_elevation">0dp</dimen> - <dimen name="tab_unread_count_background_size">16dp</dimen> - <dimen name="tab_unread_count_background_radius">2dp</dimen> - <dimen name="tab_unread_count_margin_left">0dp</dimen> - <dimen name="tab_unread_count_margin_top">2dp</dimen> - <dimen name="tab_unread_count_text_size">12sp</dimen> - <dimen name="tab_unread_count_text_padding">2dp</dimen> - - <!-- Size of the icon (voice search, back arrow) in the search box. --> - <dimen name="search_box_icon_size">48dp</dimen> - <!-- Size of the close icon.--> - <dimen name="search_box_close_icon_size">56dp</dimen> - <!-- Padding around the close button. It's visible size without padding is 24dp. --> - <dimen name="search_box_close_icon_padding">16dp</dimen> - <!-- Padding around back arrow icon in the search box --> - <dimen name="search_box_navigation_icon_margin">14dp</dimen> - <!-- Left margin of the text field in the search box. --> - <dimen name="search_box_text_left_margin">15dp</dimen> - <!-- Search box text size --> - <dimen name="search_text_size">16sp</dimen> - - <dimen name="contact_list_card_elevation">2dp</dimen> - - <!-- Padding used around the periphery of the call subject dialog, as well as in between the - items. --> - <dimen name="call_subject_dialog_margin">20dp</dimen> - <!-- Padding used between lines of text in the call subject dialog. --> - <dimen name="call_subject_dialog_between_line_margin">8dp</dimen> - <!-- Size of the contact photo in the call subject dialog. --> - <dimen name="call_subject_dialog_contact_photo_size">50dp</dimen> - <!-- Margin above the edit text in the call subject dialog. --> - <dimen name="call_subject_dialog_edit_spacing">60dp</dimen> - <!-- Size of primary text in the call subject dialog. --> - <dimen name="call_subject_dialog_primary_text_size">16sp</dimen> - <!-- Size of secondary text in the call subject dialog. --> - <dimen name="call_subject_dialog_secondary_text_size">14sp</dimen> - <!-- Row padding for call subject history items. --> - <dimen name="call_subject_history_item_padding">15dp</dimen> -</resources> diff --git a/java/com/android/contacts/common/res/values/donottranslate_config.xml b/java/com/android/contacts/common/res/values/donottranslate_config.xml deleted file mode 100644 index f37e0b8d8..000000000 --- a/java/com/android/contacts/common/res/values/donottranslate_config.xml +++ /dev/null @@ -1,41 +0,0 @@ -<!-- - ~ 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 - --> - -<resources> - <!-- If true, an option is shown in Display Options UI to choose a sort order --> - <bool name="config_sort_order_user_changeable">true</bool> - - <!-- If true, the default sort order is primary (i.e. by given name) --> - <bool name="config_default_sort_order_primary">true</bool> - - <!-- If true, an option is shown in Display Options UI to choose a name display order --> - <bool name="config_display_order_user_changeable">true</bool> - - <!-- If true, the default sort order is primary (i.e. by given name) --> - <bool name="config_default_display_order_primary">true</bool> - - <!-- If true, the order of name fields in the editor is primary (i.e. given name first) --> - <bool name="config_editor_field_order_primary">true</bool> - - <!-- If true, an option is shown in Display Options UI to choose a default account --> - <bool name="config_default_account_user_changeable">true</bool> - - <!-- Contacts preferences key for contact editor default account --> - <string name="contact_editor_default_account_key">ContactEditorUtils_default_account</string> - - <!-- Contacts preferences key for contact editor anything saved --> - <string name="contact_editor_anything_saved_key">ContactEditorUtils_anything_saved</string> -</resources> diff --git a/java/com/android/contacts/common/res/values/ids.xml b/java/com/android/contacts/common/res/values/ids.xml deleted file mode 100644 index 65969c43f..000000000 --- a/java/com/android/contacts/common/res/values/ids.xml +++ /dev/null @@ -1,31 +0,0 @@ -<!-- - 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. - --> - -<resources> - <!-- For Debug Purpose --> - <item name="cliv_name_textview" type="id"/> - <item name="cliv_label_textview" type="id"/> - <item name="cliv_data_view" type="id"/> - - <!-- For tag ids used by ContactPhotoManager to tag views with contact details --> - <item name="tag_display_name" type="id"/> - <item name="tag_identifier" type="id"/> - <item name="tag_contact_type" type="id"/> - - <item name="contact_tile_image" type="id"/> - <item name="contact_tile_name" type="id"/> - <item name="call_to_action" type="id"/> -</resources> diff --git a/java/com/android/contacts/common/res/values/integers.xml b/java/com/android/contacts/common/res/values/integers.xml deleted file mode 100644 index f4ed5c276..000000000 --- a/java/com/android/contacts/common/res/values/integers.xml +++ /dev/null @@ -1,35 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - 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. - --> - -<resources> - - <!-- Determines the number of columns in a ContactTileRow in the favorites tab --> - <integer name="contact_tile_column_count_in_favorites">2</integer> - - <!-- The number of characters in the snippet before we need to tokenize and ellipse. --> - <integer name="snippet_length_before_tokenize">30</integer> - - <!-- Layout weight of space elements in contact list view. - Default to 0 to indicate no padding--> - <integer name="contact_list_space_layout_weight">0</integer> - <!-- Layout weight of card in contact list view. - Default to 0 to indicate no padding --> - <integer name="contact_list_card_layout_weight">0</integer> - - <!-- Duration of the animations on the call subject dialog. --> - <integer name="call_subject_animation_duration">250</integer> -</resources> diff --git a/java/com/android/contacts/common/res/values/strings.xml b/java/com/android/contacts/common/res/values/strings.xml deleted file mode 100644 index 201128258..000000000 --- a/java/com/android/contacts/common/res/values/strings.xml +++ /dev/null @@ -1,410 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - ~ 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 - --> -<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - - <!-- Action string for calling a custom phone number --> - <string name="call_custom">Call - <xliff:g id="custom">%s</xliff:g> - </string> - <!-- Action string for calling a home phone number --> - <string name="call_home">Call home</string> - <!-- Action string for calling a mobile phone number --> - <string name="call_mobile">Call mobile</string> - <!-- Action string for calling a work phone number --> - <string name="call_work">Call work</string> - <!-- Action string for calling a work fax phone number --> - <string name="call_fax_work">Call work fax</string> - <!-- Action string for calling a home fax phone number --> - <string name="call_fax_home">Call home fax</string> - <!-- Action string for calling a pager phone number --> - <string name="call_pager">Call pager</string> - <!-- Action string for calling an other phone number --> - <string name="call_other">Call</string> - <!-- Action string for calling a callback number --> - <string name="call_callback">Call callback</string> - <!-- Action string for calling a car phone number --> - <string name="call_car">Call car</string> - <!-- Action string for calling a company main phone number --> - <string name="call_company_main">Call company main</string> - <!-- Action string for calling a ISDN phone number --> - <string name="call_isdn">Call ISDN</string> - <!-- Action string for calling a main phone number --> - <string name="call_main">Call main</string> - <!-- Action string for calling an other fax phone number --> - <string name="call_other_fax">Call fax</string> - <!-- Action string for calling a radio phone number --> - <string name="call_radio">Call radio</string> - <!-- Action string for calling a Telex phone number --> - <string name="call_telex">Call telex</string> - <!-- Action string for calling a TTY/TDD phone number --> - <string name="call_tty_tdd">Call TTY/TDD</string> - <!-- Action string for calling a work mobile phone number --> - <string name="call_work_mobile">Call work mobile</string> - <!-- Action string for calling a work pager phone number --> - <string name="call_work_pager">Call work pager</string> - <!-- Action string for calling an assistant phone number --> - <string name="call_assistant">Call - <xliff:g id="assistant">%s</xliff:g> - </string> - <!-- Action string for calling a MMS phone number --> - <string name="call_mms">Call MMS</string> - - <!-- Action string for sending an SMS to a custom phone number --> - <string name="sms_custom">Text - <xliff:g id="custom">%s</xliff:g> - </string> - <!-- Action string for sending an SMS to a home phone number --> - <string name="sms_home">Text home</string> - <!-- Action string for sending an SMS to a mobile phone number --> - <string name="sms_mobile">Text mobile</string> - <!-- Action string for sending an SMS to a work phone number --> - <string name="sms_work">Text work</string> - <!-- Action string for sending an SMS to a work fax phone number --> - <string name="sms_fax_work">Text work fax</string> - <!-- Action string for sending an SMS to a home fax phone number --> - <string name="sms_fax_home">Text home fax</string> - <!-- Action string for sending an SMS to a pager phone number --> - <string name="sms_pager">Text pager</string> - <!-- Action string for sending an SMS to an other phone number --> - <string name="sms_other">Text</string> - <!-- Action string for sending an SMS to a callback number --> - <string name="sms_callback">Text callback</string> - <!-- Action string for sending an SMS to a car phone number --> - <string name="sms_car">Text car</string> - <!-- Action string for sending an SMS to a company main phone number --> - <string name="sms_company_main">Text company main</string> - <!-- Action string for sending an SMS to a ISDN phone number --> - <string name="sms_isdn">Text ISDN</string> - <!-- Action string for sending an SMS to a main phone number --> - <string name="sms_main">Text main</string> - <!-- Action string for sending an SMS to an other fax phone number --> - <string name="sms_other_fax">Text fax</string> - <!-- Action string for sending an SMS to a radio phone number --> - <string name="sms_radio">Text radio</string> - <!-- Action string for sending an SMS to a Telex phone number --> - <string name="sms_telex">Text telex</string> - <!-- Action string for sending an SMS to a TTY/TDD phone number --> - <string name="sms_tty_tdd">Text TTY/TDD</string> - <!-- Action string for sending an SMS to a work mobile phone number --> - <string name="sms_work_mobile">Text work mobile</string> - <!-- Action string for sending an SMS to a work pager phone number --> - <string name="sms_work_pager">Text work pager</string> - <!-- Action string for sending an SMS to an assistant phone number --> - <string name="sms_assistant">Text - <xliff:g id="assistant">%s</xliff:g> - </string> - <!-- Action string for sending an SMS to a MMS phone number --> - <string name="sms_mms">Text MMS</string> - - <!-- Title of the confirmation dialog for clearing frequents. [CHAR LIMIT=37] --> - <string name="clearFrequentsConfirmation_title">Clear frequently contacted?</string> - - <!-- Confirmation dialog for clearing frequents. [CHAR LIMIT=NONE] --> - <string name="clearFrequentsConfirmation">You\'ll clear the frequently contacted list in the - Contacts and Phone apps, and force email apps to learn your addressing preferences from - scratch. - </string> - - <!-- Title of the "Clearing frequently contacted" progress-dialog [CHAR LIMIT=35] --> - <string name="clearFrequentsProgress_title">Clearing frequently contacted\u2026</string> - - <!-- Used to display as default status when the contact is available for chat [CHAR LIMIT=19] --> - <string name="status_available">Available</string> - - <!-- Used to display as default status when the contact is away or idle for chat [CHAR LIMIT=19] --> - <string name="status_away">Away</string> - - <!-- Used to display as default status when the contact is busy or Do not disturb for chat [CHAR LIMIT=19] --> - <string name="status_busy">Busy</string> - - <!-- Directory partition name (also exists in contacts) --> - <string name="contactsList">Contacts</string> - - <!-- Directory partition name for p13n suggestions --> - <string name="contact_suggestions">Top Suggested</string> - - <!-- The name of the invisible local contact directory --> - <string name="local_invisible_directory">Other</string> - - <!-- The label in section header in the contact list for a contact directory [CHAR LIMIT=128] --> - <string name="directory_search_label">Directory</string> - - <!-- The label in section header in the contact list for a work contact directory [CHAR LIMIT=128] --> - <string name="directory_search_label_work">Work directory</string> - - <!-- The label in section header in the contact list for a local contacts [CHAR LIMIT=128] --> - <string name="local_search_label">All contacts</string> - - <!-- The label in section header in the contact list for a local suggested contacts [CHAR LIMIT=128] --> - <string name="local_suggestions_search_label">Suggestions</string> - - <!-- String describing the text on the header of the profile contact in the contacts list - This may be programatically capitalized. [CHAR LIMIT=20] --> - <string msgid="9154761216179882405" name="user_profile_contacts_list_header">Me</string> - - <!-- Shown as the display name for a person when the name is missing or unknown. [CHAR LIMIT=18]--> - <string name="missing_name">(No name)</string> - - <!-- String describing a contact picture that introduces users to the contact detail screen. - - Used by AccessibilityService to announce the purpose of the button. - - [CHAR LIMIT=NONE] - --> - <string msgid="2795575601596468581" name="description_view_contact_detail">View contact</string> - - <!-- Contact list filter selection indicating that the list shows all contacts with phone numbers [CHAR LIMIT=64] --> - <string name="list_filter_phones">All contacts with phone numbers</string> - - <!-- Contact list filter selection indicating that the list shows all work contacts with phone numbers [CHAR LIMIT=64] --> - <string name="list_filter_phones_work">Work profile contacts</string> - - <!-- Button to view the updates from the current group on the group detail page [CHAR LIMIT=25] --> - <string name="view_updates_from_group">View updates</string> - - <!-- Title for data source when creating or editing a contact that doesn't - belong to a specific account. This contact will only exist on the device - and will not be synced. --> - <string name="account_phone">Device-only, unsynced</string> - - <!-- Header that expands to list all name types when editing a structured name of a contact - [CHAR LIMIT=20] --> - <string name="nameLabelsGroup">Name</string> - - <!-- Header that expands to list all nickname types when editing a nickname of a contact - [CHAR LIMIT=20] --> - <string name="nicknameLabelsGroup">Nickname</string> - - <!-- Field title for the full name of a contact [CHAR LIMIT=64]--> - <string name="full_name">Name</string> - <!-- Field title for the given name of a contact --> - <string name="name_given">First name</string> - <!-- Field title for the family name of a contact --> - <string name="name_family">Last name</string> - <!-- Field title for the prefix name of a contact --> - <string name="name_prefix">Name prefix</string> - <!-- Field title for the middle name of a contact --> - <string name="name_middle">Middle name</string> - <!-- Field title for the suffix name of a contact --> - <string name="name_suffix">Name suffix</string> - - <!-- Field title for the phonetic name of a contact [CHAR LIMIT=64]--> - <string name="name_phonetic">Phonetic name</string> - - <!-- Field title for the phonetic given name of a contact --> - <string name="name_phonetic_given">Phonetic first name</string> - <!-- Field title for the phonetic middle name of a contact --> - <string name="name_phonetic_middle">Phonetic middle name</string> - <!-- Field title for the phonetic family name of a contact --> - <string name="name_phonetic_family">Phonetic last name</string> - - <!-- Header that expands to list all of the types of phone numbers when editing or creating a - phone number for a contact [CHAR LIMIT=20] --> - <string name="phoneLabelsGroup">Phone</string> - - <!-- Header that expands to list all of the types of email addresses when editing or creating - an email address for a contact [CHAR LIMIT=20] --> - <string name="emailLabelsGroup">Email</string> - - <!-- Header that expands to list all of the types of postal addresses when editing or creating - an postal address for a contact [CHAR LIMIT=20] --> - <string name="postalLabelsGroup">Address</string> - - <!-- Header that expands to list all of the types of IM account when editing or creating an IM - account for a contact [CHAR LIMIT=20] --> - <string name="imLabelsGroup">IM</string> - - <!-- Header that expands to list all organization types when editing an organization of a - contact [CHAR LIMIT=20] --> - <string name="organizationLabelsGroup">Organization</string> - - <!-- Header for the list of all relationships for a contact [CHAR LIMIT=20] --> - <string name="relationLabelsGroup">Relationship</string> - - <!-- Header that expands to list all event types when editing an event of a contact - [CHAR LIMIT=20] --> - <string name="eventLabelsGroup">Special date</string> - - <!-- Generic action string for text messaging a contact. Used by AccessibilityService to - announce the purpose of the view. [CHAR LIMIT=NONE] --> - <string name="sms">Text message</string> - - <!-- Field title for the full postal address of a contact [CHAR LIMIT=64]--> - <string name="postal_address">Address</string> - - <!-- Hint text for the organization name when editing --> - <string name="ghostData_company">Company</string> - - <!-- Hint text for the organization title when editing --> - <string name="ghostData_title">Title</string> - - <!-- The label describing the Notes field of a contact. This field allows free form text entry - about a contact --> - <string name="label_notes">Notes</string> - - <!-- The label describing the SIP address field of a contact. [CHAR LIMIT=20] --> - <string name="label_sip_address">SIP</string> - - <!-- Header that expands to list all website types when editing a website of a contact - [CHAR LIMIT=20] --> - <string name="websiteLabelsGroup">Website</string> - - <!-- Header for the list of all groups for a contact [CHAR LIMIT=20] --> - <string name="groupsLabel">Groups</string> - - <!-- Action string for sending an email to a home email address --> - <string name="email_home">Email home</string> - <!-- Action string for sending an email to a mobile email address --> - <string name="email_mobile">Email mobile</string> - <!-- Action string for sending an email to a work email address --> - <string name="email_work">Email work</string> - <!-- Action string for sending an email to an other email address --> - <string name="email_other">Email</string> - <!-- Action string for sending an email to a custom email address --> - <string name="email_custom">Email <xliff:g id="custom">%s</xliff:g></string> - - <!-- Generic action string for sending an email --> - <string name="email">Email</string> - - <!-- Field title for the street of a structured postal address of a contact --> - <string name="postal_street">Street</string> - <!-- Field title for the city of a structured postal address of a contact --> - <string name="postal_city">City</string> - <!-- Field title for the region, or state, of a structured postal address of a contact --> - <string name="postal_region">State</string> - <!-- Field title for the postal code of a structured postal address of a contact --> - <string name="postal_postcode">ZIP code</string> - <!-- Field title for the country of a structured postal address of a contact --> - <string name="postal_country">Country</string> - - <!-- Action string for viewing a home postal address --> - <string name="map_home">View home address</string> - <!-- Action string for viewing a work postal address --> - <string name="map_work">View work address</string> - <!-- Action string for viewing an other postal address --> - <string name="map_other">View address</string> - <!-- Action string for viewing a custom postal address --> - <string name="map_custom">View <xliff:g id="custom">%s</xliff:g> address</string> - - <!-- Action string for starting an IM chat with the AIM protocol --> - <string name="chat_aim">Chat using AIM</string> - <!-- Action string for starting an IM chat with the MSN or Windows Live protocol --> - <string name="chat_msn">Chat using Windows Live</string> - <!-- Action string for starting an IM chat with the Yahoo protocol --> - <string name="chat_yahoo">Chat using Yahoo</string> - <!-- Action string for starting an IM chat with the Skype protocol --> - <string name="chat_skype">Chat using Skype</string> - <!-- Action string for starting an IM chat with the QQ protocol --> - <string name="chat_qq">Chat using QQ</string> - <!-- Action string for starting an IM chat with the Google Talk protocol --> - <string name="chat_gtalk">Chat using Google Talk</string> - <!-- Action string for starting an IM chat with the ICQ protocol --> - <string name="chat_icq">Chat using ICQ</string> - <!-- Action string for starting an IM chat with the Jabber protocol --> - <string name="chat_jabber">Chat using Jabber</string> - - <!-- Generic action string for starting an IM chat --> - <string name="chat">Chat</string> - - <!-- Contact list filter label indicating that the list is showing all available accounts [CHAR LIMIT=64] --> - <string name="list_filter_all_accounts">All contacts</string> - - <!-- Displayed at the top of the contacts showing the account filter selected [CHAR LIMIT=64] --> - <string name="listAllContactsInAccount">Contacts in <xliff:g example="abc@gmail.com" id="name">%s</xliff:g></string> - - <!-- Displayed at the top of the contacts showing single contact. [CHAR LIMIT=64] --> - <string name="listCustomView">Contacts in custom view</string> - - <!-- Displayed at the top of the contacts showing single contact. [CHAR LIMIT=64] --> - <string name="listSingleContact">Single contact</string> - - <!-- The menu item to clear frequents [CHAR LIMIT=30] --> - <string name="menu_clear_frequents">Clear frequents</string> - - <!-- Content description for the fake action menu up button as used - inside search. [CHAR LIMIT=NONE] --> - <string name="action_menu_back_from_search">stop searching</string> - - <!-- String describing the icon used to clear the search field --> - <string name="description_clear_search">Clear search</string> - - <!-- The font-family to use for the text inside the searchbox. --> - <string name="search_font_family" translatable="false">sans-serif</string> - - <!-- Title for Select Account Dialog [CHAR LIMIT=30] --> - <string name="select_account_dialog_title">Account</string> - - <!-- Label for the check box to toggle default sim card setting [CHAR LIMIT=35]--> - <string name="set_default_account">Always use this for calls</string> - - <!-- Title for dialog to select Phone Account for outgoing call. [CHAR LIMIT=40] --> - <string name="select_phone_account_for_calls">Choose SIM for this call</string> - - <!-- Checkbox label when selecting a SIM when calling a contact, to use the selected SIM for the - same contact and never ask again [CHAR LIMIT=40]--> - <string name="select_phone_account_for_calls_remember">Remember this choice</string> - - <!-- String used for actions in the dialer call log and the quick contact card to initiate - a call to an individual. The user is prompted to enter a note which is sent along with - the call (e.g. a call subject). [CHAR LIMIT=40] --> - <string name="call_with_a_note">Call with a note</string> - - <!-- Hint text shown in the call subject dialog. [CHAR LIMIT=255] --> - <string name="call_subject_hint">Type a note to send with call ...</string> - - <!-- Button used to start a new call with the user entered subject. [CHAR LIMIT=32] --> - <string name="send_and_call_button">SEND & CALL</string> - - <!-- String used to represent the total number of characters entered for a call subject, - compared to the character limit. Example: 2 / 64 --> - <string name="call_subject_limit"><xliff:g example="4" id="count">%1$s</xliff:g> / <xliff:g example="64" id="limit">%2$s</xliff:g></string> - - <!-- String used to build a phone number type and phone number string. - Example: Mobile 650-555-1212 --> - <string name="old_call_subject_type_and_number"><xliff:g example="Mobile" id="type">%1$s</xliff:g> <xliff:g example="(650) 555-1212" id="number">%2$s</xliff:g></string> - - <!-- String format to describe a tab e.g.call history tab. --> - <string name="tab_title"><xliff:g id="title">%1$s</xliff:g> tab.</string> - - <!-- String format to describe the number of unread items in a tab. - - Note: AccessibilityServices use this attribute to announce what the view represents. - This is especially valuable for views without textual representation like ImageView. - --> - <plurals name="tab_title_with_unread_items"> - <item quantity="one"> - <xliff:g id="title">%1$s</xliff:g> tab. <xliff:g id="count">%2$d</xliff:g> unread item. - </item> - <item quantity="other"> - <xliff:g id="title">%1$s</xliff:g> tab. <xliff:g id="count">%2$d</xliff:g> unread items. - </item> - </plurals> - - <!-- Description string for an action button to initiate a video call from search results. - Note: AccessibilityServices use this attribute to announce what the view represents. - This is especially valuable for views without textual representation like ImageView. - - [CHAR LIMIT=NONE]--> - <string name="description_search_video_call">Video call</string> - - <!-- Description string for an action button to initiate an enriched call from search results. - Note: AccessibilityServices use this attribute to announce what the view represents. - This is especially valuable for views without textual representation like ImageView. - - [CHAR LIMIT=NONE]--> - <string name="description_search_call_and_share">Share and call</string> -</resources> diff --git a/java/com/android/contacts/common/res/values/styles.xml b/java/com/android/contacts/common/res/values/styles.xml deleted file mode 100644 index 4f0b3f15f..000000000 --- a/java/com/android/contacts/common/res/values/styles.xml +++ /dev/null @@ -1,96 +0,0 @@ -<!-- - ~ 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 - --> - -<resources> - - <style name="DirectoryHeader"> - <item name="android:background">@android:color/transparent</item> - </style> - - <style name="SectionHeaderStyle" parent="@android:style/TextAppearance.Large"> - <item name="android:textSize">16sp</item> - <item name="android:textAllCaps">true</item> - <item name="android:textColor">?android:attr/textColorPrimary</item> - <item name="android:textStyle">bold</item> - </style> - - <style name="DirectoryHeaderStyle" parent="@android:style/TextAppearance.Small"> - <item name="android:textSize">14sp</item> - <item name="android:textColor">?android:attr/textColorSecondary</item> - <item name="android:fontFamily">sans-serif-medium</item> - </style> - - <!-- TextView style used for headers. - -This is similar to ?android:attr/listSeparatorTextView but uses different -background and text color. See also android:style/Widget.Holo.TextView.ListSeparator -(which is private, so we cannot specify it as a parent style). --> - <style name="ContactListSeparatorTextViewStyle"> - <item name="android:layout_width">match_parent</item> - <item name="android:layout_height">wrap_content</item> - <!-- See comments for @dimen/list_section_divider_min_height --> - <item name="android:minHeight">@dimen/list_section_divider_min_height</item> - <item name="android:textAppearance">@style/DirectoryHeaderStyle</item> - <item name="android:gravity">center_vertical</item> - <item name="android:paddingLeft">8dip</item> - <item name="android:paddingStart">8dip</item> - <item name="android:paddingTop">4dip</item> - <item name="android:paddingBottom">4dip</item> - <item name="android:ellipsize">end</item> - <item name="android:singleLine">true</item> - <item name="android:textAllCaps">true</item> - </style> - - <style name="TextAppearanceMedium" parent="@android:style/TextAppearance.Medium"> - <item name="android:textSize">16sp</item> - <item name="android:textColor">#000000</item> - </style> - - <style name="TextAppearanceSmall" parent="@android:style/TextAppearance.Small"> - <item name="android:textSize">14sp</item> - <item name="android:textColor">#737373</item> - </style> - - <style name="ListViewStyle" parent="@android:style/Widget.Material.Light.ListView"> - <item name="android:overScrollMode">always</item> - </style> - - <style name="BackgroundOnlyTheme" parent="@android:style/Theme.Material.Light"> - <item name="android:windowBackground">@null</item> - <item name="android:windowContentOverlay">@null</item> - <item name="android:windowAnimationStyle">@null</item> - <item name="android:windowNoTitle">true</item> - <!-- Activities that use this theme are background activities without obvious displays. - However, some also have dialogs. Therefore, it doesn't make sense to set this true.--> - <item name="android:windowNoDisplay">false</item> - <item name="android:windowIsFloating">true</item> - </style> - - <style name="Theme.CallSubjectDialogTheme" parent="@android:style/Theme.Material.Light.Dialog"> - <item name="android:layout_width">match_parent</item> - <item name="android:layout_height">match_parent</item> - - <!-- No backgrounds, titles or window float --> - <item name="android:windowIsTranslucent">true</item> - <item name="android:windowNoTitle">true</item> - <item name="android:windowFullscreen">false</item> - <item name="android:windowIsFloating">true</item> - <item name="android:windowBackground">@android:color/transparent</item> - <item name="android:windowDrawsSystemBarBackgrounds">false</item> - <item name="android:windowContentOverlay">@null</item> - <item name="android:windowElevation">0dp</item> - </style> -</resources> diff --git a/java/com/android/contacts/common/util/AccountFilterUtil.java b/java/com/android/contacts/common/util/AccountFilterUtil.java index 25f937c5e..45876354d 100644 --- a/java/com/android/contacts/common/util/AccountFilterUtil.java +++ b/java/com/android/contacts/common/util/AccountFilterUtil.java @@ -19,8 +19,8 @@ package com.android.contacts.common.util; import android.content.Context; import android.view.View; import android.widget.TextView; -import com.android.contacts.common.R; import com.android.contacts.common.list.ContactListFilter; +import com.android.dialer.contacts.resources.R; /** Utility class for account filter manipulation. */ public class AccountFilterUtil { diff --git a/java/com/android/contacts/common/util/ContactDisplayUtils.java b/java/com/android/contacts/common/util/ContactDisplayUtils.java index 967395af4..86d20bca0 100644 --- a/java/com/android/contacts/common/util/ContactDisplayUtils.java +++ b/java/com/android/contacts/common/util/ContactDisplayUtils.java @@ -27,8 +27,8 @@ import android.text.SpannableString; import android.text.TextUtils; import android.text.style.TtsSpan; import android.util.Patterns; -import com.android.contacts.common.R; import com.android.dialer.common.LogUtil; +import com.android.dialer.contacts.resources.R; import java.util.Objects; /** Methods for handling various contact data labels. */ diff --git a/java/com/android/contacts/common/util/ContactListViewUtils.java b/java/com/android/contacts/common/util/ContactListViewUtils.java index 278c27d5c..924789b16 100644 --- a/java/com/android/contacts/common/util/ContactListViewUtils.java +++ b/java/com/android/contacts/common/util/ContactListViewUtils.java @@ -19,7 +19,7 @@ package com.android.contacts.common.util; import android.content.res.Resources; import android.view.View; import android.widget.ListView; -import com.android.contacts.common.R; +import com.android.dialer.contacts.resources.R; import com.android.dialer.util.ViewUtil; /** Utilities for configuring ListViews with a card background. */ diff --git a/java/com/android/contacts/common/util/MaterialColorMapUtils.java b/java/com/android/contacts/common/util/MaterialColorMapUtils.java index bd32faa51..ea8c5fc69 100644 --- a/java/com/android/contacts/common/util/MaterialColorMapUtils.java +++ b/java/com/android/contacts/common/util/MaterialColorMapUtils.java @@ -29,9 +29,10 @@ public class MaterialColorMapUtils { public MaterialColorMapUtils(Resources resources) { sPrimaryColors = - resources.obtainTypedArray(com.android.contacts.common.R.array.letter_tile_colors); + resources.obtainTypedArray(com.android.dialer.lettertile.R.array.letter_tile_colors); sSecondaryColors = - resources.obtainTypedArray(com.android.contacts.common.R.array.letter_tile_colors_dark); + resources.obtainTypedArray( + com.android.dialer.contacts.resources.R.array.letter_tile_colors_dark); } /** diff --git a/java/com/android/contacts/common/widget/SelectPhoneAccountDialogFragment.java b/java/com/android/contacts/common/widget/SelectPhoneAccountDialogFragment.java index 3ee21ccea..014dcf2a1 100644 --- a/java/com/android/contacts/common/widget/SelectPhoneAccountDialogFragment.java +++ b/java/com/android/contacts/common/widget/SelectPhoneAccountDialogFragment.java @@ -43,8 +43,8 @@ import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.ListAdapter; import android.widget.TextView; -import com.android.contacts.common.R; import com.android.contacts.common.compat.PhoneAccountCompat; +import com.android.dialer.contacts.resources.R; import com.android.dialer.location.GeoUtil; import com.android.dialer.phonenumberutil.PhoneNumberHelper; import com.android.dialer.protos.ProtoParsers; |