cd321f65f1e50409812976380ad1f0fdb3fa35cb |
|
28-Oct-2013 |
Yorke Lee <yorkelee@google.com> |
Move ContactLoader related code to ContactsCommon This CL simply moves classes from Contacts into ContactsCommon. This is needed so that Dialer can use ContactLoader related code for b/11294679. A ContactLoader will also be needed in the future to allow InCallUI to download hi-res photos while in call. Bug: 11294679 Change-Id: Ia033f3ea2406a907a4e71290c9ce810a5583dab8
/packages/apps/Contacts/tests/src/com/android/contacts/editor/ContactEditorUtilsTest.java
|
428f008513d1591cc08fcfe2cf0c9237fb313241 |
|
14-Nov-2012 |
Chiao Cheng <chiaocheng@google.com> |
Move dependencies of AccountTypeManager into ContactsCommon. Moving dependencies in preparation to move AccountTypeManager. Bug: 6993891 Change-Id: I804cdbe64b9b8111ed286037943d593e11dc4044
/packages/apps/Contacts/tests/src/com/android/contacts/editor/ContactEditorUtilsTest.java
|
851222a96b5d68602fb361ea3527101e893f67e3 |
|
21-Jun-2012 |
Maurice Chu <mochu@google.com> |
Added thin object layer around contact data This refactoring abstracts out the need to directly refer to Contacts database columns throughout the code. Instead, all of this information is retained in getter/setter methods within the Contact, RawContact, and DataItem classes and sub-classes. ContactLoader.Result class has been pulled to the top level as the Contact class. The Entity class has been removed and replaced with a RawContact class, with getters/setters to raw contact information. Renamed EntityDelta to RawContactDelta for better understandability as well as adding getters/setters for specific fields in the ValuesDelta nested class within EntityDelta. EntityDeltaList and EntityModifier have been renamed to RawContactDeltaList and RawContactModifier with the methods using the RawContact class directly rather than the Entity class. Data items for a raw contact are represented by a DataItem object with specialized getters/setters for subclasses of DataItem. (e.g., EmailDataItem, PhoneDataItem. etc.). DataItem is a wrapper around ContentValues. This abstracts away the ContactsContract column fields into getters/setters. The above refactoring is accompanied with changes throughout the codebase to use the new Contact, RawContact, and DataItem classes. Change-Id: I31c1dccd724e9652f9d0af78ca81feb6c5acd71d
/packages/apps/Contacts/tests/src/com/android/contacts/editor/ContactEditorUtilsTest.java
|
e0b2f1e2d01d1ac52ba207dc7ce76971d853298e |
|
12-Jun-2012 |
Chiao Cheng <chiaocheng@google.com> |
Global import order fix. Changed import order to be in accordance with style guide: http://source.android.com/source/code-style.html#order-import-statements Static imports will be placed at the top since most existing files used that convention. It is also a style that can be handled by both eclipse and intellij. Change-Id: Ia7013c7a2d88e5fefb8f4975d121f7fcd3fcc462
/packages/apps/Contacts/tests/src/com/android/contacts/editor/ContactEditorUtilsTest.java
|
3e435f0e724cb3e88efce15f760e59b9bc08f0d3 |
|
12-Jun-2012 |
Chiao Cheng <chiaocheng@google.com> |
Change usages of com.google.android to com.google.common. The people app contains usages of both com.google.android and com.google.common. Changing code to use the later guava library since it will be needed to unbundle the app in the future. Change-Id: I2700126e020166ea1bbbd87c40e77428efde41f3
/packages/apps/Contacts/tests/src/com/android/contacts/editor/ContactEditorUtilsTest.java
|
dcf751d75ad5d31620a4216d8c53fd59525e8bd8 |
|
18-Oct-2011 |
Makoto Onuki <omakoto@google.com> |
EditSchema parser for ExternalAccountType This also includes: - Removed getHeaderColor/getSideBarColor from AccountType - Implemented a test authenticator/sync adapter in the test apk. This defines a test account type "com.android.contacts.tests.authtest.basic". We could potentially add more account types to the test apk to test different edit schema variations, but at this point this is impossible, as ExternalAccountType doesn't have a way to tell which contacts.xml belongs to which account type. The current contacts.xml defined here builds the fallback account type equivalent. The sync adapter is pretty rudimentary; it doesn't clear the isDirty flag on modified raw contacts or delete raw contacts with isDeleted set. At this point this doesn't seem to be necessary to test EditSchema. Note: For now it's still not meant to be public API. Right now it's only manually tested with the edit schema defition in the test apk described above. Bug 5381810 Change-Id: Ifefdb969b4e08775125924b1366d24effc4db2f2
/packages/apps/Contacts/tests/src/com/android/contacts/editor/ContactEditorUtilsTest.java
|
131e6ac666868645b48ae6932575d85751ff57c0 |
|
05-Oct-2011 |
Makoto Onuki <omakoto@google.com> |
Ensure not to use "local" account when there are accounts Bug 5409438 Change-Id: I30e72bb686ed0ccbd9c7c42d4331c4ce418efdc4
/packages/apps/Contacts/tests/src/com/android/contacts/editor/ContactEditorUtilsTest.java
|
558669dab4109afebd19eade1f95a396215fb44d |
|
23-Sep-2011 |
Makoto Onuki <omakoto@google.com> |
Utility methods for new contact editor flow - shouldShowAccountChangedNotification() to see if we need to show the dialog. - saveDefaultAndAllAccounts() should be called when saving a newly created contact, with the account used to save it. This saves all writable accounts and the default accounts to the preferences. - getDefaultAccount() to get the default account. - createAddWritableAccontIntent() to launch the account setup wizard. - getCreatedAccount() to interpret the result from the wizard. - Also implemented Parcelable for AccountWithDataSet, so now it can be put in a Bundle. Bug 5355671 Change-Id: Ifb86c931b43fa307b65756cf24cbef4350374c67
/packages/apps/Contacts/tests/src/com/android/contacts/editor/ContactEditorUtilsTest.java
|