@Test public void testNotifyProxyChanges() { Assert.assertTrue(mAgent.isProxyConnected()); mNetworkCallback.onLost(mockProxyNetwork); verify(mockListener).onProxyConnectionChange(false); Assert.assertFalse(mAgent.isProxyConnected()); reset(mockListener); mNetworkCallback.onAvailable(mockProxyNetwork); verify(mockListener).onProxyConnectionChange(true); Assert.assertTrue(mAgent.isProxyConnected()); }
public boolean isProxyConnected() { return mIsProxyConnected; }
WearProxyNetworkAgent { public boolean isProxyConnected() { return mIsProxyConnected; } }
WearProxyNetworkAgent { public boolean isProxyConnected() { return mIsProxyConnected; } WearProxyNetworkAgent(ConnectivityManager connectivityManager); }
WearProxyNetworkAgent { public boolean isProxyConnected() { return mIsProxyConnected; } WearProxyNetworkAgent(ConnectivityManager connectivityManager); void addListener(Listener listener); boolean isProxyConnected(); }
WearProxyNetworkAgent { public boolean isProxyConnected() { return mIsProxyConnected; } WearProxyNetworkAgent(ConnectivityManager connectivityManager); void addListener(Listener listener); boolean isProxyConnected();  }