diff --git a/api/current.txt b/api/current.txt index d1ce0f5ca1d55..caf56f5d33ebb 100644 --- a/api/current.txt +++ b/api/current.txt @@ -28400,7 +28400,7 @@ package android.telecomm { } public abstract class CallVideoClient { - ctor protected CallVideoClient(); + ctor public CallVideoClient(); method public abstract void onHandleCallSessionEvent(int); method public abstract void onHandleCameraCapabilitiesChange(android.telecomm.CallCameraCapabilities); method public abstract void onReceiveSessionModifyRequest(android.telecomm.VideoCallProfile); @@ -28417,7 +28417,7 @@ package android.telecomm { } public abstract class CallVideoProvider { - ctor protected CallVideoProvider(); + ctor public CallVideoProvider(); method public abstract void onRequestCallDataUsage(); method public abstract void onRequestCameraCapabilities(); method public abstract void onSendSessionModifyRequest(android.telecomm.VideoCallProfile); @@ -28432,7 +28432,7 @@ package android.telecomm { } public abstract class Connection { - ctor protected Connection(); + ctor public Connection(); method public final void destroy(); method public final boolean getAudioModeIsVoip(); method public final android.telecomm.CallAudioState getCallAudioState(); @@ -28449,21 +28449,21 @@ package android.telecomm { method public final int getVideoState(); method public final boolean isConferenceConnection(); method public final boolean isRequestingRingback(); - method protected void onAbort(); - method protected void onAnswer(int); - method protected void onChildrenChanged(java.util.List); - method protected void onDisconnect(); - method protected void onHold(); - method protected void onPhoneAccountClicked(); - method protected void onPlayDtmfTone(char); - method protected void onPostDialContinue(boolean); - method protected void onReject(); - method protected void onSeparate(); - method protected void onSetAudioState(android.telecomm.CallAudioState); - method protected void onSetState(int); - method protected void onStopDtmfTone(); - method protected void onSwapWithBackgroundCall(); - method protected void onUnhold(); + method public void onAbort(); + method public void onAnswer(int); + method public void onChildrenChanged(java.util.List); + method public void onDisconnect(); + method public void onHold(); + method public void onPhoneAccountClicked(); + method public void onPlayDtmfTone(char); + method public void onPostDialContinue(boolean); + method public void onReject(); + method public void onSeparate(); + method public void onSetAudioState(android.telecomm.CallAudioState); + method public void onSetState(int); + method public void onStopDtmfTone(); + method public void onSwapWithBackgroundCall(); + method public void onUnhold(); method public final void setActive(); method public final void setAudioModeIsVoip(boolean); method public final void setCallCapabilities(int); @@ -28514,11 +28514,11 @@ package android.telecomm { method public final void lookupRemoteAccounts(android.net.Uri, android.telecomm.SimpleResponse>); method public final void maybeRespondToAccountLookup(); method public final android.os.IBinder onBind(android.content.Intent); - method protected void onConnectionAdded(android.telecomm.Connection); - method protected void onConnectionRemoved(android.telecomm.Connection); - method protected void onCreateConferenceConnection(java.lang.String, android.telecomm.Connection, android.telecomm.Response); - method protected void onCreateIncomingConnection(android.telecomm.ConnectionRequest, android.telecomm.ConnectionService.CreateConnectionResponse); - method protected void onCreateOutgoingConnection(android.telecomm.ConnectionRequest, android.telecomm.ConnectionService.CreateConnectionResponse); + method public void onConnectionAdded(android.telecomm.Connection); + method public void onConnectionRemoved(android.telecomm.Connection); + method public void onCreateConferenceConnection(java.lang.String, android.telecomm.Connection, android.telecomm.Response); + method public void onCreateIncomingConnection(android.telecomm.ConnectionRequest, android.telecomm.ConnectionService.CreateConnectionResponse); + method public void onCreateOutgoingConnection(android.telecomm.ConnectionRequest, android.telecomm.ConnectionService.CreateConnectionResponse); field public static final java.lang.String SERVICE_INTERFACE = "android.telecomm.ConnectionService"; } diff --git a/telecomm/java/android/telecomm/CallVideoClient.java b/telecomm/java/android/telecomm/CallVideoClient.java index fb970dc14a35f..00473ffd3cb6b 100644 --- a/telecomm/java/android/telecomm/CallVideoClient.java +++ b/telecomm/java/android/telecomm/CallVideoClient.java @@ -169,7 +169,7 @@ public abstract class CallVideoClient { private final CallVideoClientBinder mBinder; - protected CallVideoClient() { + public CallVideoClient() { mBinder = new CallVideoClientBinder(); } diff --git a/telecomm/java/android/telecomm/CallVideoProvider.java b/telecomm/java/android/telecomm/CallVideoProvider.java index 2a04724c1e9e4..443a5b6b5c6df 100644 --- a/telecomm/java/android/telecomm/CallVideoProvider.java +++ b/telecomm/java/android/telecomm/CallVideoProvider.java @@ -146,7 +146,7 @@ public abstract class CallVideoProvider { private final CallVideoProviderHandler mMessageHandler = new CallVideoProviderHandler(); private final CallVideoProviderBinder mBinder; - protected CallVideoProvider() { + public CallVideoProvider() { mBinder = new CallVideoProviderBinder(); } diff --git a/telecomm/java/android/telecomm/Connection.java b/telecomm/java/android/telecomm/Connection.java index 5c8c4a36aede7..02af68edfe132 100644 --- a/telecomm/java/android/telecomm/Connection.java +++ b/telecomm/java/android/telecomm/Connection.java @@ -83,7 +83,7 @@ public abstract class Connection { /** * Create a new Connection. */ - protected Connection() {} + public Connection() {} /** * @return The handle (e.g., phone number) to which this Connection is currently communicating. @@ -484,7 +484,7 @@ public abstract class Connection { * * @param state The new call audio state. */ - protected void onSetAudioState(CallAudioState state) {} + public void onSetAudioState(CallAudioState state) {} /** * Notifies this Connection of an internal state change. This method is called before the @@ -492,44 +492,44 @@ public abstract class Connection { * * @param state The new state, a {@link Connection.State} member. */ - protected void onSetState(int state) {} + public void onSetState(int state) {} /** * Notifies this Connection of a request to play a DTMF tone. * * @param c A DTMF character. */ - protected void onPlayDtmfTone(char c) {} + public void onPlayDtmfTone(char c) {} /** * Notifies this Connection of a request to stop any currently playing DTMF tones. */ - protected void onStopDtmfTone() {} + public void onStopDtmfTone() {} /** * Notifies this Connection of a request to disconnect. */ - protected void onDisconnect() {} + public void onDisconnect() {} /** * Notifies this Connection of a request to disconnect. */ - protected void onSeparate() {} + public void onSeparate() {} /** * Notifies this Connection of a request to abort. */ - protected void onAbort() {} + public void onAbort() {} /** * Notifies this Connection of a request to hold. */ - protected void onHold() {} + public void onHold() {} /** * Notifies this Connection of a request to exit a hold state. */ - protected void onUnhold() {} + public void onUnhold() {} /** * Notifies this Connection, which is in {@link State#RINGING}, of @@ -537,34 +537,34 @@ public abstract class Connection { * * @param videoState The video state in which to answer the call. */ - protected void onAnswer(int videoState) {} + public void onAnswer(int videoState) {} /** * Notifies this Connection, which is in {@link State#RINGING}, of * a request to reject. */ - protected void onReject() {} + public void onReject() {} /** * Notifies this Connection whether the user wishes to proceed with the post-dial DTMF codes. */ - protected void onPostDialContinue(boolean proceed) {} + public void onPostDialContinue(boolean proceed) {} /** * Swap this call with a background call. This is used for calls that don't support hold, * e.g. CDMA. */ - protected void onSwapWithBackgroundCall() {} + public void onSwapWithBackgroundCall() {} /** * TODO(santoscordon): Needs documentation. */ - protected void onChildrenChanged(List children) {} + public void onChildrenChanged(List children) {} /** * Called when the phone account UI was clicked. */ - protected void onPhoneAccountClicked() {} + public void onPhoneAccountClicked() {} private void addChild(Connection connection) { Log.d(this, "adding child %s", connection); diff --git a/telecomm/java/android/telecomm/ConnectionService.java b/telecomm/java/android/telecomm/ConnectionService.java index 968bd884dbb08..f751826ab47c7 100644 --- a/telecomm/java/android/telecomm/ConnectionService.java +++ b/telecomm/java/android/telecomm/ConnectionService.java @@ -647,7 +647,7 @@ public abstract class ConnectionService extends Service { * @param request Details about the incoming call. * @param callback A callback for providing the result. */ - protected void onCreateIncomingConnection( + public void onCreateIncomingConnection( ConnectionRequest request, CreateConnectionResponse callback) {} @@ -657,7 +657,7 @@ public abstract class ConnectionService extends Service { * @param request Details about the outgoing call. * @param callback A callback for providing the result. */ - protected void onCreateOutgoingConnection( + public void onCreateOutgoingConnection( ConnectionRequest request, CreateConnectionResponse callback) {} @@ -671,7 +671,7 @@ public abstract class ConnectionService extends Service { * @param token The token to be passed into the response callback. * @param callback The callback for providing the potentially-new conference connection. */ - protected void onCreateConferenceConnection( + public void onCreateConferenceConnection( String token, Connection connection, Response callback) {} @@ -681,14 +681,14 @@ public abstract class ConnectionService extends Service { * * @param connection The connection which was added. */ - protected void onConnectionAdded(Connection connection) {} + public void onConnectionAdded(Connection connection) {} /** * Notified that a connection has been removed from this connection service. * * @param connection The connection which was removed. */ - protected void onConnectionRemoved(Connection connection) {} + public void onConnectionRemoved(Connection connection) {} static String toLogSafePhoneNumber(String number) { // For unknown number, log empty string.