Collapse common packages (1/?)
Move the majority of packages out of common. When trying to move
common.activity to activities every file switched from a rename to
separated deletes and adds. Will move tests and the rest of common
in a separate CL.
Test: Built GoogleContacts, Contacts, GoogleContactsTests,
ContactsTests.
Bug: 33252370
Change-Id: I9ffb20038dee255ef5f83002b7870265771b08c5
diff --git a/tests/src/com/android/contacts/GroupsDaoIntegrationTests.java b/tests/src/com/android/contacts/GroupsDaoIntegrationTests.java
index 9b9b4fe..4057ee8 100644
--- a/tests/src/com/android/contacts/GroupsDaoIntegrationTests.java
+++ b/tests/src/com/android/contacts/GroupsDaoIntegrationTests.java
@@ -32,7 +32,7 @@
import android.test.InstrumentationTestCase;
import android.test.suitebuilder.annotation.MediumTest;
-import com.android.contacts.common.model.account.AccountWithDataSet;
+import com.android.contacts.model.account.AccountWithDataSet;
import java.util.ArrayList;
import java.util.List;
diff --git a/tests/src/com/android/contacts/NoPermissionsLaunchSmokeTest.java b/tests/src/com/android/contacts/NoPermissionsLaunchSmokeTest.java
index c9ea3b6..3231ff9 100644
--- a/tests/src/com/android/contacts/NoPermissionsLaunchSmokeTest.java
+++ b/tests/src/com/android/contacts/NoPermissionsLaunchSmokeTest.java
@@ -17,7 +17,7 @@
import org.junit.Test;
import org.junit.runner.RunWith;
-import static com.android.contacts.common.util.PermissionsUtil.hasPermission;
+import static com.android.contacts.util.PermissionsUtil.hasPermission;
import static org.junit.Assume.assumeTrue;
/**
diff --git a/tests/src/com/android/contacts/activities/PeopleActivityTest.java b/tests/src/com/android/contacts/activities/PeopleActivityTest.java
index bb463e8..9ff3f95 100644
--- a/tests/src/com/android/contacts/activities/PeopleActivityTest.java
+++ b/tests/src/com/android/contacts/activities/PeopleActivityTest.java
@@ -18,37 +18,29 @@
import android.content.ContentUris;
import android.content.ContentValues;
-import android.content.Intent;
-import android.content.Loader;
import android.net.Uri;
import android.provider.ContactsContract;
import android.provider.ContactsContract.Contacts;
import android.provider.ContactsContract.Directory;
import android.provider.ContactsContract.Groups;
import android.provider.ContactsContract.ProviderStatus;
-import android.provider.Settings;
import android.test.ActivityInstrumentationTestCase2;
import android.test.suitebuilder.annotation.SmallTest;
-import android.widget.TextView;
import com.android.contacts.ContactsApplication;
import com.android.contacts.R;
import com.android.contacts.common.ContactPhotoManager;
-import com.android.contacts.common.testing.InjectedServices;
+import com.android.contacts.testing.InjectedServices;
import com.android.contacts.common.test.mocks.ContactsMockContext;
import com.android.contacts.common.test.mocks.MockContentProvider;
import com.android.contacts.common.test.mocks.MockContentProvider.Query;
-import com.android.contacts.interactions.TestLoaderManager;
-import com.android.contacts.list.ContactBrowseListFragment;
-import com.android.contacts.common.model.AccountTypeManager;
-import com.android.contacts.common.model.account.AccountType;
-import com.android.contacts.common.model.account.AccountWithDataSet;
-import com.android.contacts.common.model.account.BaseAccountType;
-import com.android.contacts.common.preference.ContactsPreferences;
+import com.android.contacts.model.AccountTypeManager;
+import com.android.contacts.model.account.AccountType;
+import com.android.contacts.model.account.AccountWithDataSet;
+import com.android.contacts.model.account.BaseAccountType;
import com.android.contacts.common.test.mocks.MockAccountTypeManager;
import com.android.contacts.common.test.mocks.MockContactPhotoManager;
import com.android.contacts.common.test.mocks.MockSharedPreferences;
-import com.android.contacts.util.PhoneCapabilityTester;
/**
* This test is so outdated that it's disabled temporarily. TODO Update the test and re-enable it.
diff --git a/tests/src/com/android/contacts/common/ContactsUtilsTests.java b/tests/src/com/android/contacts/common/ContactsUtilsTests.java
index a209fb2..1c72f02 100644
--- a/tests/src/com/android/contacts/common/ContactsUtilsTests.java
+++ b/tests/src/com/android/contacts/common/ContactsUtilsTests.java
@@ -25,10 +25,9 @@
import android.test.suitebuilder.annotation.SmallTest;
import android.util.Pair;
-import com.android.contacts.common.ContactsUtils;
-import com.android.contacts.common.model.dataitem.DataItem;
-import com.android.contacts.common.model.dataitem.EmailDataItem;
-import com.android.contacts.common.model.dataitem.ImDataItem;
+import com.android.contacts.model.dataitem.DataItem;
+import com.android.contacts.model.dataitem.EmailDataItem;
+import com.android.contacts.model.dataitem.ImDataItem;
/**
* Tests for {@link ContactsUtils}.
diff --git a/tests/src/com/android/contacts/common/RawContactDeltaListTests.java b/tests/src/com/android/contacts/common/RawContactDeltaListTests.java
index 77acb98..16bb5a1 100644
--- a/tests/src/com/android/contacts/common/RawContactDeltaListTests.java
+++ b/tests/src/com/android/contacts/common/RawContactDeltaListTests.java
@@ -30,14 +30,14 @@
import android.test.suitebuilder.annotation.LargeTest;
import com.android.contacts.common.RawContactModifierTests.MockContactsSource;
-import com.android.contacts.common.compat.CompatUtils;
-import com.android.contacts.common.model.CPOWrapper;
-import com.android.contacts.common.model.RawContact;
-import com.android.contacts.common.model.RawContactDelta;
-import com.android.contacts.common.model.ValuesDelta;
-import com.android.contacts.common.model.RawContactDeltaList;
-import com.android.contacts.common.model.RawContactModifier;
-import com.android.contacts.common.model.account.AccountType;
+import com.android.contacts.compat.CompatUtils;
+import com.android.contacts.model.CPOWrapper;
+import com.android.contacts.model.RawContact;
+import com.android.contacts.model.RawContactDelta;
+import com.android.contacts.model.ValuesDelta;
+import com.android.contacts.model.RawContactDeltaList;
+import com.android.contacts.model.RawContactModifier;
+import com.android.contacts.model.account.AccountType;
import com.google.common.collect.Lists;
diff --git a/tests/src/com/android/contacts/common/RawContactDeltaTests.java b/tests/src/com/android/contacts/common/RawContactDeltaTests.java
index e4690d9..e261e55 100644
--- a/tests/src/com/android/contacts/common/RawContactDeltaTests.java
+++ b/tests/src/com/android/contacts/common/RawContactDeltaTests.java
@@ -27,12 +27,12 @@
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.LargeTest;
-import com.android.contacts.common.compat.CompatUtils;
-import com.android.contacts.common.model.BuilderWrapper;
-import com.android.contacts.common.model.CPOWrapper;
-import com.android.contacts.common.model.RawContact;
-import com.android.contacts.common.model.RawContactDelta;
-import com.android.contacts.common.model.ValuesDelta;
+import com.android.contacts.compat.CompatUtils;
+import com.android.contacts.model.BuilderWrapper;
+import com.android.contacts.model.CPOWrapper;
+import com.android.contacts.model.RawContact;
+import com.android.contacts.model.RawContactDelta;
+import com.android.contacts.model.ValuesDelta;
import com.google.common.collect.Lists;
import java.util.ArrayList;
diff --git a/tests/src/com/android/contacts/common/RawContactModifierTests.java b/tests/src/com/android/contacts/common/RawContactModifierTests.java
index 9765af6..dccfb82 100644
--- a/tests/src/com/android/contacts/common/RawContactModifierTests.java
+++ b/tests/src/com/android/contacts/common/RawContactModifierTests.java
@@ -18,9 +18,7 @@
import android.content.ContentProviderOperation;
import android.content.ContentValues;
-import android.net.Uri;
import android.os.Bundle;
-import android.provider.ContactsContract;
import android.provider.ContactsContract.CommonDataKinds.Email;
import android.provider.ContactsContract.CommonDataKinds.Event;
import android.provider.ContactsContract.CommonDataKinds.Im;
@@ -34,22 +32,22 @@
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.LargeTest;
-import com.android.contacts.common.compat.CompatUtils;
-import com.android.contacts.common.model.AccountTypeManager;
-import com.android.contacts.common.model.CPOWrapper;
-import com.android.contacts.common.model.RawContact;
-import com.android.contacts.common.model.RawContactDelta;
-import com.android.contacts.common.model.ValuesDelta;
-import com.android.contacts.common.model.RawContactDeltaList;
-import com.android.contacts.common.model.RawContactModifier;
-import com.android.contacts.common.model.account.AccountType;
-import com.android.contacts.common.model.account.AccountType.EditType;
-import com.android.contacts.common.model.account.ExchangeAccountType;
-import com.android.contacts.common.model.account.GoogleAccountType;
-import com.android.contacts.common.model.dataitem.DataKind;
+import com.android.contacts.compat.CompatUtils;
+import com.android.contacts.model.AccountTypeManager;
+import com.android.contacts.model.CPOWrapper;
+import com.android.contacts.model.RawContact;
+import com.android.contacts.model.RawContactDelta;
+import com.android.contacts.model.ValuesDelta;
+import com.android.contacts.model.RawContactDeltaList;
+import com.android.contacts.model.RawContactModifier;
+import com.android.contacts.model.account.AccountType;
+import com.android.contacts.model.account.AccountType.EditType;
+import com.android.contacts.model.account.ExchangeAccountType;
+import com.android.contacts.model.account.GoogleAccountType;
+import com.android.contacts.model.dataitem.DataKind;
import com.android.contacts.common.test.mocks.ContactsMockContext;
import com.android.contacts.common.test.mocks.MockAccountTypeManager;
-import com.android.contacts.common.test.mocks.MockContentProvider;
+
import com.google.common.collect.Lists;
import java.util.ArrayList;
diff --git a/tests/src/com/android/contacts/common/test/mocks/MockAccountTypeManager.java b/tests/src/com/android/contacts/common/test/mocks/MockAccountTypeManager.java
index b701b3a..532b0d8 100644
--- a/tests/src/com/android/contacts/common/test/mocks/MockAccountTypeManager.java
+++ b/tests/src/com/android/contacts/common/test/mocks/MockAccountTypeManager.java
@@ -17,11 +17,11 @@
import android.accounts.Account;
-import com.android.contacts.common.model.AccountTypeManager;
-import com.android.contacts.common.model.account.AccountType;
-import com.android.contacts.common.model.account.AccountTypeWithDataSet;
-import com.android.contacts.common.model.account.AccountWithDataSet;
-import com.android.contacts.common.model.account.BaseAccountType;
+import com.android.contacts.model.AccountTypeManager;
+import com.android.contacts.model.account.AccountType;
+import com.android.contacts.model.account.AccountTypeWithDataSet;
+import com.android.contacts.model.account.AccountWithDataSet;
+import com.android.contacts.model.account.BaseAccountType;
import com.google.common.base.Objects;
import com.google.common.base.Predicate;
import com.google.common.collect.Collections2;
diff --git a/tests/src/com/android/contacts/common/compat/CompatUtilsTest.java b/tests/src/com/android/contacts/compat/CompatUtilsTest.java
similarity index 98%
rename from tests/src/com/android/contacts/common/compat/CompatUtilsTest.java
rename to tests/src/com/android/contacts/compat/CompatUtilsTest.java
index c1d6df9..22694cb 100644
--- a/tests/src/com/android/contacts/common/compat/CompatUtilsTest.java
+++ b/tests/src/com/android/contacts/compat/CompatUtilsTest.java
@@ -14,7 +14,7 @@
* limitations under the License
*/
-package com.android.contacts.common.compat;
+package com.android.contacts.compat;
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.SmallTest;
diff --git a/tests/src/com/android/contacts/common/database/NoNullCursorAsyncQueryHandlerTest.java b/tests/src/com/android/contacts/database/NoNullCursorAsyncQueryHandlerTest.java
similarity index 98%
rename from tests/src/com/android/contacts/common/database/NoNullCursorAsyncQueryHandlerTest.java
rename to tests/src/com/android/contacts/database/NoNullCursorAsyncQueryHandlerTest.java
index 99a43a8..987882b 100644
--- a/tests/src/com/android/contacts/common/database/NoNullCursorAsyncQueryHandlerTest.java
+++ b/tests/src/com/android/contacts/database/NoNullCursorAsyncQueryHandlerTest.java
@@ -14,7 +14,7 @@
* limitations under the License
*/
-package com.android.contacts.common.database;
+package com.android.contacts.database;
import android.database.Cursor;
import android.net.Uri;
diff --git a/tests/src/com/android/contacts/common/database/SimContactDaoTests.java b/tests/src/com/android/contacts/database/SimContactDaoTests.java
similarity index 99%
rename from tests/src/com/android/contacts/common/database/SimContactDaoTests.java
rename to tests/src/com/android/contacts/database/SimContactDaoTests.java
index 4702442..080662a 100644
--- a/tests/src/com/android/contacts/common/database/SimContactDaoTests.java
+++ b/tests/src/com/android/contacts/database/SimContactDaoTests.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package com.android.contacts.common.database;
+package com.android.contacts.database;
import android.content.ContentProviderOperation;
import android.content.ContentResolver;
@@ -37,11 +37,10 @@
import android.support.test.runner.AndroidJUnit4;
import android.test.mock.MockContentResolver;
import android.test.mock.MockContext;
-import android.view.Menu;
-import com.android.contacts.common.model.SimCard;
-import com.android.contacts.common.model.SimContact;
-import com.android.contacts.common.model.account.AccountWithDataSet;
+import com.android.contacts.model.SimCard;
+import com.android.contacts.model.SimContact;
+import com.android.contacts.model.account.AccountWithDataSet;
import com.android.contacts.common.test.mocks.MockContentProvider;
import com.android.contacts.tests.AccountsTestHelper;
import com.android.contacts.tests.SimContactsTestHelper;
diff --git a/tests/src/com/android/contacts/editor/ContactEditorUtilsTest.java b/tests/src/com/android/contacts/editor/ContactEditorUtilsTest.java
index 525a85c..952e3a0 100644
--- a/tests/src/com/android/contacts/editor/ContactEditorUtilsTest.java
+++ b/tests/src/com/android/contacts/editor/ContactEditorUtilsTest.java
@@ -20,8 +20,8 @@
import android.test.MoreAsserts;
import android.test.suitebuilder.annotation.SmallTest;
-import com.android.contacts.common.model.account.AccountType;
-import com.android.contacts.common.model.account.AccountWithDataSet;
+import com.android.contacts.model.account.AccountType;
+import com.android.contacts.model.account.AccountWithDataSet;
import com.android.contacts.common.test.mocks.MockAccountTypeManager;
import com.google.common.collect.Sets;
diff --git a/tests/src/com/android/contacts/editor/EditorUiUtilsTest.java b/tests/src/com/android/contacts/editor/EditorUiUtilsTest.java
index aa3f725..559d272 100644
--- a/tests/src/com/android/contacts/editor/EditorUiUtilsTest.java
+++ b/tests/src/com/android/contacts/editor/EditorUiUtilsTest.java
@@ -24,10 +24,10 @@
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.SmallTest;
-import com.android.contacts.common.model.account.AccountDisplayInfo;
+import com.android.contacts.model.account.AccountDisplayInfo;
import com.android.contacts.R;
-import com.android.contacts.common.model.account.AccountType;
-import com.android.contacts.common.model.account.AccountWithDataSet;
+import com.android.contacts.model.account.AccountType;
+import com.android.contacts.model.account.AccountWithDataSet;
/**
* Tests {@link EditorUiUtils}.
diff --git a/tests/src/com/android/contacts/common/format/FormatUtilsTests.java b/tests/src/com/android/contacts/format/FormatUtilsTests.java
similarity index 98%
rename from tests/src/com/android/contacts/common/format/FormatUtilsTests.java
rename to tests/src/com/android/contacts/format/FormatUtilsTests.java
index 8f4f772..febed74 100644
--- a/tests/src/com/android/contacts/common/format/FormatUtilsTests.java
+++ b/tests/src/com/android/contacts/format/FormatUtilsTests.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package com.android.contacts.common.format;
+package com.android.contacts.format;
import android.database.CharArrayBuffer;
import android.test.AndroidTestCase;
diff --git a/tests/src/com/android/contacts/common/format/SpannedTestUtils.java b/tests/src/com/android/contacts/format/SpannedTestUtils.java
similarity index 98%
rename from tests/src/com/android/contacts/common/format/SpannedTestUtils.java
rename to tests/src/com/android/contacts/format/SpannedTestUtils.java
index bce7057..0edafbe 100644
--- a/tests/src/com/android/contacts/common/format/SpannedTestUtils.java
+++ b/tests/src/com/android/contacts/format/SpannedTestUtils.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package com.android.contacts.common.format;
+package com.android.contacts.format;
import android.text.Html;
import android.text.SpannableString;
diff --git a/tests/src/com/android/contacts/common/format/TextHighlighterTest.java b/tests/src/com/android/contacts/format/TextHighlighterTest.java
similarity index 95%
rename from tests/src/com/android/contacts/common/format/TextHighlighterTest.java
rename to tests/src/com/android/contacts/format/TextHighlighterTest.java
index 7bf28c5..211d944 100644
--- a/tests/src/com/android/contacts/common/format/TextHighlighterTest.java
+++ b/tests/src/com/android/contacts/format/TextHighlighterTest.java
@@ -14,15 +14,12 @@
* limitations under the License.
*/
-package com.android.contacts.common.format;
+package com.android.contacts.format;
import android.graphics.Typeface;
import android.test.suitebuilder.annotation.SmallTest;
import android.text.SpannableString;
-import com.android.contacts.common.format.SpannedTestUtils;
-import com.android.contacts.common.format.TextHighlighter;
-
import junit.framework.TestCase;
/**
diff --git a/tests/src/com/android/contacts/group/GroupUtilTest.java b/tests/src/com/android/contacts/group/GroupUtilTest.java
index bd6554e..cf11762 100644
--- a/tests/src/com/android/contacts/group/GroupUtilTest.java
+++ b/tests/src/com/android/contacts/group/GroupUtilTest.java
@@ -16,7 +16,7 @@
package com.android.contacts.group;
-import com.android.contacts.common.list.ContactsSectionIndexer;
+import com.android.contacts.list.ContactsSectionIndexer;
import android.os.Bundle;
import android.provider.ContactsContract.Contacts;
diff --git a/tests/src/com/android/contacts/interactions/ContactDeletionInteractionTest.java b/tests/src/com/android/contacts/interactions/ContactDeletionInteractionTest.java
index ec08a76..dfae98c 100644
--- a/tests/src/com/android/contacts/interactions/ContactDeletionInteractionTest.java
+++ b/tests/src/com/android/contacts/interactions/ContactDeletionInteractionTest.java
@@ -25,16 +25,16 @@
import com.android.contacts.ContactsApplication;
import com.android.contacts.R;
-import com.android.contacts.common.model.AccountTypeManager;
-import com.android.contacts.common.model.account.AccountType;
-import com.android.contacts.common.model.account.BaseAccountType;
+import com.android.contacts.model.AccountTypeManager;
+import com.android.contacts.model.account.AccountType;
+import com.android.contacts.model.account.BaseAccountType;
import com.android.contacts.common.test.FragmentTestActivity;
import com.android.contacts.common.test.IntegrationTestUtils;
import com.android.contacts.common.test.mocks.ContactsMockContext;
import com.android.contacts.common.test.mocks.MockAccountTypeManager;
import com.android.contacts.common.test.mocks.MockContentProvider;
import com.android.contacts.common.test.mocks.MockContentProvider.Query;
-import com.android.contacts.common.testing.InjectedServices;
+import com.android.contacts.testing.InjectedServices;
/**
* Tests for {@link ContactDeletionInteraction}.
diff --git a/tests/src/com/android/contacts/common/list/ContactListItemViewTest.java b/tests/src/com/android/contacts/list/ContactListItemViewTest.java
similarity index 92%
rename from tests/src/com/android/contacts/common/list/ContactListItemViewTest.java
rename to tests/src/com/android/contacts/list/ContactListItemViewTest.java
index c9b2e6d..09c2f36 100644
--- a/tests/src/com/android/contacts/common/list/ContactListItemViewTest.java
+++ b/tests/src/com/android/contacts/list/ContactListItemViewTest.java
@@ -14,22 +14,20 @@
* limitations under the License.
*/
-package com.android.contacts.common.list;
+package com.android.contacts.list;
import android.database.Cursor;
import android.database.MatrixCursor;
-import android.provider.ContactsContract;
import android.test.ActivityInstrumentationTestCase2;
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.LargeTest;
import android.widget.TextView;
-import com.android.contacts.common.format.SpannedTestUtils;
-import com.android.contacts.common.list.ContactListItemView;
-import com.android.contacts.common.preference.ContactsPreferences;
+import com.android.contacts.format.SpannedTestUtils;
+import com.android.contacts.preference.ContactsPreferences;
/**
- * Unit tests for {@link com.android.contacts.common.list.ContactListItemView}.
+ * Unit tests for {@link com.android.contacts.list.ContactListItemView}.
*
* It uses an {@link ActivityInstrumentationTestCase2} for {@link PeopleActivity} because we need
* to have the style properly setup.
diff --git a/tests/src/com/android/contacts/common/model/AccountTypeManagerTest.java b/tests/src/com/android/contacts/model/AccountTypeManagerTest.java
similarity index 95%
rename from tests/src/com/android/contacts/common/model/AccountTypeManagerTest.java
rename to tests/src/com/android/contacts/model/AccountTypeManagerTest.java
index 82200ed..4ef102c 100644
--- a/tests/src/com/android/contacts/common/model/AccountTypeManagerTest.java
+++ b/tests/src/com/android/contacts/model/AccountTypeManagerTest.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package com.android.contacts.common.model;
+package com.android.contacts.model;
import android.accounts.Account;
import android.accounts.AccountManager;
@@ -23,10 +23,10 @@
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.SmallTest;
-import com.android.contacts.common.model.account.AccountType;
-import com.android.contacts.common.model.account.AccountTypeWithDataSet;
-import com.android.contacts.common.model.account.AccountWithDataSet;
-import com.android.contacts.common.model.account.GoogleAccountType;
+import com.android.contacts.model.account.AccountType;
+import com.android.contacts.model.account.AccountTypeWithDataSet;
+import com.android.contacts.model.account.AccountWithDataSet;
+import com.android.contacts.model.account.GoogleAccountType;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
@@ -42,7 +42,7 @@
import java.util.Map;
/**
- * Test case for {@link com.android.contacts.common.model.AccountTypeManager}.
+ * Test case for {@link com.android.contacts.model.AccountTypeManager}.
*
* adb shell am instrument -w -e class com.android.contacts.model.AccountTypeManagerTest \
com.android.contacts.tests/android.test.InstrumentationTestRunner
diff --git a/tests/src/com/android/contacts/common/model/AccountWithDataSetTest.java b/tests/src/com/android/contacts/model/AccountWithDataSetTest.java
similarity index 97%
rename from tests/src/com/android/contacts/common/model/AccountWithDataSetTest.java
rename to tests/src/com/android/contacts/model/AccountWithDataSetTest.java
index 9339063..4e543b9 100644
--- a/tests/src/com/android/contacts/common/model/AccountWithDataSetTest.java
+++ b/tests/src/com/android/contacts/model/AccountWithDataSetTest.java
@@ -14,14 +14,14 @@
* limitations under the License.
*/
-package com.android.contacts.common.model;
+package com.android.contacts.model;
import android.os.Bundle;
import android.test.AndroidTestCase;
import android.test.MoreAsserts;
import android.test.suitebuilder.annotation.SmallTest;
-import com.android.contacts.common.model.account.AccountWithDataSet;
+import com.android.contacts.model.account.AccountWithDataSet;
import com.google.common.collect.Lists;
import java.util.List;
diff --git a/tests/src/com/android/contacts/common/model/ContactLoaderTest.java b/tests/src/com/android/contacts/model/ContactLoaderTest.java
similarity index 96%
rename from tests/src/com/android/contacts/common/model/ContactLoaderTest.java
rename to tests/src/com/android/contacts/model/ContactLoaderTest.java
index 9878a12..b542808 100644
--- a/tests/src/com/android/contacts/common/model/ContactLoaderTest.java
+++ b/tests/src/com/android/contacts/model/ContactLoaderTest.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package com.android.contacts.common.model;
+package com.android.contacts.model;
import android.content.ContentUris;
import android.net.Uri;
@@ -29,17 +29,15 @@
import android.test.LoaderTestCase;
import android.test.suitebuilder.annotation.LargeTest;
-import com.android.contacts.common.compat.CompatUtils;
-import com.android.contacts.common.model.AccountTypeManager;
-import com.android.contacts.common.model.account.AccountType;
-import com.android.contacts.common.model.account.AccountWithDataSet;
-import com.android.contacts.common.model.account.BaseAccountType;
-import com.android.contacts.common.testing.InjectedServices;
+import com.android.contacts.compat.CompatUtils;
+import com.android.contacts.model.account.AccountType;
+import com.android.contacts.model.account.AccountWithDataSet;
+import com.android.contacts.model.account.BaseAccountType;
+import com.android.contacts.testing.InjectedServices;
import com.android.contacts.common.test.mocks.ContactsMockContext;
import com.android.contacts.common.test.mocks.MockContentProvider;
-import com.android.contacts.common.test.mocks.MockContentProvider.Query;
import com.android.contacts.common.test.mocks.MockAccountTypeManager;
-import com.android.contacts.common.util.Constants;
+import com.android.contacts.util.Constants;
import com.google.common.collect.Lists;
diff --git a/tests/src/com/android/contacts/common/model/Cp2DeviceLocalAccountLocatorTests.java b/tests/src/com/android/contacts/model/Cp2DeviceLocalAccountLocatorTests.java
similarity index 97%
rename from tests/src/com/android/contacts/common/model/Cp2DeviceLocalAccountLocatorTests.java
rename to tests/src/com/android/contacts/model/Cp2DeviceLocalAccountLocatorTests.java
index 192eb44..70460b4 100644
--- a/tests/src/com/android/contacts/common/model/Cp2DeviceLocalAccountLocatorTests.java
+++ b/tests/src/com/android/contacts/model/Cp2DeviceLocalAccountLocatorTests.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package com.android.contacts.common.model;
+package com.android.contacts.model;
import android.content.ContentProvider;
import android.content.ContentResolver;
@@ -28,9 +28,9 @@
import android.test.mock.MockContentResolver;
import android.test.suitebuilder.annotation.SmallTest;
-import com.android.contacts.common.model.account.AccountWithDataSet;
+import com.android.contacts.model.account.AccountWithDataSet;
import com.android.contacts.common.test.mocks.MockContentProvider;
-import com.android.contacts.common.util.DeviceLocalAccountTypeFactory;
+import com.android.contacts.util.DeviceLocalAccountTypeFactory;
import com.android.contacts.tests.FakeDeviceAccountTypeFactory;
import java.util.Arrays;
diff --git a/tests/src/com/android/contacts/common/model/RawContactTest.java b/tests/src/com/android/contacts/model/RawContactTest.java
similarity index 97%
rename from tests/src/com/android/contacts/common/model/RawContactTest.java
rename to tests/src/com/android/contacts/model/RawContactTest.java
index 496a20c..d9f05c9 100644
--- a/tests/src/com/android/contacts/common/model/RawContactTest.java
+++ b/tests/src/com/android/contacts/model/RawContactTest.java
@@ -14,7 +14,7 @@
* limitations under the License
*/
-package com.android.contacts.common.model;
+package com.android.contacts.model;
import android.content.ContentValues;
import android.net.Uri;
@@ -22,8 +22,6 @@
import android.os.Parcelable;
import android.test.suitebuilder.annotation.SmallTest;
-import com.android.contacts.common.model.RawContact;
-
import junit.framework.TestCase;
/**
diff --git a/tests/src/com/android/contacts/common/model/SimContactTests.java b/tests/src/com/android/contacts/model/SimContactTests.java
similarity index 97%
rename from tests/src/com/android/contacts/common/model/SimContactTests.java
rename to tests/src/com/android/contacts/model/SimContactTests.java
index 359379e..eeac68d 100644
--- a/tests/src/com/android/contacts/common/model/SimContactTests.java
+++ b/tests/src/com/android/contacts/model/SimContactTests.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package com.android.contacts.common.model;
+package com.android.contacts.model;
import android.os.Parcel;
import android.support.test.filters.SmallTest;
diff --git a/tests/src/com/android/contacts/common/model/ValuesDeltaTests.java b/tests/src/com/android/contacts/model/ValuesDeltaTests.java
similarity index 95%
rename from tests/src/com/android/contacts/common/model/ValuesDeltaTests.java
rename to tests/src/com/android/contacts/model/ValuesDeltaTests.java
index 77bf456..b7161d7 100644
--- a/tests/src/com/android/contacts/common/model/ValuesDeltaTests.java
+++ b/tests/src/com/android/contacts/model/ValuesDeltaTests.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package com.android.contacts.common.model;
+package com.android.contacts.model;
import android.content.ContentProviderOperation.Builder;
import android.content.ContentValues;
@@ -23,8 +23,7 @@
import android.provider.ContactsContract.Data;
import android.test.suitebuilder.annotation.SmallTest;
-import com.android.contacts.common.compat.CompatUtils;
-import com.android.contacts.common.model.BuilderWrapper;
+import com.android.contacts.compat.CompatUtils;
import junit.framework.TestCase;
diff --git a/tests/src/com/android/contacts/common/model/account/AccountTypeTest.java b/tests/src/com/android/contacts/model/account/AccountTypeTest.java
similarity index 98%
rename from tests/src/com/android/contacts/common/model/account/AccountTypeTest.java
rename to tests/src/com/android/contacts/model/account/AccountTypeTest.java
index e204722..bb88648 100644
--- a/tests/src/com/android/contacts/common/model/account/AccountTypeTest.java
+++ b/tests/src/com/android/contacts/model/account/AccountTypeTest.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package com.android.contacts.common.model.account;
+package com.android.contacts.model.account;
import android.content.Context;
import android.test.InstrumentationTestCase;
diff --git a/tests/src/com/android/contacts/common/model/account/ExternalAccountTypeTest.java b/tests/src/com/android/contacts/model/account/ExternalAccountTypeTest.java
similarity index 97%
rename from tests/src/com/android/contacts/common/model/account/ExternalAccountTypeTest.java
rename to tests/src/com/android/contacts/model/account/ExternalAccountTypeTest.java
index 0ddeb67..8a8d25c 100644
--- a/tests/src/com/android/contacts/common/model/account/ExternalAccountTypeTest.java
+++ b/tests/src/com/android/contacts/model/account/ExternalAccountTypeTest.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package com.android.contacts.common.model.account;
+package com.android.contacts.model.account;
import android.content.Context;
import android.provider.ContactsContract.CommonDataKinds.Email;
@@ -32,7 +32,7 @@
import android.test.suitebuilder.annotation.SmallTest;
import android.test.suitebuilder.annotation.Suppress;
-import com.android.contacts.common.model.dataitem.DataKind;
+import com.android.contacts.model.dataitem.DataKind;
import com.android.contacts.common.tests.R;
import com.google.common.base.Objects;
@@ -42,7 +42,7 @@
import java.util.List;
/**
- * Test case for {@link com.android.contacts.common.model.account.ExternalAccountType}.
+ * Test case for {@link com.android.contacts.model.account.ExternalAccountType}.
*
* adb shell am instrument -w -e class com.android.contacts.model.ExternalAccountTypeTest \
com.android.contacts.tests/android.test.InstrumentationTestRunner
@@ -121,7 +121,7 @@
/**
* Initialize with "contacts_fallback.xml" and compare the DataKinds to those of
- * {@link com.android.contacts.common.model.account.FallbackAccountType}.
+ * {@link com.android.contacts.model.account.FallbackAccountType}.
*/
public void testEditSchema_fallback() {
final ExternalAccountType type = new ExternalAccountType(getInstrumentation().getTargetContext(),
diff --git a/tests/src/com/android/contacts/common/model/dataitem/DataItemTests.java b/tests/src/com/android/contacts/model/dataitem/DataItemTests.java
similarity index 97%
rename from tests/src/com/android/contacts/common/model/dataitem/DataItemTests.java
rename to tests/src/com/android/contacts/model/dataitem/DataItemTests.java
index 3f83710..d6a213f 100644
--- a/tests/src/com/android/contacts/common/model/dataitem/DataItemTests.java
+++ b/tests/src/com/android/contacts/model/dataitem/DataItemTests.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License
*/
-package com.android.contacts.common.model.dataitem;
+package com.android.contacts.model.dataitem;
import android.content.ContentValues;
import android.provider.ContactsContract.CommonDataKinds.Email;
@@ -34,11 +34,9 @@
import android.test.suitebuilder.annotation.SmallTest;
import com.android.contacts.common.Collapser;
-import com.android.contacts.common.model.account.AccountType.EditType;
-import com.android.contacts.common.model.account.BaseAccountType;
-import com.android.contacts.common.model.account.GoogleAccountType;
-import com.android.contacts.common.model.dataitem.DataItem;
-import com.android.contacts.common.model.dataitem.DataKind;
+import com.android.contacts.model.account.AccountType.EditType;
+import com.android.contacts.model.account.BaseAccountType;
+import com.android.contacts.model.account.GoogleAccountType;
import java.lang.Math;
import java.util.ArrayList;
diff --git a/tests/src/com/android/contacts/common/preference/ContactsPreferencesTest.java b/tests/src/com/android/contacts/preference/ContactsPreferencesTest.java
similarity index 98%
rename from tests/src/com/android/contacts/common/preference/ContactsPreferencesTest.java
rename to tests/src/com/android/contacts/preference/ContactsPreferencesTest.java
index 8400737..7da9099 100644
--- a/tests/src/com/android/contacts/common/preference/ContactsPreferencesTest.java
+++ b/tests/src/com/android/contacts/preference/ContactsPreferencesTest.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package com.android.contacts.common.preference;
+package com.android.contacts.preference;
import android.content.Context;
import android.content.SharedPreferences;
@@ -23,7 +23,7 @@
import android.test.InstrumentationTestCase;
import android.test.suitebuilder.annotation.SmallTest;
-import com.android.contacts.common.model.account.AccountWithDataSet;
+import com.android.contacts.model.account.AccountWithDataSet;
import junit.framework.Assert;
diff --git a/tests/src/com/android/contacts/tests/AccountsTestHelper.java b/tests/src/com/android/contacts/tests/AccountsTestHelper.java
index 15cec3c..43ae254 100644
--- a/tests/src/com/android/contacts/tests/AccountsTestHelper.java
+++ b/tests/src/com/android/contacts/tests/AccountsTestHelper.java
@@ -17,7 +17,6 @@
import android.accounts.Account;
import android.accounts.AccountManager;
-import android.annotation.TargetApi;
import android.content.ContentResolver;
import android.content.Context;
import android.os.Build;
@@ -26,9 +25,7 @@
import android.support.annotation.RequiresApi;
import android.support.test.InstrumentationRegistry;
-import com.android.contacts.common.model.account.AccountWithDataSet;
-
-import org.junit.runner.RunWith;
+import com.android.contacts.model.account.AccountWithDataSet;
import java.util.Arrays;
import java.util.List;
diff --git a/tests/src/com/android/contacts/tests/AdbHelpers.java b/tests/src/com/android/contacts/tests/AdbHelpers.java
index cf66cda..240dbbb 100644
--- a/tests/src/com/android/contacts/tests/AdbHelpers.java
+++ b/tests/src/com/android/contacts/tests/AdbHelpers.java
@@ -24,8 +24,8 @@
import android.support.test.InstrumentationRegistry;
import android.util.Log;
-import com.android.contacts.common.model.account.AccountWithDataSet;
-import com.android.contacts.common.preference.ContactsPreferences;
+import com.android.contacts.model.account.AccountWithDataSet;
+import com.android.contacts.preference.ContactsPreferences;
import com.android.contacts.util.SharedPreferenceUtil;
/**
diff --git a/tests/src/com/android/contacts/tests/FakeAccountType.java b/tests/src/com/android/contacts/tests/FakeAccountType.java
index 59327d8..966c29f 100644
--- a/tests/src/com/android/contacts/tests/FakeAccountType.java
+++ b/tests/src/com/android/contacts/tests/FakeAccountType.java
@@ -21,8 +21,8 @@
import android.graphics.PixelFormat;
import android.graphics.drawable.Drawable;
-import com.android.contacts.common.model.account.AccountType;
-import com.android.contacts.common.model.account.AccountWithDataSet;
+import com.android.contacts.model.account.AccountType;
+import com.android.contacts.model.account.AccountWithDataSet;
public class FakeAccountType extends AccountType {
public boolean areContactsWritable = false;
diff --git a/tests/src/com/android/contacts/tests/FakeDeviceAccountTypeFactory.java b/tests/src/com/android/contacts/tests/FakeDeviceAccountTypeFactory.java
index 65f8014..9ed9595 100644
--- a/tests/src/com/android/contacts/tests/FakeDeviceAccountTypeFactory.java
+++ b/tests/src/com/android/contacts/tests/FakeDeviceAccountTypeFactory.java
@@ -15,8 +15,8 @@
*/
package com.android.contacts.tests;
-import com.android.contacts.common.model.account.AccountType;
-import com.android.contacts.common.util.DeviceLocalAccountTypeFactory;
+import com.android.contacts.model.account.AccountType;
+import com.android.contacts.util.DeviceLocalAccountTypeFactory;
import java.util.HashMap;
import java.util.Map;
diff --git a/tests/src/com/android/contacts/tests/FakeSimContactDao.java b/tests/src/com/android/contacts/tests/FakeSimContactDao.java
index ba091ca..bbeec96 100644
--- a/tests/src/com/android/contacts/tests/FakeSimContactDao.java
+++ b/tests/src/com/android/contacts/tests/FakeSimContactDao.java
@@ -19,10 +19,10 @@
import android.content.OperationApplicationException;
import android.os.RemoteException;
-import com.android.contacts.common.database.SimContactDao;
-import com.android.contacts.common.model.SimCard;
-import com.android.contacts.common.model.SimContact;
-import com.android.contacts.common.model.account.AccountWithDataSet;
+import com.android.contacts.database.SimContactDao;
+import com.android.contacts.model.SimCard;
+import com.android.contacts.model.SimContact;
+import com.android.contacts.model.account.AccountWithDataSet;
import java.util.ArrayList;
import java.util.Arrays;
diff --git a/tests/src/com/android/contacts/tests/SimContactsTestHelper.java b/tests/src/com/android/contacts/tests/SimContactsTestHelper.java
index 552d790..7676a1d 100644
--- a/tests/src/com/android/contacts/tests/SimContactsTestHelper.java
+++ b/tests/src/com/android/contacts/tests/SimContactsTestHelper.java
@@ -28,10 +28,10 @@
import android.support.test.InstrumentationRegistry;
import android.telephony.TelephonyManager;
-import com.android.contacts.common.database.SimContactDaoImpl;
-import com.android.contacts.common.model.SimCard;
-import com.android.contacts.common.model.SimContact;
-import com.android.contacts.common.database.SimContactDao;
+import com.android.contacts.database.SimContactDaoImpl;
+import com.android.contacts.model.SimCard;
+import com.android.contacts.model.SimContact;
+import com.android.contacts.database.SimContactDao;
import java.util.ArrayList;
import java.util.List;
diff --git a/tests/src/com/android/contacts/util/AccountDisplayInfoFactoryTests.java b/tests/src/com/android/contacts/util/AccountDisplayInfoFactoryTests.java
index 875f40e..1fce724 100644
--- a/tests/src/com/android/contacts/util/AccountDisplayInfoFactoryTests.java
+++ b/tests/src/com/android/contacts/util/AccountDisplayInfoFactoryTests.java
@@ -22,13 +22,12 @@
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.SmallTest;
-import com.android.contacts.common.model.AccountTypeManager;
-import com.android.contacts.common.model.account.AccountDisplayInfo;
-import com.android.contacts.common.model.account.AccountDisplayInfoFactory;
-import com.android.contacts.common.model.account.AccountType;
-import com.android.contacts.common.model.account.AccountWithDataSet;
+import com.android.contacts.model.AccountTypeManager;
+import com.android.contacts.model.account.AccountDisplayInfo;
+import com.android.contacts.model.account.AccountDisplayInfoFactory;
+import com.android.contacts.model.account.AccountType;
+import com.android.contacts.model.account.AccountWithDataSet;
import com.android.contacts.common.test.mocks.MockAccountTypeManager;
-import com.android.contacts.common.util.DeviceLocalAccountTypeFactory;
import com.android.contacts.tests.FakeAccountType;
import com.android.contacts.tests.FakeDeviceAccountTypeFactory;
diff --git a/tests/src/com/android/contacts/common/util/BitmapUtilTests.java b/tests/src/com/android/contacts/util/BitmapUtilTests.java
similarity index 96%
rename from tests/src/com/android/contacts/common/util/BitmapUtilTests.java
rename to tests/src/com/android/contacts/util/BitmapUtilTests.java
index 94394b1..ee7ebc0 100644
--- a/tests/src/com/android/contacts/common/util/BitmapUtilTests.java
+++ b/tests/src/com/android/contacts/util/BitmapUtilTests.java
@@ -14,19 +14,17 @@
* limitations under the License.
*/
-package com.android.contacts.common.util;
+package com.android.contacts.util;
import android.graphics.Bitmap;
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.SmallTest;
-import com.android.contacts.common.util.BitmapUtil;
-
import java.io.ByteArrayOutputStream;
import java.io.IOException;
/**
- * Tests for {@link com.android.contacts.common.util.BitmapUtil}.
+ * Tests for {@link com.android.contacts.util.BitmapUtil}.
*/
@SmallTest
public class BitmapUtilTests extends AndroidTestCase {
diff --git a/tests/src/com/android/contacts/common/util/ContactDisplayUtilTests.java b/tests/src/com/android/contacts/util/ContactDisplayUtilTests.java
similarity index 98%
rename from tests/src/com/android/contacts/common/util/ContactDisplayUtilTests.java
rename to tests/src/com/android/contacts/util/ContactDisplayUtilTests.java
index b4cd1ca..9032a02 100644
--- a/tests/src/com/android/contacts/common/util/ContactDisplayUtilTests.java
+++ b/tests/src/com/android/contacts/util/ContactDisplayUtilTests.java
@@ -14,7 +14,7 @@
* limitations under the License
*/
-package com.android.contacts.common.util;
+package com.android.contacts.util;
import static android.provider.ContactsContract.CommonDataKinds.Phone;
@@ -22,7 +22,7 @@
import android.test.suitebuilder.annotation.SmallTest;
import com.android.contacts.common.R;
-import com.android.contacts.common.preference.ContactsPreferences;
+import com.android.contacts.preference.ContactsPreferences;
import org.mockito.Mock;
import org.mockito.Mockito;
diff --git a/tests/src/com/android/contacts/common/util/SearchUtilTest.java b/tests/src/com/android/contacts/util/SearchUtilTest.java
similarity index 98%
rename from tests/src/com/android/contacts/common/util/SearchUtilTest.java
rename to tests/src/com/android/contacts/util/SearchUtilTest.java
index 3176a3c..e2156ca 100644
--- a/tests/src/com/android/contacts/common/util/SearchUtilTest.java
+++ b/tests/src/com/android/contacts/util/SearchUtilTest.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package com.android.contacts.common.util;
+package com.android.contacts.util;
import android.test.suitebuilder.annotation.SmallTest;