summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Making DataRowHandlers static inner classesDmitri Plotnikov2010-11-301-11/+1
| | | | | | Last step before turning them into top-level classes. Change-Id: I6d42d591682eb24ab9ec4d0575106ca9d5016865
* Running tests against an in-memory database.Dmitri Plotnikov2010-11-301-3/+2
| | | | | | | The reduces the total run time for the test suite from about 600sec to 90sec. Change-Id: I68b5c17f1710ab7415913f256c925beead4dd825
* Fixing DirectoryTestDmitri Plotnikov2010-11-303-2/+10
| | | | | Bug: 3240412 Change-Id: I25d915b179be19e769b9f577fe21a1d9d0681206
* Fixing GlobalSearchSupportTestDmitri Plotnikov2010-11-301-1/+11
| | | | | Bug: 3240329 Change-Id: I8063812cf567fb4f290b5a488fcdc2ef20b38ed2
* Fixing LegacyContactImporterTestDmitri Plotnikov2010-11-301-4/+28
| | | | | Bug: 3240203 Change-Id: Ib733141a31c648437fa5d7171e0bfd22a4911c0f
* Allow zeroing the primary/super-primary flagDaniel Lehmann2010-11-231-3/+156
| | | | | | Bug:3212270 Change-Id: Iee664d6a13f66f0f38ed5829488e42b57448dad4
* Adding support for the new column: Groups.GROUP_IS_READ_ONLYDmitri Plotnikov2010-11-191-0/+2
| | | | Change-Id: I9dc91a03d7732544cedf439e0c940c035cbfdb39
* Adding support for a new ProviderStatusDmitri Plotnikov2010-11-172-3/+28
| | | | Change-Id: I76da184b794ea7727b9109e693fbf8834c9450b6
* Fixing an issue with social status updates after a contact splitDmitri Plotnikov2010-11-102-0/+43
| | | | | | Bug: 3172848 Change-Id: Iea102c2751d48f6d0f0d78474ad664a24dc46602
* resolved conflicts for merge of 47fd3881 to masterDmitri Plotnikov2010-10-225-53/+76
|\ | | | | | | Change-Id: I35ea513b8f0c0694d9afa6095aa718e1624eab5f
| * Fixing unit testsDmitri Plotnikov2010-10-228-67/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | A bunch of tests were broken by the recent change of the aggregation policy, because they relied on the old policy. Some other tests stopped working after we upgraded to a new version of ICU. Updating the tests accordingly. Change-Id: I97a785015834632a896ed4fc6079744962c7a04c
* | Support searching with given names for Korean namesSang-il, Lee2010-10-222-0/+44
| | | | | | | | Change-Id: Ifd5c8ebf265e7d3f4738dc0f378532f612ba9ef6
* | Backing up cached resource IDs with resource namesDmitri Plotnikov2010-10-212-0/+18
| | | | | | | | | | | | | | | | | | | | | | During an OTA or an adb sync some resource IDs may change without an android.intent.action.PACKAGE_* broadcast. We will now verify resource IDs against their names and if anything does not match, rescan all packages. Bug: 3117701 Change-Id: I293c5578b7092482e8dd4637554831f3e6f93cc1
* | Including PHOTO_SUPPORT in directory managementDmitri Plotnikov2010-10-181-33/+60
| | | | | | | | Change-Id: I340ade4c173b1d5dd8eb7b0e80f4c4601e654955
* | resolved conflicts for merge of 117166d0 to masterDmitri Plotnikov2010-10-161-0/+28
|\ \ | |/ | | | | Change-Id: Icc51fb6eff0431fe5f73f2d4dfa7810fa1c8885b
| * Merge "Fixing the trigger for aggregated presence." into gingerbreadDmitri Plotnikov2010-10-141-0/+28
| |\
| | * Fixing the trigger for aggregated presence.Dmitri Plotnikov2010-10-141-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Aggregated presence was not updated properly when presence was changed to NULL. Added a test that covers the specific situation. Bug: 3069107 Change-Id: I52396db7c9006e9f18ec6b7c51b22ba09c0ae480
* | | am afcfc000: Fixing ContactAggregator breakage revealed by an automated testDmitri Plotnikov2010-10-151-0/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit 'afcfc0005f7c93d46c28cdd8e18f956287ca0d18' * commit 'afcfc0005f7c93d46c28cdd8e18f956287ca0d18': Fixing ContactAggregator breakage revealed by an automated test
| * | Fixing ContactAggregator breakage revealed by an automated testDmitri Plotnikov2010-10-141-0/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | If you have an automatic aggregate of three or more raw contacts and you confirm the aggregation by adding an explicit manual override between two of the raw contacts, the third raw contact falls out of the aggregate. This CL fixes the problem. Bug: 3097139 Change-Id: I96b717eeb03e1a49a45b28ee395924f9d61c3e99
* | Merge commit '0dce6bf7a' into manualmergeDmitri Plotnikov2010-10-121-62/+134
|\ \ | |/ | | | | | | | | | | Conflicts: src/com/android/providers/contacts/ContactsProvider2.java Change-Id: I9f62ee8ba755224f4fef8fb9354c4e68969971a5
| * Changing contact aggregation to not join from same accountDmitri Plotnikov2010-10-111-62/+134
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Second attempt, now w/o an infinite loop. The change addresses several requirements: 1. If "Michelle Lee" and "Michelle Lee" are two contacts in the same account, we won't aggregate them. 2. If "Michelle Lee" and "Michelle Lee" are two contacts from different accounts, they do get aggregated, but if a third "Michelle Lee" shows up in one of those two accounts - we bust the original aggregate. 3. If "Michelle Lee" and "Michelle Lee" are not aggregated and a third "Michelle Lee shows up, it does not get aggregated with either of the first two regardless of the account. 4. Any manual joining overrides the above behavior. 5. The OTA with this change will bust all aggregates that contain raw contacts from the same account. Bug: 2650610 Change-Id: I413231af4cfa620f8d266a758c22bfc879aeae07
* | Merge commit '8638e1e9' into manualmergeDmitri Plotnikov2010-10-121-134/+62
|\ \ | |/ | | | | | | | | | | Conflicts: src/com/android/providers/contacts/ContactsProvider2.java Change-Id: I2585cef1f1ae37b8ed028b8e58b8b5b431f460c6
| * Revert "Changing contact aggregation to not join from same account"Dmitri Plotnikov2010-10-111-134/+62
| | | | | | | | | | | | | | | | This reverts commit 2a0d5f9c628e723261bc5198e0fd606076b76b74. Bug: 3086301 Change-Id: I7f05eb14122687950ca7d22d591fc172c463045e
* | Merge commit '2a0d5f9c' into manualmergeDmitri Plotnikov2010-10-111-62/+134
|\ \ | |/ | | | | | | | | | | Conflicts: src/com/android/providers/contacts/ContactsProvider2.java Change-Id: I809b6ac511c43d6e60cb749b7811786e7ec08bdb
| * Changing contact aggregation to not join from same accountDmitri Plotnikov2010-10-101-62/+134
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The change addresses several requirements: 1. If "Michelle Lee" and "Michelle Lee" are two contacts in the same account, we won't aggregate them. 2. If "Michelle Lee" and "Michelle Lee" are two contacts from different accounts, they do get aggregated, but if a third "Michelle Lee" shows up in one of those two accounts - we bust the original aggregate. 3. If "Michelle Lee" and "Michelle Lee" are not aggregated and a third "Michelle Lee shows up, it does not get aggregated with either of the first two regardless of the account. 4. Any manual joining overrides the above behavior. 5. The OTA with this change will bust all aggregates that contain raw contacts from the same account. Bug: 2650610 Change-Id: Idfba4dd330a4842310f3fed85e6ae0a3a634e95c
* | Adding PHOTO_SUPPORT and SHORTCUT_SUPPORT to projection mapsDmitri Plotnikov2010-09-231-0/+2
| | | | | | | | Change-Id: I268debfdfaa635b7564cfa67a98e71800575d367
* | Fixing Directory.DEFAULT update logicDmitri Plotnikov2010-09-221-5/+16
| | | | | | | | | | | | | | | | | | | | After refactoring the code a few times I ended up with selection parameters that did not match the selection itself. Oops. The test also needed to be fixed and upgraded. Change-Id: Ie2ad3e75c2ed3a5df142d15943ffca67e6c634d4
* | Adding support for PHOTO_URI and PHOTO_THUMBNAIL_URIDmitri Plotnikov2010-09-221-2/+18
| | | | | | | | Change-Id: I080c3227164eba6804095a4f0cbd82bb5093e161
* | Adding a table for Directories.DEFAULT contentsDmitri Plotnikov2010-09-211-8/+8
| | | | | | | | Change-Id: I9d1c15e6df24fbec84e436923abdae75b88c6eac
* | Adding a missing column to projectionsDmitri Plotnikov2010-09-141-0/+3
| | | | | | | | | | | | Also fixing a couple of broken tests. Change-Id: I7e2fef3fd421fe0f6a47a39bbb5b44efb9399b69
* | Improved ordering of email address autocomplete suggestionsDmitri Plotnikov2010-09-012-0/+93
| | | | | | | | Change-Id: Id59c2f40400eb7b3394ea6774ce48036859ecc86
* | Uncommenting a useful testDmitri Plotnikov2010-09-011-1/+1
| | | | | | | | Change-Id: I4937f7442f2e5e61ad4ba959c479f33986385160
* | Store the current country code in call logBai Tao2010-09-012-0/+8
| | | | | | | | | | | | | | | | a. Created a CountryMonitor class to monitor country for CallLog and Contacts Provider b. Added a new field countryiso in calls table. c. Upgrade the database to 406. Change-Id: I894739c65672b017f8d634f0d9cd5dd11ac930d1
* | New ContactsProvider query: complete_nameDmitri Plotnikov2010-08-181-0/+40
| | | | | | | | | | | | | | | | | | We want to allow the UI to switch freely between a single field name and multi-field name. For that we need to expose the name parsing/concatenation machinery we have in the contacts provider. Change-Id: I51586e309e11a90c719d747862b646de7fb8f326
* | Use new public API for memory-backed file descriptorsBjorn Bringert2010-08-182-8/+35
| | | | | | | | | | | | Bug http://b/issue?id=2595601 Change-Id: Ia274e4c5d7098054bec189e28f2172fb864e6e8c
* | Update flags to be consistent with GTalk'sDaniel Lehmann2010-08-131-6/+6
| | | | | | | | Change-Id: Ia56261e9c6a9378f70faa7c5b36d7586e0750a15
* | Improved the phone lookup and the phone filterDmitri Plotnikov2010-08-134-22/+158
| | | | | | | | | | | | | | | | | | a. Altered the phone_lookup table to allow the rows with the same data_id. b. Added E164 and normalized number for a phone number if it is applicable. c. Improve the phone lookup by using the build in SQLite function. d. Improve the phone filter by using 'Like filterparam%' Change-Id: I1b23d0a10e46ef26467fb72528a7999d23e36c5e
* | Fixes following some breakage caused by CL 60952Dmitri Plotnikov2010-08-132-1/+9
| | | | | | | | Change-Id: Ia9fe3a477ab3e4e141773432a969d67168fd6155
* | Fix the buildDaniel Lehmann2010-08-121-7/+7
| | | | | | | | Change-Id: I750f1c6b4c3d05d93bb07ee306f11486bfd9ce40
* | Adding support for query-based aggregation suggestions.Dmitri Plotnikov2010-08-111-0/+49
| | | | | | | | | | | | | | For now exact name match is required. Will add other types of search later. Change-Id: Ibc7bca3a7f418da349b318e0e31861268af5f827
* | Fixing broken testsDmitri Plotnikov2010-08-104-14/+22
| | | | | | | | | | | | | | | | | | The breakage was caused mostly by the upgrade to the new version of ICU Bug: 2894663 Bug: 2894703 Change-Id: If7f28bba8eb1b9aa303e8aa7ec29cf026e51e334
* | Supplying a default projection to DirectoriesDmitri Plotnikov2010-08-103-18/+59
| | | | | | | | Change-Id: Ie0de59b99624252e4688113fcc6ff52ec75ac8e4
* | Introducing ContactDirectoryManagerDmitri Plotnikov2010-08-055-250/+531
| | | | | | | | | | | | | | | | Changing the contact directory registration protocol. Now directory providers are mostly passive, ContactsProvider2 is in control. Change-Id: I93815f7dc0a30fde35d70c5fd48bb1a924076ff5
* | Adding support for all-encompassing contact/entities URI.Dmitri Plotnikov2010-07-291-3/+201
| | | | | | | | Change-Id: I65821cf0abe2c8a94abd9168e80a0a098c1e2a1f
* | Fixing two issues with CHAT_CAPABILITYDmitri Plotnikov2010-07-281-12/+433
| | | | | | | | | | | | Also, adding tests for all projection maps. Change-Id: Iadf6b534905ad09fc15d799837d60dc8b1e91c3d
* | resolved conflicts for merge of aabcd1d3 to masterVasu Nori2010-07-172-36/+68
|\ \ | |/ | | | | Change-Id: I458594d5ea2fd0735499b2d17aa4c35b81cb0077
| * add chat_mode to presence_db tables: presence, aggregate_presenceVasu Nori2010-07-162-36/+68
| | | | | | | | Change-Id: I62fc49669217a6136e31164713dc25a5296721ef
* | Implementation for new ContactsContract APIDmitri Plotnikov2010-07-161-0/+56
| | | | | | | | Change-Id: I91eb0bc2184f65185a342aa3761afe8549b9e640
* | Initial implementation of the directory APIDmitri Plotnikov2010-06-072-0/+339
| | | | | | | | Change-Id: If8cb0a1fc32dba0ac47502d9f86b43e0e0add8b8
* | Preventing unnecessary update of contact visibility at boot timeDmitri Plotnikov2010-05-181-14/+1
| | | | | | | | | | Bug: 2511409 Change-Id: I5191cc424adbaa97648db9cedee6573a16b0232c