summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge "Add manage voicemail permission (2/4)"Yorke Lee2014-07-094-21/+108
|\
| * Add manage voicemail permission (2/4)Yorke Lee2014-06-304-21/+108
| | | | | | | | | | | | | | | | | | | | | | Update CallLogProvider and VoicemailProvider to provide read/write access to voicemails based on their respective permissions. Also update tests to reflect the new world. Bug: 6948882 Change-Id: I26e960eae24dc1b8bd4a372420d4c42f242c88d3
* | Update CP2 snippeting argument defaults (1/2)Yorke Lee2014-07-081-16/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Contacts app was the only user of the snippeting functionality in CP2, so update the default snippeting arguments to those in the Contacts app. Also fix some tests that had incorrect assumptions about outdated functionality. There is one remaining broken test in CP2 - testSearchByEmail. That has to do with some special treatment with indexing email addresses and FTS search which will take some more time to figure out. Bug: 6948882 Change-Id: Id9af3ceb2dfa43a11ae528e3ab6b42371130a1f7
* | Fix references to two constantsIhab Awad2014-07-021-2/+2
| | | | | | | | | | | | | | The names of two constants missed getting updated in a previous CL, causing a build breakage. Change-Id: I4853b8647c69bf2b12de43dc8a67fca75822fb14
* | Rename Telecomm "Subscription" to "Account" (5/7)Ihab Awad2014-07-011-6/+5
| | | | | | | | Change-Id: If42f8c76ad0d347a3b387de4fa806148a0a2d780
* | Merge "Changing call log adapter to normalize phone number where possible."Tyler Gunn2014-07-011-0/+74
|\ \
| * | Changing call log adapter to normalize phone number where possible.Tyler Gunn2014-06-301-0/+74
| |/ | | | | | | | | Bug: 15616526 Change-Id: Id8fe981a622bdea786a48cbadf9ff08289ae3987
* | Clean up SearchSnippetColumns API (2/3)Yorke Lee2014-07-012-103/+103
|/ | | | | Bug: 6948882 Change-Id: I549321e5ecf789f55a67ad4fbf5b939400ff20b8
* Update database schema for saving of subscription info in call logNancy Chen2014-06-261-2/+13
| | | | | | | | | | Added fields "component_name" and "subscription_id" to call log table in order to save information about the subscription responsible for placing a call. Additionally made sure relevant tests pass. Bug: 15473965 Change-Id: I0ed99452c3cdfdba31f1a71fb342406b0652e282
* PinnedPositions API changesYorke Lee2014-06-192-157/+92
| | | | | | | | | Add UNDEMOTE_METHOD that is called to undemote a contact Fix CP2 tests to use batch content provider operations instead of PinnedPositions.UPDATE_API Bug: 15593967 Change-Id: Id93c6ac0e214e59107725416b7865c56c9df32f3
* Added usage stats to EntityPaul Soulos2014-06-191-0/+2
| | | | Change-Id: Idf06de011d1c01ea7dda174189e676177f9c5847
* Catch 0 width/height scaled Bitmap sizesJay Shrauner2014-05-231-1/+3
| | | | | | | | | | Change getNormalizedBitmap to catch attempts to scale bitmap to 0 width or height (which would throw an uncaught IllegalArgumentException) and instead throw an IOException, which is caught and handled by the higher level code. Bug:15189759 Change-Id: Ifb23d0b0d4e1c2e8038b472840a464194fbfa800
* Support secondary localesJay Shrauner2014-04-183-26/+136
| | | | | | | | | | Add support for tracking a secondary locale in addition to the current primary locale for CP2. Switch to using parseable ICU language tag (eg, "en-US") for locale tag written to DB. Secondary locale is set to previous locale on locale change and persisted in CP2 DB and prefs. Bug:8715226 Change-Id: Ia68397fd9118d89f3a45ac54f991f86bad42870e
* Remove German address book testJay Shrauner2014-04-151-26/+0
| | | | | | | | Remove German address book label/count test that was added with ICU 51 to check for Sch and St labels. Those labels were removed with ICU 52. Bug:13790528 Change-Id: I238f51b86299db6353ec256508aca2bda46ca8f0
* Update German locale tests for ICU 52Jay Shrauner2014-04-081-7/+5
| | | | | | | ICU 52 removed Sch and St labels for German; update tests. Bug:13790528 Change-Id: I774a50ed22b9dd535c2c28b99e91500c40c58d64
* Add IN_DEFAULT_DIRECTORY to views and projectionsBrian Attwell2014-03-041-0/+30
| | | | | Bug: 13173524 Change-Id: I6c0947d4978e204ce1268f65eab5e1cc66bda664
* Do not ignore leading "*"s in phone lookupsBrian Attwell2014-02-282-0/+166
| | | | | | | | | | | | | | | | | | | | | | After a phone lookup, "remove" entries from the cursor that don't match the queried number w.r.t. to whether it has a leading "*". "Removing" entries from a cursor involves making a partial copy of the cursor. This CL affects as little functionality as possible, so that it can make it into MR2. Ie, we continue to ignore leading "*"s in other CP2 queries. MANUAL TESTS: -Add a "*123" Emergency contact and "123" Voicemail contact -Call "*123", then call "123". You should see two seperate entries in your call log. In addition, the incall screens should show Emergency and Voicemail respectively (although the "123" call doesn't work properly inside the incall UI right now. This is a seperate bug b/13195342). Bug: 13195334 Change-Id: I7e1938ccb085630072611eb63148c5714b62fee8
* Fix Serbian address labels in non-Serbian localeJay Shrauner2013-10-011-0/+45
| | | | | | | | | | Add Serbian labels to default set (previously was only using Ukrainian for Cyrillic languages when in a non-Cyrillic locale). This adds a net of 3 new labels to the default label set. Added unit tests for Serbian and Ukrainian unique characters. Bug:11030904 Change-Id: Id35bf963ea10b89554aa0743d0f215c124b44c8d
* Add IS_SUPER_PRIMARY to default phone only strequents projectionYorke Lee2013-09-241-0/+1
| | | | | Bug: 10888792 Change-Id: Id9fce5cfc66adfc1192ce752e8a3c2902de2e978
* Merge "Change CONTACTS_STREQUENTS for phone only queries" into klp-devYorke Lee2013-09-241-8/+32
|\
| * Change CONTACTS_STREQUENTS for phone only queriesYorke Lee2013-09-231-8/+32
| | | | | | | | | | | | | | | | | | This CL tweaks queries for CONTACTS_STREQUENTS to return phone numbers belonging to starred contacts as well. Before this, the returned cursor consisted of a mix of starred contacts (without their phone numbers), and frequently contacted phone numbers. Change-Id: If0ac847dd26f093d977403ca0100769f6c63be9b
* | Change frequents algorithm to return contacts in a different orderYorke Lee2013-09-221-18/+47
|/ | | | | | | | | | | Bucketing thresholds - 3 days - 7 days - 14 days - 30 days - Any contacts older than this are not shown Change-Id: I4940920c4eb8ad4f5d130adc0b2acd30a4d7aff6
* Rename getCallingPackage() to avoid clash.Jeff Sharkey2013-09-061-1/+1
| | | | | | | The framework now offers an authoritative getCallingPackage(). Bug: 10626527 Change-Id: I845ce60a092d944ea0351f10ee41dbf07b8dfecd
* Prune HanziToPinyin testJay Shrauner2013-08-151-21126/+1
| | | | | | | | | | ICU 51.1 upgrade broke this test by changing the transliteration of several characters. The test is too brittle because it tests every possible Chinese character (more than 20k) against hard coded expected values. Instead, test just a small handful of characters. Bug:10116449 Change-Id: I97aa80f0d32d1219e4d01df1b79aad60471938cc
* Handle DEMOTE and UNDEMOTE in CP2Yorke Lee2013-08-051-12/+108
| | | | | | | | | | | * If a contact is UNDEMOTED, if it was previously DEMOTED, it will become UNPINNED. Otherwise, it will remain unchanged. * When two raw contacts are aggregated, the parent contact should inherit the lower pinned position of the two, not including negative integers. Change-Id: I74f41dfa327b8e5a79688b1e99eafbef7d9d58a0
* Add Data.contact_id to phone strequents projectionYorke Lee2013-07-311-0/+1
| | | | | | | This is needed so that operations on frequent contacts swipe to hide, pin, etc can operate on data.contact_id instead of data._id. Change-Id: I66005ebcbf7608b2b96961a5637a6736c1076ab9
* Add pinning support in ContactsProviderYorke Lee2013-07-241-0/+276
| | | | Change-Id: I3c835c2fd0faf99f8fb176752cfcb12e011095a2
* Merge "Add number presentation column to call log table"Jay Shrauner2013-06-191-1/+4
|\
| * Add number presentation column to call log tableJay Shrauner2013-06-101-1/+4
| | | | | | | | | | | | | | | | Add number presentation column to call log table and convert older call logs to use the new column. Bug:6948882 Change-Id: I0e8f781d30600e3bfb08d8b89a1cade531e18c7f
* | Remove ContactsContract.snippetize() from unit tests.Chiao Cheng2013-06-182-63/+68
|/ | | | | | | Fix unit test to check for full return values. Bug: 7896653 Change-Id: Idab766bc3e2be129e85bd25bac6bf73aeeb80be2
* Fix unit testsJay Shrauner2013-05-282-2/+1
| | | | | | | Fix commit processor unittests Bug: Change-Id: I61a75c622433efd2c27c3b3cfb276498a9a1df5f
* Fix CommitProcessor unittestJay Shrauner2013-05-091-1/+1
| | | | | | | Fix createRawContact() call that was missed in update to call semantics. Bug:8894174 Change-Id: Ib52ec9add1c6c829b359d6faebff416b81afca2a
* Fix broken build.Chiao Cheng2013-04-101-2/+2
| | | | | | | Missed two methods during a refactor. Updating new class prefixes for them. Bug: 8182147 Change-Id: If3476adf043f2192b53bfaa9fc03c8149a181005
* Adding contacts delta api.Chiao Cheng2013-04-0820-667/+1671
| | | | | | | | | | Updates and inserts can be detected through the use of a new timestamp field in the contacts table. Deletes can be detected by querying the new deleted_contacts table. Bug: 8182147 Change-Id: I5c1e596f4e1aa58528afc29396f79cb4051e229c
* Merge "Provider side changes for exposing data usage stats" into jb-mr2-devYorke Lee2013-04-052-1/+83
|\
| * Provider side changes for exposing data usage statsYorke Lee2013-04-032-1/+83
| | | | | | | | | | | | | | | | | | | | Use a uri query parameter to filter for a specific type of data usage, otherwise the sum of all the data usage stats for that particular data is returned. Bug 8124079 Change-Id: Iee4c3accb46c9402f0a1659c9b8943c5a219a169
* | Japanese and Chinese search key fixesJay Shrauner2013-04-023-18/+46
|/ | | | | | | | | | | Change so Pinyin search keys are only generated when in a simplified Chinese locale. Fix name style classification of phonetic names. Generate Romaji search keys for Japanese phonetic names. Add secondary locale labeling for a number of non-Western languages (Japanese, Korean, Thai, Arabic, Hebrew, Greek, Cyrillic). Bug:5356921 Change-Id: I8c3a6b67d59fbd6b7b16e4e9f69bc30d1d996a75
* Add new apis to CP2Yorke Lee2013-03-271-0/+154
| | | | | | | | | | | | Add Data.Contactables.CONTENT_URI and CONTENT_FILTER_URI Querying against these uris return email addresses and phone numbers belonging to all contacts with email/address/names that match the filter (if provided). Add VISIBLE_CONTACTS_ONLY boolean parameters to Data Bug: 8123918 Change-Id: I491cb2ff4c64c9d042d5e21cebc5f90d086c70ac
* Fix unit tests for ICU 51 patchesJay Shrauner2013-03-112-12/+70
| | | | | | | | | Fix unit tests to reflect fixes to AlphabeticIndex from backporting ICU 51 fixes into current Android ICU drop. Add tests for new German "Sch" and "St" labels. Bug: Change-Id: I9c4778bec24eebe6ed4228d541b6a6d95c6701aa
* Fix FastScrollingIndexCache testJay Shrauner2013-03-071-3/+2
| | | | | | | | Make sure the FastScrollingIndexCache instance used for the unit tests was created with the correct MockSharedPreferences Bug: Change-Id: I612638dadab394ea3ed8abbbe6f47de5f17601fe
* Merge "Auto-update ContactsDB on ICU version change" into jb-mr2-devJay Shrauner2013-03-051-2/+3
|\
| * Auto-update ContactsDB on ICU version changeJay Shrauner2013-03-041-2/+3
| | | | | | | | | | | | | | | | Save current ICU version into the ContactsDB and rebuild locale specific data whenever the version changes. Bug: Change-Id: Id5fd3e178558dc903b522b2655c75e6aa353f6e5
* | Merge "Reverting is_primary sort order back to previous priority." into ↵Chiao Cheng2013-03-042-2/+41
|\ \ | |/ |/| | | jb-mr2-dev
| * Reverting is_primary sort order back to previous priority.Chiao Cheng2013-02-282-2/+41
| | | | | | | | | | Bug: 8129961 Change-Id: If6dd3b5ebec19ef7c9fea493d90f0e8d88435f01
* | Fix unit tests for ICU 50Jay Shrauner2013-02-272-27/+58
|/ | | | | | | Fix tests to account for fixes made in ICU 50. Add some additional tests. Bug: Change-Id: I7d1fb0588f56b58da5c5177823ed5c16c4603e24
* Merge "Call new init function to use for testing, to turn off app ops." into ↵Dianne Hackborn2013-02-272-2/+2
|\ | | | | | | jb-mr2-dev
| * Call new init function to use for testing, to turn off app ops.Dianne Hackborn2013-02-262-2/+2
| | | | | | | | Change-Id: I81c749401c54c9f3facc921b7bc4e778a33ea22e
* | Use ICU JNI wrappers for phonebook labelsJay Shrauner2013-02-252-59/+254
|/ | | | | | | | | | Switch from using native code registered as sqlite callbacks to using JNI wrappers for accessing ICU AlphabeticIndex. Stop using specialized sort keys for Simplified Chinese because ICU code can correctly label the characters directly. Bug: Change-Id: I0568b3a406495c147c7b9b3e72835d11d93f9d16
* Call ICU lib for Pinyin transliterationJay Shrauner2013-02-191-29/+54
| | | | | | | | Switch from using hard coded tables copied from ICU to calling ICU Transliterator directly for Pinyin transliteration. Bug: Change-Id: I87aae623dfe049a90cee213182275aa51a7dcd9c
* Change default sort order for email queries.Chiao Cheng2012-11-262-9/+85
| | | | | | | | | - Prioritizing "default" emails over last used emails. - Added ordering for same domain emails as last order by. Bug: 7183241 Bug: 7346215 Change-Id: I6a8ba3cfe08792693eec4896f16853a88713bc3f