Loading telephony/java/android/telephony/TelephonyManager.java +4 −14 Original line number Diff line number Diff line Loading @@ -86,7 +86,6 @@ import android.util.Pair; import com.android.ims.internal.IImsServiceFeatureCallback; import com.android.internal.annotations.VisibleForTesting; import com.android.internal.telecom.ITelecomService; import com.android.internal.telephony.CellNetworkScanResult; import com.android.internal.telephony.INumberVerificationCallback; import com.android.internal.telephony.IOns; Loading Loading @@ -5176,13 +5175,11 @@ public class TelephonyManager { * @return the current call state. */ public @CallState int getCallState() { try { ITelecomService telecom = getTelecomService(); if (telecom != null) { return telecom.getCallState(); if (mContext != null) { TelecomManager telecomManager = mContext.getSystemService(TelecomManager.class); if (telecomManager != null) { return telecomManager.getCallState(); } } catch (RemoteException e) { Log.e(TAG, "Error calling ITelecomService#getCallState", e); } return CALL_STATE_IDLE; } Loading Loading @@ -5341,13 +5338,6 @@ public class TelephonyManager { return ITelephony.Stub.asInterface(ServiceManager.getService(Context.TELEPHONY_SERVICE)); } /** * @hide */ private ITelecomService getTelecomService() { return ITelecomService.Stub.asInterface(ServiceManager.getService(TELECOM_SERVICE)); } private ITelephonyRegistry getTelephonyRegistry() { return ITelephonyRegistry.Stub.asInterface(ServiceManager.getService("telephony.registry")); } Loading Loading
telephony/java/android/telephony/TelephonyManager.java +4 −14 Original line number Diff line number Diff line Loading @@ -86,7 +86,6 @@ import android.util.Pair; import com.android.ims.internal.IImsServiceFeatureCallback; import com.android.internal.annotations.VisibleForTesting; import com.android.internal.telecom.ITelecomService; import com.android.internal.telephony.CellNetworkScanResult; import com.android.internal.telephony.INumberVerificationCallback; import com.android.internal.telephony.IOns; Loading Loading @@ -5176,13 +5175,11 @@ public class TelephonyManager { * @return the current call state. */ public @CallState int getCallState() { try { ITelecomService telecom = getTelecomService(); if (telecom != null) { return telecom.getCallState(); if (mContext != null) { TelecomManager telecomManager = mContext.getSystemService(TelecomManager.class); if (telecomManager != null) { return telecomManager.getCallState(); } } catch (RemoteException e) { Log.e(TAG, "Error calling ITelecomService#getCallState", e); } return CALL_STATE_IDLE; } Loading Loading @@ -5341,13 +5338,6 @@ public class TelephonyManager { return ITelephony.Stub.asInterface(ServiceManager.getService(Context.TELEPHONY_SERVICE)); } /** * @hide */ private ITelecomService getTelecomService() { return ITelecomService.Stub.asInterface(ServiceManager.getService(TELECOM_SERVICE)); } private ITelephonyRegistry getTelephonyRegistry() { return ITelephonyRegistry.Stub.asInterface(ServiceManager.getService("telephony.registry")); } Loading