Searched refs:networkPriority (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/tests/vcn/java/android/net/vcn/ |
D | VcnCellUnderlyingNetworkTemplateTest.java | 84 final VcnCellUnderlyingNetworkTemplate networkPriority = builder.build(); in testBuilderAndGetters() local 86 assertEquals(MATCH_FORBIDDEN, networkPriority.getMetered()); in testBuilderAndGetters() 89 networkPriority.getMinEntryUpstreamBandwidthKbps()); in testBuilderAndGetters() 92 networkPriority.getMinExitUpstreamBandwidthKbps()); in testBuilderAndGetters() 95 networkPriority.getMinEntryDownstreamBandwidthKbps()); in testBuilderAndGetters() 98 networkPriority.getMinExitDownstreamBandwidthKbps()); in testBuilderAndGetters() 99 assertEquals(ALLOWED_PLMN_IDS, networkPriority.getOperatorPlmnIds()); in testBuilderAndGetters() 100 assertEquals(ALLOWED_CARRIER_IDS, networkPriority.getSimSpecificCarrierIds()); in testBuilderAndGetters() 101 assertEquals(MATCH_FORBIDDEN, networkPriority.getRoaming()); in testBuilderAndGetters() 102 assertEquals(MATCH_REQUIRED, networkPriority.getOpportunistic()); in testBuilderAndGetters() [all …]
|
D | VcnWifiUnderlyingNetworkTemplateTest.java | 48 final VcnWifiUnderlyingNetworkTemplate networkPriority = getTestNetworkTemplate(); in testBuilderAndGetters() local 49 assertEquals(MATCH_FORBIDDEN, networkPriority.getMetered()); in testBuilderAndGetters() 52 networkPriority.getMinEntryUpstreamBandwidthKbps()); in testBuilderAndGetters() 55 networkPriority.getMinExitUpstreamBandwidthKbps()); in testBuilderAndGetters() 58 networkPriority.getMinEntryDownstreamBandwidthKbps()); in testBuilderAndGetters() 61 networkPriority.getMinExitDownstreamBandwidthKbps()); in testBuilderAndGetters() 62 assertEquals(Set.of(SSID), networkPriority.getSsids()); in testBuilderAndGetters() 67 final VcnWifiUnderlyingNetworkTemplate networkPriority = in testBuilderAndGettersForDefaultValues() local 69 assertEquals(MATCH_ANY, networkPriority.getMetered()); in testBuilderAndGettersForDefaultValues() 72 assertEquals(0, networkPriority.getMinEntryUpstreamBandwidthKbps()); in testBuilderAndGettersForDefaultValues() [all …]
|
/frameworks/base/services/core/java/com/android/server/vcn/routeselection/ |
D | NetworkPriorityClassifier.java | 137 VcnUnderlyingNetworkTemplate networkPriority, in checkMatchesPriorityRule() argument 145 final int meteredMatch = networkPriority.getMetered(); in checkMatchesPriorityRule() 154 if (caps.getLinkUpstreamBandwidthKbps() < networkPriority.getMinExitUpstreamBandwidthKbps() in checkMatchesPriorityRule() 156 < networkPriority.getMinEntryUpstreamBandwidthKbps() in checkMatchesPriorityRule() 162 < networkPriority.getMinExitDownstreamBandwidthKbps() in checkMatchesPriorityRule() 164 < networkPriority.getMinEntryDownstreamBandwidthKbps() in checkMatchesPriorityRule() 170 networkPriority.getCapabilitiesMatchCriteria().entrySet()) { in checkMatchesPriorityRule() 185 if (networkPriority instanceof VcnWifiUnderlyingNetworkTemplate) { in checkMatchesPriorityRule() 187 (VcnWifiUnderlyingNetworkTemplate) networkPriority, in checkMatchesPriorityRule() 193 if (networkPriority instanceof VcnCellUnderlyingNetworkTemplate) { in checkMatchesPriorityRule() [all …]
|
/frameworks/base/tests/vcn/java/com/android/server/vcn/routeselection/ |
D | NetworkPriorityClassifierTest.java | 333 final VcnCellUnderlyingNetworkTemplate networkPriority = in verifyMatchMacroCellWithAllowedPlmnIds() local 342 networkPriority, in verifyMatchMacroCellWithAllowedPlmnIds() 362 final VcnCellUnderlyingNetworkTemplate networkPriority = in verifyMatchMacroCellWithAllowedSpecificCarrierIds() local 371 networkPriority, in verifyMatchMacroCellWithAllowedSpecificCarrierIds() 391 final VcnCellUnderlyingNetworkTemplate networkPriority = in testMatchWifiFailWithoutNotRoamingBit() local 397 networkPriority, in testMatchWifiFailWithoutNotRoamingBit()
|