Loading src/com/android/server/telecom/Call.java +19 −0 Original line number Diff line number Diff line Loading @@ -3218,4 +3218,23 @@ public class Call implements CreateConnectionResponse, EventManager.Loggable, mCallsManager.setAudioRoute(CallAudioState.ROUTE_SPEAKER, null); } } /** * Remaps the call direction as indicated by an {@link android.telecom.Call.Details} direction * constant to the constants (e.g. {@link #CALL_DIRECTION_INCOMING}) used in this call class. * @param direction The android.telecom.Call direction. * @return The direction using the constants in this class. */ public static int getRemappedCallDirection( @android.telecom.Call.Details.CallDirection int direction) { switch(direction) { case android.telecom.Call.Details.DIRECTION_INCOMING: return CALL_DIRECTION_INCOMING; case android.telecom.Call.Details.DIRECTION_OUTGOING: return CALL_DIRECTION_OUTGOING; case android.telecom.Call.Details.DIRECTION_UNKNOWN: return CALL_DIRECTION_UNDEFINED; } return CALL_DIRECTION_UNDEFINED; } } src/com/android/server/telecom/CallsManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -3528,7 +3528,7 @@ public class CallsManager extends Call.ListenerBase null /* gatewayInfo */, null /* connectionManagerPhoneAccount */, connection.getPhoneAccount(), /* targetPhoneAccountHandle */ Call.CALL_DIRECTION_UNDEFINED /* callDirection */, Call.getRemappedCallDirection(connection.getCallDirection()) /* callDirection */, false /* forceAttachToExistingConnection */, isDowngradedConference /* isConference */, connection.getConnectTimeMillis() /* connectTimeMillis */, Loading Loading
src/com/android/server/telecom/Call.java +19 −0 Original line number Diff line number Diff line Loading @@ -3218,4 +3218,23 @@ public class Call implements CreateConnectionResponse, EventManager.Loggable, mCallsManager.setAudioRoute(CallAudioState.ROUTE_SPEAKER, null); } } /** * Remaps the call direction as indicated by an {@link android.telecom.Call.Details} direction * constant to the constants (e.g. {@link #CALL_DIRECTION_INCOMING}) used in this call class. * @param direction The android.telecom.Call direction. * @return The direction using the constants in this class. */ public static int getRemappedCallDirection( @android.telecom.Call.Details.CallDirection int direction) { switch(direction) { case android.telecom.Call.Details.DIRECTION_INCOMING: return CALL_DIRECTION_INCOMING; case android.telecom.Call.Details.DIRECTION_OUTGOING: return CALL_DIRECTION_OUTGOING; case android.telecom.Call.Details.DIRECTION_UNKNOWN: return CALL_DIRECTION_UNDEFINED; } return CALL_DIRECTION_UNDEFINED; } }
src/com/android/server/telecom/CallsManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -3528,7 +3528,7 @@ public class CallsManager extends Call.ListenerBase null /* gatewayInfo */, null /* connectionManagerPhoneAccount */, connection.getPhoneAccount(), /* targetPhoneAccountHandle */ Call.CALL_DIRECTION_UNDEFINED /* callDirection */, Call.getRemappedCallDirection(connection.getCallDirection()) /* callDirection */, false /* forceAttachToExistingConnection */, isDowngradedConference /* isConference */, connection.getConnectTimeMillis() /* connectTimeMillis */, Loading