shadows/framework/src/main/java/org/robolectric/shadows/ShadowConnectivityManager.java
@Implementation
  protected boolean isActiveNetworkMetered() {
    if (defaultNetworkActive && activeNetworkInfo != null) {
      return activeNetworkInfo.getType() == ConnectivityManager.TYPE_MOBILE;
    } else {
      return false;
    }
  }
@Implementation
  protected boolean isActiveNetworkMetered() {
    if (defaultNetworkActive && activeNetworkInfo != null) {
      return activeNetworkInfo.getType() == ConnectivityManager.TYPE_MOBILE;
    } else {
      return false;
    }
  }
@ Implementation protected boolean isActiveNetworkMetered ( ) { if ( defaultNetworkActive && activeNetworkInfo != null ) { return activeNetworkInfo . getType ( ) == ConnectivityManager . TYPE_MOBILE ; } else { return false ; } }
Counts {@link ConnectivityManager#TYPE_MOBILE} networks as metered. Other types will be
considered unmetered.

@return `true` if the active network is metered, otherwise `false`.
@see #setActiveNetworkInfo(NetworkInfo)
@see #setDefaultNetworkActive(boolean)
Counts { @link ConnectivityManager#TYPE_MOBILE } networks as metered . Other types will be considered unmetered .