Home
last modified time | relevance | path

Searched refs:networkType (Results 1 – 23 of 23) sorted by relevance

/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/main/java/com/google/android/exoplayer2/upstream/
DDefaultBandwidthMeter.java152 for (Integer networkType : initialBitrateEstimates.keySet()) { in setInitialBitrateEstimate()
153 setInitialBitrateEstimate(networkType, initialBitrateEstimate); in setInitialBitrateEstimate()
167 @C.NetworkType int networkType, long initialBitrateEstimate) { in setInitialBitrateEstimate()
168 initialBitrateEstimates.put(networkType, initialBitrateEstimate); in setInitialBitrateEstimate()
279 private @C.NetworkType int networkType; field in DefaultBandwidthMeter
314 networkType = networkTypeObserver.getNetworkType(); in DefaultBandwidthMeter()
315 bitrateEstimate = getInitialBitrateEstimateForNetworkType(networkType); in DefaultBandwidthMeter()
318 networkType = C.NETWORK_TYPE_UNKNOWN; in DefaultBandwidthMeter()
331 public synchronized void setNetworkTypeOverride(@C.NetworkType int networkType) { in setNetworkTypeOverride() argument
332 networkTypeOverride = networkType; in setNetworkTypeOverride()
[all …]
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/main/java/com/google/android/exoplayer2/upstream/
DDefaultBandwidthMeter.java152 for (Integer networkType : initialBitrateEstimates.keySet()) { in setInitialBitrateEstimate()
153 setInitialBitrateEstimate(networkType, initialBitrateEstimate); in setInitialBitrateEstimate()
167 @C.NetworkType int networkType, long initialBitrateEstimate) { in setInitialBitrateEstimate()
168 initialBitrateEstimates.put(networkType, initialBitrateEstimate); in setInitialBitrateEstimate()
279 @C.NetworkType private int networkType; field in DefaultBandwidthMeter
312 networkType = networkTypeObserver.getNetworkType(); in DefaultBandwidthMeter()
313 bitrateEstimate = getInitialBitrateEstimateForNetworkType(networkType); in DefaultBandwidthMeter()
316 networkType = C.NETWORK_TYPE_UNKNOWN; in DefaultBandwidthMeter()
329 public synchronized void setNetworkTypeOverride(@C.NetworkType int networkType) { in setNetworkTypeOverride() argument
330 networkTypeOverride = networkType; in setNetworkTypeOverride()
[all …]
/external/downloader/src/main/java/com/google/android/downloader/
DAndroidConnectivityHandler.java112 NetworkType networkType; in connectivitySatisfied() local
146 networkType = computeNetworkType(networkCapabilities); in connectivitySatisfied()
174 networkType = computeNetworkType(networkInfo.getType()); in connectivitySatisfied()
177 if (networkType == null) { in connectivitySatisfied()
184 return downloadConstraints.requiredNetworkTypes().contains(networkType); in connectivitySatisfied()
188 private static NetworkType computeNetworkType(int networkType) { in computeNetworkType() argument
190 && networkType == ConnectivityManager.TYPE_BLUETOOTH) { in computeNetworkType()
193 && networkType == ConnectivityManager.TYPE_ETHERNET) { in computeNetworkType()
195 } else if (networkType == ConnectivityManager.TYPE_MOBILE in computeNetworkType()
196 || networkType == ConnectivityManager.TYPE_MOBILE_MMS in computeNetworkType()
[all …]
DDownloadConstraints.java113 public Builder addRequiredNetworkType(NetworkType networkType) { in addRequiredNetworkType() argument
114 requiredNetworkTypesBuilder().add(networkType); in addRequiredNetworkType()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/common/src/main/java/com/google/android/exoplayer2/util/
DNetworkTypeObserver.java58 void onNetworkTypeChanged(@C.NetworkType int networkType); in onNetworkTypeChanged() argument
87 private @C.NetworkType int networkType; field in NetworkTypeObserver
111 networkType = C.NETWORK_TYPE_UNKNOWN; in NetworkTypeObserver()
135 return networkType; in getNetworkType()
147 private void updateNetworkType(@C.NetworkType int networkType) { in updateNetworkType() argument
149 if (this.networkType == networkType) { in updateNetworkType()
152 this.networkType = networkType; in updateNetworkType()
157 listener.onNetworkTypeChanged(networkType); in updateNetworkType()
233 @C.NetworkType int networkType = getNetworkTypeFromConnectivityManager(context); in onReceive() local
236 && networkType == C.NETWORK_TYPE_4G) { in onReceive()
[all …]
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/common/src/main/java/com/google/android/exoplayer2/util/
DNetworkTypeObserver.java58 void onNetworkTypeChanged(@C.NetworkType int networkType); in onNetworkTypeChanged() argument
88 private int networkType; field in NetworkTypeObserver
112 networkType = C.NETWORK_TYPE_UNKNOWN; in NetworkTypeObserver()
137 return networkType; in getNetworkType()
149 private void updateNetworkType(@C.NetworkType int networkType) { in updateNetworkType() argument
151 if (this.networkType == networkType) { in updateNetworkType()
154 this.networkType = networkType; in updateNetworkType()
159 listener.onNetworkTypeChanged(networkType); in updateNetworkType()
237 @C.NetworkType int networkType = getNetworkTypeFromConnectivityManager(context); in onReceive() local
240 && networkType == C.NETWORK_TYPE_4G) { in onReceive()
[all …]
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/
DPreciseDataConnectionStateBuilder.java15 private int networkType; field in PreciseDataConnectionStateBuilder
33 public PreciseDataConnectionStateBuilder setNetworkType(int networkType) { in setNetworkType() argument
34 this.networkType = networkType; in setNetworkType()
69 ClassParameter.from(int.class, networkType), in build()
82 .setNetworkType(networkType) in build()
DShadowConnectivityManager.java209 protected NetworkInfo getNetworkInfo(int networkType) { in getNetworkInfo() argument
210 return networkTypeToNetworkInfo.get(networkType); in getNetworkInfo()
270 public void setNetworkInfo(int networkType, NetworkInfo networkInfo) { in setNetworkInfo() argument
271 networkTypeToNetworkInfo.put(networkType, networkInfo); in setNetworkInfo()
DShadowTelephonyManager.java121 private int networkType; field in ShadowTelephonyManager
643 return networkType; in getNetworkType()
652 public void setNetworkType(int networkType) { in setNetworkType() argument
653 this.networkType = networkType; in setNetworkType()
1426 @NetworkType int networkType, @OverrideNetworkType int overrideNetworkType) {
1427 return new TelephonyDisplayInfo(networkType, overrideNetworkType);
/external/ims/rcs/rcsservice/src/com/android/service/ims/presence/
DPresencePublication.java1142 public void onFeatureCapabilityChanged(int networkType, in onFeatureCapabilityChanged() argument
1144 logger.debug("onFeatureCapabilityChanged networkType=" + networkType in onFeatureCapabilityChanged()
1147 Thread thread = new Thread(() -> onFeatureCapabilityChangedInternal(networkType, in onFeatureCapabilityChanged()
1153 synchronized private void onFeatureCapabilityChangedInternal(int networkType, in onFeatureCapabilityChangedInternal() argument
1160 mIsVolteAvailable = (networkType == AccessNetworkConstants.TRANSPORT_TYPE_WWAN) && in onFeatureCapabilityChangedInternal()
1163 mIsVoWifiAvailable = (networkType == AccessNetworkConstants.TRANSPORT_TYPE_WLAN) && in onFeatureCapabilityChangedInternal()
1166 mIsVtAvailable = (networkType == AccessNetworkConstants.TRANSPORT_TYPE_WWAN) && in onFeatureCapabilityChangedInternal()
1169 mIsViWifiAvailable = (networkType == AccessNetworkConstants.TRANSPORT_TYPE_WLAN) && in onFeatureCapabilityChangedInternal()
1208 int networkType = teleMgr.getDataNetworkType(); in isOnLTE() local
1209 logger.debug("mMovedToLTE=" + mMovedToLTE + " networkType=" + networkType); in isOnLTE()
[all …]
/external/webrtc/sdk/android/instrumentationtests/src/org/webrtc/
DNetworkMonitorTest.java88 private int networkType; field in NetworkMonitorTest.MockConnectivityManagerDelegate
103 return new NetworkState(activeNetworkExists, networkType, networkSubtype, in getNetworkState()
128 public void setNetworkType(int networkType) { in setNetworkType() argument
129 this.networkType = networkType; in setNetworkType()
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/downloader/
DDownloadConstraints.java112 public final Builder addRequiredNetworkType(NetworkType networkType) { in addRequiredNetworkType() argument
113 requiredNetworkTypesBuilder().add(networkType); in addRequiredNetworkType()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowConnectivityManager.java146 protected NetworkInfo getNetworkInfo(int networkType) { in getNetworkInfo() argument
147 return networkTypeToNetworkInfo.get(networkType); in getNetworkInfo()
207 public void setNetworkInfo(int networkType, NetworkInfo networkInfo) { in setNetworkInfo() argument
208 networkTypeToNetworkInfo.put(networkType, networkInfo); in setNetworkInfo()
DShadowTelephonyManager.java67 private int networkType; field in ShadowTelephonyManager
327 return networkType; in getNetworkType()
330 public void setNetworkType(int networkType) { in setNetworkType() argument
331 this.networkType = networkType; in setNetworkType()
/external/autotest/client/site_tests/network_ChromeCellularEndToEnd/
Dnetwork_ChromeCellularEndToEnd.py45 networkType=network['Type'])
190 if not formatted_network_list[0].networkType == 'Ethernet':
193 if not formatted_network_list[1].networkType == 'Cellular':
/external/libtextclassifier/java/src/com/android/textclassifier/downloader/
DModelDownloadManager.java228 NetworkType networkType = in scheduleDownloadWork() local
235 .setRequiredNetworkType(networkType) in scheduleDownloadWork()
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/internal/logging/
DLoggingStateStoreTest.java379 String ownerPackage, String groupName, int versionNumber, String networkType) { in getFileGroupKey() argument
388 .append(networkType) in getFileGroupKey()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/main/java/com/google/android/exoplayer2/analytics/
DMediaMetricsListener.java392 int networkType = getNetworkType(context); in maybeReportNetworkChange() local
393 if (networkType != currentNetworkType) { in maybeReportNetworkChange()
394 currentNetworkType = networkType; in maybeReportNetworkChange()
397 .setNetworkType(networkType) in maybeReportNetworkChange()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/main/java/com/google/android/exoplayer2/analytics/
DMediaMetricsListener.java415 int networkType = getNetworkType(context); in maybeReportNetworkChange() local
416 if (networkType != currentNetworkType) { in maybeReportNetworkChange()
417 currentNetworkType = networkType; in maybeReportNetworkChange()
420 .setNetworkType(networkType) in maybeReportNetworkChange()
/external/autotest/client/cros/networking/chrome_testing/network_test_ext/
Dbackground.js107 networkType: type property
/external/webrtc/sdk/android/api/org/webrtc/
DNetworkMonitorAutoDetect.java787 boolean isConnected, int networkType, int networkSubtype) { in getConnectionType() argument
792 switch (networkType) { in getConnectionType()
/external/cronet/net/android/javatests/src/org/chromium/net/
DNetworkChangeNotifierTest.java272 public void setNetworkType(int networkType) { in setNetworkType() argument
273 mNetworkType = networkType; in setNetworkType()
/external/sl4a/Common/src/com/googlecode/android_scripting/jsonrpc/
DJsonBuilder.java804 String networkType = TelephonyUtils.getNetworkTypeString(data.getNetworkType()); in buildNeighboringCellInfo() local
805 result.put("network_type", build(networkType)); in buildNeighboringCellInfo()