summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge contacts src-N/ and src-pre-N/ dirs (2/3)Wenyi Wang2016-07-132-70/+0
| | | | | | | | Bug 30124466 (cherry picked from commit 68378150328d720af5c084ae04b3007ce4118a63) Change-Id: Idcb3fb3a1cb571b5d3575ca3d55f0f84bc20eb31
* DO NOT MERGE ANYWHERE Remove display name search experiment (1/2)Walter Jang2016-03-311-76/+0
| | | | | | Bug 27785615 Change-Id: I7e40a9e0215dc829dc28ebe4a24552305b864448
* Add group data kind to fallback account typeWalter Jang2016-03-141-0/+1
| | | | | | Bug 25783889 Change-Id: Ie44e88f4426c3846001be13c0a4d650f463b0bdd
* Remove span tags for talkback of contact names.Qi Wang2016-03-071-0/+3
| | | | | | | | | When search for contacts, the result will have highlight prefix which will be read separately with other parts in talkback. By removing the span tags the result name is ensured to be read as one piece. Bug: 24309768 Change-Id: Ie98a111fdea453297c0f091a323c72bfb7a64701
* Tweak display name search experiment queriesWalter Jang2016-02-251-2/+2
| | | | | | | | | | | | | | * Display name, phonetic name, and email queries should do a prefix match. * We should always try to match phone numbers and also start matching right away (we were waiting until the query looked like a phone number and also not doing both email and phone queries at the same time). Bug 26697731 Bug 27324941 Change-Id: Ifdd9a3995921ba1f562fda122cbd7d6a2f4a7737
* Fix isAssertQuery in unit test on LMPWenyi Wang2016-02-243-91/+110
| | | | | | | | | | Also fixed the failures/errors related with fixing isAssertQuery Bug 27244680 Bug 26818072 Bug 25629359 Change-Id: I0c3644c3e4b25f120a30c2227dab000c0546f697
* Fix isInsert, isUpdate, isDelete in unit test on LMPWenyi Wang2016-02-245-174/+238
| | | | | | | | | | Using CPOWrapper and BuilderWrapper introduced by ag/828480 Bug 27244680 Bug 26818072 Bug 25629359 Change-Id: I0204122408aeed781e0ee81eff26581e1cc7c1ee
* Add contact search display name experiment (1/2)Walter Jang2016-02-111-0/+76
| | | | | | | | | | | | We make two queries which check if the display name exactly matches the phonetic name in order to prevent duplicates when the display name is coming from the phonetic name. Bug 26697731 Change-Id: Iab2e8b158bcc6f6df06c23da257d9d930363e60a (cherry picked from commit 142ad048c17284aa14e9f88a31074fe2ee5a6f45)
* Updating preferredName methods to accept ContactsPreferencesBrandon Maxwell2016-02-051-16/+80
| | | | | | | | | | Rather than accepting an int, this method accepts a nullable ContactsPreferences object to abstract the null checks that would otherwise be needed everywhere these utility methods are used. Bug=26822105 Change-Id: Id41a182a70098ab2898938588f86f54e16c597b7
* Allow google dialer code to be compiled against M and N SDKs for enterprise ↵Victor Chang2016-01-122-0/+70
| | | | | | | | | | | features Following dialer's practice, use src-N and pre-N to separate implementation in different build sdk BUG=26312016 Change-Id: Ia9bd420cb2a96b1c31aa3ce2a61fd772b8811f2e
* Merge "Use carrier presence when showing the video call icon." into ↵Tyler Gunn2016-01-051-1/+4
|\ | | | | | | ub-contactsdialer-b-dev
| * Use carrier presence when showing the video call icon.Tyler Gunn2015-12-181-1/+4
| | | | | | | | | | | | | | | | | | | | | | - Removed some unused video assets. - Added carrier_presence to the ContactLoader queries (this supports load in the quick contacts view, as well as in the dialer search results). - In search results (ContactListItemView), moved label before phone number (per UX). Bug: 20257833 Change-Id: I838dbf6c58939faab6d36f4afa70587b07f85f63
* | Make TelecomManager APIs compatible with Lollipop (2/3)Nancy Chen2015-12-291-5/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | + Move TelecomManagerCompat to ContactsCommon because it is called by CallSubjectDialog + Move isDefaultDialerCompatible to CompatUtils because it is called in TelecomManagerCompat + Add invokeMethod method to CompatUtils + Use TELEPHONY_MANAGER_CLASS and TELECOM_MANAGER_CLASS constants + Add @Nullable annotations Bug: 25776171 Change-Id: I91ebaf59fa8234e52aeac733c424bd4bdfc6d8a2
* | Added method to check if methods are available at runtimeBrandon Maxwell2015-12-211-4/+68
| | | | | | | | Change-Id: Id5fd7b57eb27ce957a93771e9b9297fecd163bf9
* | Merge "Added utility method to check for classes at runtime" into ↵Brandon Maxwell2015-12-161-0/+30
|\ \ | | | | | | | | | ub-contactsdialer-b-dev
| * | Added utility method to check for classes at runtimeBrandon Maxwell2015-12-151-0/+30
| |/ | | | | | | | | Bug: 25776171 Change-Id: I2e1e062442a4cfc8e4d6df2494c0ccc6ffde574c
* / Fix bugs when dropping down edit type list in Editor.(1/2)Tingting Wang2015-12-151-3/+40
|/ | | | | | | | | | When dropping down the edit type list in Editor, overall number should not be checked since the editor has already been added. BUG 25929524 BUG 26190778 Change-Id: If44d3fb7757357d7ffd2a53b0e1c1cd817655135
* Fixing/suppressing failing testsBrandon Maxwell2015-11-112-1/+8
| | | | | Bug: 25443544 Change-Id: I6db6e427296597b352e61d44100dbbc00687684d
* Adding method to choose namePrimary or nameAlt for sorting purposesBrandon Maxwell2015-11-021-9/+29
| | | | Change-Id: Ic0a1a6d9fc378a68bad6368a65b54c999878f462
* Adding util to consolidate primary/alternative name choiceBrandon Maxwell2015-10-301-0/+23
| | | | Change-Id: I61489f896436415b80484a69392c0cf2e111b6c0
* Point to correct R file in ContactsCommon testsYorke Lee2015-10-282-2/+2
| | | | Change-Id: I348dc6a782191e353b19a8a81f384b30859288e0
* Fixing refresh bug with ContactsPreferencesBrandon Maxwell2015-10-263-2/+149
| | | | | | | | | Observed: ContactsPreferences would detect that SharePreferences had changed, but wouldn't update its cached values. This resulted in the initial cached values always getting returned, regardless of what value was stored in SharedPreferences. Change-Id: Ide596dc8a7e4612748531b139bcb6438590a3977
* Merge "Remove ContactsCommon package from full build" into ↵Yorke Lee2015-10-233-78/+0
|\ | | | | | | ub-contactsdialer-a-dev
| * Remove ContactsCommon package from full buildYorke Lee2015-10-233-78/+0
| | | | | | | | | | | | | | | | | | The source, resource and test files in ContactsCommon are all built by either building the Dialer or Contacts, so don't keep any build files in this package as it makes a full build more fragile. Change-Id: I5c77991b17ae73ffdb98ce37b7b9f0be02626fc8
* | Revert "Fixing refresh bug with ContactsPreferences"Brandon Maxwell2015-10-233-149/+2
|/ | | | | | This reverts commit cfaee482a616fb8a50fc16cad62cefab5efd72bd. Change-Id: I93f6fc9a9dbd5546495a1187011234a569582077
* Fixing refresh bug with ContactsPreferencesBrandon Maxwell2015-10-223-2/+149
| | | | | | | | | Observed: ContactsPreferences would detect that SharePreferences had changed, but wouldn't update its cached values. This resulted in the initial cached values always getting returned, regardless of what value was stored in SharedPreferences. Change-Id: Ie11e1e655ccdeb344a99b8eff02d81f56dad2c18
* Target SDK 23Jay Shrauner2015-08-311-0/+4
| | | | | | Bug:23642167 Change-Id: I9f790baf1d9becebb2aeb49c234052a0b9eb2dba (cherry picked from commit ffe1a1e0b9a5fc48b24f0c18d4723f21946cc3f1)
* Build fixJay Shrauner2015-08-292-10/+11
| | | | | | | Use getInstrumentation().getTargetContext() to get test app context. Bug:23642167 Change-Id: I41d6ad5c2cdc2f0668d748b713ff899c8c56ebdc
* Unbundled build fixes for testsJay Shrauner2015-08-297-91/+89
| | | | | | | | | | Build tests against current SDK. Make local copy of LaunchPerformanceBase. Use android-support-test instead of android.test.runner. Use public APIs for querying ContentProviderOperation type. Bug:23642167 Change-Id: Id9798146801b1676b222bdd4d9240371f70c41d2 (cherry picked from commit b3a146cc554df8c9965c79af32f2b56fbce01ba0)
* Fix broken contacts common unit testsWalter Jang2015-07-101-15/+1
| | | | | | | | | | | | | | | | | * Brian informs me that he (or Makoto) changed the external account type constructor to not abort if it doesn't parse the xml so I updated the test for unknown packages to expect to get initialized. * Looks like an omission that SIP address does not have a maxOccurs set to 1 when initilized. I tried to change the test data file contacts_fallback.xml to not include a maxOccurs attr but it needs one and it must be set to 1. Bug 15413731 Change-Id: I4a8a297799686885eaa64868a2b8c0f25c177f4b
* Making display name optional for directory contacts.Zheng Fu2014-09-021-80/+93
| | | | | Bug: 17034954 Change-Id: I0ebec04ddad3cc1c8d979b02f834e5d544e8d6f3
* API changes for ContactsContractYorke Lee2014-08-261-2/+2
| | | | | | | | | | * Remove usages of NAME_VERIFIED * Update ContactLoader tests * Also fix broken unit tests as a result of ProviderInfo not having an authority. Bug: 17253963 Change-Id: I887fb291fa4de8db6859655956a80898d1ee618c
* Adds tests and makes sure all DataItem types collapse correctlyPaul Soulos2014-07-281-16/+412
| | | | | Bug: 16517558 Change-Id: Ib819864dce11818861d455efbf2b9059d91f622c
* Fixes storing primary flags as booleansPaul Soulos2014-07-211-0/+62
| | | | | Bug: 16327819 Change-Id: I6c71519b834a2194f4d79b92bd85d48cd5edeaa6
* Make ContactPreferences use SharedPreferences instead of System settings (3/5)Yorke Lee2014-07-141-4/+5
| | | | | | | | | | | | | | * 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: Ib3500b82b03960a30b565f1024f20f78879d3ce3
* Moves more Im Intent functions to ContactsUtilsPaul Soulos2014-07-071-11/+102
| | | | Change-Id: I2b1462f91ec385cd203475bc2b550df11a576e09
* Moves getCustomIMIntent to Util classPaul Soulos2014-07-071-3/+31
| | | | Change-Id: I7b8f818becb5e0e1d855db742de053d9a23a09a2
* Fix references to two constantsIhab Awad2014-07-022-11/+11
| | | | | | | The names of two constants missed getting updated in a previous CL, causing a build breakage. Change-Id: I2dec3d91f79aa74f24d84324569cda95c7e455c4
* Rename Telecomm "Subscription" to "Account" (2/7)Ihab Awad2014-07-022-11/+11
| | | | Change-Id: I73cd3d1a2e7ae12f2e8d94f0a093c6d91bf7c912
* Adds support for DataUsageStatColumnsPaul Soulos2014-06-231-0/+6
| | | | Change-Id: I9f3a538284106605ba55cc42ac757b157c3ebd42
* Removing flawed "getTodayString" and "getYesterdayString" methods.Tyler Gunn2014-06-101-14/+0
| | | | | | | | These methods made assumptions of how getRelativeTimeSpanString works that were incorrect. Bug: 15541650 Change-Id: Ibdba688587b21d5fc547832ebee0997fc290c9fb
* Fix broken Contacts testsYorke Lee2014-05-291-1/+1
| | | | | | | | | | | | | | | | Fix broken dependencies on InjectedServices because its name space was conflicting with the TestCommon package in ContactsCommon After rebuilding both ContactsCommon and Contacts, you might have to clear out your data/app folder by doing adb root; adb remount; adb shell cd data/app rm *.* and then doing adb sync again Change-Id: Ie67ef6fbba14768cb37f76dfd3c52dd343ed478c
* Fix build breakage: Revert "Fix broken Contacts tests"Ed Heyl2014-05-291-1/+1
| | | | | | This reverts commit dca4d855aac546f0969113d611355aaf3a698656. Change-Id: If68bf7fd2191c8403b8e3fe18d22610fc96dab4a
* Fix broken Contacts testsYorke Lee2014-05-281-1/+1
| | | | | | | | | | | | | | | | Fix broken dependencies on InjectedServices because its name space was conflicting with the TestCommon package in ContactsCommon After rebuilding both ContactsCommon and Contacts, you might have to clear out your data/app folder by doing adb root; adb remount; adb shell cd data/app rm *.* and then doing adb sync again Change-Id: Iabbe19b4a40d3ec76c410c0352ea48ba9e344a34
* Fix broken test in ContactsCommonYorke Lee2014-05-271-2/+2
| | | | Change-Id: I2fe2ce2df70c3e5eceff411af252b5c6e0937e00
* Adding day group headings in the call log which group call log entriesTyler Gunn2014-05-141-0/+76
| | | | | | | under 4 headings, "Today", "Yesterday", "Last week", "Other". Bug: 13962594 Change-Id: Iba10211c1f6e162309063f9944b437c543013b7f
* Merge "Remove unused fields in ContactLoader"Yorke Lee2014-03-201-2/+2
|\
| * Remove unused fields in ContactLoaderYorke Lee2014-03-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | RawContacts.ACCOUNT_TYPE_AND_DATA_SET Data.RES_PACKAGE These fields are private in ContactsContract and are not actually used anywhere else within Contacts or Dialer. Bug: 6948882 Change-Id: Ie5ca6d9c37fa40f2c5d7d27e15fdbf745f8fc74f
* | Fix ContactsCommon testsYorke Lee2014-03-183-23/+14
|/ | | | | | | | | | Remove stale testSetMask_LengthMismatch test Update SpannedTestUtils to check for StyleSpan instead of ForegroundColorSpan Add READ_CONTACTS permission Bug: 13516535 Change-Id: Ibe10ca6cde42277697dc185e4cab35238d190023
* Move ContactLoader related code to ContactsCommonYorke Lee2013-11-058-0/+2875
| | | | | | | | | | | 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: If56a60aed2003ac7b8fcedac7ce4f1a7503bce94