@Test public void testStartNetwork_Closed() { connectNetworkWithWifiInternet(); mCompanionProxyShard.mIsClosed = true; mCompanionProxyShard.startNetwork(); ShadowLooper.runMainLooperOneTask(); verify(mockProxyServiceHelper).getNetworkScore(); assertEquals(1, mCompanionProxyShard.mStartAttempts); ensureMessageQueueEmpty(); }
@MainThread public void startNetwork() { DebugAssert.isMainThread(); maybeLogDebug("startNetwork()"); mHandler.sendEmptyMessage(WHAT_START_SYSPROXY); }
CompanionProxyShard implements Closeable { @MainThread public void startNetwork() { DebugAssert.isMainThread(); maybeLogDebug("startNetwork()"); mHandler.sendEmptyMessage(WHAT_START_SYSPROXY); } }
CompanionProxyShard implements Closeable { @MainThread public void startNetwork() { DebugAssert.isMainThread(); maybeLogDebug("startNetwork()"); mHandler.sendEmptyMessage(WHAT_START_SYSPROXY); } CompanionProxyShard(
            @NonNull final Context context,
            @NonNull final ProxyServiceHelper proxyServiceHelper,
            @NonNull final BluetoothDevice companionDevice,
            @NonNull final Listener listener,
            final int networkScore); }
CompanionProxyShard implements Closeable { @MainThread public void startNetwork() { DebugAssert.isMainThread(); maybeLogDebug("startNetwork()"); mHandler.sendEmptyMessage(WHAT_START_SYSPROXY); } CompanionProxyShard(
            @NonNull final Context context,
            @NonNull final ProxyServiceHelper proxyServiceHelper,
            @NonNull final BluetoothDevice companionDevice,
            @NonNull final Listener listener,
            final int networkScore); @MainThread @Override // Closable void close(); @MainThread void startNetwork(); @MainThread void updateNetwork(final int networkScore); void dump(@NonNull final IndentingPrintWriter ipw); }
CompanionProxyShard implements Closeable { @MainThread public void startNetwork() { DebugAssert.isMainThread(); maybeLogDebug("startNetwork()"); mHandler.sendEmptyMessage(WHAT_START_SYSPROXY); } CompanionProxyShard(
            @NonNull final Context context,
            @NonNull final ProxyServiceHelper proxyServiceHelper,
            @NonNull final BluetoothDevice companionDevice,
            @NonNull final Listener listener,
            final int networkScore); @MainThread @Override // Closable void close(); @MainThread void startNetwork(); @MainThread void updateNetwork(final int networkScore); void dump(@NonNull final IndentingPrintWriter ipw);  }