@Test public void testResetConnection_SysproxyConnected() { connectNetworkWithWifiInternet(); setWaitingForAsyncDiconnectResponse(true); try { mCompanionProxyShard.startNetwork(); ShadowLooper.runMainLooperOneTask(); assertTrue(mCompanionProxyShard.mHandler.hasMessages(WHAT_RESET_CONNECTION)); ShadowLooper.runUiThreadTasksIncludingDelayedTasks(); assertEquals(1, mCompanionProxyShard.connectNativeCount); assertEquals(1, mCompanionProxyShard.disconnectNativeCount); assertEquals(mCompanionProxyShard.disconnectReturnValue, getWaitingForAsyncDiconnectResponse()); } finally { setWaitingForAsyncDiconnectResponse(false); } }
@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);  }