Searched refs:preferredTypes (Results 1 – 2 of 2) sorted by relevance
287 final Collection<Integer> preferredTypes = new ArrayList<>(); in testSelectPreferredUpstreamType() local288 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 …]
224 public NetworkState selectPreferredUpstreamType(Iterable<Integer> preferredTypes) { in selectPreferredUpstreamType() argument226 mNetworkMap.values(), preferredTypes, isCellularUpstreamPermitted()); in selectPreferredUpstreamType()495 Iterable<NetworkState> netStates, Iterable<Integer> preferredTypes, in findFirstAvailableUpstreamByType() argument499 for (int type : preferredTypes) { in findFirstAvailableUpstreamByType()