summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* am 79e7936a: am 5e5405ba: am c00a5e2d: Renaming Telecomm to Telecom.Tyler Gunn2014-09-131-4/+5
|\ | | | | | | | | * commit '79e7936a4efa92c7bfb9e77da181144711a65b78': Renaming Telecomm to Telecom.
| * Renaming Telecomm to Telecom.Tyler Gunn2014-09-121-4/+5
| | | | | | | | | | | | | | | | | | | | - Changing package from android.telecomm to android.telecom - Changing package from com.android.telecomm to com.android.server.telecomm. - Renaming TelecommManager to TelecomManager. Bug: 17364651 Change-Id: Ie33d1f8fd0bc228a7cf0da3f70a0fa945cee716a
* | Remove default settings during contacts aggregation.Zheng Fu2014-09-102-2/+77
|/ | | | | | | | Set is_super_primary to 0 for all the shared mime-types's data between aggregated contacts. Bug:5080996 Change-Id: Ie65259c11d719b343f234e5fccf883491e7992a7
* Replace Calls.FEATURES_NONE with 0 (3/4)Yorke Lee2014-09-081-5/+5
| | | | | Bug: 17253963 Change-Id: I9e9e56cdf4c9a60ac1e047bef0eba2ba0c8f10fb
* Follow ContactsContract API changesYorke Lee2014-09-041-1/+1
| | | | | Bug: 17390425 Change-Id: Ia88fb0235a56becc3ec5a770067856311769a68c
* Merge "Fix testPhoneLookupEnterprise_withCorpProfile" into lmp-devMakoto Onuki2014-09-022-1/+14
|\
| * Fix testPhoneLookupEnterprise_withCorpProfileMakoto Onuki2014-09-022-1/+14
| | | | | | | | | | | | | | | | | | - Don't add "userid@" to the provider authority when setting up the secondary cp2 for the corp profile. Bug 17357026 Change-Id: Ife0265ee71c1fb28af87fc09763b1e53584ee358
* | Delete stale calls in a managed profile's call log tableYorke Lee2014-09-021-0/+37
|/ | | | | Bug: 17096027 Change-Id: Ia640ef8a8f88eb5f9ff9eddc096bcaf334bba3c9
* Address API review comments:Makoto Onuki2014-08-271-5/+3
| | | | | | | | - Rename isCorpContactId() to isEnterpriseContactId(). Bug 17253963 Change-Id: Ib89b491c52f2b1326a11c991574a117f75fc8bcd
* API changes for ContactsContractYorke Lee2014-08-261-0/+24
| | | | | | | Add tests for PinnedPositions.pin Bug: 17253963 Change-Id: I887fb291fa4de8db6859655956a80898d1ee618c
* Add a maximum length check when inserting or updating phone numbersYorke Lee2014-08-181-0/+26
| | | | | Bug: 14307606 Change-Id: Id17a122cb9e86f9ae64232773869cb2108754ed0
* Fix getMimeTypeId/getPackageIdMakoto Onuki2014-08-111-0/+56
| | | | | | | | | | | | In the old code we only put ids to the cache in the insert case, but the select case. This means once the process restarts it'd never put anything in the cache. Also added the test for the conflict case. Bug 16574964 Change-Id: I9979b61b6e1a3f04a81bcf2b78a678378f1a009c
* Add unit tests for enterprise caller-idMakoto Onuki2014-08-084-4/+376
| | | | | | | | | | Also fix a few issues: - Fix projection map for phone_lookup/enterprise and add PHOTO_FILE_ID - Null out custom ringtones from the corp CP2. Returning rintones in the corp profile really doesn't make sense. - Fix a log in queryPhoneLookupEnterprise(). Change-Id: If0617225228c526d4b7d87e9c95f6fbe090242a0
* Fix "UNIQUE constraint failed: mimetypes.mimetype"Makoto Onuki2014-08-071-0/+90
| | | | | | | | | | | | | | | | | | With the old code there was a chance of two threads trying to write the same mimetype simultaneously, ending up getting "UNIQUE constraint failed". One possible way to fix it is just to add locks, but doing so *might* cause deadlocks due to implicit locks in SQLiteDatabase. So in this CL, we just retry when we detect a conflict. Unfortunately we can't use a transaction here because this method is called from onCommitTransaction() too. Also refactored the code to unify getPackageId() and getMimeTypeId(). Bug 16574964 Change-Id: I66274dfd080ae808795a4d59d30978b1ca1c06c0
* Fix broken aggregation behavior for pinned contacts and testsYorke Lee2014-07-301-5/+5
| | | | | | | | | | Update the value of some pre-defined constants in tests Make sure that aggregation correctly sets pinned positions for aggregated contacts - the lowest pinned position of all constituent raw contacts, and 0 if none of them are pinned. Bug: 16628573 Change-Id: I3e072baf7ff933a6eef861ed394f3fc817aee48b
* Follow ContactsContract API changeYorke Lee2014-07-292-7/+5
| | | | | Bug: 16403306 Change-Id: I21d25ba836d9d9ab45a7ebdca0e2f24f8c678e43
* Fix buildMakoto Onuki2014-07-281-1/+1
| | | | Change-Id: Ifc62da87c8b9e0af57aa6c7c81e1747311683c37
* Do not build NAME_LOOKUP from phonetic namesMakoto Onuki2014-07-283-4/+76
| | | | | | | | | | | | | | This prevents aggregation by phonetic name Note: if a contact only has a phonetic name (i.e. without any non-phonetic name components), then its display name is set from the phonetic name. This CL does *not* prevent phonetic-name-based display names getting into NAME_LOOKUP, meaning if two contacts have no names but the same phonetic name, then they *will* still be aggregated. But this shouldn't be an issue since what was an issue was "aggregating two contacts with *different* names with the same phonetic name". Bug 10957673 Change-Id: I6484128b1f7e4bbe1b08c57969a8a1ef147d5c7d
* Merge "Update the value of PinnedPositions.UNPINNED to 0" into lmp-devYorke Lee2014-07-241-0/+52
|\
| * Update the value of PinnedPositions.UNPINNED to 0Yorke Lee2014-07-251-0/+52
| | | | | | | | | | Bug: 16403306 Change-Id: I86fcd1f2d1d145edf1ba3d4bd8ce21d14dcb94d0
* | Add Calls.TRANSCRIPTION to CallLog (1/2)Yorke Lee2014-07-241-1/+1
|/ | | | | | | Dialer needs access to the TRANSCRIPTION column via the CallLog to show voicemail transcriptions inline. Change-Id: Id1807923a07af9e9e34783e6be2e39485eee7795
* Merge "Make BaseVoicemailProviderTest abstract" into lmp-devMakoto Onuki2014-07-221-1/+1
|\
| * Make BaseVoicemailProviderTest abstractMakoto Onuki2014-07-221-1/+1
| | | | | | | | | | | | Bug 16484915 Change-Id: I70be9323d1da6c909383b144f0f2b8fcef9b1214
* | Check DPM.getCrossProfileCallerIdDisabled in caller-idMakoto Onuki2014-07-222-2/+180
|/ | | | | | | | | | | - Also add a test for UserUtils - Also fix broken tests due to UserUtils. Bug 16467654 Bug 15779911 Bug 16458399 Change-Id: I64a4526b512fce94590b75eae037a8bdcd874064
* Rename PhoneAccount to PhoneAccountHandleEvan Charlton2014-07-201-2/+2
| | | | Change-Id: I2e97b348e6316a8b3ccc39fd81013e7f514a2889
* Rename voicemail permissionsYorke Lee2014-07-184-25/+25
| | | | | | | | Rename READ_ALL_VOICEMAIL to READ_VOICEMAIL, and MANAGE_VOICEMAIL to WRITE_VOICEMAIL Bug: 16400686 Change-Id: I45d841b886c2bbe230c2f13fddbce41a729b6c61
* Merge "Wire up multi-SIM experience (2/4)" into lmp-devIhab Awad2014-07-171-1/+1
|\
| * Wire up multi-SIM experience (2/4)Ihab Awad2014-07-171-1/+1
| | | | | | | | Change-Id: I13c7e29248c678bf6c533920b4ad562b653cf8f0
* | Sync call log entries from the primary user into the secondary user's call logYorke Lee2014-07-172-1/+97
|/ | | | | | | | | | | | On startup of a secondary user's call log provider, sync any call log entries from the primary user's call log that are: 1) Newer than the last sync time 2) Not a voicemail 3) Not a duplicate entry (identified by the number, and start time of the call) Bug: 16298776 Change-Id: I843dfd8dd5c9433942e610cbbc2dfed95c29dd1c
* Fix broken tests in CP2Yorke Lee2014-07-161-1/+1
| | | | Change-Id: I1c198cbf086c7f267178a26d2a50123a8edaec12
* Add TRANSCRIPTION column to Calls tableYorke Lee2014-07-152-2/+4
| | | | | Bug: 10928782 Change-Id: I8e0e53e3c746baa64dd868a0e1c57444e2050578
* Implement multi-SIM capabilities (5/6) [DO NOT MERGE]Santos Cordon2014-07-141-1/+1
| | | | | Bug:16292368 Change-Id: I8ca4031b36c821f8b071f9227f90266b066d3501 (cherry picked from commit 66df49ed5dc962cd80dcbbd845a5a83321ceee63)
* Add features and data_usage columns to calls table.Tyler Gunn2014-07-101-1/+6
| | | | | Bug: 16015261 Change-Id: I08d28a5af5b52cc8ca2e03e6db82f68807c1f69f
* 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