@Test public void testStartNetwork_WasConnectedNoInternet() { connectNetworkNoInternet(); verify(mockCompanionProxyShardListener).onProxyConnectionChange(CONNECTED, NETWORK_SCORE, NO_INTERNET); mCompanionProxyShard.startNetwork(); ShadowLooper.runMainLooperOneTask(); verify(mockCompanionProxyShardListener, times(2)).onProxyConnectionChange(CONNECTED, NETWORK_SCORE, NO_INTERNET); verify(mockProxyServiceHelper, times(2)).stopNetworkSession(anyString()); 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);  }