{ "methods": { "__staticInitializer__()": { "isImplementation": true, "modifiers": [ "protected", "static" ], "params": [], "returnType": "void", "exceptions": [], "name": "__staticInitializer__()" }, "getDetailedState()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "android.net.NetworkInfo.DetailedState", "exceptions": [], "name": "getDetailedState()" }, "getState()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "android.net.NetworkInfo.State", "exceptions": [], "name": "getState()" }, "getSubtype()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "int", "exceptions": [], "name": "getSubtype()" }, "getType()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "int", "exceptions": [], "name": "getType()" }, "isAvailable()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "boolean", "exceptions": [], "name": "isAvailable()" }, "isConnected()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "boolean", "exceptions": [], "name": "isConnected()" }, "isConnectedOrConnecting()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "boolean", "exceptions": [], "name": "isConnectedOrConnecting()" }, "newInstance(android.net.NetworkInfo.DetailedState,int,int,boolean,android.net.NetworkInfo.State)": { "isImplementation": false, "modifiers": [ "public", "static" ], "params": [ "detailedState", "type", "subType", "isAvailable", "state" ], "returnType": "android.net.NetworkInfo", "exceptions": [], "name": "newInstance(android.net.NetworkInfo.DetailedState,int,int,boolean,android.net.NetworkInfo.State)", "documentation": "Allows developers to create a {@link NetworkInfo} instance for testing. " }, "newInstance(android.net.NetworkInfo.DetailedState,int,int,boolean,boolean)": { "isImplementation": false, "modifiers": [ "public", "static" ], "params": [ "detailedState", "type", "subType", "isAvailable", "isConnected" ], "returnType": "android.net.NetworkInfo", "exceptions": [], "name": "newInstance(android.net.NetworkInfo.DetailedState,int,int,boolean,boolean)", "documentation": "@deprecated use {@link #newInstance(NetworkInfo.DetailedState, int, int, boolean,\n NetworkInfo.State)} instead\n" }, "setAvailableStatus(boolean)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "isAvailable" ], "returnType": "void", "exceptions": [], "name": "setAvailableStatus(boolean)", "documentation": "Sets up the return value of {@link #isAvailable()}.\n\n@param isAvailable the value that {@link #isAvailable()} will return.\n" }, "setConnectionStatus(android.net.NetworkInfo.State)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "state" ], "returnType": "void", "exceptions": [], "name": "setConnectionStatus(android.net.NetworkInfo.State)", "documentation": "Sets up the return value of {@link #getState()}.\n\n@param state the value that {@link #getState()} will return.\n" }, "setConnectionStatus(boolean)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "isConnected" ], "returnType": "void", "exceptions": [], "name": "setConnectionStatus(boolean)", "documentation": "Sets up the return value of {@link #isConnectedOrConnecting()}, {@link #isConnected()}, and\n{@link #getState()}. If the input is true, state will be {@link NetworkInfo.State#CONNECTED},\nelse it will be {@link NetworkInfo.State#DISCONNECTED}.\n\n@param isConnected the value that {@link #isConnectedOrConnecting()} and {@link #isConnected()}\n will return.\n@deprecated use {@link #setConnectionStatus(NetworkInfo.State)} instead\n" }, "setConnectionType(int)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "connectionType" ], "returnType": "void", "exceptions": [], "name": "setConnectionType(int)", "documentation": "Sets up the return value of {@link #getType()}.\n\n@param connectionType the value that {@link #getType()} will return.\n" }, "setDetailedState(android.net.NetworkInfo.DetailedState)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "detailedState" ], "returnType": "void", "exceptions": [], "name": "setDetailedState(android.net.NetworkInfo.DetailedState)" }, "setSubType(int)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "subType" ], "returnType": "void", "exceptions": [], "name": "setSubType(int)" } }, "imports": [ "android.net.NetworkInfo", "org.robolectric.annotation.Implementation", "org.robolectric.annotation.Implements", "org.robolectric.shadow.api.Shadow" ], "name": "org.robolectric.shadows.ShadowNetworkInfo" }