Home
last modified time | relevance | path

Searched refs:TEST_IFACE_NAME (Results 1 – 13 of 13) sorted by relevance

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiDataStallTest.java20 import static com.android.server.wifi.WifiMetricsTest.TEST_IFACE_NAME;
297 mWifiDataStall.checkDataStallAndThroughputSufficiency(TEST_IFACE_NAME, in verifyThroughputNoRxLinkSpeed()
304 mWifiDataStall.checkDataStallAndThroughputSufficiency(TEST_IFACE_NAME, in verifyThroughputNoRxLinkSpeed()
314 .checkDataStallAndThroughputSufficiency(TEST_IFACE_NAME, in verifyDataStallTxFailureInternal()
322 .checkDataStallAndThroughputSufficiency(TEST_IFACE_NAME, in verifyDataStallTxFailureInternal()
327 verify(mWifiMetrics).logWifiIsUnusableEvent(TEST_IFACE_NAME, in verifyDataStallTxFailureInternal()
374 .checkDataStallAndThroughputSufficiency(TEST_IFACE_NAME, in verifyNoDataStallTxFailureWhenTxTputIsHigh()
381 .checkDataStallAndThroughputSufficiency(TEST_IFACE_NAME, in verifyNoDataStallTxFailureWhenTxTputIsHigh()
386 verify(mWifiMetrics, never()).logWifiIsUnusableEvent(TEST_IFACE_NAME, in verifyNoDataStallTxFailureWhenTxTputIsHigh()
399 .checkDataStallAndThroughputSufficiency(TEST_IFACE_NAME, in verifyNoDataStallWhenTxFailureIsNotConsecutive()
[all …]
DWifiVendorHalTest.java100 private static final String TEST_IFACE_NAME = "wlan0"; field in WifiVendorHalTest
200 when(mWifiStaIface.getName()).thenReturn(TEST_IFACE_NAME); in setUp()
201 when(mWifiApIface.getName()).thenReturn(TEST_IFACE_NAME); in setUp()
453 internalListenerCaptor.getValue().onDestroyed(TEST_IFACE_NAME); in testStaInterfaceDestroyedHandling()
454 verify(externalLister).onDestroyed(TEST_IFACE_NAME); in testStaInterfaceDestroyedHandling()
457 assertFalse(mWifiVendorHal.removeStaIface(TEST_IFACE_NAME)); in testStaInterfaceDestroyedHandling()
487 internalListenerCaptor.getValue().onDestroyed(TEST_IFACE_NAME); in testApInterfaceDestroyedHandling()
488 verify(externalLister).onDestroyed(TEST_IFACE_NAME); in testApInterfaceDestroyedHandling()
491 assertFalse(mWifiVendorHal.removeApIface(TEST_IFACE_NAME)); in testApInterfaceDestroyedHandling()
502 mWifiVendorHal.installPacketFilter(TEST_IFACE_NAME, new byte[0]); in testEnterLogging()
[all …]
DWifiMetricsTest.java181 public static final String TEST_IFACE_NAME = "wlan0"; field in WifiMetricsTest
270 when(concreteClientModeManager.getInterfaceName()).thenReturn(TEST_IFACE_NAME); in setUp()
292 mWifiMetrics.startConnectionEvent(TEST_IFACE_NAME, null, in startAndEndConnectionEventSucceeds()
295 mWifiMetrics.endConnectionEvent(TEST_IFACE_NAME, in startAndEndConnectionEventSucceeds()
301 mWifiMetrics.endConnectionEvent(TEST_IFACE_NAME, in startAndEndConnectionEventSucceeds()
307 mWifiMetrics.startConnectionEvent(TEST_IFACE_NAME, null, in startAndEndConnectionEventSucceeds()
310 mWifiMetrics.startConnectionEvent(TEST_IFACE_NAME, null, in startAndEndConnectionEventSucceeds()
373 mWifiMetrics.logFirmwareAlert(TEST_IFACE_NAME, 1); in stateDumpAlertCountIsCorrectWithOneAlert()
380 mWifiMetrics.logFirmwareAlert(TEST_IFACE_NAME, 1); in stateDumpAlertCountIsCorrectWithMultipleAlerts()
381 mWifiMetrics.logFirmwareAlert(TEST_IFACE_NAME, 1); in stateDumpAlertCountIsCorrectWithMultipleAlerts()
[all …]
DQosPolicyRequestHandlerTest.java60 private static final String TEST_IFACE_NAME = "mockWlan"; field in QosPolicyRequestHandlerTest
83 TEST_IFACE_NAME, mWifiNative, mClientModeImpl, mHandlerThread); in setUp()
145 verify(mWifiNative).sendQosPolicyResponse(eq(TEST_IFACE_NAME), eq(QOS_REQUEST_DIALOG_TOKEN), in testSingleQosPolicyRequestEvent()
185 mInOrder.verify(mWifiNative).sendQosPolicyResponse(eq(TEST_IFACE_NAME), in testMultipleQosPolicyRequestEvents()
213 verify(mWifiNative).sendQosPolicyResponse(eq(TEST_IFACE_NAME), eq(QOS_REQUEST_DIALOG_TOKEN), in testQosPolicyRequestEventWithDuplicatePolicyIds()
230 verify(mWifiNative).sendQosPolicyResponse(eq(TEST_IFACE_NAME), eq(QOS_REQUEST_DIALOG_TOKEN), in testQosPolicyRequestEventWithEmptyPolicyList()
268 verify(mWifiNative).sendQosPolicyResponse(eq(TEST_IFACE_NAME), eq(QOS_REQUEST_DIALOG_TOKEN), in testMoreResourcesIsFalseIfInsufficientResources()
307 verify(mWifiNative, never()).sendQosPolicyResponse(eq(TEST_IFACE_NAME), in testNetworkAgentSetToNullDuringProcessing()
309 verify(mWifiNative, never()).sendQosPolicyResponse(eq(TEST_IFACE_NAME), in testNetworkAgentSetToNullDuringProcessing()
313 verify(mWifiNative).sendQosPolicyResponse(eq(TEST_IFACE_NAME), in testNetworkAgentSetToNullDuringProcessing()
[all …]
DWifiNetworkSelectorTest.java92 private static final String TEST_IFACE_NAME = "mockWlan0"; field in WifiNetworkSelectorTest
556 Arrays.asList(new ClientModeManagerState(TEST_IFACE_NAME, false, true, mWifiInfo, in emptyScanResults()
590 Arrays.asList(new ClientModeManagerState(TEST_IFACE_NAME, false, true, mWifiInfo, in verifyMinimumRssiThreshold()
627 Arrays.asList(new ClientModeManagerState(TEST_IFACE_NAME, false, true, mWifiInfo, in verifyMinimumTimeGapWhenConnected()
639 Arrays.asList(new ClientModeManagerState(TEST_IFACE_NAME, true, false, mWifiInfo, in verifyMinimumTimeGapWhenConnected()
681 Arrays.asList(new ClientModeManagerState(TEST_IFACE_NAME, false, true, mWifiInfo, in verifyNoMinimumTimeGapWhenDisconnected()
693 Arrays.asList(new ClientModeManagerState(TEST_IFACE_NAME, false, true, mWifiInfo, in verifyNoMinimumTimeGapWhenDisconnected()
733 Arrays.asList(new ClientModeManagerState(TEST_IFACE_NAME, false, true, mWifiInfo, in lowRssi5GNetworkIsNotSufficient()
751 Arrays.asList(new ClientModeManagerState(TEST_IFACE_NAME, true, false, mWifiInfo, in lowRssi5GNetworkIsNotSufficient()
793 Arrays.asList(new ClientModeManagerState(TEST_IFACE_NAME, false, true, mWifiInfo, in noInternetAccessNetworkIsNotSufficient()
[all …]
DWifiMetricsTestUtil.java188 probe.interfaceName = WifiMetricsTest.TEST_IFACE_NAME; in buildLinkProbeSuccessStaEvent()
200 probe.interfaceName = WifiMetricsTest.TEST_IFACE_NAME; in buildLinkProbeFailureStaEvent()
DWifiScoreReportTest.java110 private static final String TEST_IFACE_NAME = "wlan0"; field in WifiScoreReportTest
235 mWifiInfo = new ExtendedWifiInfo(mWifiGlobals, TEST_IFACE_NAME); in setUp()
262 mAdaptiveConnectivityEnabledSettingObserver, TEST_IFACE_NAME, in setUp()
353 verify(mWifiMetrics).incrementWifiScoreCount(eq(TEST_IFACE_NAME), anyInt()); in calculateAndReportScoreSucceeds()
525 verify(mWifiMetrics).incrementWifiScoreCount(eq(TEST_IFACE_NAME), anyInt()); in networkAgentMayBeNull()
1204 when(mWifiNative.signalPoll(TEST_IFACE_NAME)).thenReturn(signalPollResults); in testFrameworkTriggersUpdateOfWifiUsabilityStats()
1211 verify(mWifiNative).getWifiLinkLayerStats(TEST_IFACE_NAME); in testFrameworkTriggersUpdateOfWifiUsabilityStats()
1212 verify(mWifiNative).signalPoll(TEST_IFACE_NAME); in testFrameworkTriggersUpdateOfWifiUsabilityStats()
1704 verify(mWifiMetrics).incrementWifiScoreCount(eq(TEST_IFACE_NAME), anyInt()); in testFrameworkGetsNotifiedOfUpdatedScore()
DWifiServiceImplTest.java348 private static final String TEST_IFACE_NAME = "test-wlan0"; field in WifiServiceImplTest
1392 TEST_TETHERING_REQUEST, TEST_IFACE_NAME)); in changeLohsState()
1408 TEST_TETHERING_REQUEST, TEST_IFACE_NAME)); in testSetWifiEnabledFromNetworkSettingsHolderWhenApEnabled()
1436 TEST_TETHERING_REQUEST, TEST_IFACE_NAME)); in testSetWifiEnabledFromAppFailsWhenApEnabledForPreS()
1975 TEST_TETHERING_REQUEST, TEST_IFACE_NAME)); in testGetWifiApEnabled()
1979 TEST_TETHERING_REQUEST, TEST_IFACE_NAME)); in testGetWifiApEnabled()
3671 TEST_TETHERING_REQUEST, TEST_IFACE_NAME)); in testTetheringDoesNotStartWhenAlreadyTetheringActive()
3699 TEST_TETHERING_REQUEST, TEST_IFACE_NAME)); in testStartTetheredHotspotDoesNotStartWhenAlreadyTetheringActive()
3725 TEST_TETHERING_REQUEST, TEST_IFACE_NAME)); in testStartTetheredHotspotRequestDoesNotStartWhenAlreadyTetheringActive()
3750 TEST_TETHERING_REQUEST, TEST_IFACE_NAME)); in testHotspotDoesNotStartWhenAlreadyTethering()
[all …]
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringServiceTest.java79 private static final String TEST_IFACE_NAME = "test_wlan0"; field in TetheringServiceTest
187 mTetheringConnector.tether(TEST_IFACE_NAME, TEST_CALLER_PKG, TEST_ATTRIBUTION_TAG, result); in runTether()
190 verify(mTethering).tether(TEST_IFACE_NAME, IpServer.STATE_TETHERED, result); in runTether()
196 mTetheringConnector.tether(TEST_IFACE_NAME, TEST_CALLER_PKG, TEST_ATTRIBUTION_TAG, in testTether()
215 mTetheringConnector.tether(TEST_IFACE_NAME, TEST_CALLER_PKG, TEST_ATTRIBUTION_TAG, in testTether()
225 mTetheringConnector.untether(TEST_IFACE_NAME, TEST_CALLER_PKG, TEST_ATTRIBUTION_TAG, in runUnTether()
229 verify(mTethering).untether(eq(TEST_IFACE_NAME), eq(result)); in runUnTether()
235 mTetheringConnector.untether(TEST_IFACE_NAME, TEST_CALLER_PKG, TEST_ATTRIBUTION_TAG, in testUntether()
254 mTetheringConnector.untether(TEST_IFACE_NAME, TEST_CALLER_PKG, TEST_ATTRIBUTION_TAG, in testUntether()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hal/
DWifiApIfaceHidlImplTest.java46 private static final String TEST_IFACE_NAME = "wlan1"; field in WifiApIfaceHidlImplTest
182 new ArrayList<String>() {{ add(TEST_IFACE_NAME); }}); in testGetBridgedApInstancesSuccess()
DWifiChipHidlImplTest.java70 private static final String TEST_IFACE_NAME = "wlan0"; field in WifiChipHidlImplTest
649 assertTrue(mDut.setMultiStaPrimaryConnection(TEST_IFACE_NAME)); in testSetMultiStaPrimaryConnection()
650 verify(mIWifiChipMockV15).setMultiStaPrimaryConnection(TEST_IFACE_NAME); in testSetMultiStaPrimaryConnection()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DScanResultTest.java61 public static final String TEST_IFACE_NAME = "test_ifname"; field in ScanResultTest
393 result.ifaceName = TEST_IFACE_NAME; in createScanResult()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/
DMdnsSocketProviderTest.java100 private static final String TEST_IFACE_NAME = "test"; field in MdnsSocketProviderTest
327 testLp.setInterfaceName(TEST_IFACE_NAME);
495 newTestLp.setInterfaceName(TEST_IFACE_NAME);
554 testLp.setInterfaceName(TEST_IFACE_NAME);