@Test public void testSetNetworkScore_SameScore() { mProxyNetworkFactory.setNetworkScore(0); assertEquals(0, mProxyNetworkFactory.setScoreFilterMethod); assertEquals(0, mProxyNetworkFactory.scoreFilter); }
@MainThread protected void setNetworkScore(final int networkScore) { DebugAssert.isMainThread(); if (networkScore > mNetworkScoreFilter) { if (Log.isLoggable(TAG, Log.DEBUG)) { Log.d(TAG, "Changing network score filter from " + mNetworkScoreFilter + " to " + networkScore); } mNetworkScoreFilter = networkScore; this.setScoreFilter(mNetworkScoreFilter); } }
ProxyNetworkFactory extends NetworkFactory { @MainThread protected void setNetworkScore(final int networkScore) { DebugAssert.isMainThread(); if (networkScore > mNetworkScoreFilter) { if (Log.isLoggable(TAG, Log.DEBUG)) { Log.d(TAG, "Changing network score filter from " + mNetworkScoreFilter + " to " + networkScore); } mNetworkScoreFilter = networkScore; this.setScoreFilter(mNetworkScoreFilter); } } }
ProxyNetworkFactory extends NetworkFactory { @MainThread protected void setNetworkScore(final int networkScore) { DebugAssert.isMainThread(); if (networkScore > mNetworkScoreFilter) { if (Log.isLoggable(TAG, Log.DEBUG)) { Log.d(TAG, "Changing network score filter from " + mNetworkScoreFilter + " to " + networkScore); } mNetworkScoreFilter = networkScore; this.setScoreFilter(mNetworkScoreFilter); } } protected  ProxyNetworkFactory(
            @NonNull final Context context,
            @NonNull final NetworkCapabilities capabilities); }
ProxyNetworkFactory extends NetworkFactory { @MainThread protected void setNetworkScore(final int networkScore) { DebugAssert.isMainThread(); if (networkScore > mNetworkScoreFilter) { if (Log.isLoggable(TAG, Log.DEBUG)) { Log.d(TAG, "Changing network score filter from " + mNetworkScoreFilter + " to " + networkScore); } mNetworkScoreFilter = networkScore; this.setScoreFilter(mNetworkScoreFilter); } } protected  ProxyNetworkFactory(
            @NonNull final Context context,
            @NonNull final NetworkCapabilities capabilities); void dump(@NonNull final IndentingPrintWriter ipw); }
ProxyNetworkFactory extends NetworkFactory { @MainThread protected void setNetworkScore(final int networkScore) { DebugAssert.isMainThread(); if (networkScore > mNetworkScoreFilter) { if (Log.isLoggable(TAG, Log.DEBUG)) { Log.d(TAG, "Changing network score filter from " + mNetworkScoreFilter + " to " + networkScore); } mNetworkScoreFilter = networkScore; this.setScoreFilter(mNetworkScoreFilter); } } protected  ProxyNetworkFactory(
            @NonNull final Context context,
            @NonNull final NetworkCapabilities capabilities); void dump(@NonNull final IndentingPrintWriter ipw);  }