Language

NetworkStatsDefault Enum

Definition

Identifies whether usage occurred on a default network or combines usage across default network states.

public enum NetworkStatsDefault
type NetworkStatsDefault = 
Inheritance
NetworkStatsDefault

Fields

Name Value Description
All -1

Combined usage for this network regardless of default network status.

Android reference for android.app.usage.NetworkStats.Bucket.DEFAULT_NETWORK_ALL.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

No 1

Usage that occurs while this network is not a default network.

This implies that the app responsible for this usage requested that it occur on a specific network different from the one(s) the system would have selected for it.

Android reference for android.app.usage.NetworkStats.Bucket.DEFAULT_NETWORK_NO.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Yes 2

Usage that occurs while this network is a default network.

This implies that the app either did not select a specific network for this usage, or it selected a network that the system could have selected for app traffic.

Android reference for android.app.usage.NetworkStats.Bucket.DEFAULT_NETWORK_YES.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Remarks

These values represent the default network status of a NetworkStats.Bucket. The All value combines usage without separating it by that status.

Applies to