Telephony: fix possible null phone crashes
CallTracker: Add back-off and retry toggle to getCurrentCalls

Add a build.prop variable to handle cases where the modem
reacts slowly and does not update CURRENT_CALLS to include calls which
are dialing. A delay is introduced to avoid spamming the modem and then
GetCurrentCalls is called again in order to avoid the calltracker from
marking the call as ended when it is still active.

Tested and LS970 and E970 (Sprint and ATT LG Optimus G).

Change-Id: I7d3aac00b811bceb2909adf239492962a737de4a
CallTracker: Add delay to reduce cpu load

A delay is introduced to avoid rapid repeated polling which leads to
high cpu usage and spamming of the modem and logcat.

Change-Id: I6eb12babb723b5f5164ef43493c971f607746484
Revert "CallTracker: Add delay to reduce cpu load"

This reverts commit 2e48706291895328d8f2c523b8b231134cc84059.
PhoneProxy: when using v6 or greater ril make sure current phone type isnt GSM

This fixes an issue with CDMA + LTE devices that are able to utilize
GSM netowrks. When using v6 or greater ril and connected to a GSM network
it routes you through the CDMA stack. This causes all sorts of issues.
Fix by making sure that phone type isnt GSM.

a revert of
f0ddc6a7318b74608c58beca61901820ea7d9a7d
97cabb4543823fd989f4aa371fca41b1aeb07278
a34c63e1842f018f7d318ba7887ec2500c07658c

Change-Id: I4c9fc73e18ebee0df43e69ac982b61904d11333b

Conflicts:
	src/java/com/android/internal/telephony/PhoneProxy.java
CallTracker: Add additional check for pendingMO to verify that a dial is
happening and we are expecting a call to appear when repeated polling of
GET_CURRENT_CALLS.

Change-Id: Id719ed79e47462d898299e1468f0a1b9e00b43f8
SamsungExynos4RIL: cleanup for use with opensource libril

* only emergency dialing needs hacks

Change-Id: Ib573d65fd4fb3201bdbe0960838d15f88645a8ec