72ec7ff768c838bf4e69ffdcfb3976217610aba1 |
|
05-May-2017 |
mike dooley <mdooley@google.com> |
Fix unit tests Fixing tests that broke when new database column, transcription_state was added (ag/2129944, ag/2129909). Test: ran ContactProvider unit tests Bug: 37952129 Change-Id: Iec466dd40e83e6b91b336c479cf3919333a07781
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
687bef960a8309410ee1ba0da06a012914bef88e |
|
08-Nov-2016 |
Ta-wei Yen <twyen@google.com> |
Prevent LAST_MODIFIED from changing after deletion Previously LAST_MODIFIED is updated every time any modification is done to a row, even if it is marked as deleted. A deleted row should not be changed other then undeleting it, but it is hard to enforce this on existing clients. Instead, LAST_MODIFIED will freeze at the moment it was deleted. In this CL, before the values are updated a separate query will update LAST_MODIFIED for all rows that will be affected, unless it is already marked as deleted. If a update will unmark the rows as deleted, a rows will have its' LAST_MODIFIED updated. Fixes: 31975372 Test: runtest contactsprov Note: In the current master most of the contacts provider tests are broken due to UserManager changed to use getApplicationContext() on its' constructor, which is not mocked by the test context. This CL is tested with the change reverted. Change-Id: I7ce1e98fa14932c50e84bb9ef6b2549e93faddc4
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
d5f0b0c7eba8cf241eb895bd3f75515030430b81 |
|
29-Mar-2016 |
Brad Ebinger <breadley@google.com> |
Fix Calllog Unit Test Failures Updated the number of CallLog Fields. Change-Id: Iada0c286e7b667836d90a235fd65e3619c9889cc Fix: 27893220
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
f3bd980c0ec03db2538e86cadee2c1559f02c85b |
|
12-Jan-2016 |
Makoto Onuki <omakoto@google.com> |
[FBE] Introduce shadow calllog provider [2/2] Introduce a new provider that's a clone of the calllog provider but is EA. The provider is hidden and requires MANAGE_USERS to access, and responsible for storing calllog entries that are inserted when the real provider is still encrypted. When the real provider starts, it copies the entries from the shadow as well as user-0's real provider, and clears the shadow. Also fix b/26516259 Bug 26183949 Change-Id: If44b46709e2e7b1651b41c09d900e1cb2777dc56
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
dc653a5c1bed274512ce41e4a6129a65d2b0eeac |
|
22-Dec-2015 |
Makoto Onuki <omakoto@google.com> |
Move CallLog and VoiceMailStatus to their own DB. - Move the "calls" and "voicemail_status" tables to the new "calllog.db" database. - Migrate all data into it. - Remove the old tables in contacts2.db - VoicemailContract.Status.SOURCE_PACKAGE is no longer UNIQUE Bug 26247586 Change-Id: I003d49b8fb150c21a34830bc62e8c816ce2cd8cd
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
6a7519df9e4462bfc02f28f0b066280307541905 |
|
21-Dec-2015 |
Ta-wei Yen <twyen@google.com> |
Fix CallLogProviderTest Test cases has not been updated for a while. + Check userHandle == USER_SYSTEM and isManagedProfile() instead of isSameProfileGroup() in syncEntriesFromPrimaryUser(). + Check LAST_MODIFIED for CRUD operation on Calls table. + Calls.ADD_FOR_ALL_USERS = 1 defaulted to getTestCallLogValues() Change-Id: I19a10e5a26951dae69a1481f142d6c398b56e09a
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
07b5ddba9ab6f28f730597e52c0f0c2cc319d36d |
|
01-Aug-2015 |
Yorke Lee <yorkelee@google.com> |
Fix CallLogProviderTest.testAddCall Cached values should be null immediately after CallLog.addCall Bug: 22011651 Change-Id: I8ebbe71be9e9ad9a2f3fd694c0c19e847a3cf60f
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
47fc56dd40613fae565d0c4d630f5f0b5fc310ff |
|
20-May-2015 |
Yorke Lee <yorkelee@google.com> |
Fix broken CP2 unit tests and voicemail cleanup * Delete voicemails when VoicemailCleanupService runs by checking whether delete is called internally. * Delete unnecessary MockPackageManager class, and consolidate all logic into ContactsMockPackageManager * Separate permissions tests and delete logic tests in VoicemailProviderTest * Correct the number of exposed Call columns in CallLogProviderTest Bug: 20669398 Change-Id: I695b82b639b93f3ce85bf6e20000279f19e4a14a
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
0f74e8600ad744f2e4ba9c6a4cdadf5da5a20e83 |
|
03-Feb-2015 |
Nancy Chen <nancychen@google.com> |
Upgrade voicemail_status and calls tables for visual voicemail. Do a database upgrade for MNC in order to add multi-SIM fields to the voicemail_status table and add "dirty" and "deleted" fields to voicemails table. Add functionality in DbModifierWithNotification to handle "dirty" and "deleted" appropriately. This new functionality is tested in VoicemailProviderTest and CallLogProviderTest. Bug:19236241 Change-Id: I25ebba0bdb5f720e48beaf17dbdd2846e494da74
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
468fc189050b234fa8df7f62af0f7987517ffc35 |
|
12-Feb-2015 |
Santos Cordon <santoscordon@google.com> |
Upgrade calllog DB to use ICC ID & source_phone_number. To accomodate backup and restore of the call log, we have to convert the existing sub-ID to an ICC ID. Also, add the source_phone_number to the list of call log columns. The ICC ID improves backup and restore because it is persistent across different devices where a sub ID is not. If the user completely changes their SIM card, the source_phone_number will be helpful in identifying that scenario if the user kept their old phone. Change-Id: Ib35e25216691e580b5ea539929ff16b2e3d30b88
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
c00a5e2d1d1820e11d7f3961e6e809a6954e5154 |
|
12-Sep-2014 |
Tyler Gunn <tgunn@google.com> |
Renaming Telecomm to Telecom. - 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
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
aec79b87fa29a93084871d9bd6f03b5d6858fa25 |
|
08-Sep-2014 |
Yorke Lee <yorkelee@google.com> |
Replace Calls.FEATURES_NONE with 0 (3/4) Bug: 17253963 Change-Id: I9e9e56cdf4c9a60ac1e047bef0eba2ba0c8f10fb
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
1d69b2f3576af29b1653ccb372142e04e3e158e9 |
|
24-Jul-2014 |
Yorke Lee <yorkelee@google.com> |
Add Calls.TRANSCRIPTION to CallLog (1/2) Dialer needs access to the TRANSCRIPTION column via the CallLog to show voicemail transcriptions inline. Change-Id: Id1807923a07af9e9e34783e6be2e39485eee7795
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
61e064a37eb794230b815f6c75519f3deb775cc6 |
|
20-Jul-2014 |
Evan Charlton <evanc@google.com> |
Rename PhoneAccount to PhoneAccountHandle Change-Id: I2e97b348e6316a8b3ccc39fd81013e7f514a2889
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
2ad39edbd856f3ea1177788aff7e653e593781eb |
|
19-Jul-2014 |
Yorke Lee <yorkelee@google.com> |
Rename voicemail permissions Rename READ_ALL_VOICEMAIL to READ_VOICEMAIL, and MANAGE_VOICEMAIL to WRITE_VOICEMAIL Bug: 16400686 Change-Id: I45d841b886c2bbe230c2f13fddbce41a729b6c61
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
1aacda6f4dc3e865d7f71ee444da0e9f45f81177 |
|
18-Jul-2014 |
Ihab Awad <ihab@google.com> |
Merge "Wire up multi-SIM experience (2/4)" into lmp-dev
|
3b34457a4cc0d2c55676f366ddc673091a198adb |
|
17-Jul-2014 |
Yorke Lee <yorkelee@google.com> |
Sync call log entries from the primary user into the secondary user's call log 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
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
3eae5869e843396d39ba816ed9083dcc2fac5fce |
|
17-Jul-2014 |
Ihab Awad <ihab@google.com> |
Wire up multi-SIM experience (2/4) Change-Id: I13c7e29248c678bf6c533920b4ad562b653cf8f0
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
d372af60001602a8c6cccf6258b514360c69b513 |
|
14-Jul-2014 |
Yorke Lee <yorkelee@google.com> |
Add TRANSCRIPTION column to Calls table Bug: 10928782 Change-Id: I8e0e53e3c746baa64dd868a0e1c57444e2050578
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
76ba31af951669b3bb6da95d83b1ae248589563d |
|
11-Jul-2014 |
Santos Cordon <santoscordon@google.com> |
Implement multi-SIM capabilities (5/6) [DO NOT MERGE] Bug:16292368 Change-Id: I8ca4031b36c821f8b071f9227f90266b066d3501 (cherry picked from commit 66df49ed5dc962cd80dcbbd845a5a83321ceee63)
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
a315de3cb1c62569f7de1f25ec5b4ad425ebdf07 |
|
10-Jul-2014 |
Tyler Gunn <tgunn@google.com> |
Add features and data_usage columns to calls table. Bug: 16015261 Change-Id: I08d28a5af5b52cc8ca2e03e6db82f68807c1f69f
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
2a836304091bf37a466c3a56e3b880222f518063 |
|
09-Jul-2014 |
Yorke Lee <yorkelee@google.com> |
Merge "Add manage voicemail permission (2/4)"
|
b078d625665a07e1349bcf7b3c6eff56400f9917 |
|
02-Jul-2014 |
Ihab Awad <ihab@google.com> |
Fix references to two constants The names of two constants missed getting updated in a previous CL, causing a build breakage. Change-Id: I4853b8647c69bf2b12de43dc8a67fca75822fb14
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
e7c49d796e7e7043b3f2f8e3e7b274b3ba706756 |
|
01-Jul-2014 |
Ihab Awad <ihab@google.com> |
Rename Telecomm "Subscription" to "Account" (5/7) Change-Id: If42f8c76ad0d347a3b387de4fa806148a0a2d780
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
ab2ec1d4316770e2ce8dc47dd1ae71430cd70e36 |
|
25-Jun-2014 |
Yorke Lee <yorkelee@google.com> |
Add manage voicemail permission (2/4) 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
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
6749114ea49788806973a7dea493a5ac52b00a8c |
|
23-Jun-2014 |
Nancy Chen <nancychen@google.com> |
Update database schema for saving of subscription info in call log 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
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
e31bbc395fc04e9c5f841e8e76475d98c8332271 |
|
10-Jun-2013 |
Jay Shrauner <shrauner@google.com> |
Add number presentation column to call log table Add number presentation column to call log table and convert older call logs to use the new column. Bug:6948882 Change-Id: I0e8f781d30600e3bfb08d8b89a1cade531e18c7f
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
143bb522fcfb4a08c7f112876f3fac1cf47cf5ae |
|
02-Aug-2012 |
Chiao Cheng <chiaocheng@google.com> |
Adding limit and offset parameters to calllog provider. Allow client to pass in limit and offset parameters in uri. Bug: 6849968 Change-Id: I535086449bfa76a5d8bc66567070141b76d19503
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
e0c5d80d5634a9c7d431fa4490d7504486b5ce25 |
|
12-Jun-2012 |
Wink Saville <wink@google.com> |
Use telephony-common Change-Id: I7eef631998e8e567f0e67c4e57d70aa5714aa90d
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
9b626252d91e451a822f48cd127aef5d609a6257 |
|
07-Mar-2012 |
Makoto Onuki <omakoto@google.com> |
Don't manually close the database. Don't close and reopen the database in CDH.getWritableDatabase(). The reason we did this was to sqlite reload the sqlite_stat1 table, but according to the document running "ANALYZE sqlite_master" should be suffice. (See http://www.sqlite.org/lang_analyze.html) Also don't close the database helpers after upgrade in ContactsUpgradeReceiver. We don't have to do this. Also, replaced the test-only constructors of the helpers with methods with more explicit name, in order to make sure only the singleton instances are used in the main code. Bug 6104842 Change-Id: I76a7d1b8f7b6462b97f627d722feaa03967cb18f
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
13ed28505ed1af4f0b4a6297c4c6840d91f10c8c |
|
01-Oct-2011 |
Flavio Lerda <flerda@google.com> |
Add new column for cached formatted number. Bug: 5316982 Change-Id: I2870778c8056468730d82794ddae90c74cab85fc
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
7a24e1c1476b57a6268de8d57e5ef4a2d5f46794 |
|
21-Aug-2011 |
Flavio Lerda <flerda@google.com> |
Add a few columns for caching to the call log. These columns store additional information about the contact associated with a call log entry and are needed by the new functionality present in the call log. This change matches the newly defined columns in android.provider.CallLog. Bug: 5101753 Change-Id: Ife45e7034af098bf0e1ca35d05bb389a2c47909a
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
aeaba441ddb05dede8bd86291ca78f42d670d54c |
|
09-Aug-2011 |
Flavio Lerda <flerda@google.com> |
Automatically add a geocoded location to entries in the call log. This change adds a geocoded location value to entries added to the call log. One limitation is that this is unaware of changes to the locale. We needed to decide whether this is fine or if we should update the stored geocode on locale changes. Bug: 5129581 Change-Id: I2ad1b3fbd24491df2febf3e1fd615c16dd74398f
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
0b442c4154c77f39aeb84216f433e5bd11cbf79e |
|
04-Aug-2011 |
Debashish Chatterjee <debashishc@google.com> |
Fixed broken VoicemailContentProviderTest. The tests were broken in two areas following recent changes - permission READ_WRITE_OWN_VOICEMAIL was renamed to ADD_VOICEMAIL in the production code, but was not renamed in test. - Two new synthetic fields DISPLAY_NAME and SIZE were added in the production code but the expected num fields were not updated in the tests. Change-Id: I96c1997af8dadb5a95d7224b0364cf48e6244977
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
929a04e2830e30718930d96335dfb0a729b6ab91 |
|
23-Jul-2011 |
Debashish Chatterjee <debashishc@google.com> |
Improvements in voicemail broadcast notifications. This change fixes two primary issues: 1) If a voicemail record is modified through call log provider, a voicemail provider notification is now generated. 2) voicemail notifications are now sent with permission ALL if the receiving component packages is not the owner of the modified record. This ensures that a voicemail source (having OWN permission) gets notified only of changes for records that it owns. But a package that has ALL permissions get notified of everything, A new interface DatabaseModifier is now used by both voicemail as well as calllog provider to perform any operations that can modify the underlying table. DbModifierWithVmNotification implementation of this interface fires relevant notifications under the hoods. All logic related to sending notifications is now moved from VoicemailContentProvider to this new class. bulkInsert has no special treatment anymore. We now fall back to the framework's default implementation. It was complicated to optimize for provider_changed events for bulk insert when using the DatabaseModifier interface. TODO: I am yet to write unit tests for broadcast intents. I have done manual testing to make sure that they work. Also the existing unit tests pass, proving that none of the existing content provider operations are broken by using the DatabaseModifier wrapper. Bug: 5060354 Bug: 4974222 Change-Id: I0935105f146a71abeffbde634d79f8806b8e0ed2
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
b2197b235e3d96e7f70c24d548b7dac52dab88d8 |
|
21-Jul-2011 |
Flavio Lerda <flerda@google.com> |
Implement IS_READ column in content providers. Add support for the IS_READ column in the call log and voicemail content providers. This columns will be used to store whether a call log entry (currently only voicemail) has been read or otherwise consumed by the user. Bug: 5036195 Change-Id: I06840f9820f7d568a738c0307f4294c2b8c66031
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
92d97071e56110e0df7f25e6ebc92ff4ebf74a88 |
|
29-Jun-2011 |
Flavio Lerda <flerda@google.com> |
Use shared constants for call log with voicemails. Use the shared constants for accessing voicemails in the call log. Remove the local copies in the content provider. Change-Id: I1c026ab604201b73e4f6a057a8b725479c72c796
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
aafbe295d67686870c64c74a59e589d1dfb506fa |
|
20-Jun-2011 |
Debashish Chatterjee <debashishc@google.com> |
Introduced query param 'include_voicemails' for call_log uri. - 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
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
00e7c94b70f4b477653534dbe559d1759d796157 |
|
16-Jun-2011 |
Debashish Chatterjee <debashishc@google.com> |
Added checks in voicemail provider to not expose call_log fields. - 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
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
59f6477e10203617f504857f7e9aee2fda393f4f |
|
07-Jun-2011 |
Debashish Chatterjee <debashishc@google.com> |
Introduced new voicemail fields in 'calls' table. The 'calls' table is going to be shared between the existing call_log provider, and to be added voicemail provider. This change adds all the columns needed to support voicemail in the 'calls' table. The call_log provider, however, uses only one additional field 'voicemail_uri', whereas all other new fields will exclusively be used the new voicemail provider. The change also ensures that the voicemail provider specific fields are not exposed through the call_log provider. Change-Id: Ieea4b14052b7e7e9db0e674138772b4e06b3f074
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
2530512f639c4979fd7371c7dd25dd67e8118124 |
|
26-Aug-2010 |
Bai Tao <michaelbai@google.com> |
Store the current country code in call log 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
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
038a60f1920d798bc391a376e81980921a75cc34 |
|
11-Dec-2009 |
Fred Quintana <fredq@google.com> |
moved the hidden sync helpers out of the framework removed the old ContactsProvider
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
8920a04b4a68ed6b548bcdef5ca8736dcf8b69b1 |
|
29-Sep-2009 |
Omari Stephens <xsdg@android.com> |
Update test documentation and suite classifications.
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
b38ed2c5ffeb20efc677b4a9229db4a00603aa8d |
|
29-Sep-2009 |
Dmitri Plotnikov <dplotnikov@google.com> |
Renaming OpenHelper to ContactsDatabaseHelper Change-Id: Iccdf1ebcd8a3ab430941c957f712bb9e7dd2706c
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
790d120a13119275ab811fa1d57f5c4d0e5042e8 |
|
10-Sep-2009 |
Dmitri Plotnikov <dplotnikov@google.com> |
Clearing out references to deprecated API
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
3d8b043c3341a5b6c2e781b7eba9767d5cd13267 |
|
05-Aug-2009 |
Dmitri Plotnikov <dplotnikov@google.com> |
Contact conversion script, initial cut
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|
e99988b266dd1263162583e81e2b408e7329b1c8 |
|
29-Jul-2009 |
Dmitri Plotnikov <dplotnikov@google.com> |
Extracting call log implementation out of the legacy contacts provider.
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/CallLogProviderTest.java
|