1{ 2 "methods": { 3 "addDefaultNetworkActiveListener(android.net.ConnectivityManager.OnNetworkActiveListener)": { 4 "isImplementation": true, 5 "modifiers": [ 6 "protected" 7 ], 8 "params": [ 9 "l" 10 ], 11 "returnType": "void", 12 "exceptions": [], 13 "minSdk": 21, 14 "name": "addDefaultNetworkActiveListener(android.net.ConnectivityManager.OnNetworkActiveListener)" 15 }, 16 "addNetwork(android.net.Network,android.net.NetworkInfo)": { 17 "isImplementation": false, 18 "modifiers": [ 19 "public" 20 ], 21 "params": [ 22 "network", 23 "networkInfo" 24 ], 25 "returnType": "void", 26 "exceptions": [], 27 "name": "addNetwork(android.net.Network,android.net.NetworkInfo)", 28 "documentation": "Adds new {@code network} to the list of all {@link android.net.Network}s.\n\n@param network The network.\n@param networkInfo The network info paired with the {@link android.net.Network}.\n" 29 }, 30 "bindProcessToNetwork(android.net.Network)": { 31 "isImplementation": true, 32 "modifiers": [ 33 "protected" 34 ], 35 "params": [ 36 "network" 37 ], 38 "returnType": "boolean", 39 "exceptions": [], 40 "minSdk": 23, 41 "name": "bindProcessToNetwork(android.net.Network)" 42 }, 43 "clearAllNetworks()": { 44 "isImplementation": false, 45 "modifiers": [ 46 "public" 47 ], 48 "params": [], 49 "returnType": "void", 50 "exceptions": [], 51 "name": "clearAllNetworks()", 52 "documentation": "Clears the list of all {@link android.net.Network}s.\n" 53 }, 54 "getActiveNetwork()": { 55 "isImplementation": true, 56 "modifiers": [ 57 "protected" 58 ], 59 "params": [], 60 "returnType": "android.net.Network", 61 "exceptions": [], 62 "minSdk": 23, 63 "name": "getActiveNetwork()", 64 "documentation": "@see #setActiveNetworkInfo(NetworkInfo)\n@see #setNetworkInfo(int, NetworkInfo)\n" 65 }, 66 "getActiveNetworkInfo()": { 67 "isImplementation": true, 68 "modifiers": [ 69 "protected" 70 ], 71 "params": [], 72 "returnType": "android.net.NetworkInfo", 73 "exceptions": [], 74 "name": "getActiveNetworkInfo()" 75 }, 76 "getAllNetworkInfo()": { 77 "isImplementation": true, 78 "modifiers": [ 79 "protected" 80 ], 81 "params": [], 82 "returnType": "android.net.NetworkInfo[]", 83 "exceptions": [], 84 "name": "getAllNetworkInfo()", 85 "documentation": "@see #setActiveNetworkInfo(NetworkInfo)\n@see #setNetworkInfo(int, NetworkInfo)\n" 86 }, 87 "getAllNetworks()": { 88 "isImplementation": true, 89 "modifiers": [ 90 "protected" 91 ], 92 "params": [], 93 "returnType": "android.net.Network[]", 94 "exceptions": [], 95 "minSdk": 21, 96 "name": "getAllNetworks()" 97 }, 98 "getBackgroundDataSetting()": { 99 "isImplementation": true, 100 "modifiers": [ 101 "protected" 102 ], 103 "params": [], 104 "returnType": "boolean", 105 "exceptions": [], 106 "name": "getBackgroundDataSetting()" 107 }, 108 "getBoundNetworkForProcess()": { 109 "isImplementation": true, 110 "modifiers": [ 111 "protected" 112 ], 113 "params": [], 114 "returnType": "android.net.Network", 115 "exceptions": [], 116 "minSdk": 23, 117 "name": "getBoundNetworkForProcess()" 118 }, 119 "getCaptivePortalServerUrl()": { 120 "isImplementation": true, 121 "modifiers": [ 122 "protected" 123 ], 124 "params": [], 125 "returnType": "java.lang.String", 126 "exceptions": [], 127 "minSdk": 24, 128 "name": "getCaptivePortalServerUrl()", 129 "documentation": "Returns the captive portal URL previously set with {@link #setCaptivePortalServerUrl}.\n" 130 }, 131 "getLinkProperties(android.net.Network)": { 132 "isImplementation": true, 133 "modifiers": [ 134 "protected" 135 ], 136 "params": [ 137 "network" 138 ], 139 "returnType": "android.net.LinkProperties", 140 "exceptions": [], 141 "minSdk": 21, 142 "name": "getLinkProperties(android.net.Network)", 143 "documentation": "@see #setLinkProperties(Network, LinkProperties) " 144 }, 145 "getNetworkCallbacks()": { 146 "isImplementation": false, 147 "modifiers": [ 148 "public" 149 ], 150 "params": [], 151 "returnType": "java.util.Set\u003candroid.net.ConnectivityManager.NetworkCallback\u003e", 152 "exceptions": [], 153 "name": "getNetworkCallbacks()" 154 }, 155 "getNetworkCapabilities(android.net.Network)": { 156 "isImplementation": true, 157 "modifiers": [ 158 "protected" 159 ], 160 "params": [ 161 "network" 162 ], 163 "returnType": "android.net.NetworkCapabilities", 164 "exceptions": [], 165 "minSdk": 21, 166 "name": "getNetworkCapabilities(android.net.Network)", 167 "documentation": "Gets the network capabilities of a given {@link Network}.\n\n@param network The {@link Network} object identifying the network in question.\n@return The {@link android.net.NetworkCapabilities} for the network.\n@see #setNetworkCapabilities(Network, NetworkCapabilities)\n" 168 }, 169 "getNetworkInfo(android.net.Network)": { 170 "isImplementation": true, 171 "modifiers": [ 172 "protected" 173 ], 174 "params": [ 175 "network" 176 ], 177 "returnType": "android.net.NetworkInfo", 178 "exceptions": [], 179 "minSdk": 21, 180 "name": "getNetworkInfo(android.net.Network)" 181 }, 182 "getNetworkInfo(int)": { 183 "isImplementation": true, 184 "modifiers": [ 185 "protected" 186 ], 187 "params": [ 188 "networkType" 189 ], 190 "returnType": "android.net.NetworkInfo", 191 "exceptions": [], 192 "name": "getNetworkInfo(int)" 193 }, 194 "getNetworkPreference()": { 195 "isImplementation": true, 196 "modifiers": [ 197 "protected" 198 ], 199 "params": [], 200 "returnType": "int", 201 "exceptions": [], 202 "name": "getNetworkPreference()" 203 }, 204 "getReportedNetworkConnectivity()": { 205 "isImplementation": false, 206 "modifiers": [ 207 "public" 208 ], 209 "params": [], 210 "returnType": "java.util.Map\u003candroid.net.Network,java.lang.Boolean\u003e", 211 "exceptions": [], 212 "name": "getReportedNetworkConnectivity()", 213 "documentation": "@return networks and their connectivity status which was reported with {@link\n #reportNetworkConnectivity}.\n" 214 }, 215 "isActiveNetworkMetered()": { 216 "isImplementation": true, 217 "modifiers": [ 218 "protected" 219 ], 220 "params": [], 221 "returnType": "boolean", 222 "exceptions": [], 223 "name": "isActiveNetworkMetered()", 224 "documentation": "Counts {@link ConnectivityManager#TYPE_MOBILE} networks as metered. Other types will be\nconsidered unmetered.\n\n@return `true` if the active network is metered, otherwise `false`.\n@see #setActiveNetworkInfo(NetworkInfo)\n@see #setDefaultNetworkActive(boolean)\n" 225 }, 226 "isDefaultNetworkActive()": { 227 "isImplementation": true, 228 "modifiers": [ 229 "protected" 230 ], 231 "params": [], 232 "returnType": "boolean", 233 "exceptions": [], 234 "minSdk": 21, 235 "name": "isDefaultNetworkActive()", 236 "documentation": "@return `true` by default, or the value specifed via {@link #setDefaultNetworkActive(boolean)}\n@see #setDefaultNetworkActive(boolean)\n" 237 }, 238 "registerNetworkCallback(android.net.NetworkRequest,android.net.ConnectivityManager.NetworkCallback)": { 239 "isImplementation": true, 240 "modifiers": [ 241 "protected" 242 ], 243 "params": [ 244 "request", 245 "networkCallback" 246 ], 247 "returnType": "void", 248 "exceptions": [], 249 "minSdk": 21, 250 "name": "registerNetworkCallback(android.net.NetworkRequest,android.net.ConnectivityManager.NetworkCallback)" 251 }, 252 "registerNetworkCallback(android.net.NetworkRequest,android.net.ConnectivityManager.NetworkCallback,android.os.Handler)": { 253 "isImplementation": true, 254 "modifiers": [ 255 "protected" 256 ], 257 "params": [ 258 "request", 259 "networkCallback", 260 "handler" 261 ], 262 "returnType": "void", 263 "exceptions": [], 264 "minSdk": 26, 265 "name": "registerNetworkCallback(android.net.NetworkRequest,android.net.ConnectivityManager.NetworkCallback,android.os.Handler)" 266 }, 267 "removeDefaultNetworkActiveListener(android.net.ConnectivityManager.OnNetworkActiveListener)": { 268 "isImplementation": true, 269 "modifiers": [ 270 "protected" 271 ], 272 "params": [ 273 "l" 274 ], 275 "returnType": "void", 276 "exceptions": [], 277 "minSdk": 21, 278 "name": "removeDefaultNetworkActiveListener(android.net.ConnectivityManager.OnNetworkActiveListener)" 279 }, 280 "removeNetwork(android.net.Network)": { 281 "isImplementation": false, 282 "modifiers": [ 283 "public" 284 ], 285 "params": [ 286 "network" 287 ], 288 "returnType": "void", 289 "exceptions": [], 290 "name": "removeNetwork(android.net.Network)", 291 "documentation": "Removes the {@code network} from the list of all {@link android.net.Network}s.\n@param network The network.\n" 292 }, 293 "reportNetworkConnectivity(android.net.Network,boolean)": { 294 "isImplementation": true, 295 "modifiers": [ 296 "protected" 297 ], 298 "params": [ 299 "network", 300 "hasConnectivity" 301 ], 302 "returnType": "void", 303 "exceptions": [], 304 "minSdk": 23, 305 "name": "reportNetworkConnectivity(android.net.Network,boolean)" 306 }, 307 "requestNetwork(android.net.NetworkRequest,android.net.ConnectivityManager.NetworkCallback)": { 308 "isImplementation": true, 309 "modifiers": [ 310 "protected" 311 ], 312 "params": [ 313 "request", 314 "networkCallback" 315 ], 316 "returnType": "void", 317 "exceptions": [], 318 "minSdk": 21, 319 "name": "requestNetwork(android.net.NetworkRequest,android.net.ConnectivityManager.NetworkCallback)" 320 }, 321 "setActiveNetworkInfo(android.net.NetworkInfo)": { 322 "isImplementation": false, 323 "modifiers": [ 324 "public" 325 ], 326 "params": [ 327 "info" 328 ], 329 "returnType": "void", 330 "exceptions": [], 331 "name": "setActiveNetworkInfo(android.net.NetworkInfo)" 332 }, 333 "setAirplaneMode(boolean)": { 334 "isImplementation": true, 335 "modifiers": [ 336 "protected" 337 ], 338 "params": [ 339 "enable" 340 ], 341 "returnType": "void", 342 "exceptions": [], 343 "minSdk": 19, 344 "name": "setAirplaneMode(boolean)", 345 "documentation": "Sets the value for enabling/disabling airplane mode\n\n@param enable new status for airplane mode\n" 346 }, 347 "setBackgroundDataSetting(boolean)": { 348 "isImplementation": true, 349 "modifiers": [ 350 "public" 351 ], 352 "params": [ 353 "b" 354 ], 355 "returnType": "void", 356 "exceptions": [], 357 "name": "setBackgroundDataSetting(boolean)" 358 }, 359 "setCaptivePortalServerUrl(java.lang.String)": { 360 "isImplementation": false, 361 "modifiers": [ 362 "public" 363 ], 364 "params": [ 365 "captivePortalServerUrl" 366 ], 367 "returnType": "void", 368 "exceptions": [], 369 "name": "setCaptivePortalServerUrl(java.lang.String)", 370 "documentation": "Sets the captive portal URL, which will be returned in {@link #getCaptivePortalServerUrl}.\n\n@param captivePortalServerUrl the url of captive portal.\n" 371 }, 372 "setDefaultNetworkActive(boolean)": { 373 "isImplementation": false, 374 "modifiers": [ 375 "public" 376 ], 377 "params": [ 378 "isActive" 379 ], 380 "returnType": "void", 381 "exceptions": [], 382 "name": "setDefaultNetworkActive(boolean)", 383 "documentation": "Sets the active state of the default network.\n\nBy default this is true and affects the result of {@link\nConnectivityManager#isActiveNetworkMetered()}, {@link\nConnectivityManager#isDefaultNetworkActive()}, {@link ConnectivityManager#getActiveNetwork()}\nand {@link ConnectivityManager#getAllNetworkInfo()}.\n\nCalling this method with {@code true} after any listeners have been registered with {@link\nConnectivityManager#addDefaultNetworkActiveListener(OnNetworkActiveListener)} will result in\nthose listeners being fired.\n\n@param isActive The active state of the default network.\n" 384 }, 385 "setLinkProperties(android.net.Network,android.net.LinkProperties)": { 386 "isImplementation": false, 387 "modifiers": [ 388 "public" 389 ], 390 "params": [ 391 "network", 392 "linkProperties" 393 ], 394 "returnType": "void", 395 "exceptions": [], 396 "name": "setLinkProperties(android.net.Network,android.net.LinkProperties)", 397 "documentation": "Sets the LinkProperties for the given Network.\n\n\u003cp\u003eA LinkProperties can be constructed by\n`org.robolectric.util.ReflectionHelpers.callConstructor` in tests.\n" 398 }, 399 "setNetworkCapabilities(android.net.Network,android.net.NetworkCapabilities)": { 400 "isImplementation": false, 401 "modifiers": [ 402 "public" 403 ], 404 "params": [ 405 "network", 406 "networkCapabilities" 407 ], 408 "returnType": "void", 409 "exceptions": [], 410 "name": "setNetworkCapabilities(android.net.Network,android.net.NetworkCapabilities)", 411 "documentation": "Sets network capability and affects the result of {@link\nConnectivityManager#getNetworkCapabilities(Network)}\n\n@param network The {@link Network} object identifying the network in question.\n@param networkCapabilities The {@link android.net.NetworkCapabilities} for the network.\n" 412 }, 413 "setNetworkInfo(int,android.net.NetworkInfo)": { 414 "isImplementation": false, 415 "modifiers": [ 416 "public" 417 ], 418 "params": [ 419 "networkType", 420 "networkInfo" 421 ], 422 "returnType": "void", 423 "exceptions": [], 424 "name": "setNetworkInfo(int,android.net.NetworkInfo)" 425 }, 426 "setNetworkPreference(int)": { 427 "isImplementation": true, 428 "modifiers": [ 429 "protected" 430 ], 431 "params": [ 432 "preference" 433 ], 434 "returnType": "void", 435 "exceptions": [], 436 "name": "setNetworkPreference(int)" 437 }, 438 "unregisterNetworkCallback(android.net.ConnectivityManager.NetworkCallback)": { 439 "isImplementation": true, 440 "modifiers": [ 441 "protected" 442 ], 443 "params": [ 444 "networkCallback" 445 ], 446 "returnType": "void", 447 "exceptions": [], 448 "minSdk": 21, 449 "name": "unregisterNetworkCallback(android.net.ConnectivityManager.NetworkCallback)" 450 } 451 }, 452 "imports": [ 453 "android.os.Build.VERSION_CODES.KITKAT", 454 "android.os.Build.VERSION_CODES.LOLLIPOP", 455 "android.os.Build.VERSION_CODES.M", 456 "android.os.Build.VERSION_CODES.N", 457 "android.os.Build.VERSION_CODES.O", 458 "org.robolectric.RuntimeEnvironment.getApiLevel", 459 "android.net.ConnectivityManager", 460 "android.net.ConnectivityManager.OnNetworkActiveListener", 461 "android.net.LinkProperties", 462 "android.net.Network", 463 "android.net.NetworkCapabilities", 464 "android.net.NetworkInfo", 465 "android.net.NetworkRequest", 466 "android.os.Handler", 467 "java.util.HashMap", 468 "java.util.HashSet", 469 "java.util.Map", 470 "java.util.Set", 471 "org.robolectric.annotation.HiddenApi", 472 "org.robolectric.annotation.Implementation", 473 "org.robolectric.annotation.Implements", 474 "org.robolectric.shadow.api.Shadow" 475 ], 476 "name": "org.robolectric.shadows.ShadowConnectivityManager" 477}