summaryrefslogtreecommitdiffstats
path: root/tests/assets
Commit message (Collapse)AuthorAgeFilesLines
* Revert metadata_sync table and related code from MZheng Fu2015-06-101-69/+0
| | | | | Bug:20553119 Change-Id: I89b48cc5a39a57ebeafe7821f07c410dac871258
* Update related tables from MetadataSync.data column.Tingting Wang2015-04-171-3/+11
| | | | | | | | | | MetadataSync.data column info is parsed to MetadataEntry object. RawContact, Data, DataUsageStats, AggregationException tables need to be updated or inserted for the given rawContactId from MetadataEntry. BUG 20055193 Change-Id: I5bdfe2c44f9c9af8d4067dc136ceb62ab0b274af
* Parse metadata_sync.data to MetadataEntry Object.Tingting Wang2015-04-141-0/+61
| | | | | | | | | | metadata_sync.data is a text column contains the DeviceContactMetadata Json string got from People API. Converting it to MetadataEntry object is needed before using. BUG 20055450 Change-Id: Ic82b07438fdf088563fcdcc99980b83df149734f
* Fix LegacyContactImporterTestDaisuke Miyakawa2011-06-153-15/+15
| | | | | | | | | | | | | Need to update golden files per ICU version update. See also: I695558055cc139b42b71da9138f61d19bcbd9758 Also add some annotations for tests. Note that this doesn't fix every test. It looks the other test breakages are harder to resolve. Bug: 4645142 Change-Id: Ib487c28c3cd73dd702962e4590ada1a6319c2e50
* URIs and queries to support profiles.Dave Santoro2011-06-093-258/+279
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change includes: - A database upgrade to support tracking whether a contact represents the user's profile (represented as an optional raw contact ID specified per-account, and looked up in the various views). - New Contact Provider URIs for retrieving profile-specific data: - profile: To retrieve the user's profile contact. - profile/data: To retrieve data for the user's profile contact. - profile/data/#: To retrieve data for a specific data entry for the user's profile entry, by data ID. - profile/entities: To select entities for the user's profile. - profile/as_vcard: To retrieve the profile as a VCard. - profile/raw_contacts: To retrieve or insert raw contacts for the user's profile. - profile/raw_contacts/#: To retrieve a specific raw contact entry for the user's profile, by raw contact ID. - profile/raw_contacts/#/data: To retrieve data for a specific raw contact entry for the user's profile, by raw contact ID. - profile/raw_contacts/#/entity: To retrieve raw contact entities for a specific raw contact entry for the user's profile, by raw contact ID. - Permission checks to ensure that any access to profile data (whether explicitly through the above URIs or directly via ID) enforces READ_PROFILE or WRITE_PROFILE access. - New and updated tests (including permission check cases for all of the above, plus query checks for each). I've also had to move a few large tests to medium to work around b/3329504. I've also removed the database close step from contacts provider test teardowns, as it doesn't seem to be necessary, and results in almost a 3x performance boost on test runs. Change-Id: I220552c26ad1eb3fbf24fdd865df2fe59fe4a688
* Fixing broken testsDmitri Plotnikov2010-08-103-14/+14
| | | | | | | | | The breakage was caused mostly by the upgrade to the new version of ICU Bug: 2894663 Bug: 2894703 Change-Id: If7f28bba8eb1b9aa303e8aa7ec29cf026e51e334
* Fixing an issue with legacy contact import.Dmitri Plotnikov2010-03-233-22/+22
| | | | | | | | The issue is that the importer set the is_primary flag, but not the is_superprimary flag. Bug: 2535177 Change-Id: I32e11d1bb9c1068781d1a734256a223f75543e7f
* Fixed visibility of contacts, display-names and lookup-keys after ↵Daniel Lehmann2010-03-1722-0/+2249
| | | | | | | | | Donut->Froyo update. Reworked Tests. Bug:2517163 Bug:2521116 Change-Id: I8e33650acf9a59b52719289e37257c1b3c55a7a9
* Adding a format of contact lookup key that works better for unnamed unsynced ↵Dmitri Plotnikov2010-03-051-2/+2
| | | | | | | contacts. Bug: 2385103 Change-Id: I79d7e4d62077a5ebc0231c24ffa07ea05ba9c77f
* Retrofitting Eclair/Froyo changes into the legacy contact conversion script.Dmitri Plotnikov2010-03-023-108/+140
| | | | | Bug: 2461372 Change-Id: I587a8654c0d14d7145230238fe44585a65803698
* Making contacts provider tests run againDmitri Plotnikov2009-10-013-42/+42
| | | | Change-Id: Ie85b0dd312368bf04e2343471265c51437dea6f1
* Remove GAIA stringCostin Manolache2009-09-292-9/+9
|
* No longer relying on the components of structured name for aggregation.Dmitri Plotnikov2009-09-211-649/+1038
| | | | | | | Now parsing display name into tokens and allowing permutations of those. Bug IDs: 2132657, 2132636, 2089893 Change-Id: Idea256bbec3b82fb229199c6bd6e9d7b145ab075
* Fixing broken tests in ContactsProvider2Dmitri Plotnikov2009-09-091-4/+4
|
* Contacts: Cleaning up golden test files after the change of data mime types.Dmitri Plotnikov2009-09-021-16/+16
|
* Making aggregation optional during Donut->Eclair contact import.Dmitri Plotnikov2009-08-311-1/+1
| | | | | | | | | | The importer will create contacts just like the aggregator would, but without actually aggregating duplicates. All raw contacts are still marked for reaggregation, so the dupes are still discovered in the subsequent aggregation pass. The user experience is that all contacts show up very quickly (on sholes we should expect to see 700 contacts within 15-17 seconds). Then a bit later duplicates start disappearing.
* Fixing sync ids in legacy contact import.Dmitri Plotnikov2009-08-143-9/+9
|
* Contact import optimization: using direct inserts into the database.Dmitri Plotnikov2009-08-132-7/+7
|
* Removing handling of primary phone/email on Contact.Dmitri Plotnikov2009-08-111-51/+44
| | | Adding code to compute HAS_PHONE_NUMBER on a Contact.
* DIRTY flag on Contacts will no longer be set if the query has the ↵Dmitri Plotnikov2009-08-102-2/+3
| | | | | | ?mark_as_dirty=true parameter. Sync adapters should be able to set their own data on the Data row without triggering another round of syncing.
* Hiding security constraints in SQL VIEWS - first cut.Dmitri Plotnikov2009-08-071-156/+156
| | | | | This CL serves two purposes: 1. We hide the restriction checking inside SQL VIEWs, which will prevent security attacks like passing ") OR(1" for selection 2. We gain the ability to use unqualified column names in selections - all columns on a VIEW have unique names.
* Contact conversion script, initial cutDmitri Plotnikov2009-08-056-0/+864