Fix possible NPE in DialerDatabaseHelper

In certain cases (third party contact backup solutions?) it is possible
for raw contacts to end up with null display names, which the Dialer
was crashing on. This fix performs a null check and inserts the default
(No name) contact name if we find that the display name is null.

Bug: 11750613
Change-Id: Ifbaf2861534e6eaf8a86d50d584d11a9fa38b65f
am 1ae0cf68: Fix possible NPE in DialerDatabaseHelper

* commit '1ae0cf68723dfaf05f387f2759b4f59e6271ba6c':
  Fix possible NPE in DialerDatabaseHelper
am 8b7de609: am 1ae0cf68: Fix possible NPE in DialerDatabaseHelper

* commit '8b7de609514b93ae196fb893bb9cd7daf0202a10':
  Fix possible NPE in DialerDatabaseHelper
Import translations. DO NOT MERGE

Change-Id: Ibf5cabd4967cd296e8e93c2d1ee1853599fff0bf
Auto-generated-cl: translation import
am 0291f565: (-s ours) Import translations. DO NOT MERGE

* commit '0291f565ef0fcc21c49de5bce23dd603626e0233':
  Import translations. DO NOT MERGE
am 96b98fd4: (-s ours) am 0291f565: (-s ours) Import translations. DO NOT MERGE

* commit '96b98fd44144bcd6defc49dbf286f513a5fd36f8':
  Import translations. DO NOT MERGE
am dc372cc7: Merge "Add a content observer for voicemail to the call log fragment"

* commit 'dc372cc7464e7869e6ca0caed6a81bd53e43a6e1':
  Add a content observer for voicemail to the call log fragment
Import translations. DO NOT MERGE

Change-Id: Ia9424a0fbe8f6c04d15dfb60981eda2fb3abda00
Auto-generated-cl: translation import
am b0b153f5: (-s ours) Import translations. DO NOT MERGE

* commit 'b0b153f5fe5833d1a3b102e93e6e27481a90e4f7':
  Import translations. DO NOT MERGE
am 1ffa6b17: (-s ours) am b0b153f5: (-s ours) Import translations. DO NOT MERGE

* commit '1ffa6b17ece33ba00d32344f850f0488caaf250f':
  Import translations. DO NOT MERGE
Temporarily stop UI refresh during drag and drop

If the user is in the middle of a drag and drop operation, temporarily
stop UI refreshes when a new cursor is delivered, to prevent UI
inconsistencies.

This CL only fixes the dragging/dropping case. Swiping is still buggy
(the fix is more complicated/risky), and swiping might be removed
altogether in the future.

Bug: 11119329
Change-Id: I2939c915d4eb5d8f9de19a369b21c6c98806ba94
(cherry picked from commit 670fd3f59160bdb81f38b6be2f176ba233915686)
Fix crash when number is null

Fix crash in various routines when the number is null.

Bug:11766758
Change-Id: I3bcedbd8ada663a8c47528f32e213f653195fe57
(cherry picked from commit 21d991ee8bab6e2ef7d9df0b268b39053b21cf5b)
Fix ANR in UndemoteOutgoingCallReceiver

Querying the contacts provider for the contact id should happen
in a new thread as well.

Bug: 11773499
Change-Id: I715e7e9b4a650efbd708d4ad3793dad742b74a14
(cherry picked from commit ab9ae646ad4926b69dc02502861e8919b2cdb711)
Fix NPE in DialerDatabaseHelper for null phone numbers

Bug: 12006585
Change-Id: Iaed732806cbb8fb0301596162102e81ab8ec6024
(cherry picked from commit 1ef2b4a896e301b9e81aee073e58e35216128b2e)
Catch ActivityNotFoundException in CallDetailActivity

Bug: 12015287
Change-Id: I23b167e22d0da7f9be98b49e120b5b8ac1700e9a
(cherry picked from commit 7d67c9b12eb80f707e1f3578104b3dbf0a75c88a)
Hide voice search button if intent cannot be handled

If the Google Search app is disabled (this only seems to be possible
on Nexus 4), the Dialer crashes if the voice search button is pressed.
This CL hides/shows the voice search button every time the dialer
is launched/resumed after checking to see if there exists an activity
that can handle the ACTION_RECOGNIZE_SPEECH intent.

A string to indicate that voice search is unavailable is also added
just in case the user ends up in a weird state where the button is
showing but clicking on it would throw an ActivityNotFoundException.

Bug: 12015318
Change-Id: Idd7ec2da422425dd95ae0060ebc9b85a2cf35fb0
(cherry picked from commit da0f9046b2457c8adc0b97896d7ea1e880eccf96)
Always call through to super.onBackPressed in DialtactsActivity

moveTaskToBack is causing crashes in the Dialer when the back button is pressed.
This was legacy code that was unchanged in the new dialer. We should probably
just call through to super.onBackPressed regardless of whether or not the task
was at the top of the stack, to behave the same (navigation wise) as other apps.

Bug: 12015851
Change-Id: Ic0c3efb30b3874ad892b96a9fadd524313cfb782
(cherry picked from commit edf798aaf0eec1e94e1dc889f929a68c9c89922f)
Add null check in CallLogNotificationsService

Bug: 12015853
Change-Id: Ia2394f1ee0f102de4eab3f5468fd6204727b607d
(cherry picked from commit 1d66af17ae04e2c17746d7c402888ce98cda4b12)
Fix potential NPE in saveHorizontalOffsets

Fix potential NPE in saveHorizontalOffsets.

Bug:12031506
Change-Id: I713fed5995356bdaaf93186454dcc53b92cb75ec
(cherry picked from commit d0aa0f6fa23a345cbd117d3aa89e1dc95f857050)
Add null check for cursor in UndemoteOutgoingCallReceiver

Bug: 12179558
Change-Id: I2a991b981a76afdec0282936f63732c43652baea
(cherry picked from commit 3fee3e5a6ac02e4ddc536e4739d336341d22e19a)