![JAR search and dependency download from the Maven repository](/logo.png)
src.android.net.NetworkAgentHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of android-all Show documentation
Show all versions of android-all Show documentation
A library jar that provides APIs for Applications written for the Google Android Platform.
package android.net;
import android.annotation.NonNull;
/**
* Wrapper around {@link android.net.NetworkAgent} to help test coverage
*
* {@link NetworkAgent} will call non-public method unwanted() when the
* agent should be disabled.
*/
public class NetworkAgentHelper {
public static void callUnwanted(@NonNull NetworkAgent networkAgent) {
System.out.println("NetworkAgentHelper Faking unwanted() call from connectivity manager");
networkAgent.unwanted();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy