Loading telecomm/java/android/telecom/TelecomManager.java +16 −0 Original line number Original line Diff line number Diff line Loading @@ -1905,6 +1905,22 @@ public class TelecomManager { return false; return false; } } /** * Handles {@link Intent#ACTION_CALL} intents trampolined from UserCallActivity. * @param intent The {@link Intent#ACTION_CALL} intent to handle. * @hide */ public void handleCallIntent(Intent intent) { try { if (isServiceConnected()) { getTelecomService().handleCallIntent(intent); } } catch (RemoteException e) { Log.e(TAG, "RemoteException handleCallIntent: " + e); } } private ITelecomService getTelecomService() { private ITelecomService getTelecomService() { if (mTelecomServiceOverride != null) { if (mTelecomServiceOverride != null) { return mTelecomServiceOverride; return mTelecomServiceOverride; Loading telecomm/java/com/android/internal/telecom/ITelecomService.aidl +5 −0 Original line number Original line Diff line number Diff line Loading @@ -284,4 +284,9 @@ interface ITelecomService { * @see TelecomServiceImpl#isInEmergencyCall * @see TelecomServiceImpl#isInEmergencyCall */ */ boolean isInEmergencyCall(); boolean isInEmergencyCall(); /** * @see TelecomServiceImpl#handleCallIntent */ void handleCallIntent(in Intent intent); } } Loading
telecomm/java/android/telecom/TelecomManager.java +16 −0 Original line number Original line Diff line number Diff line Loading @@ -1905,6 +1905,22 @@ public class TelecomManager { return false; return false; } } /** * Handles {@link Intent#ACTION_CALL} intents trampolined from UserCallActivity. * @param intent The {@link Intent#ACTION_CALL} intent to handle. * @hide */ public void handleCallIntent(Intent intent) { try { if (isServiceConnected()) { getTelecomService().handleCallIntent(intent); } } catch (RemoteException e) { Log.e(TAG, "RemoteException handleCallIntent: " + e); } } private ITelecomService getTelecomService() { private ITelecomService getTelecomService() { if (mTelecomServiceOverride != null) { if (mTelecomServiceOverride != null) { return mTelecomServiceOverride; return mTelecomServiceOverride; Loading
telecomm/java/com/android/internal/telecom/ITelecomService.aidl +5 −0 Original line number Original line Diff line number Diff line Loading @@ -284,4 +284,9 @@ interface ITelecomService { * @see TelecomServiceImpl#isInEmergencyCall * @see TelecomServiceImpl#isInEmergencyCall */ */ boolean isInEmergencyCall(); boolean isInEmergencyCall(); /** * @see TelecomServiceImpl#handleCallIntent */ void handleCallIntent(in Intent intent); } }