Searched refs:UpstreamType (Results 1 – 6 of 6) sorted by relevance
/packages/modules/Connectivity/staticlibs/testutils/host/python/ |
D | tether_utils.py | 22 class UpstreamType: class 41 upstream_type: UpstreamType, argument 51 if upstream_type == UpstreamType.CELLULAR: 55 elif upstream_type == UpstreamType.WIFI: 60 elif upstream_type == UpstreamType.NONE: 69 upstream_type: UpstreamType, argument 80 if upstream_type == UpstreamType.CELLULAR: 82 elif upstream_type == UpstreamType.WIFI: 84 elif upstream_type == UpstreamType.NONE: 99 test_ssid, test_passphrase, upstream_type != UpstreamType.NONE [all …]
|
D | apf_test_base.py | 17 from net_tests_utils.host.python.tether_utils import UpstreamType 32 self.serverDevice, self.clientDevice, UpstreamType.NONE 45 self.serverDevice, self.clientDevice, UpstreamType.NONE 79 self.serverDevice, UpstreamType.NONE
|
/packages/modules/Connectivity/tests/cts/multidevices/ |
D | connectivity_multi_devices_test.py | 17 from net_tests_utils.host.python.tether_utils import UpstreamType 26 self.serverDevice, self.clientDevice, UpstreamType.WIFI 31 self.serverDevice, self.clientDevice, UpstreamType.WIFI 35 self.serverDevice, UpstreamType.WIFI 40 self.serverDevice, self.clientDevice, UpstreamType.CELLULAR 45 self.serverDevice, self.clientDevice, UpstreamType.CELLULAR 49 self.serverDevice, UpstreamType.CELLULAR 54 self.serverDevice, self.clientDevice, UpstreamType.NONE 62 self.serverDevice, self.clientDevice, UpstreamType.NONE 70 self.serverDevice, UpstreamType.NONE
|
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/metrics/ |
D | TetheringMetrics.java | 67 import android.stats.connectivity.UpstreamType; 118 private final ArrayMap<UpstreamType, DataUsage> mLastReportedUpstreamUsage = new ArrayMap<>(); 123 private UpstreamType mCurrentUpstream = null; 234 final UpstreamType mUpstreamType; 238 final UpstreamType upstream, final DataUsage dataUsage) { in RecordUpstreamEvent() 262 .setUpstreamType(UpstreamType.UT_UNKNOWN) in handleCreateBuilder() 297 private DataUsage calculateDataUsageDelta(@Nullable UpstreamType upstream) { in calculateDataUsageDelta() 331 UpstreamType upstream = transportTypeToUpstreamTypeEnum(ns); in handleMaybeUpdateUpstreamType() 352 final long start, final long stop, @Nullable final UpstreamType upstream, in addUpstreamEvent() 355 .setUpstreamType(upstream == null ? UpstreamType.UT_NO_NETWORK : upstream) in addUpstreamEvent() [all …]
|
D | stats.proto | 29 optional .android.stats.connectivity.UpstreamType upstream_type = 1; 56 optional .android.stats.connectivity.UpstreamType upstream_type = 3 [deprecated = true];
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/metrics/ |
D | TetheringMetricsTest.java | 59 import static android.stats.connectivity.UpstreamType.UT_BLUETOOTH; 60 import static android.stats.connectivity.UpstreamType.UT_CELLULAR; 61 import static android.stats.connectivity.UpstreamType.UT_ETHERNET; 62 import static android.stats.connectivity.UpstreamType.UT_WIFI; 85 import android.stats.connectivity.UpstreamType; 129 private final ArrayMap<UpstreamType, DataUsage> mMockUpstreamUsageBaseline = new ArrayMap<>(); 193 .setUpstreamType(UpstreamType.UT_UNKNOWN) in verifyReport() 228 final UpstreamType expectedResult, final long duration, final long txBytes, in addUpstreamEvent() 246 addUpstreamEvent(upstreamEvents, UpstreamType.UT_NO_NETWORK, duration, 0L, 0L); in runDownstreamTypesTest() 316 addUpstreamEvent(upstreamEvents, UpstreamType.UT_NO_NETWORK, duration, 0L, 0L); in runUserTypesTest() [all …]
|