Home
last modified time | relevance | path

Searched refs:preferredTypes (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
DUpstreamNetworkMonitorTest.java287 final Collection<Integer> preferredTypes = new ArrayList<>(); in testSelectPreferredUpstreamType() local
288 preferredTypes.add(TYPE_WIFI); in testSelectPreferredUpstreamType()
293 assertSatisfiesLegacyType(TYPE_NONE, mUNM.selectPreferredUpstreamType(preferredTypes)); in testSelectPreferredUpstreamType()
298 assertSatisfiesLegacyType(TYPE_WIFI, mUNM.selectPreferredUpstreamType(preferredTypes)); in testSelectPreferredUpstreamType()
301 assertSatisfiesLegacyType(TYPE_NONE, mUNM.selectPreferredUpstreamType(preferredTypes)); in testSelectPreferredUpstreamType()
305 assertSatisfiesLegacyType(TYPE_NONE, mUNM.selectPreferredUpstreamType(preferredTypes)); in testSelectPreferredUpstreamType()
307 preferredTypes.add(TYPE_MOBILE_DUN); in testSelectPreferredUpstreamType()
311 assertSatisfiesLegacyType(TYPE_NONE, mUNM.selectPreferredUpstreamType(preferredTypes)); in testSelectPreferredUpstreamType()
312 preferredTypes.remove(TYPE_MOBILE_DUN); in testSelectPreferredUpstreamType()
314 preferredTypes.add(TYPE_MOBILE_HIPRI); in testSelectPreferredUpstreamType()
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
DUpstreamNetworkMonitor.java224 public NetworkState selectPreferredUpstreamType(Iterable<Integer> preferredTypes) { in selectPreferredUpstreamType() argument
226 mNetworkMap.values(), preferredTypes, isCellularUpstreamPermitted()); in selectPreferredUpstreamType()
495 Iterable<NetworkState> netStates, Iterable<Integer> preferredTypes, in findFirstAvailableUpstreamByType() argument
499 for (int type : preferredTypes) { in findFirstAvailableUpstreamByType()