Loading api/system-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -33055,6 +33055,7 @@ package android.telecom { public class TelecomManager { method public void acceptRingingCall(); method public void acceptRingingCall(int); method public void addNewIncomingCall(android.telecom.PhoneAccountHandle, android.os.Bundle); method public void addNewUnknownCall(android.telecom.PhoneAccountHandle, android.os.Bundle); method public void cancelMissedCallsNotification(); telecomm/java/android/telecom/TelecomManager.java +21 −1 Original line number Diff line number Diff line Loading @@ -1051,7 +1051,9 @@ public class TelecomManager { * If there is a ringing incoming call, this method accepts the call on behalf of the user. * TODO: L-release - need to convert all invocation of ITelecmmService#answerRingingCall to use * this method (clockwork & gearhead). * * If the incoming call is a video call, the call will be answered with the same video state as * the incoming call requests. This means, for example, that an incoming call requesting * {@link VideoProfile#STATE_BIDIRECTIONAL} will be answered, accepting that state. * @hide */ @SystemApi Loading @@ -1065,6 +1067,24 @@ public class TelecomManager { } } /** * If there is a ringing incoming call, this method accepts the call on behalf of the user, * with the specified video state. * * @param videoState The desired video state to answer the call with. * @hide */ @SystemApi public void acceptRingingCall(int videoState) { try { if (isServiceConnected()) { getTelecomService().acceptRingingCallWithVideoState(videoState); } } catch (RemoteException e) { Log.e(TAG, "Error calling ITelecomService#acceptRingingCallWithVideoState", e); } } /** * Silences the ringer if a ringing call exists. * Loading telecomm/java/com/android/internal/telecom/ITelecomService.aidl +5 −0 Original line number Diff line number Diff line Loading @@ -177,6 +177,11 @@ interface ITelecomService { */ void acceptRingingCall(); /** * @see TelecomServiceImpl#acceptRingingCallWithVideoState(int) */ void acceptRingingCallWithVideoState(int videoState); /** * @see TelecomServiceImpl#cancelMissedCallsNotification */ Loading Loading
api/system-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -33055,6 +33055,7 @@ package android.telecom { public class TelecomManager { method public void acceptRingingCall(); method public void acceptRingingCall(int); method public void addNewIncomingCall(android.telecom.PhoneAccountHandle, android.os.Bundle); method public void addNewUnknownCall(android.telecom.PhoneAccountHandle, android.os.Bundle); method public void cancelMissedCallsNotification();
telecomm/java/android/telecom/TelecomManager.java +21 −1 Original line number Diff line number Diff line Loading @@ -1051,7 +1051,9 @@ public class TelecomManager { * If there is a ringing incoming call, this method accepts the call on behalf of the user. * TODO: L-release - need to convert all invocation of ITelecmmService#answerRingingCall to use * this method (clockwork & gearhead). * * If the incoming call is a video call, the call will be answered with the same video state as * the incoming call requests. This means, for example, that an incoming call requesting * {@link VideoProfile#STATE_BIDIRECTIONAL} will be answered, accepting that state. * @hide */ @SystemApi Loading @@ -1065,6 +1067,24 @@ public class TelecomManager { } } /** * If there is a ringing incoming call, this method accepts the call on behalf of the user, * with the specified video state. * * @param videoState The desired video state to answer the call with. * @hide */ @SystemApi public void acceptRingingCall(int videoState) { try { if (isServiceConnected()) { getTelecomService().acceptRingingCallWithVideoState(videoState); } } catch (RemoteException e) { Log.e(TAG, "Error calling ITelecomService#acceptRingingCallWithVideoState", e); } } /** * Silences the ringer if a ringing call exists. * Loading
telecomm/java/com/android/internal/telecom/ITelecomService.aidl +5 −0 Original line number Diff line number Diff line Loading @@ -177,6 +177,11 @@ interface ITelecomService { */ void acceptRingingCall(); /** * @see TelecomServiceImpl#acceptRingingCallWithVideoState(int) */ void acceptRingingCallWithVideoState(int videoState); /** * @see TelecomServiceImpl#cancelMissedCallsNotification */ Loading