/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | ANQPRequestManagerTest.java | 47 private static final long TEST_BSSID = 0x123456L; field in ANQPRequestManagerTest 49 new ANQPNetworkKey("TestSSID", TEST_BSSID, 0, 0); 111 when(mHandler.requestANQP(TEST_BSSID, R1_ANQP_WITHOUT_RC)).thenReturn(true); in requestR1ANQPElementsWithoutRC() 112 assertTrue(mManager.requestANQPElements(TEST_BSSID, TEST_ANQP_KEY, false, false)); in requestR1ANQPElementsWithoutRC() 124 when(mHandler.requestANQP(TEST_BSSID, R1_ANQP_WITH_RC)).thenReturn(true); in requestR1ANQPElementsWithRC() 125 assertTrue(mManager.requestANQPElements(TEST_BSSID, TEST_ANQP_KEY, true, false)); in requestR1ANQPElementsWithRC() 137 when(mHandler.requestANQP(TEST_BSSID, R1R2_ANQP_WITHOUT_RC)).thenReturn(true); in requestR1R2ANQPElementsWithoutRC() 138 assertTrue(mManager.requestANQPElements(TEST_BSSID, TEST_ANQP_KEY, false, true)); in requestR1R2ANQPElementsWithoutRC() 150 when(mHandler.requestANQP(TEST_BSSID, R1R2_ANQP_WITH_RC)).thenReturn(true); in requestR1R2ANQPElementsWithRC() 151 assertTrue(mManager.requestANQPElements(TEST_BSSID, TEST_ANQP_KEY, true, true)); in requestR1R2ANQPElementsWithRC() [all …]
|
D | PasspointManagerTest.java | 143 private static final long TEST_BSSID = 0x112233445566L; field in PasspointManagerTest 158 TEST_SSID, TEST_BSSID, TEST_HESSID, TEST_ANQP_DOMAIN_ID); 160 TEST_SSID, TEST_BSSID, TEST_HESSID, TEST_ANQP_DOMAIN_ID2); 468 when(mAnqpRequestManager.onRequestCompleted(TEST_BSSID, true)).thenReturn(TEST_ANQP_KEY); in anqpResponseSuccess() 469 mCallbacks.onANQPResponse(TEST_BSSID, anqpElementMap); in anqpResponseSuccess() 487 when(mAnqpRequestManager.onRequestCompleted(TEST_BSSID, true)).thenReturn(null); in anqpResponseSuccessWithUnknownRequest() 488 mCallbacks.onANQPResponse(TEST_BSSID, anqpElementMap); in anqpResponseSuccessWithUnknownRequest() 499 when(mAnqpRequestManager.onRequestCompleted(TEST_BSSID, false)).thenReturn(TEST_ANQP_KEY); in anqpResponseFailure() 500 mCallbacks.onANQPResponse(TEST_BSSID, null); in anqpResponseFailure() 856 verify(mAnqpRequestManager).requestANQPElements(eq(TEST_BSSID), any(ANQPNetworkKey.class), in matchProviderWithAnqpCacheMissed()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | WifiP2pNativeTest.java | 62 private static final String TEST_BSSID = "de:ad:be:ef:01:02"; field in WifiP2pNativeTest 180 assertTrue(mWifiP2pNative.startWpsPbc(TEST_IFACE, TEST_BSSID)); in testStartWpsPbc() 181 verify(mSupplicantP2pIfaceHalMock).startWpsPbc(eq(TEST_IFACE), eq(TEST_BSSID)); in testStartWpsPbc() 202 assertEquals(TEST_PIN, mWifiP2pNative.startWpsPinDisplay(TEST_IFACE, TEST_BSSID)); in testStartWpsPinDisplay() 203 verify(mSupplicantP2pIfaceHalMock).startWpsPinDisplay(eq(TEST_IFACE), eq(TEST_BSSID)); in testStartWpsPinDisplay() 354 config.deviceAddress = TEST_BSSID; in testP2pConnect() 380 config.deviceAddress = TEST_BSSID; in testP2pProvisionDiscovery() 450 assertTrue(mWifiP2pNative.p2pReject(TEST_BSSID)); in testP2pReject() 451 verify(mSupplicantP2pIfaceHalMock).reject(eq(TEST_BSSID)); in testP2pReject() 462 assertTrue(mWifiP2pNative.p2pInvite(group, TEST_BSSID)); in testP2pInvite() [all …]
|
/frameworks/base/wifi/tests/src/android/net/wifi/ |
D | WifiNetworkSuggestionTest.java | 39 private static final String TEST_BSSID = "12:12:12:12:12:12"; field in WifiNetworkSuggestionTest 128 .setBssid(MacAddress.fromString(TEST_BSSID)) in testWifiNetworkSuggestionBuilderForEnhancedOpenNetworkWithBssid() 133 assertEquals(TEST_BSSID, suggestion.wifiConfiguration.BSSID); in testWifiNetworkSuggestionBuilderForEnhancedOpenNetworkWithBssid() 320 configuration.BSSID = TEST_BSSID; in testWifiNetworkSuggestionParcel() 354 configuration.BSSID = TEST_BSSID; in testWifiNetworkSuggestionEqualsSame() 362 configuration1.BSSID = TEST_BSSID; in testWifiNetworkSuggestionEqualsSame() 402 configuration.BSSID = TEST_BSSID; in testWifiNetworkSuggestionEqualsFailsWhenBssidIsDifferent()
|
D | ScanResultTest.java | 39 public static final String TEST_BSSID = "04:ac:fe:45:34:10"; field in ScanResultTest 175 result.BSSID = TEST_BSSID; in createScanResult()
|
D | WifiNetworkSpecifierTest.java | 49 private static final String TEST_BSSID = "12:12:12:12:12:12"; field in WifiNetworkSpecifierTest 115 .setBssid(MacAddress.fromString(TEST_BSSID)) in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid() 125 assertEquals(MacAddress.fromString(TEST_BSSID), in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid()
|
D | WifiNetworkAgentSpecifierTest.java | 45 private static final String TEST_BSSID = "12:12:12:aa:0b:c0"; field in WifiNetworkAgentSpecifierTest 433 wifiConfiguration.BSSID = TEST_BSSID; in createDefaultWifiConfiguration()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/wificond/ |
D | NativeScanResultTest.java | 41 private static final byte[] TEST_BSSID = field in NativeScanResultTest 62 scanResult.bssid = TEST_BSSID; in canSerializeAndDeserialize()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/ |
D | AccessPointTest.java | 96 public static final String TEST_BSSID = "00:00:00:00:00:00"; field in AccessPointTest 133 mWifiInfo.setBSSID(TEST_BSSID); in setUp() 615 new NetworkKey(new WifiKey(TEST_SSID, TEST_BSSID)), 1171 .setBssid(TEST_BSSID) in testUpdateScoresRefreshesScoredNetworkCacheTimestamps() 1199 .setBssid(TEST_BSSID) in testUpdateScoresRefreshesScoredNetworkCacheWithNewSpeed() 1229 spyConfig.BSSID = TEST_BSSID; in testUpdate_passpointWifiInfo_updatesPasspointAccessPoint() 1247 .setBssid(TEST_BSSID) in testUpdate_passpointWifiInfo_doesNotUpdateNonPasspointAccessPoint() 1262 spyConfig.BSSID = TEST_BSSID; in testUpdate_nonPasspointWifiInfo_doesNotUpdatePasspointAccessPoint() 1302 ScanResult scanResult = createScanResult(TEST_SSID, TEST_BSSID, DEFAULT_RSSI); in testGetKey_supportSaeTransitionMode_shouldGetSaeKey() 1321 ScanResult scanResult = createScanResult(TEST_SSID, TEST_BSSID, DEFAULT_RSSI); in testGetKey_notSupportSaeTransitionMode_shouldGetPskKey() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiNetworkSuggestionsManagerTest.java | 88 private static final String TEST_BSSID = "00:11:22:33:44:55"; field in WifiNetworkSuggestionsManagerTest 867 TEST_BSSID); in testOnNetworkConnectionSuccessWithOneMatch() 901 TEST_BSSID); in testOnNetworkConnectionFailureWithOneMatch() 949 WifiMetrics.ConnectionEvent.FAILURE_NONE, wifiConfiguration, TEST_BSSID); in testOnNetworkConnectionSuccessWithMultipleMatch() 984 wifiConfiguration.BSSID = TEST_BSSID; in testOnNetworkConnectionSuccessWithBssidMultipleMatch() 1011 WifiMetrics.ConnectionEvent.FAILURE_NONE, wifiConfiguration, TEST_BSSID); in testOnNetworkConnectionSuccessWithBssidMultipleMatch() 1047 wifiConfiguration2.BSSID = TEST_BSSID; in testOnNetworkConnectionSuccessWithBssidAndWithoutBssidMultipleMatch() 1074 WifiMetrics.ConnectionEvent.FAILURE_NONE, wifiConfiguration1, TEST_BSSID); in testOnNetworkConnectionSuccessWithBssidAndWithoutBssidMultipleMatch() 1125 TEST_BSSID); in testOnNetworkConnectionWhenAppNotApproved() 1159 TEST_BSSID); in testOnNetworkConnectionWhenIsAppInteractionRequiredNotSet() [all …]
|
D | WifiConfigurationUtilTest.java | 54 static final String TEST_BSSID = "aa:aa:11:22:cc:dd"; field in WifiConfigurationUtilTest 610 Pair.create(MacAddress.fromString(TEST_BSSID), MacAddress.BROADCAST_ADDRESS), in testValidateNetworkSpecifierPositiveCases_BssidPattern() 624 Pair.create(MacAddress.fromString(TEST_BSSID), MacAddress.BROADCAST_ADDRESS), in testValidateNetworkSpecifierPositiveCases_BothSsidPatternAndBssidPattern() 680 Pair.create(MacAddress.fromString(TEST_BSSID), MacAddress.ALL_ZEROS_ADDRESS), in testValidateNetworkSpecifierNegativeCases_InvalidBssidPattern() 770 network.getNetworkSelectionStatus().setNetworkSelectionBSSID(TEST_BSSID); in testIsSameNetworkReturnsTrueOnSameNetworkWithDifferentBSSID()
|
D | LinkProbeManagerTest.java | 56 private static final String TEST_BSSID = "6c:f3:7f:ae:8c:f3"; field in LinkProbeManagerTest 84 mWifiInfo.setBSSID(TEST_BSSID); in setUp()
|
D | WifiConfigManagerTest.java | 90 private static final String TEST_BSSID = "0a:08:5c:67:89:00"; field in WifiConfigManagerTest 517 assertAndSetNetworkBSSID(openNetwork, TEST_BSSID); in testUpdateSingleOpenNetwork() 546 assertAndSetNetworkBSSID(openNetwork, TEST_BSSID); in testCannotUpdateMacRandomizationSettingWithoutPermission() 748 assertAndSetNetworkBSSID(openNetwork, TEST_BSSID); in testUpdateSingleOpenNetworkFailedDueToPermissionDenied() 771 assertAndSetNetworkBSSID(openNetwork, TEST_BSSID); in testUpdateSingleOpenNetworkSuccessWithCreatorUID() 848 assertAndSetNetworkBSSID(openNetwork, TEST_BSSID); in testUpdateIpConfiguration() 983 assertAndSetNetworkBSSID(openNetwork, TEST_BSSID); in testAddUpdateRemoveMultipleNetworks() 984 assertAndSetNetworkBSSID(pskNetwork, TEST_BSSID); in testAddUpdateRemoveMultipleNetworks() 2152 ScanDetail scanDetail1 = createScanDetailForNetwork(network1, TEST_BSSID + "1", in testRetrievePnoListFrequencies() 2154 ScanDetail scanDetail2 = createScanDetailForNetwork(network1, TEST_BSSID + "2", in testRetrievePnoListFrequencies() [all …]
|
D | WificondControlTest.java | 115 private static final byte[] TEST_BSSID = field in WificondControlTest 147 bssid = TEST_BSSID;
|
D | WifiServiceImplTest.java | 1310 static final String TEST_BSSID = "01:02:03:04:05:06"; field in WifiServiceImplTest 1317 wifiInfo.setBSSID(TEST_BSSID); in setupForGetConnectionInfo() 1369 assertEquals(TEST_BSSID, connectionInfo.getBSSID()); in testConnectedIdsAreVisibleFromPermittedApp()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/ |
D | WifiUtilsTest.java | 55 private static final String TEST_BSSID = "00:00:00:00:00:00"; field in WifiUtilsTest 174 new NetworkKey(new WifiKey(TEST_SSID, TEST_BSSID)), in buildScoredNetworkWithGivenBadgeCurve()
|