Loading telecomm/java/android/telecomm/ConnectionService.java +0 −22 Original line number Diff line number Diff line Loading @@ -16,7 +16,6 @@ package android.telecomm; import android.Manifest; import android.annotation.SdkConstant; import android.app.PendingIntent; import android.app.Service; Loading @@ -27,8 +26,6 @@ import android.os.Handler; import android.os.IBinder; import android.os.Looper; import android.os.Message; import android.os.Parcel; import android.os.RemoteException; import android.telephony.DisconnectCause; import com.android.internal.os.SomeArgs; Loading Loading @@ -83,18 +80,6 @@ public abstract class ConnectionService extends Service { private final ConnectionServiceAdapter mAdapter = new ConnectionServiceAdapter(); private final IBinder mBinder = new IConnectionService.Stub() { /** * Enforces the requirement that all calls into the ConnectionService require the * {@code BIND_CONNECTION_SERVICE} permission. */ @Override public boolean onTransact(int code, Parcel data, Parcel reply, int flags) throws RemoteException { enforceBindConnectionServicePermission(); return super.onTransact(code, data, reply, flags); } @Override public void addConnectionServiceAdapter(IConnectionServiceAdapter adapter) { mHandler.obtainMessage(MSG_ADD_CONNECTION_SERVICE_ADAPTER, adapter).sendToTarget(); Loading Loading @@ -844,11 +829,4 @@ public abstract class ConnectionService extends Service { Log.w(this, "%s - Cannot find Connection %s", action, callId); return Connection.getNullConnection(); } /** * Enforces the {@code BIND_CONNECTION_SERVICE} permission for connection service calls. */ private void enforceBindConnectionServicePermission() { enforceCallingPermission(Manifest.permission.BIND_CONNECTION_SERVICE, null); } } Loading
telecomm/java/android/telecomm/ConnectionService.java +0 −22 Original line number Diff line number Diff line Loading @@ -16,7 +16,6 @@ package android.telecomm; import android.Manifest; import android.annotation.SdkConstant; import android.app.PendingIntent; import android.app.Service; Loading @@ -27,8 +26,6 @@ import android.os.Handler; import android.os.IBinder; import android.os.Looper; import android.os.Message; import android.os.Parcel; import android.os.RemoteException; import android.telephony.DisconnectCause; import com.android.internal.os.SomeArgs; Loading Loading @@ -83,18 +80,6 @@ public abstract class ConnectionService extends Service { private final ConnectionServiceAdapter mAdapter = new ConnectionServiceAdapter(); private final IBinder mBinder = new IConnectionService.Stub() { /** * Enforces the requirement that all calls into the ConnectionService require the * {@code BIND_CONNECTION_SERVICE} permission. */ @Override public boolean onTransact(int code, Parcel data, Parcel reply, int flags) throws RemoteException { enforceBindConnectionServicePermission(); return super.onTransact(code, data, reply, flags); } @Override public void addConnectionServiceAdapter(IConnectionServiceAdapter adapter) { mHandler.obtainMessage(MSG_ADD_CONNECTION_SERVICE_ADAPTER, adapter).sendToTarget(); Loading Loading @@ -844,11 +829,4 @@ public abstract class ConnectionService extends Service { Log.w(this, "%s - Cannot find Connection %s", action, callId); return Connection.getNullConnection(); } /** * Enforces the {@code BIND_CONNECTION_SERVICE} permission for connection service calls. */ private void enforceBindConnectionServicePermission() { enforceCallingPermission(Manifest.permission.BIND_CONNECTION_SERVICE, null); } }