Fix CST test failure on non-telephony device and a couple of exceptions

The fixes include:
(1) CTS should not test telephony specific APIs on devices without telephony
    module
(2) fix java.lang.NullPointerException in android.telephony.PhoneStateListener
(3) fix java.lang.SecurityException: ConnectivityService: Neither user 10092 nor
    current process has android.permission.ACCESS_NETWORK_STATE
(4) fix java.lang.SecurityException: WifiService: Neither user 10092 nor current
    process has android.permission.ACCESS_WIFI_STATE
(5) fix java.lang.SecurityException: WifiService: Neither user 10087 nor current
    process has android.permission.CHANGE_WIFI_STATE

Bug:17508788, 17756243, 17446939
Change-Id: I51b45e613f9c21259d0d5f2349f3f0b8f2e0fa14
4 files changed