All Downloads are FREE. Search and download functionalities are using the official Maven repository.

src.android.net.NetworkAgentHelper Maven / Gradle / Ivy

Go to download

A library jar that provides APIs for Applications written for the Google Android Platform.

There is a newer version: 15-robolectric-12650502
Show newest version
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