/frameworks/base/core/java/android/net/vcn/ |
D | VcnTransportInfo.java | 55 public VcnTransportInfo(@NonNull WifiInfo wifiInfo) { in VcnTransportInfo() argument 56 this(wifiInfo, INVALID_SUBSCRIPTION_ID, MIN_UDP_PORT_4500_NAT_TIMEOUT_UNSET); in VcnTransportInfo() 59 public VcnTransportInfo(@NonNull WifiInfo wifiInfo, int minUdpPort4500NatTimeoutSeconds) { in VcnTransportInfo() argument 60 this(wifiInfo, INVALID_SUBSCRIPTION_ID, minUdpPort4500NatTimeoutSeconds); in VcnTransportInfo() 72 @Nullable WifiInfo wifiInfo, int subId, int minUdpPort4500NatTimeoutSeconds) { in VcnTransportInfo() 73 mWifiInfo = wifiInfo; in VcnTransportInfo() 177 final WifiInfo wifiInfo = 184 if (wifiInfo == null 191 return new VcnTransportInfo(wifiInfo, subId, minUdpPort4500NatTimeoutSeconds);
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/ |
D | AccessPointTest.java | 320 WifiInfo wifiInfo = new WifiInfo(); 321 wifiInfo.setSSID(WifiSsid.fromString(configuration.SSID)); 322 wifiInfo.setBSSID(configuration.BSSID); 323 wifiInfo.setNetworkId(configuration.networkId); 324 accessPoint.update(configuration, wifiInfo, networkInfo); 336 WifiInfo wifiInfo = new WifiInfo(); 337 wifiInfo.setSSID(WifiSsid.fromString(configuration.SSID)); 338 wifiInfo.setBSSID(configuration.BSSID); 339 wifiInfo.setNetworkId(configuration.networkId); 340 wifiInfo.setMeteredHint(true); [all …]
|
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/ |
D | UtilsTest.java | 740 WifiInfo wifiInfo = mock(WifiInfo.class); in testWifiInfoBandString_multipleMloLinks_returnsMultipleBands() local 741 when(wifiInfo.getWifiStandard()).thenReturn(ScanResult.WIFI_STANDARD_11BE); in testWifiInfoBandString_multipleMloLinks_returnsMultipleBands() 742 when(wifiInfo.getAssociatedMloLinks()).thenReturn(mloLinks); in testWifiInfoBandString_multipleMloLinks_returnsMultipleBands() 744 assertThat(Utils.wifiInfoToBandString(mMockContext, wifiInfo)) in testWifiInfoBandString_multipleMloLinks_returnsMultipleBands() 752 WifiInfo wifiInfo = mock(WifiInfo.class); in testWifiInfoBandString_noMloLinks_returnsSingleBand() local 753 when(wifiInfo.getAssociatedMloLinks()).thenReturn(Collections.emptyList()); in testWifiInfoBandString_noMloLinks_returnsSingleBand() 755 when(wifiInfo.getFrequency()).thenReturn(0); in testWifiInfoBandString_noMloLinks_returnsSingleBand() 756 assertThat(Utils.wifiInfoToBandString(mMockContext, wifiInfo)).isEqualTo(BAND_UNKNOWN); in testWifiInfoBandString_noMloLinks_returnsSingleBand() 758 when(wifiInfo.getFrequency()).thenReturn(2400); in testWifiInfoBandString_noMloLinks_returnsSingleBand() 759 assertThat(Utils.wifiInfoToBandString(mMockContext, wifiInfo)).isEqualTo(BAND_24_GHZ); in testWifiInfoBandString_noMloLinks_returnsSingleBand() [all …]
|
D | NonSdkApiWrapperTest.java | 90 WifiInfo wifiInfo = mock(WifiInfo.class); in testGetVcnWifiInfo() local 91 when(vcnTransportInfo.getWifiInfo()).thenReturn(wifiInfo); in testGetVcnWifiInfo() 93 assertThat(NonSdkApiWrapper.getWifiInfoIfVcn(networkCapabilities)).isEqualTo(wifiInfo); in testGetVcnWifiInfo()
|
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/ |
D | KnownNetworkEntry.java | 122 protected synchronized boolean connectionInfoMatches(@NonNull WifiInfo wifiInfo) { in connectionInfoMatches() argument 123 if (wifiInfo.isPasspointAp() || wifiInfo.isOsuAp()) { in connectionInfoMatches() 127 ssidAndSecurityTypeToStandardWifiEntryKey(WifiInfo.sanitizeSsid(wifiInfo.getSSID()), in connectionInfoMatches() 128 wifiInfo.getCurrentSecurityType()).getScanResultKey()); in connectionInfoMatches()
|
D | WifiPickerTracker.java | 1220 private void conditionallyCreateConnectedWifiEntry(@Nullable WifiInfo wifiInfo) { in conditionallyCreateConnectedWifiEntry() argument 1221 conditionallyCreateConnectedStandardWifiEntry(wifiInfo); in conditionallyCreateConnectedWifiEntry() 1222 conditionallyCreateConnectedSuggestedWifiEntry(wifiInfo); in conditionallyCreateConnectedWifiEntry() 1223 conditionallyCreateConnectedPasspointWifiEntry(wifiInfo); in conditionallyCreateConnectedWifiEntry() 1224 conditionallyCreateConnectedNetworkRequestEntry(wifiInfo); in conditionallyCreateConnectedWifiEntry() 1232 private void conditionallyCreateConnectedNetworkRequestEntry(@Nullable WifiInfo wifiInfo) { in conditionallyCreateConnectedNetworkRequestEntry() argument 1235 if (wifiInfo != null) { in conditionallyCreateConnectedNetworkRequestEntry() 1238 if (!configs.isEmpty() && configs.get(0).networkId == wifiInfo.getNetworkId()) { in conditionallyCreateConnectedNetworkRequestEntry() 1264 private void conditionallyCreateConnectedStandardWifiEntry(@Nullable WifiInfo wifiInfo) { in conditionallyCreateConnectedStandardWifiEntry() argument 1265 if (wifiInfo == null || wifiInfo.isPasspointAp() || wifiInfo.isOsuAp()) { in conditionallyCreateConnectedStandardWifiEntry() [all …]
|
D | MergedCarrierEntry.java | 154 protected boolean connectionInfoMatches(@NonNull WifiInfo wifiInfo) { in connectionInfoMatches() argument 155 return wifiInfo.isCarrierMerged() && mSubscriptionId == wifiInfo.getSubscriptionId(); in connectionInfoMatches()
|
D | WifiEntry.java | 963 protected boolean connectionInfoMatches(@NonNull WifiInfo wifiInfo) { in connectionInfoMatches() argument 995 WifiInfo wifiInfo = Utils.getWifiInfo(capabilities); in onNetworkCapabilitiesChanged() local 996 if (wifiInfo == null) { in onNetworkCapabilitiesChanged() 1000 if (!connectionInfoMatches(wifiInfo)) { in onNetworkCapabilitiesChanged() 1010 if (!NonSdkApiWrapper.isPrimary(wifiInfo) in onNetworkCapabilitiesChanged() 1020 updateWifiInfo(wifiInfo); in onNetworkCapabilitiesChanged() 1024 private synchronized void updateWifiInfo(WifiInfo wifiInfo) { in updateWifiInfo() argument 1025 if (wifiInfo == null) { in updateWifiInfo() 1031 mWifiInfo = wifiInfo; in updateWifiInfo()
|
D | NonSdkApiWrapper.java | 118 static boolean isPrimary(@NonNull WifiInfo wifiInfo) { in isPrimary() argument 119 return wifiInfo.isPrimary(); in isPrimary()
|
D | OsuWifiEntry.java | 185 protected boolean connectionInfoMatches(@NonNull WifiInfo wifiInfo) { in connectionInfoMatches() argument 186 return wifiInfo.isOsuAp() && TextUtils.equals( in connectionInfoMatches() 187 wifiInfo.getPasspointProviderFriendlyName(), mOsuProvider.getFriendlyName()); in connectionInfoMatches()
|
D | PasspointWifiEntry.java | 564 protected boolean connectionInfoMatches(@NonNull WifiInfo wifiInfo) { in connectionInfoMatches() argument 565 if (!wifiInfo.isPasspointAp()) { in connectionInfoMatches() 570 return TextUtils.equals(mUniqueId, wifiInfo.getPasspointUniqueId()); in connectionInfoMatches() 574 return TextUtils.equals(wifiInfo.getPasspointFqdn(), mFqdn); in connectionInfoMatches()
|
D | Utils.java | 1143 @NonNull Context context, @NonNull WifiInfo wifiInfo) { in wifiInfoToBandString() argument 1145 return frequencyToBandString(context, wifiInfo.getFrequency()); in wifiInfoToBandString() 1150 wifiInfo.getAssociatedMloLinks().stream() in wifiInfoToBandString() 1157 return frequencyToBandString(context, wifiInfo.getFrequency()); in wifiInfoToBandString() 1167 @NonNull Context context, @Nullable WifiInfo wifiInfo, boolean isTx) { in getSpeedString() argument 1168 if (wifiInfo == null) { in getSpeedString() 1172 isTx ? wifiInfo.getTxLinkSpeedMbps() : wifiInfo.getRxLinkSpeedMbps(); in getSpeedString() 1180 List<MloLink> activeMloLinks = wifiInfo.getAssociatedMloLinks().stream() in getSpeedString()
|
D | HotspotNetworkEntry.java | 190 protected synchronized boolean connectionInfoMatches(@NonNull WifiInfo wifiInfo) { in connectionInfoMatches() argument 195 new StandardWifiEntry.ScanResultKey(WifiInfo.sanitizeSsid(wifiInfo.getSSID()), in connectionInfoMatches() 196 Collections.singletonList(wifiInfo.getCurrentSecurityType()))); in connectionInfoMatches()
|
/frameworks/base/media/tests/MediaRouter/src/com/android/mediaroutertest/ |
D | MediaRouteInfoTest.java | 48 final DisplayInfo wifiInfo = new DisplayInfo(); in setUpOnce() local 49 wifiInfo.flags = Display.FLAG_PRESENTATION; in setUpOnce() 50 wifiInfo.type = Display.TYPE_WIFI; in setUpOnce() 51 wifiInfo.address = DisplayAddress.fromMacAddress(FAKE_MAC_ADDRESS); in setUpOnce() 52 sWifiDisplay = new Display(global, 2, wifiInfo, new DisplayAdjustments()); in setUpOnce()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | WifiStatusTracker.java | 85 WifiInfo wifiInfo = getMainOrUnderlyingWifiInfo(networkCapabilities); 86 boolean isWifi = connectionIsWifi(networkCapabilities, wifiInfo); 99 if (wifiInfo == null || !wifiInfo.isPrimary()) { 110 updateWifiInfo(wifiInfo); 265 private void updateWifiInfo(WifiInfo wifiInfo) { in updateWifiInfo() argument 267 connected = wifiInfo != null; in updateWifiInfo() 268 mWifiInfo = wifiInfo; in updateWifiInfo() 415 @Nullable NetworkCapabilities networkCapabilities, WifiInfo wifiInfo) { in connectionIsWifi() argument 419 return wifiInfo != null || networkCapabilities.hasTransport(TRANSPORT_WIFI); in connectionIsWifi()
|
/frameworks/base/core/java/android/net/ |
D | NetworkKey.java | 112 public static NetworkKey createFromWifiInfo(@Nullable WifiInfo wifiInfo) { in createFromWifiInfo() argument 113 if (wifiInfo != null) { in createFromWifiInfo() 114 final String ssid = wifiInfo.getSSID(); in createFromWifiInfo() 115 final String bssid = wifiInfo.getBSSID(); in createFromWifiInfo()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/wifi/ |
D | WifiDebuggingSecondaryUserActivity.java | 82 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in onReceive() local 83 if (wifiInfo == null || wifiInfo.getNetworkId() == -1) { in onReceive()
|
D | WifiDebuggingActivity.java | 153 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in onReceive() local 154 if (wifiInfo == null || wifiInfo.getNetworkId() == -1) { in onReceive() 158 String bssid = wifiInfo.getBSSID(); in onReceive()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/shared/data/repository/ |
D | ConnectivityRepository.kt | 192 val wifiInfo = in networkCapabilities() constant 196 networkCapabilities.hasTransport(TRANSPORT_WIFI) || wifiInfo != null in networkCapabilities() 198 val isCarrierMergedDefault = wifiInfo?.isCarrierMerged == true in networkCapabilities() 285 is VcnTransportInfo -> currentTransportInfo.wifiInfo in getMainWifiInfo()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/shared/data/repository/ |
D | ConnectivityRepositoryImplTest.kt | 731 val wifiInfo = mock<WifiInfo>() in vcnSubId_nullIfVcnInfoIsNotCellular() constant 732 val vcnInfo = VcnTransportInfo(wifiInfo) in vcnSubId_nullIfVcnInfoIsNotCellular() 751 val wifiInfo = mock<WifiInfo>() in vcnSubId_changingVcnInfoIsTracked() constant 752 val wifiVcnInfo = VcnTransportInfo(wifiInfo) in vcnSubId_changingVcnInfoIsTracked() 794 val wifiInfo = mock<WifiInfo>() in getMainOrUnderlyingWifiInfo_wifi_hasInfo() constant 798 whenever(it.transportInfo).thenReturn(wifiInfo) in getMainOrUnderlyingWifiInfo_wifi_hasInfo() 803 assertThat(result).isEqualTo(wifiInfo) in getMainOrUnderlyingWifiInfo_wifi_hasInfo() 808 val wifiInfo = mock<WifiInfo>() in getMainOrUnderlyingWifiInfo_vcnWithWifi_hasInfo() constant 809 val vcnInfo = VcnTransportInfo(wifiInfo) in getMainOrUnderlyingWifiInfo_vcnWithWifi_hasInfo() 818 assertThat(result).isEqualTo(wifiInfo) in getMainOrUnderlyingWifiInfo_vcnWithWifi_hasInfo() [all …]
|
/frameworks/opt/net/wifi/libs/WifiTrackerLib/sdk_src/src/com/android/wifitrackerlib/ |
D | NonSdkApiWrapper.java | 79 static boolean isPrimary(@NonNull WifiInfo wifiInfo) { in isPrimary() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | InternetTile.java | 463 WifiCallbackInfo wifiInfo = new WifiCallbackInfo(); in handleUpdateState() local 465 cb.copyTo(wifiInfo); in handleUpdateState() 467 handleUpdateWifiState(state, wifiInfo); in handleUpdateState() 487 WifiCallbackInfo wifiInfo = new WifiCallbackInfo(); in handleUpdateState() local 489 mSignalCallback.mWifiInfo.copyTo(wifiInfo); in handleUpdateState() 491 handleUpdateWifiState(state, wifiInfo); in handleUpdateState()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/connectivity/ |
D | NetworkControllerBaseTest.java | 350 int networkType, boolean validated, boolean isConnected, WifiInfo wifiInfo) { in setConnectivityViaCallbackInNetworkController() argument 354 builder.setTransportInfo(wifiInfo); in setConnectivityViaCallbackInNetworkController() 369 int networkType, boolean validated, boolean isConnected, WifiInfo wifiInfo) { in setConnectivityViaCallbackInWifiTracker() argument 373 builder.setTransportInfo(wifiInfo); in setConnectivityViaCallbackInWifiTracker() 406 int networkType, boolean validated, boolean isConnected, WifiInfo wifiInfo) { in setConnectivityViaDefaultCallbackInWifiTracker() argument 410 builder.setTransportInfo(wifiInfo); in setConnectivityViaDefaultCallbackInWifiTracker()
|
D | NetworkControllerWifiTest.java | 242 WifiInfo wifiInfo = mock(WifiInfo.class); in testFetchInitialData_correctValues() local 243 when(wifiInfo.getSSID()).thenReturn(testSsid); in testFetchInitialData_correctValues() 244 when(mMockWm.getConnectionInfo()).thenReturn(wifiInfo); in testFetchInitialData_correctValues()
|
/frameworks/base/services/core/java/com/android/server/adb/ |
D | AdbDebuggingManager.java | 687 WifiInfo wifiInfo = wifiManager.getConnectionInfo(); 688 if (wifiInfo == null || wifiInfo.getNetworkId() == -1) { 698 final String bssid = wifiInfo.getBSSID(); 1387 WifiInfo wifiInfo = wifiManager.getConnectionInfo(); in getCurrentWifiApInfo() local 1388 if (wifiInfo == null || wifiInfo.getNetworkId() == -1) { in getCurrentWifiApInfo() 1394 if (wifiInfo.isPasspointAp() || wifiInfo.isOsuAp()) { in getCurrentWifiApInfo() 1395 ssid = wifiInfo.getPasspointProviderFriendlyName(); in getCurrentWifiApInfo() 1397 ssid = wifiInfo.getSSID(); in getCurrentWifiApInfo() 1403 if (networks.get(i).networkId == wifiInfo.getNetworkId()) { in getCurrentWifiApInfo() 1414 String bssid = wifiInfo.getBSSID(); in getCurrentWifiApInfo()
|