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
Dialer: Update Icons to KitKat

* I'm not sure if this was an oversight or if it was intentional but the dialer icons are not the same in 4.4 AOSP as they are in 4.4 Nexus Images.  This patch should correct that issue. If these icons are ONLY for Nexus devices please ignore this patch and accept my sincerest apologizes.

Change-Id: I903947776444b9757aae44942a45f00efb9a43b4
Signed-off-by: Chester Kener <Cl3Kener@gmail.com>

Conflicts:
	res/mipmap-xxxhdpi/ic_launcher_phone.png
Merge tag 'android-4.4.1_r1' into kk-4.4

Android 4.4.1 Release 1
Import translations. DO NOT MERGE

Change-Id: Ibf5cabd4967cd296e8e93c2d1ee1853599fff0bf
Auto-generated-cl: translation import
Import translations. DO NOT MERGE

Change-Id: Ia9424a0fbe8f6c04d15dfb60981eda2fb3abda00
Auto-generated-cl: translation import
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)
Protect against class cast exception

Protect against class cast exception.

Bug:12228894
Change-Id: Ifae04d6354812e296890cfe0c4c5f2fff73c4c2a
(cherry picked from commit f2429f2f4fb0629752e8d719ad855f97263d2216)
Fix NPE in deleted contact removal

Fix NPE in deleted contact removal.

Bug:12475233
Change-Id: I7f7a2c78e62e838728868063b0f76e6bffba2130
(cherry picked from commit 070d7d0fae86d7498a25ccefdc78ac0d81c19d8e)
Fix synchronization in onNotNullableQueryComplete

Synchronize onNotNullableQueryComplete to protect mCallLogCursor
and mCallsRequestId.

Bug:12591404
Change-Id: Ib1de73d2da0f14875a98b25113a132681da0beaa
(cherry picked from commit 964222de32bfb2ca0ff06b445bcb25c0bb936d2f)
Merge "Fix crash when number is null" into klp-dev
Merge "Fix ANR in UndemoteOutgoingCallReceiver" into klp-dev