summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Fix search highlightingYorke Lee2013-09-121-1/+2
| | | | | Bug: 10713067 Change-Id: I6fd3e6018619d61f7c69bbcaf2ad7475b20499a6
* Changes ContactListItemView highlighting scheme.Christine Chen2013-07-121-14/+23
| | | | | | - Re-match smart dial query every time in BindView. Change-Id: I42a54948481fead693db5a2db188bcc31202d6ee
* Changes to support smart dial in search.Christine Chen2013-07-102-84/+110
| | | | | | | - Extends functionalities in text highligher. - Changes pemissions in parent classes. Change-Id: Ib5717fe00760b5a88c747e1ff8fda598d987fa98
* Fixing regression in phone number collapse on detail page.Chiao Cheng2013-04-161-0/+176
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The case of collapsing phone numbers with different formats was broken due to another bug fix. e.g... (555) 555-5555 555-555-5555 would not collapse when they should. The second problem was that an inconsistency was inadvertently introduced when deciding what numbers are equal. rule 1) +14155551212 == 4155551212 rule 2) 14155551212 != 4155551212 implicitly a third rule was in effect.... rule 3) +14155551212 == 14155551212 By transitive equality, then all version of the number are equal which broke rule 2. This could be seen in the UI when all 3 version of the number exists and they are all collapsed into 1. Bug: 8621998 Bug: 7519057 Change-Id: Iafb36fbdc72f9a76d9313811894b57aafebb4f35
* Fix string overrun exceptionJay Shrauner2013-01-091-0/+3
| | | | | | | | Fix SearchUtil::contains() so doesn't overrun string buffer when trying to match query that partially matches end of the buffer. Bug:7971792 Change-Id: Ifff09049b0a82af17413a7e56b9e5de938ff009d
* Find proper snippet in multi-line and large result.Chiao Cheng2012-12-281-0/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previous CL removed the use ContactsContract.snippetize(). This method found the proper line in a multi-line results and then snippetized the line if it was too long. This CL adds that functionality back without using snippetize(). This new code is faster because it only does text intensive processing when the text is long. The previous snippetize method did processing for all strings. In addition, the old method iterated over the snippet multiple times (i.e. first with contains, then subsequently tokenizes, etc). This change re-uses the initial search results and remembers the search information so multiple iterations are not necessary. In addition, tokenizing has been optimized based on the match. We only need to chop off excess content rather than tokenizing the whole string. This CL also makes snippet more friend to landscape mode. Previously, the number of snippet tokens shown was hard-coded to 2 on each side. Furthermore, this caused longer tokens to exceed screen real estate. Now the number of tokens shown are determined more accurately by character count versus real estate. In landscape mode, this allows us to show much more of the search result. Finally, fixed a highlight problem when the search query contained punctuation. For example, a search for {.ben.} would not match {ben}. This Cl resolves that issue by cleaning the search query. Bug: 5929143 Change-Id: I5c368e6de8b34ca912f86926f862a02f95199fa7
* Fix broken build.Chiao Cheng2012-12-261-14/+13
| | | | | | Related to I1883621bb64452726cd92035d30001c29b478574. Change-Id: I667fd3bd46f7884d3c38118fc72b227805127e29
* Fixing missing punctuation for punctuation search case.Chiao Cheng2012-12-262-5/+5
| | | | | | | | | | | | | | | | | | | Previous CL I9cbdf10d21c79f53bc621bacb7eeeb95a6a2435f fixed missing punctuation at the start when searching without punctuation. (e.g. {hello}) This CL fixes the case where leading punctuation is missing if you searched with a leading punctuation. (e.g. {'hello}). The content provider uses a different code path when it detects multi-words and snippeting is actually done in sqlite using the FTS snippet method. The check for multi-word was treating {'hello} as two words. This means that multi-word searches will still have this issue as it still uses the sqlite snippet method. Leaving this to a separate CL since it's a riskier change. Bug: 5929143 Change-Id: I1883621bb64452726cd92035d30001c29b478574
* Remove dead codeYorke Lee2012-12-061-3/+0
| | | | | Bug: 6148388 Change-Id: I5b08d6534a794361e67ba2ad72148fed10a5b148
* Move ValuesDelta to ContactsCommon.Chiao Cheng2012-11-301-0/+85
| | | | | Bug: 6993891 Change-Id: Iaf94a00abfb64c9b0eb547dd446f743f6cd855ce
* Move AccountTypeManager to ContactsCommon.Chiao Cheng2012-11-261-0/+198
| | | | | | | | Moving AccountTypeManager to ContactsCommon so it can be shared by Contacts and Dialer. Bug: 6993891 Change-Id: If8bc8137b0b5800f21ee46aa4027b79e0048d32e
* Move dependencies of AccountTypeManager into ContactsCommon.Chiao Cheng2012-11-1330-2/+1691
| | | | | | | Moving dependencies in preparation to move AccountTypeManager. Bug: 6993891 Change-Id: I10893209986efd288315dc6b51c7971838ac3923
* Moving ContactListItemView and dependent classes.Chiao Cheng2012-11-051-0/+131
| | | | | | | | Further clean-up of PhoneFavoriteFragment in Dialer app to move all necessary dependencies into Contacts Common package. Bug: 6993891 Change-Id: Ie310707da47d5e5c91e281d140f11e1eb47a5118
* Moving dependencies of PhoneFavoriteFragment.Chiao Cheng2012-10-312-0/+199
| | | | | | | Move common classes from Contacts to Contacts Common. Bug: 6993891 Change-Id: Idd0b3115df810090340d1b10b04eb698d5facfb6
* Move label fetch logic into common utility class.Chiao Cheng2012-10-291-0/+95
| | | | | | | | | | - Move logic from PhoneActionInflater and PhoneActionAltInflater into common utility method so it can be shared by PhoneNumberInteraction without going through account manager. - Added unit tests. Bug: 6993891 Change-Id: I53e74df02bea031886ee512360b9f1abc083d66c
* Adding back build for Contacts common unit tests.Chiao Cheng2012-10-242-1/+17
| | | | | | | | | Had to fix contacts common AndroidManifest to include an empty application tag. Also disabling proguard since Contacts common is a library project and does not have any activities by itself. Bug: 6993891 Change-Id: I6b56ce54d48991c62c8c35e438474f7a5a074f86
* Remove broken ContactsCommonTest build file.Chiao Cheng2012-10-231-39/+0
| | | | Change-Id: Ibf213cf6c8ff0724a72c89127b62f114643e3d7b
* Adding ContactPhotoManager and dependent classes.Chiao Cheng2012-10-163-0/+127
| | | | | | | Moved from People package so it can be shared by dialer. Bug: 6993891 Change-Id: I85268c040498621a324c459ce237a51b30e7d3a4
* Adding custom AsyncQueryHandler to prevent null cursors.Chiao Cheng2012-09-174-0/+229
In safe mode, a cursor can come back as null even though our providers never allow for that. NoNullCursorAsyncQueryHandler should be used instead of AsyncQueryHandler from now on. It will return EmptyCursor in place of a null. Bug: 7012260 Change-Id: I5b8ba6fb85ae0f984ee8b0ff2f2f068232a03848