@Test public void testMarkAsDisposed_whenCreated() throws Throwable { mTransportClient.markAsDisposed(); }
public void markAsDisposed() { synchronized (mStateLock) { Preconditions.checkState( mState < State.BOUND_AND_CONNECTING, "Can't mark as disposed if still bound"); mCloseGuard.close(); } }
TransportClient { public void markAsDisposed() { synchronized (mStateLock) { Preconditions.checkState( mState < State.BOUND_AND_CONNECTING, "Can't mark as disposed if still bound"); mCloseGuard.close(); } } }
TransportClient { public void markAsDisposed() { synchronized (mStateLock) { Preconditions.checkState( mState < State.BOUND_AND_CONNECTING, "Can't mark as disposed if still bound"); mCloseGuard.close(); } } TransportClient(
            Context context,
            TransportStats transportStats,
            Intent bindIntent,
            ComponentName transportComponent,
            String identifier,
            String caller); @VisibleForTesting  TransportClient(
            Context context,
            TransportStats transportStats,
            Intent bindIntent,
            ComponentName transportComponent,
            String identifier,
            String caller,
            Handler listenerHandler); }
TransportClient { public void markAsDisposed() { synchronized (mStateLock) { Preconditions.checkState( mState < State.BOUND_AND_CONNECTING, "Can't mark as disposed if still bound"); mCloseGuard.close(); } } TransportClient(
            Context context,
            TransportStats transportStats,
            Intent bindIntent,
            ComponentName transportComponent,
            String identifier,
            String caller); @VisibleForTesting  TransportClient(
            Context context,
            TransportStats transportStats,
            Intent bindIntent,
            ComponentName transportComponent,
            String identifier,
            String caller,
            Handler listenerHandler); ComponentName getTransportComponent(); void connectAsync(TransportConnectionListener listener, String caller); void unbind(String caller); void markAsDisposed(); @WorkerThread @Nullable IBackupTransport connect(String caller); @WorkerThread IBackupTransport connectOrThrow(String caller); IBackupTransport getConnectedTransport(String caller); @Override String toString(); }
TransportClient { public void markAsDisposed() { synchronized (mStateLock) { Preconditions.checkState( mState < State.BOUND_AND_CONNECTING, "Can't mark as disposed if still bound"); mCloseGuard.close(); } } TransportClient(
            Context context,
            TransportStats transportStats,
            Intent bindIntent,
            ComponentName transportComponent,
            String identifier,
            String caller); @VisibleForTesting  TransportClient(
            Context context,
            TransportStats transportStats,
            Intent bindIntent,
            ComponentName transportComponent,
            String identifier,
            String caller,
            Handler listenerHandler); ComponentName getTransportComponent(); void connectAsync(TransportConnectionListener listener, String caller); void unbind(String caller); void markAsDisposed(); @WorkerThread @Nullable IBackupTransport connect(String caller); @WorkerThread IBackupTransport connectOrThrow(String caller); IBackupTransport getConnectedTransport(String caller); @Override String toString();  }