6d6be558693ec480b281e6614894f22ca5161944 |
|
14-Mar-2017 |
Makoto Onuki <omakoto@google.com> |
Don't blur less than 10. Bug: 36089513 Test: adb shell am instrument -w com.android.providers.contacts.tests Change-Id: I20c541973cfb4e2cef7b66c5373513e77b208264
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsDatabaseHelperTest.java
|
63bb78af06e34968cd2ee33775589bc4df4bd195 |
|
30-Jan-2017 |
Makoto Onuki <omakoto@google.com> |
Revive CONTACTS_DATABASE_CREATED, and... Remove STATUS_CHANGE_NOTIFICATION_CONTENT_URI. Bug 33390320 Test: adb shell am instrument -w -e size small com.android.providers.contacts.tests Test: adb shell am instrument -w -e size medium com.android.providers.contacts.tests Test: adb shell am instrument -w -e size large com.android.providers.contacts.tests Test: cts-tradefed run cts --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -m CtsContactsProviderWipe Change-Id: I10052a0682cb4bde0d94f6a22c50d0cff3a253fe
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsDatabaseHelperTest.java
|
5358da6ad10305f9359373ec3cc876a09d8d4e92 |
|
12-Jan-2017 |
Makoto Onuki <omakoto@google.com> |
Add ProviderStatus.DATABASE_CREATION_TIMESTAMP Also stop sending CONTACTS_DATABASE_CREATED Test: adb shell am instrument -w -e size small com.android.providers.contacts.tests Test: adb shell am instrument -w -e size medium com.android.providers.contacts.tests Test: adb shell am instrument -w -e size large com.android.providers.contacts.tests Bug 33390320 Change-Id: I135fc66aee70d31d0547aa3e8bbcbf3f7ccf514f
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsDatabaseHelperTest.java
|
e2e9ac275e487ce558579ee65ff8f122cf498b07 |
|
06-Oct-2016 |
Makoto Onuki <omakoto@google.com> |
Don't expose raw usage stats to clients; return "low-res" values. - "times_used" now return values after the following conversion: value == 0 -> 0 value < 10 -> 1 10 <= value <= 19 -> 10 20 <= value <= 29 -> 20 : : - "last_time_used" now returns values in day granularity. Test: run-all-tests.sh Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check \ com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a \ -m CtsProviderTestCases Bug 31753890 Change-Id: Ief2b93ce7775bb6482c03ceb1ba0fd367d51eed8
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsDatabaseHelperTest.java
|
fd4b8de05ffcd78e65f27763eade96f186c368b6 |
|
06-Oct-2016 |
Makoto Onuki <omakoto@google.com> |
Support making a "snapshot" of databases during tests. - We normally use in-memory DBs in unit tests because that's faster. Add a flag to switch to file-based DBs so we can copy them. - Also cleaned up the getDatabaseHelper() methods -- we had two, one with no arguments and the other without, and it wasn't clear which ones should be used when. Now the one that takes a context is renamed to make it clear the distinction. Test: run-all-tests.sh with and without the flag set. Change-Id: I376674a94e35a3314d91813debbeee5b3814f4a9
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsDatabaseHelperTest.java
|
a2286cca9eb5e5e31a2803345438145b3f0641d1 |
|
20-Sep-2016 |
Suprabh Shukla <suprabh@google.com> |
Removing mimetype and package cache We need to remove caches since after enabling WAL, we will have writers work in non-exclusive transactions (b/31600627) which might lead to readers reading uncommitted values if the cache is updated and the transaction fails. Test: Added a test testGetCommonMimeTypeIds to test the prepopulated cache for common mimetypes added in this change. Verified that existing tests in ContactsProvider2Test and ContactsDatabaseHelperTest pass. Bug: 31599660 Change-Id: I804ae9e952029a7f1b702347f866cb5e5d951f3e
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsDatabaseHelperTest.java
|
38c0331383a23d5de26f2fef26c39cade2b41e74 |
|
05-Feb-2016 |
Walter Jang <wjang@google.com> |
Put contacts with no name at the end of the alphabetic index We do this by changing the default bucket from 0 to the extra number bucket created to move presumed phone numbers to the position after the alphabetic index. Screenshots go/b21736630 Bug 21736630 Change-Id: I586cda9daa6cf215f991c5b94fb89a569c89daa8
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsDatabaseHelperTest.java
|
e8cdd9c437177da67ec41e24bc81e3c2d0a3efb3 |
|
21-Dec-2015 |
Tingting Wang <tingtingw@google.com> |
Re-calculate hash_id for photo field. In the old logic, we use data15 to compute the hash_id for a photo. But data15 values are not the same for the original value and synced value from the server, because there're some different compressing method used in CP2 and focus sync adapter. Because there's only one photo for each raw_contact, in the current cl we only used photo mimetype to generate hash_id. BUG 25955017 Change-Id: I0cdc8583f6f32ea2dab69de241ad2c6c05332319
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsDatabaseHelperTest.java
|
84e6cadff1217f4fc066b68d764af5eb09ca1f33 |
|
14-Sep-2015 |
Tingting Wang <tingtingw@google.com> |
Fix bug when upgrading CP2 to generate hash_id column. Remove selection "hash_id is null", because we will update this column later, and the query result will be reduced after updating hash_id. (Cursor will be refilled if a raw size is too large) BUG 24061463 Change-Id: Ia70810b6521b5f6b3d2c7644d6bdc557445fc1b8
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsDatabaseHelperTest.java
|
11d1e5f60f518e805c5f358f5376b87c08ef69d9 |
|
11-Aug-2014 |
Makoto Onuki <omakoto@google.com> |
Fix getMimeTypeId/getPackageId 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
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsDatabaseHelperTest.java
|
ad847316fe64c958b65bc05eb736e704bc56b23f |
|
07-Aug-2014 |
Makoto Onuki <omakoto@google.com> |
Fix "UNIQUE constraint failed: mimetypes.mimetype" 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
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsDatabaseHelperTest.java
|
38210445730ee04c351c7cc1b3800cfe23e34325 |
|
27-Jun-2012 |
Makoto Onuki <omakoto@google.com> |
Reorganize import in contacts provider Change-Id: If3afb134ea36bd93859efcd114885526e1592b91
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsDatabaseHelperTest.java
|
674f943e22077ae399166d5fe8db96dd3d1f7259 |
|
18-Feb-2012 |
Makoto Onuki <omakoto@google.com> |
Remove in-memory account cache Bug 6026073 Change-Id: Ic6057aa2347d1fa4c245ad2f6644ac4d5e8ae3cf
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsDatabaseHelperTest.java
|
9ba8463dd030e5e26a4f99dfe2a6ad52b2410d73 |
|
11-Jan-2012 |
Makoto Onuki <omakoto@google.com> |
Account refactoring follow-up - Check if there's really a new or removed account in updateAccountsInBackground() before doing everything else. If there's none, we'll skip re-scanning directories too. - Preheat the account cache when the provider starts. - Use account_id for the account filter query parameters. The contacts URI now supports the parameters too. Change-Id: I12e1116890df4c20b354618acfaee9dc009dc68e
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsDatabaseHelperTest.java
|
9d990d339c9e3a9e03f6fe13c260d36665f00e61 |
|
16-Dec-2011 |
Makoto Onuki <omakoto@google.com> |
Account table refactoring - Remove the account columns (type, name, data_set) from the raw_contacts/groups tables and add account_id instead. - Re-create the accounts table. The new table now has the _ID column. Rows in this table now has a different lifecyle than before: -- New row is created as the provider detects a new account during a write operation to the raw_contacts and groups table. -- Stale rows are removed upon account removal. - Removed account consistency check for steam items/photos. We don't do this kind of check for other tables. Change-Id: I1ce01590aef70f417fa89426dae762a41d25d656
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ContactsDatabaseHelperTest.java
|