summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Remove PinnedHeaderListDemoActivityJay Shrauner2015-08-241-90/+0
| | | | | | | Remove test activity that was triggering automated test failures. Bug:23263168 Change-Id: I44f2410fad3c11ae764b093ac109846298ff473e
* Don't return contact photos manager as service.Andrew Lee2015-03-311-2/+1
| | | | | | | | Initiliaze people activity test by specifying the underlying instance to be a MockContactPhotosManager. Bug: 19372817 Change-Id: Ib38a7917df7d0a34e5146e71655bba1ff43a8c16
* Stop using static common test lib. Fix Jack buildBrian Attwell2015-03-111-2/+4
| | | | | | | | | | | | | | | | | | | | In order to depend on TestCommon inside this test, we can do either of the following 1) Use a static library 2) Directly use TestCommon code Option 1 requires us to manually recompile the static library (or use mma) every time we want to change the static library. Even worse, because of changes to Jack we aren't guaranteed that the static library will be built the first time for us. If we wanted to, we could fix this by directly executing TestCommon's makefile inside this makefile. Option 2, essentially makes TestCommon code a part of this project. It gets recompiled every time you run mm. Bug: 19667686 Change-Id: Ib31c5cfda8a7d7e55e63b2d308307574ea1e2612
* Add Insert.EXTRA_{ACCOUNT,DATA_SET} to API. P #2/2Brian Attwell2015-01-261-4/+4
| | | | | Bug: 18777272 Change-Id: I17a5b7cb4d4c5a0ba48936a6fc829acaab73f31d
* Merge "Unbundle from contacts contract part 3/3"Brian Attwell2015-01-093-61/+2
|\
| * Unbundle from contacts contract part 3/3Brian Attwell2015-01-083-61/+2
| | | | | | | | | | | | | | | | | | | | | | | | * Remove some tests * Move ContactsContract.Intents.UI into Contacts * Remove references to ContactsContract.ProviderStatus.DATA1 and refactor to avoid usage of a new useless data object Discussion: go/contacts-contact-intent-ui Bug: 18777272 Change-Id: I9c6125cc30710e4637b38f3785608abb9928d1a2
* | Move TestLoaderManager into /tests. Unbundling.Brian Attwell2014-12-181-0/+176
|/ | | | | | | | | | | | TestLoaderManager is injected into ContactDeletionInteraction for the sake of one (flakey) unit test class. It is breaking the Contacts build by using a hidden API. Move this into /tests and reference an abstract base class inside ContactDeletionInteraction. Bug: 18777272 Change-Id: Icffa0256b418a319347f1f58f0415341be9d8054
* Remove call to deleted method AsyncTask.init().Jeff Brown2014-11-142-13/+0
| | | | | Bug: 18192406 Change-Id: If4516c0439ed6f2b144923596a702f559bdc80ee
* Follow ContactsContract API changesYorke Lee2014-09-041-1/+1
| | | | | Bug: 17390425 Change-Id: Ic35a5b599ec347848128d7babfdcd7151ede6a2e
* Follow ContactsContract API changeYorke Lee2014-07-291-2/+1
| | | | | Bug: 16403306 Change-Id: I21d25ba836d9d9ab45a7ebdca0e2f24f8c678e43
* Remove ContactDetail code.Paul Soulos2014-07-242-60/+0
| | | | | Bug: 16457366 Change-Id: I79367304bb7a0dfdc2b420580f8d8207ef602856
* Move contacts package name to resource string.Jay Shrauner2014-07-194-5/+29
| | | | | | | Move android contacts package name to resource string. Bug:16347739 Change-Id: I414d07a0e8edfecbd6d19fedd37b03e1166eef19
* Make ContactPreferences use SharedPreferences instead of System settings (2/5)Yorke Lee2014-07-141-17/+1
| | | | | | | | | | | | | | * Move constants that originally lived in the framework into ContactsCommon * Use SharedPreferences instead of System settings to persist preferences * Use a SharedPreferenceListener to monitor changes instead of a content observer on system settings * Move DisplayOrderPreference and SortOrderPreference into ContactsCommon so that it can be used by Dialer * Create base DialerSettingsActivity in Dialer, and make GoogleDialerSettingsActivity extend it Bug: 16153186 Change-Id: Ibaacc26619889e28db7b4b30ee37a00827dd48e4
* Exercise EXTRA_CALL_TYPE_FILTER in Contacts test appYorke Lee2014-07-102-6/+26
| | | | | | Bug: 15830957 Change-Id: I3b10e90b96a3c63af2c0e2b7591e637e16950928
* About CardPaul Soulos2014-07-071-141/+0
| | | | Change-Id: Idfe396d0a4fa24214599990c2895ed9569e5c0fa
* Adds Call Log interactions to the recent cardPaul Soulos2014-06-171-0/+65
| | | | Change-Id: I2ade43cee543c706a90da81a4c4bd256b71411f8
* Remove unused class: TextWithHighlightingAnimationBrian Attwell2014-06-161-49/+0
| | | | | | | | | TextWithHighlightingAnimation referenced internal attributes. Fortunately, fixing this reference was easy: delete the entire class and everything that uses it. Bug: 15675746 Change-Id: Id43cea63316ba3af837ac82b76114f7ea1b5670b
* Adds Calendar events to the Recent cardPaul Soulos2014-06-111-4/+4
| | | | Change-Id: Iaddba9649cd838fe9a866906eea356dbc743ee3c
* Adds Recent Interaction loading to QuickContacts.Paul Soulos2014-06-111-0/+138
| | | | | | This is launched after the Contact is loaded from CP2, during the bind stage. Change-Id: I63290e0e94c476da1771f6e8b92a9c664f2fe9d3
* Remove two panel layout from PeopleActivityBrian Attwell2014-06-111-43/+0
| | | | | | | | | Also, removed tablet versions of PeopleTheme. There isn't a good reason to have seperate themes for tablets and phones. The only differences will be dimensions. These will be controllable by dimens.xml. Change-Id: Icf24e57fe052d6a820e8bee50fced438bba157b2
* Fix broken contacts testsYorke Lee2014-05-292-2/+7
| | | | Change-Id: Ie9c803ede45b300f20a03a25d6a646cd6eb1f39e
* Fix build breakage: Revert "Fix broken contacts tests"Ed Heyl2014-05-292-7/+2
| | | | | | This reverts commit 90ef577763f3ccb2d43fda1d21c62533acbbecdb. Change-Id: If98147879e1658c3a48d04b855c033d191fec2f6
* Fix broken contacts testsYorke Lee2014-05-282-2/+7
| | | | Change-Id: I0edda45234edb7fe4e322138ad48af426133634f
* Delete dead social/stream code from ContactsBrian Attwell2014-02-047-663/+0
| | | | | | | | | Searched for stream/social code. Next, deleted layouts that showed up in the results from "lint Contacts --check UnusedResources". I didn't bother cleaning up the unused strings. Change-Id: I7473127e8e4e33c97b205f85d4d63f459e9d2b10
* Remove ContactDetailLayoutController's social codeBrian Attwell2014-02-031-148/+0
| | | | | | | | | | | | | | | Prior to this change, the ContactDetailLayoutController used ViewPagers and Carousels to display nothing but the ContactDetailFragment. Originally these ViewPagers and carousels were used to display social code. I have removed the now useless ViewPagers, carousels and adapters. Now that ContactDetailLayoutController's layout only contains the ContactDetailFragment, there is no need for multiple different ContactDetailLayoutController layouts. Change-Id: Iea09bab7e39cfafded56be5c2302f3e36fd40f4c
* Move ContactLoader related code to ContactsCommonYorke Lee2013-11-0515-3174/+11
| | | | | | | | | | | 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
* Fixing unit tests and moving to proper location.Chiao Cheng2013-04-161-180/+0
| | | | | | Bug: 8621998 Bug: 7519057 Change-Id: Id6ad4cdc87789d9966c5b9a5102964e5d5db5e41
* Merge "Fix broken test testImIntentCustom"Yorke Lee2013-01-151-3/+4
|\
| * Fix broken test testImIntentCustomYorke Lee2013-01-151-3/+4
| | | | | | | | | | | | | | | | | | | | Decouple the logic that generates the custom IM intent from the logic that determines whether or not to actually assign the intent to the entry (based on whether or not the intent is registered), so that we can test if the intent is correctly generated even if there is no application installed that can handle that custom IM protocol. Change-Id: If5ce0cd7639a6c05bc89777684cdac45cd7bb6cd
* | Allow read-only contacts to be editable.Chiao Cheng2013-01-152-8/+12
|/ | | | | | | | | - Automatically create new raw contact when editing a read-only contact. - Refactored mState to be always initialized. - Allow RawContactDeltaList to be instantiated with empty constructor. Bug: 6406182 Change-Id: I7a58625485dae6957b4f9bcc446122f54551afa1
* Dedup NANPA numbersJay Shrauner2013-01-081-6/+29
| | | | | Bug:7519057 Change-Id: Ia1b1e2632771f718b6e89f9d67834a7b646c45fa
* Refactor editor layout file dependencies out of common.Chiao Cheng2012-12-061-8/+5
| | | | | | | | | | | | Editor view layout files are only needed by the Contacts app. But they were being referenced from within AccountTypeManager and several other classes. These references are un-necessary and would have caused too many editor dependencies, such as the EditorView classes, to go into common. With the refactor, many layout files can be moved back into Contacts. Bug: 6993891 Change-Id: I146b3038f1b2273a3af2dfac3d2e86bf40bb5bd7
* Move ValuesDelta to ContactsCommon.Chiao Cheng2012-11-304-90/+3
| | | | | Bug: 6993891 Change-Id: I8b065c55100a152f72cccea5b62f10a8e30161c2
* Prefactor RawContactDelta.ValuesDelta into top level class.Chiao Cheng2012-11-304-46/+90
| | | | | | | | | Making ValuesDelta into top level class so we do not have to move RawContactDelta into ContactsCommon. ValuesDelta is used by CustomContactListFilterActivity which needs to be moved. Bug: 6993891 Change-Id: If7371cf08ac0e14218fb790c96856e971fa613ec
* Move AccountTypeManager to ContactsCommon.Chiao Cheng2012-11-266-202/+5
| | | | | | | | Moving AccountTypeManager to ContactsCommon so it can be shared by Contacts and Dialer. Bug: 6993891 Change-Id: I9526ac7cda758290caecabfcaebe620238d8dd6b
* Move dependencies of AccountTypeManager into ContactsCommon.Chiao Cheng2012-11-1334-1681/+40
| | | | | | | Moving dependencies in preparation to move AccountTypeManager. Bug: 6993891 Change-Id: I804cdbe64b9b8111ed286037943d593e11dc4044
* Merge "Move AccountTypeManager singleton out of app context."Chiao Cheng2012-11-054-72/+23
|\
| * Move AccountTypeManager singleton out of app context.Chiao Cheng2012-11-025-210/+23
| | | | | | | | | | | | | | | | Put singleton directly into AccountTypeManager class instead of pulling it from the custom context ContactsApplication class. Bug: 6993891 Change-Id: Icc1b9736dff8916407c923ceaebb7844fca3e097
* | Moving ContactListItemView and dependent classes.Chiao Cheng2012-11-052-139/+1
|/ | | | | | | | Further clean-up of PhoneFavoriteFragment in Dialer app to move all necessary dependencies into Contacts Common package. Bug: 6993891 Change-Id: I3dfce84ad01932450dc09588c22903e7307d7da0
* Moving dependencies of PhoneFavoriteFragment.Chiao Cheng2012-10-314-285/+1
| | | | | | | Move common classes from Contacts to Contacts Common. Bug: 6993891 Change-Id: Icff2a57875c47a5141842ca3ab980cfc76931cb6
* Moving PhoneNumberInteraction to Dialer.Chiao Cheng2012-10-3110-774/+69
| | | | | | | And moving dependent related resources and test classes. Bug: 6993891 Change-Id: I4962098d6b1e05d16a6721bbf889f9e3f26194a8
* Move label fetch logic into common utility class.Chiao Cheng2012-10-291-8/+8
| | | | | | | | | | - Move logic from PhoneActionInflater and PhoneActionAltInflater into common utility method so it can be shared by PhoneNumberInteraction without going through account manager. - Refactored InteractionType to be constant int instead of enum class. Bug: 6993891 Change-Id: I91793fccc2ff193426d276dbc776c241cb930694
* Move dependencies in prep for PhoneNumberInteraction move.Chiao Cheng2012-10-241-6/+8
| | | | | | | | Committing this change first which is a pre-factor to moving PhoneNumberInteraction into Dialer completely. Bug: 6993891 Change-Id: I8a8f2d2d54b1aa8268e8ac9bd7d97d165a3e55c2
* Merge "Sharing ContactPhotoManager between dialer and people."Chiao Cheng2012-10-233-123/+2
|\
| * Sharing ContactPhotoManager between dialer and people.Chiao Cheng2012-10-163-123/+2
| | | | | | | | | | | | | | | | Move ContactPhotoManager and dependent classes to ContactsCommon so it can be shared by dialer and people. Bug: 6993891 Change-Id: Ib37af58718850d6d5515bbf3e46aca9fb95f9ee8
* | Fixing unit test to not rely on html markup.Chiao Cheng2012-10-223-46/+81
|/ | | | | | | | | | | These unit tests broke due to a change in the framework Html class and markup. https://googleplex-android-review.googlesource.com/#/c/236067/ Since the unit tests have nothing to do with html, it is better to change the unit tests so they do not rely on the html markup. Bug: 7352945 Change-Id: I3340575c08687fe481e91b3897037960911b1bbb
* Merge "Fix broken unit test from dialer split."Chiao Cheng2012-09-141-1/+1
|\
| * Fix broken unit test from dialer split.Chiao Cheng2012-09-131-1/+1
| | | | | | | | | | | | | | Replace dialer reference with people reference. Bug: 6993891 Change-Id: If4cf6f153eded56eb0a46e16324ebce84952228f
* | am 77cfb2ac: am 03eaa114: Merge "Allow both AOSP and Google account types ↵Marc Blank2012-09-141-12/+14
|\ \ | |/ |/| | | | | | | | | for Exchange" into jb-mr1-dev * commit '77cfb2ac0f9cebee277ad890390ffe01b117d3cf': Allow both AOSP and Google account types for Exchange
| * Allow both AOSP and Google account types for ExchangeMarc Blank2012-09-131-12/+14
| | | | | | | | | | | | | | | | * Contacts app had hard-coded the single account type; why do we have to hard-code these names? Bug: 7162923 Change-Id: I7ea201fc961e7abc4e44aa138b8cc002fbb6ed33