/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/ |
D | AddWifiNetworkTaskTest.java | 78 @Mock private android.net.wifi.WifiInfo mWifiInfo; field in AddWifiNetworkTaskTest 156 when(mWifiManager.getConnectionInfo()).thenReturn(mWifiInfo); in testIsConnectedToSpecifiedWifiTrue() 157 when(mWifiInfo.getSSID()).thenReturn(TEST_SSID); in testIsConnectedToSpecifiedWifiTrue() 179 when(mWifiManager.getConnectionInfo()).thenReturn(mWifiInfo); in testNoWifiInfoInProvider() 180 when(mWifiInfo.getSSID()).thenReturn(TEST_SSID_2); in testNoWifiInfoInProvider() 207 when(mWifiManager.getConnectionInfo()).thenReturn(mWifiInfo); in testFailingAddingNetwork() 208 when(mWifiInfo.getSSID()).thenReturn(TEST_SSID_2); in testFailingAddingNetwork() 237 when(mWifiManager.getConnectionInfo()).thenReturn(mWifiInfo); in testFailingToReconnectAfterAddingNetwork() 238 when(mWifiInfo.getSSID()).thenReturn(TEST_SSID_2); in testFailingToReconnectAfterAddingNetwork() 273 when(mWifiManager.getConnectionInfo()).thenReturn(mWifiInfo); in testReconnectAfterAddingNetworkSuccess() [all …]
|
/packages/apps/Settings/src/com/android/settings/wifi/details/ |
D | WifiDetailPreferenceController.java | 162 private WifiInfo mWifiInfo; field in WifiDetailPreferenceController 262 mAccessPoint.update(mWifiConfig, mWifiInfo, mNetworkInfo); 488 mWifiInfo = null; in onPause() 532 mWifiInfo = mWifiManager.getConnectionInfo(); in updateAccessPoint() 533 if (mNetwork == null || mNetworkInfo == null || mWifiInfo == null) { in updateAccessPoint() 539 changed |= mAccessPoint.update(mWifiConfig, mWifiInfo, mNetworkInfo); in updateAccessPoint() 633 if (mWifiInfo == null) { in refreshFrequency() 638 final int frequency = mWifiInfo.getFrequency(); in refreshFrequency() 659 if (mWifiInfo == null) { in refreshTxSpeed() 664 int txLinkSpeedMbps = mWifiInfo.getTxLinkSpeedMbps(); in refreshTxSpeed() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/details/ |
D | WifiDetailPreferenceController.java | 163 private WifiInfo mWifiInfo; field in WifiDetailPreferenceController 249 mAccessPoint.update(mWifiConfig, mWifiInfo, mNetworkInfo); 492 mWifiInfo = null; in onPause() 544 mWifiInfo = mWifiManager.getConnectionInfo(); in updateAccessPoint() 545 if (mNetwork == null || mNetworkInfo == null || mWifiInfo == null) { in updateAccessPoint() 556 changed |= mAccessPoint.update(mWifiConfig, mWifiInfo, mNetworkInfo); in updateAccessPoint() 647 if (mWifiInfo == null) { in refreshFrequency() 652 final int frequency = mWifiInfo.getFrequency(); in refreshFrequency() 673 if (mWifiInfo == null) { in refreshTxSpeed() 678 int txLinkSpeedMbps = mWifiInfo.getTxLinkSpeedMbps(); in refreshTxSpeed() [all …]
|
/packages/modules/NetworkStack/src/com/android/networkstack/metrics/ |
D | DataStallDetectionStats.java | 57 public final byte[] mWifiInfo; field in DataStallDetectionStats 76 mWifiInfo = emptyWifiInfoIfNull(wifi); in DataStallDetectionStats() 133 .append(HexDump.toHexString(mWifiInfo)) in toString() 151 && Arrays.equals(mWifiInfo, other.mWifiInfo) in equals() 160 return Objects.hash(mNetworkType, mEvaluationType, mWifiInfo, mCellularInfo, mDns, in hashCode() 173 private byte[] mWifiInfo; field in DataStallDetectionStats.Builder 256 mWifiInfo = MessageNano.toByteArray(data); in setWiFiData() 299 return new DataStallDetectionStats(mCellularInfo, mWifiInfo, in build()
|
D | DataStallStatsUtils.java | 75 stats.mWifiInfo, in write()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/ |
D | WifiInfoPreferenceControllerTest.java | 68 private WifiInfo mWifiInfo; field in WifiInfoPreferenceControllerTest 86 when(mWifiManager.getConnectionInfo()).thenReturn(mWifiInfo); in setUp() 113 when(mWifiInfo.getMacAddress()).thenReturn(TEST_MAC_ADDRESS); in onResume_shouldUpdateWifiInfo() 141 when(mWifiInfo.getMacAddress()).thenReturn(null); in updateWifiInfo_nullMacWithMacRandomizationOff_setMacUnavailable() 154 when(mWifiInfo.getMacAddress()).thenReturn(WifiInfo.DEFAULT_MAC_ADDRESS); in updateWifiInfo_defaultMacWithMacRandomizationOff_setMacUnavailable() 167 when(mWifiInfo.getMacAddress()).thenReturn(TEST_MAC_ADDRESS); in updateWifiInfo_validMacWithMacRandomizationOff_setValidMac() 193 when(mWifiInfo.getMacAddress()).thenReturn(null); in updateWifiInfo_nullMacWithMacRandomizationOn_setMacUnavailable() 206 when(mWifiInfo.getMacAddress()).thenReturn(WifiInfo.DEFAULT_MAC_ADDRESS); in updateWifiInfo_defaultMacWithMacRandomizationOn_setMacRandomized() 219 when(mWifiInfo.getMacAddress()).thenReturn(TEST_MAC_ADDRESS); in updateWifiInfo_validMacWithMacRandomizationOn_setValidMac()
|
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/ |
D | WifiInfoProviderImpl.java | 70 private WifiInfo mWifiInfo; field in WifiInfoProviderImpl 89 listener.onWifiConfigurationChanged(mWifiConfig, mNetworkInfo, mWifiInfo); 97 listener.onWifiChanged(mNetworkInfo, mWifiInfo); 133 mAccessPoint.update(mWifiConfig, mWifiInfo, mNetworkInfo); 195 listener.onWifiChanged(mNetworkInfo, mWifiInfo); in onStart() 218 return mWifiInfo; in getWifiInfo() 249 mWifiInfo = mWifiManager.getConnectionInfo(); in updateInfo()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/model/ |
D | ProvisioningParams.java | 292 wifiInfo = builder.mWifiInfo; in ProvisioningParams() 517 private WifiInfo mWifiInfo; field in ProvisioningParams.Builder 564 mWifiInfo = wifiInfo; in setWifiInfo()
|
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/ |
D | NetworkMonitorTest.java | 245 private @Mock WifiInfo mWifiInfo; field in NetworkMonitorTest 1997 assertArrayEquals(makeTestWifiDataNano(), stats.mWifiInfo); 2009 stats.mWifiInfo); 2049 stats.setWiFiData(mWifiInfo); 2094 when(mWifi.getConnectionInfo()).thenReturn(mWifiInfo); 2095 when(mWifiInfo.getRssi()).thenReturn(TEST_SIGNAL_STRENGTH); 2097 when(mWifiInfo.getFrequency()).thenReturn(2450);
|