summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add a few columns for caching to the call log.Flavio Lerda2011-08-263-2/+24
| | | | | | | | | | | | 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
* Merge "Fixes convertion to HTML of status updates."Flavio Lerda2011-08-251-1/+1
|\
| * Fixes convertion to HTML of status updates.Flavio Lerda2011-08-251-1/+1
| | | | | | | | | | | | | | | | | | The code was stripping one extract character. This is only a problem whem something is appending after it, as in the case of the Updates header. Bug: 5212740 Change-Id: I5b82168d83ee41a20256118003bb3d1bce182990
* | Merge "Group rows with a same phone number and a contact id."Daisuke Miyakawa2011-08-252-0/+27
|\ \
| * | Group rows with a same phone number and a contact id.Daisuke Miyakawa2011-08-252-0/+27
| |/ | | | | | | | | Bug: 5201809 Change-Id: Ie21abb12736715358dd33bc690269f51ae1e0944
* | Fix ambiguity for Contacts._ID and RawContacts._ID in Stream ItemsDaniel Lehmann2011-08-252-15/+47
|/ | | | | | Bug:5134325 Change-Id: Id5159a24c9a2aee58e566b9bc03719e7a6ee0f7c
* Merge "Remove the java-synchronization and completely rely on DB transactions"Daniel Lehmann2011-08-222-8/+9
|\
| * Remove the java-synchronization and completely rely on DB transactionsDaniel Lehmann2011-08-222-8/+9
| | | | | | | | | | Bug:5134056 Change-Id: Ied50a93fbcd1121ca978cbb8fdcd8556020cb28f
* | Add boot message when upgrading database.Dianne Hackborn2011-08-222-3/+15
| | | | | | | | Change-Id: I3f17aed690066ed4d2ab645a059c66a1bdd7a1f1
* | Merge "Import revised translations."Eric Fischer2011-08-2228-62/+38
|\ \
| * | Import revised translations.Eric Fischer2011-08-2228-62/+38
| |/ | | | | | | Change-Id: I102634d828b289fa20485ad363fe5223ae9c7840
* | Remove extra new line from status updates.Flavio Lerda2011-08-212-6/+13
|/ | | | | | | | | | | | When status updates are added to the stream items, they need to be converted to HTML. In the process, an extra new line was added at the end of each of them. This commit removed this trailing new line, so that the updates are shown correctly in the UI. Bug: 5193689 Change-Id: I223070eeb1439a8ffacbfb61d6e86355b14c68db
* Merge "Use phone number for grouping when normalized number is null"Daisuke Miyakawa2011-08-173-2/+35
|\
| * Use phone number for grouping when normalized number is nullDaisuke Miyakawa2011-08-163-2/+35
| | | | | | | | | | | | | | | | | | | | NORMALIZED_NUMBER may become null when the number isn't able to be parsed by the library (e.g. pager address). Current implementation groups multiple numbers with null normalized values into one result, which confuses users. Bug: 5040732 Change-Id: I1ad7dfb72dbc5d239aa95a913d35c2d8dfe3167c
* | Stop using a cached value for auto_add triggerDaisuke Miyakawa2011-08-171-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Trigger must not use the value cached when it is created. TESTED: - upgrade a phone device from GB to ICS and see default_directory works fine - remove Contacts database, sync with Google account in ICS, and see all default contacts are shown (bug 5174433) - do factory reset, set up the device with a Google account, and see all default contacts are shown Bug: 5174433 Change-Id: If554b7eba4acfcf7a79309b998ec05e8557da397
* | Introduce trigger for AUTO_ADD updateDaisuke Miyakawa2011-08-151-37/+87
|/ | | | | | | | | | | | | | | AUTO_ADD can be changed after database upgrade. Also stop using constants in the relevant upgrade code. The code should use the exact value at that moment, not the latest values each constant points to in the latest code base. TESTED: - GB to ICS migration path with phone device - HC to ICS migration path with tablet device Bug: 5153692 Change-Id: I9460a9da42cc3685328f8063c81c72c5f6aec268
* Merge "Fix provider empty state status"Isaac Katzenelson2011-08-151-4/+37
|\
| * Fix provider empty state statusIsaac Katzenelson2011-08-151-4/+37
| | | | | | | | | | | | | | | | | | | | | | Bug: 5074806 The provider was setting the empty state (no account and no contacts) when the account count was zero and the contacts count was zero. This is no longer true when you have a profile, so a check was added to set the status to empty if there is one contact and it is a profile Change-Id: I9771dc99af1573e5c0ff2ac62ed5e5ca433fd738
* | Merge "Renaming com.google.i18n.phonenumbers to ↵Daniel Lehmann2011-08-151-4/+4
|\ \ | | | | | | | | | com.android.i18n.phonenumbers to avoid name collision."
| * | Renaming com.google.i18n.phonenumbers to com.android.i18n.phonenumbersShaopeng Jia2011-08-121-4/+4
| | | | | | | | | | | | | | | | | | | | | to avoid name collision. Bug: 5157607 Change-Id: If7db52ae5eba1696d20e9897860d757021477002
* | | Merge "Import revised translations."Eric Fischer2011-08-1546-145/+126
|\ \ \ | |_|/ |/| |
| * | Import revised translations.Eric Fischer2011-08-1246-145/+126
| |/ | | | | | | Change-Id: I0de64ae1b715cb2b374f08e23fbf70558c714897
* | Several DB changes as requested by ESDaniel Lehmann2011-08-146-102/+221
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Switch from resource ids to names to prevent breakage on package upgrade Bug:5135277 - Add SYNC1...SYNC4 columns to StreamItems and StreamItemPhotos Bug:5119385 - Remove ACTION, ACTION_URI from Groups, StreamItems and StreamItemPhotos (this reduces db size and prevents click intercepting) Bug:5135808 - Add some raw-contact fields to the StreamItem and StreamItemPhotos query Bug:5134081 Doing those changes in one block to prevent too many db upgrade steps Bug:5135277 Change-Id: I1d1661c9a507d9efd4ef334fe21481097e820b7c
* | Merge "Fix openAssetFile method of inserting photos."Dave Santoro2011-08-123-39/+67
|\ \
| * | Fix openAssetFile method of inserting photos.Dave Santoro2011-08-123-39/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For reference, the issue was occurring because the file descriptor passed back to the caller is parceled immediately, which closes the file descriptor on the provider side before it even gets to the caller. The solution was to stop fiddling around with temp files and just pass back a pipe instead - the provider then can simply read the image content from the pipe and process it. Bug 5156644 Change-Id: Ie210f65b5b8681524fed12a53df0c852fc951e5a
* | | Fix crash in GoogleVoice when getting contact infoIsaac Katzenelson2011-08-121-0/+1
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 5155743 Google voice is in crash loop (stack goes through Contacts) GoogleVoice is queries for contact data using the PHONE_LOOKUP query. If the phone number is part of the user's profile, the returned contact is the profile and further queries (to get the contact's photo) fail the security check and an exception is thrown. The fix restrict the PHONE_LOOKUP query to non-profile contacts. This is a temporary fix until dave's major change for profile handling is submitted. Change-Id: I65e42156f1fab5e5cded77f288e3ef69c3f6ecac
* | Merge "Convert status updates to HTML."Flavio Lerda2011-08-122-4/+29
|\ \ | |/ |/|
| * Convert status updates to HTML.Flavio Lerda2011-08-102-4/+29
| | | | | | | | | | | | | | | | | | Since stream items text is HTML but status updates are text only, convert the text to HTML when inserting a status update into the stream items. Bug: 5122642 Change-Id: I61e3d9802e527c6977e7d29660ffd137ae899dae
* | Voicemail provider: Don't automatically set HAS_CONTENT field.Debashish Chatterjee2011-08-111-8/+1
| | | | | | | | | | | | | | | | | | | | | | It is best to let the content owner set this field when it is finished writing the content into the file. Another change will modify the voicemailproviderdemo app to set this field in the app. Bug: 5147190 Change-Id: I93e4b467acdefe339fa70dd751ea05f195c32e71
* | Notify callog uri if a change is made through voicemail provider.Debashish Chatterjee2011-08-104-39/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DbModifierWithVmNotification till now only notified to voicemail uri content observers for change made through call log provider. We need the otherway round as well so that any change made to a voicemail entry through the voicemail provider should be notified to listeners of calllog uri. This is needed to make call log auto refresh work when a new voicemail is inserted. DbModifierWithVmNotification is now renamed to DbModifierWithNotification and suports both ways notification. Notifications generated by call log provider as well is now routed through this class. Bug: 5055868 Change-Id: I2de8c9867445bcb86ce94a8600acc726266c8008
* | Merge "Automatically add a geocoded location to entries in the call log."Flavio Lerda2011-08-0910-24/+190
|\ \
| * | Automatically add a geocoded location to entries in the call log.Flavio Lerda2011-08-1010-24/+190
| |/ | | | | | | | | | | | | | | | | | | | | | | 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
* | Exclude profile from email filterDaisuke Miyakawa2011-08-091-0/+2
|/ | | | | Bug: 5131203 Change-Id: I735fc33d00c5d7dde67e3b759365cb8812f69b20
* Merge "Import revised translations."Eric Fischer2011-08-0846-54/+110
|\
| * Import revised translations.Eric Fischer2011-08-0546-54/+110
| | | | | | | | Change-Id: I446f6a97b663db69db9ec1aa41f7ee472103f370
* | Modified VoicemailContentProvider to set Calls.NEWDebashish Chatterjee2011-08-081-0/+4
| | | | | | | | | | | | | | | | | | | | Calls.NEW is now an internal field for the voicemail interface and so the content provider must set it to '1' for new voicemail insertions. Contacts app now depends on this field to show notifications. Bug: 5055868 Change-Id: Ic76501fa3a4361f1fce278247295d0bbe2f1f4c8
* | The provider now contains the label for the acore process.Dianne Hackborn2011-08-0547-1/+50
|/ | | | Change-Id: I8503aad9a7c283f661a2781e147033cfeb57c2bb
* Merge "Allow read-only sharing of Uri in voicemail content provider."Debashish Chatterjee2011-08-053-6/+156
|\
| * Allow read-only sharing of Uri in voicemail content provider.Debashish Chatterjee2011-08-043-6/+156
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since we perform our own permission check, uri permission check done by the content resolver is not sufficient. Our implementation of the content provider should also explicitly check for uri level permission. This is needed to allow sharing of voicemail uri from the contacts app. In a follow up change we will allow sharing of URIs only to those apps that has ALL permission. Right now the provider definition does not allow sharing of uri. Bug: 4961053 Change-Id: I5af53ee76ea10fa5f45c8cdcb95c773cc7ad138e
* | Add support for updating profile raw contacts.Dave Santoro2011-08-042-0/+23
| | | | | | | | | | | | Bug 5122027 Change-Id: I4c0c4dc3b8b9eedbca347929fe16893aa1630005
* | Merge "Fix data set handling for groups."Dave Santoro2011-08-041-13/+17
|\ \ | |/ |/|
| * Fix data set handling for groups.Dave Santoro2011-08-041-13/+17
| | | | | | | | | | | | Bug 5121818 Change-Id: I5bd0c6b0678aed2b708057774d7041b822bf3ed9
* | Merge "Fixed a strict mode violation in voicemail/calllog provider."Debashish Chatterjee2011-08-041-0/+2
|\ \
| * | Fixed a strict mode violation in voicemail/calllog provider.Debashish Chatterjee2011-08-041-0/+2
| | | | | | | | | | | | | | | | | | | | | DbModifiervmNotification did not close the Cursor after making the query to determine affected packages. Change-Id: I2b8723a8b903117b28e8c905f68b3cfc039afc79
* | | Merge "Fixed broken VoicemailContentProviderTest."Debashish Chatterjee2011-08-043-17/+17
|\ \ \
| * | | Fixed broken VoicemailContentProviderTest.Debashish Chatterjee2011-08-043-17/+17
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Don't crash deleting a voiceamil with no file.Hugo Hudson2011-08-041-1/+6
|/ / | | | | | | | | | | | | | | - The file constructor wasn't happy with null. - Instead log a warning and carry on. Bug: 5120418 Change-Id: I6d83c34dbea828b560674c065b45a1eb04b07ee6
* | Merge "Renamed permission READ_WRITE_OWN_VOICEMAIL to ADD_VOICEMAIL"Debashish Chatterjee2011-08-044-10/+10
|\ \ | |/ |/|
| * Renamed permission READ_WRITE_OWN_VOICEMAIL to ADD_VOICEMAILDebashish Chatterjee2011-08-034-10/+10
| | | | | | | | | | | | | | | | | | The framework changes to add new permission ADD_VOICEMAIL went in change-Id: I515e7967bdb0e8498a60a32983f9122ce10dcc4a. And the contacts app to start using the new permission went in change-id: I188a109b69228e58a2c9b1d9a234a270df60555a Bug: 5098551
* | Merge "Fix photo-related tests for Proguard builds."Dave Santoro2011-08-031-0/+1
|\ \ | |/ |/|