807e6208d6bc4ff1a6b0b4d8900229df27077246 |
|
21-Dec-2016 |
Marcus Hagerott <mhagerott@google.com> |
Use loaded accounts for editor account prompt Test: ran GoogleContactsTests Bug 33627801 Change-Id: Id8bdf1d5a2a13bb526118b104bae06138f0333ac
/packages/apps/Contacts/tests/src/com/android/contacts/editor/ContactEditorUtilsTest.java
|
f0e140aec2f5832a517243084bea626011be9c39 |
|
06-Dec-2016 |
Marcus Hagerott <mhagerott@google.com> |
Remove some methods from AccountTypeManager This will make it simpler to do additional refactoring. Test: built GoogleContacts app Bug: 32028702 Change-Id: I51939d1b841eaf250cb75e198ea561b944deff1f
/packages/apps/Contacts/tests/src/com/android/contacts/editor/ContactEditorUtilsTest.java
|
0a49afa2ad697307cc04ef4cb86570574fa720f2 |
|
06-Dec-2016 |
Gary Mai <garymai@google.com> |
Collapse common package (2/2) Ran optimize imports on the project as well to re-order everything which would have changed because of removing common. Test: Built GoogleContacts, GoogleContactsTests, Contacts, ContactsTests and ran unit tests. Bug: 33252370 Change-Id: I881f0ba8b8fef002b6eeefa9a16b34f15b2fd2a9
/packages/apps/Contacts/tests/src/com/android/contacts/editor/ContactEditorUtilsTest.java
|
69c182afb0e6d82a341a28b4317aa703af768906 |
|
05-Dec-2016 |
Gary Mai <garymai@google.com> |
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
/packages/apps/Contacts/tests/src/com/android/contacts/editor/ContactEditorUtilsTest.java
|
949d4e88400761dac02992978f6b79997b5f0055 |
|
20-Sep-2016 |
Marcus Hagerott <mhagerott@google.com> |
Prevent device default account from sticking. When a Google account is added and the default is the null device account then the default should be cleared. Test ran unit tests: $ adb shell am instrument -w com.android.contacts.tests/android.test.InstrumentationTestRunner Manual test * Setup nexus phone with no Google account but one outlook account * Set default to "Device" * Create new contact and verify that editor shows "Device" * Add Google Account * Create new contact and verify that default account chooser is displayed * Choose the Google account * verify that editor shows Google Account * Remove Google account * verify that default account chooser is shown again when creating new contact * Set default to Outlook account * Add Google account * Create new contact * verify that account picker is not shown and editor shows outlook Bug 31603714 Change-Id: I46c87107727a8b50117e70066a4ef4d162970e84
/packages/apps/Contacts/tests/src/com/android/contacts/editor/ContactEditorUtilsTest.java
|
fac695a36b227f5591eac064ded8e8dad3398400 |
|
25-Aug-2016 |
Marcus Hagerott <mhagerott@google.com> |
Add device and SIM to AccountTypeManager This makes these account types available throughout the app rather than just the Nav drawer. Test: Added unit tests for new classes; run with: $ adb shell am instrument -w \ com.google.android.tests/android.test.InstrumentationTestRunner Manually on Nexus 6, LG G5 and Samsung S7 with device and SIM contacts in CP2 by verifying "Device" and "SIM" options were available in * nav drawer * account list accessed by Pressing FAB without default account set * editor account dropdown for new contact * editor account label when editing existing contact * picker for default account in settings * settings customize screen account list Bug 30867780 Change-Id: I329381ccc58d59f2e27f65a3d9dc0164fb20c971
/packages/apps/Contacts/tests/src/com/android/contacts/editor/ContactEditorUtilsTest.java
|
37ad9fbba748664acfeaf058a36c221600aa62d5 |
|
21-Jun-2016 |
Tingting Wang <tingtingw@google.com> |
Always hide default account picker when one writable account. BUG 25467864 Change-Id: I81fa329831a6cb3d7252702b8a68bb19ead22b85
/packages/apps/Contacts/tests/src/com/android/contacts/editor/ContactEditorUtilsTest.java
|
63859fe784a843f4790f15603c767d4692e5be9b |
|
05-Feb-2016 |
guanxiongliu <guanxiongliu@google.com> |
Changing unit test case to verify account selection dialog is disabled. Previously, whether an account is default or not relied on the setting in preferences. CL 820506 changed the logic to, when trying to get default account, look at the writable account queue first. If it's size is exactly 1, directly return that account as default, without looking into preferences. Updating matching unit test case to adapt to this change. Change-Id: I170b7cb2f37c5fdeedb6e23bc7eab53b63d7a1e7
/packages/apps/Contacts/tests/src/com/android/contacts/editor/ContactEditorUtilsTest.java
|
83ff34fa9417cf673e68b56b2bf682b56d6a505e |
|
04-Sep-2015 |
Tingting Wang <tingtingw@google.com> |
Fix unit test for default account setting change. BUG 21932040 Change-Id: I405188b9b10295129de9c395d75834c16f0bfcf9
/packages/apps/Contacts/tests/src/com/android/contacts/editor/ContactEditorUtilsTest.java
|
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
|