Home
last modified time | relevance | path

Searched refs:NetworkType (Results 1 – 15 of 15) sorted by relevance

/external/downloader/src/main/java/com/google/android/downloader/
DAndroidConnectivityHandler.java40 import com.google.android.downloader.DownloadConstraints.NetworkType;
112 NetworkType networkType; in connectivitySatisfied()
140 if (downloadConstraints.requiredNetworkTypes().contains(NetworkType.ANY)) { in connectivitySatisfied()
168 if (downloadConstraints.requiredNetworkTypes().contains(NetworkType.ANY)) { in connectivitySatisfied()
188 private static NetworkType computeNetworkType(int networkType) { in computeNetworkType()
191 return NetworkType.BLUETOOTH; in computeNetworkType()
194 return NetworkType.ETHERNET; in computeNetworkType()
200 return NetworkType.CELLULAR; in computeNetworkType()
205 return NetworkType.CELLULAR; in computeNetworkType()
207 return NetworkType.WIFI; in computeNetworkType()
[all …]
DDownloadConstraints.java48 .setRequiredNetworkTypes(ImmutableSet.of(NetworkType.ANY))
62 .setRequiredNetworkTypes(ImmutableSet.of(NetworkType.ANY))
70 public enum NetworkType { enum in DownloadConstraints
96 public abstract ImmutableSet<NetworkType> requiredNetworkTypes(); in requiredNetworkTypes()
109 public abstract Builder setRequiredNetworkTypes(Set<NetworkType> networkTypes); in setRequiredNetworkTypes()
111 abstract ImmutableSet.Builder<NetworkType> requiredNetworkTypesBuilder(); in requiredNetworkTypesBuilder()
113 public Builder addRequiredNetworkType(NetworkType networkType) { in addRequiredNetworkType()
/external/webrtc/sdk/android/src/jni/
Dandroid_network_monitor.cc38 static NetworkType GetNetworkTypeFromJava( in GetNetworkTypeFromJava()
43 return NetworkType::NETWORK_UNKNOWN; in GetNetworkTypeFromJava()
46 return NetworkType::NETWORK_ETHERNET; in GetNetworkTypeFromJava()
49 return NetworkType::NETWORK_WIFI; in GetNetworkTypeFromJava()
52 return NetworkType::NETWORK_5G; in GetNetworkTypeFromJava()
55 return NetworkType::NETWORK_4G; in GetNetworkTypeFromJava()
58 return NetworkType::NETWORK_3G; in GetNetworkTypeFromJava()
61 return NetworkType::NETWORK_2G; in GetNetworkTypeFromJava()
64 return NetworkType::NETWORK_UNKNOWN_CELLULAR; in GetNetworkTypeFromJava()
67 return NetworkType::NETWORK_BLUETOOTH; in GetNetworkTypeFromJava()
[all …]
Dandroid_network_monitor.h30 enum NetworkType { enum
49 NetworkType type;
50 NetworkType underlying_type_for_vpn;
/external/exoplayer/tree/extensions/workmanager/src/main/java/com/google/android/exoplayer2/ext/workmanager/
DWorkManagerScheduler.java24 import androidx.work.NetworkType;
77 builder.setRequiredNetworkType(NetworkType.UNMETERED); in buildConstraints()
79 builder.setRequiredNetworkType(NetworkType.CONNECTED); in buildConstraints()
81 builder.setRequiredNetworkType(NetworkType.NOT_REQUIRED); in buildConstraints()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/upstream/
DDefaultBandwidthMeter.java142 @C.NetworkType int networkType, long initialBitrateEstimate) { in setInitialBitrateEstimate()
246 @C.NetworkType private int networkType;
253 @C.NetworkType private int networkTypeOverride;
296 public synchronized void setNetworkTypeOverride(@C.NetworkType int networkType) { in setNetworkTypeOverride()
413 private long getInitialBitrateEstimateForNetworkType(@C.NetworkType int networkType) { in getInitialBitrateEstimateForNetworkType()
/external/downloader/src/test/java/com/google/android/downloader/
DAndroidConnectivityHandlerTest.java34 import com.google.android.downloader.DownloadConstraints.NetworkType;
167 .setRequiredNetworkTypes(ImmutableSet.of(NetworkType.ANY)) in checkConnectivity_anyNetworkType()
190 .setRequiredNetworkTypes(EnumSet.of(NetworkType.WIFI)) in checkConnectivity_unknownNetworkType()
/external/webrtc/logging/rtc_event_log/
Drtc_event_log.proto365 enum NetworkType { enum
387 optional NetworkType local_network_type = 5;
Drtc_event_log2.proto573 enum NetworkType { enum
598 optional NetworkType local_network_type = 6;
Drtc_event_log_parser.h249 rtclog2::IceCandidatePairConfig::NetworkType network_type); in RTC_POP_IGNORING_WUNDEF()
Drtc_event_log_parser.cc261 rtclog::IceCandidatePairConfig::NetworkType network_type) { in GetRuntimeIceCandidateNetworkType()
879 rtclog2::IceCandidatePairConfig::NetworkType network_type) { in GetRuntimeIceCandidateNetworkType()
/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/
DC.java939 public @interface NetworkType {} annotation in C
/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/util/
DUtil.java1908 @C.NetworkType
2204 private static @C.NetworkType int getMobileNetworkType(NetworkInfo networkInfo) { in getMobileNetworkType()
/external/webrtc/logging/rtc_event_log/encoder/
Drtc_event_log_encoder_legacy.cc190 rtclog::IceCandidatePairConfig::NetworkType ConvertIceCandidateNetworkType( in ConvertIceCandidateNetworkType()
Drtc_event_log_encoder_new_format.cc229 rtclog2::IceCandidatePairConfig::NetworkType ConvertToProtoFormat( in ConvertToProtoFormat()