summaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/providers/contacts/util
Commit message (Collapse)AuthorAgeFilesLines
* Fix NPE in enterprise API & fix unit tests.Makoto Onuki2015-06-041-0/+55
| | | | | | | Bug 21632829 Bug 21634841 Change-Id: Ic18f44e8de31fe48b1d3b7f3a49c355a4865aeca
* Remove caller-id check in enterprise phone and raw contacts entitiesRicky Wai2015-03-311-8/+8
| | | | | | Bug: 19990833 Change-Id: Ibba3a0594262b975b3b4fdd4ebd1fcf1e40ff98a
* Check DPM.getCrossProfileCallerIdDisabled in caller-idMakoto Onuki2014-07-221-0/+83
| | | | | | | | | | | - Also add a test for UserUtils - Also fix broken tests due to UserUtils. Bug 16467654 Bug 15779911 Bug 16458399 Change-Id: I64a4526b512fce94590b75eae037a8bdcd874064
* Change default sort order for email queries.Chiao Cheng2012-11-261-2/+30
| | | | | | | | | - Prioritizing "default" emails over last used emails. - Added ordering for same domain emails as last order by. Bug: 7183241 Bug: 7346215 Change-Id: I6a8ba3cfe08792693eec4896f16853a88713bc3f
* Reorganize import in contacts providerMakoto Onuki2012-06-273-8/+5
| | | | Change-Id: If3afb134ea36bd93859efcd114885526e1592b91
* Use 3 bucket sorting logic for frequent.Makoto Onuki2012-04-181-4/+8
| | | | | | Bug 6343819 Change-Id: Id2a2827fca611e62a5a1406faa73026625feaede
* Fix and simplify data usage feedbackMakoto Onuki2012-04-141-0/+41
| | | | | | | | | Now it correctly updates both raw_contacts and contacts too, with fewer sqls and less memory. Bug 6326418 Change-Id: I89f0f92bae5bad5505b218eca2a29ae56b51fe7f
* Cache fast scrolling index.Makoto Onuki2012-02-131-0/+149
| | | | | | | | | | | | | | The cache content is also stored in the shared preferences. The cache is invalidated when: - contacts (or profile), raw_contacs, or data is modifiled. - accounts are changed. (Strictly speaking we have to do this only when an account is being removed, but not when added. But let's just always do this for just in case.) - visible contacts are updated; i.e. when custom filter is udpated. - the locale changes. Change-Id: I70cfe7c88d3b1a0a0f820338acbe885c136b6e10
* Moving ProjectionMap to frameworks/ex.Dave Santoro2011-12-131-1/+1
| | | | Change-Id: I3ccd0dd27ff0fe49ac54574449264c2e957d3a01
* Use integer constant when adding filtering clause.Flavio Lerda2011-11-151-5/+5
| | | | | | | | | | Currently we are quoting an integer constant when generating the filtering clause that excludes voicemails from the set of calls returned to applications querying the default call log URI. Pass the integer to the helper function, so that we can avoid quoting. Change-Id: I1e460d2c8d3b04047cf4a1f4e1209b3e4ba5053b
* Introduced query param 'include_voicemails' for call_log uri.Debashish Chatterjee2011-06-282-0/+60
| | | | | | | | | | - by default only call entries (i.e. no voicemails) are returned. - if include_voicemails is set to true then also include voicemail records, but only if the caller has full voicemail permission. - voicemail record can only be inserted through call_log provider if include_voicemails is set. Change-Id: I98f6778ace64fa752dc0525c5ce4e5eb83b2e689
* Added checks in voicemail provider to not expose call_log fields.Debashish Chatterjee2011-06-171-0/+22
| | | | | | | | | | - Voicemail provider now has check to ensure that no field outside of its projection is accesible. - Moved functionality to check ContentValues against a projection map to DbQueryUtils. - Associated test cases. Change-Id: I23033c96f74f0ab981152f70e585c69ba5284602
* Voicemail provider implementation within ContactsProvider.Debashish Chatterjee2011-06-152-0/+145
- New voicemail provider class - all voicemail operations restricted to only 'voicemail' call type. - new voicemail permissions (currently defined in the manifest file itself) Change-Id: I32b916c5b4a53e93bafbecf7df7bee3f5e27fee6