Home
last modified time | relevance | path

Searched refs:getNetworkId (Results 1 – 25 of 39) sorted by relevance

12

/frameworks/base/wifi/java/android/net/wifi/p2p/
DWifiP2pGroupList.java58 mListener.onDeleteGroup(oldValue.getNetworkId()); in WifiP2pGroupList()
86 mGroups.put(group.getNetworkId(), group); in add()
105 remove(getNetworkId(deviceAddress)); in remove()
130 public int getNetworkId(String deviceAddress) { in getNetworkId() method in WifiP2pGroupList
137 mGroups.get(grp.getNetworkId()); in getNetworkId()
138 return grp.getNetworkId(); in getNetworkId()
153 public int getNetworkId(String deviceAddress, String ssid) { in getNetworkId() method in WifiP2pGroupList
163 mGroups.get(grp.getNetworkId()); in getNetworkId()
164 return grp.getNetworkId(); in getNetworkId()
198 if (netId == grp.getNetworkId()) { in contains()
DWifiP2pGroup.java255 public int getNetworkId() { in getNetworkId() method in WifiP2pGroup
291 mNetId = source.getNetworkId(); in WifiP2pGroup()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigManagerTest.java353 assertTrue(result.getNetworkId() == WifiConfiguration.INVALID_NETWORK_ID); in testUpdateSingleOpenNetworkFailedDueToPermissionDenied()
375 assertTrue(result.getNetworkId() != WifiConfiguration.INVALID_NETWORK_ID); in testUpdateSingleOpenNetworkSuccessWithCreatorUID()
618 int networkId = result.getNetworkId(); in testNetworkSelectionStatus()
629 verifyUpdateNetworkSelectionStatus(result.getNetworkId(), assocRejectReason, i); in testNetworkSelectionStatus()
636 result.getNetworkId(), NetworkSelectionStatus.DISABLED_BY_WIFI_MANAGER, 0); in testNetworkSelectionStatus()
642 result.getNetworkId(), NetworkSelectionStatus.NETWORK_SELECTION_ENABLE, 0); in testNetworkSelectionStatus()
656 int networkId = result.getNetworkId(); in testNetworkSelectionStatusTemporarilyDisabledDueToNoInternet()
664 result.getNetworkId(), NetworkSelectionStatus.DISABLED_NO_INTERNET_TEMPORARY, 1); in testNetworkSelectionStatusTemporarilyDisabledDueToNoInternet()
670 result.getNetworkId(), NetworkSelectionStatus.NETWORK_SELECTION_ENABLE, 0); in testNetworkSelectionStatusTemporarilyDisabledDueToNoInternet()
687 result.getNetworkId(), NetworkSelectionStatus.NETWORK_SELECTION_ENABLE, 0); in testNetworkSelectionStatusEnableClearsDisableCounters()
[all …]
DWifiNetworkSelectorTest.java186 when(mWifiInfo.getNetworkId()).thenReturn(WifiConfiguration.INVALID_NETWORK_ID); in setupWifiInfo()
363 when(mWifiInfo.getNetworkId()).thenReturn(0); in openNetworkIsNotSufficient()
410 when(mWifiInfo.getNetworkId()).thenReturn(0); in lowRssi5GNetworkIsNotSufficient()
457 when(mWifiInfo.getNetworkId()).thenReturn(0); in noInternetAccessNetworkIsNotSufficient()
537 when(mWifiInfo.getNetworkId()).thenReturn(0); in noSelectionWhenCurrentNetworkNotInScanResults()
965 when(mWifiInfo.getNetworkId()).thenReturn(0); in testStayOrTryToSwitchImpl()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointNetworkEvaluator.java158 mWifiConfigManager.enableNetwork(result.getNetworkId(), false, Process.WIFI_UID); in createWifiConfigForProvider()
159 mWifiConfigManager.setNetworkCandidateScanResult(result.getNetworkId(), in createWifiConfigForProvider()
162 result.getNetworkId(), networkInfo.mScanDetail); in createWifiConfigForProvider()
163 return mWifiConfigManager.getConfiguredNetwork(result.getNetworkId()); in createWifiConfigForProvider()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DNetworkUpdateResult.java46 public int getNetworkId() { in getNetworkId() method in NetworkUpdateResult
DScoredNetworkEvaluator.java301 if (!mWifiConfigManager.updateNetworkSelectionStatus(result.getNetworkId(), in getCandidateConfiguration()
306 candidateNetworkId = result.getNetworkId(); in getCandidateConfiguration()
DWifiNetworkSelector.java137 mWifiConfigManager.getConfiguredNetwork(wifiInfo.getNetworkId()); in isCurrentNetworkSufficient()
525 mWifiConfigManager.getConfiguredNetwork(wifiInfo.getNetworkId()); in selectNetwork()
DWifiStateMachine.java1150 if (!forceReconnect && mWifiInfo.getNetworkId() == netId) { in connectToUserSelectNetwork()
3318 replyToMessage(message, message.what, result.getNetworkId()); in processMessage()
4215 netId = result.getNetworkId(); in processMessage()
4231 netId = result.getNetworkId(); in processMessage()
4232 if (result.isSuccess() && mWifiInfo.getNetworkId() == netId) { in processMessage()
4843 if (mWifiInfo.getNetworkId() == netId) { in processMessage()
5793 result.getNetworkId(), false, message.sendingUid)) { in saveNetworkConfigAndSendReply()
DWifiConfigManager.java1111 WifiConfiguration newConfig = getInternalConfiguredNetwork(result.getNetworkId()); in addOrUpdateNetwork()
2042 WifiConfiguration config = getInternalConfiguredNetwork(info.getNetworkId()); in updateScanDetailCacheFromWifiInfo()
2043 ScanDetailCache scanDetailCache = getScanDetailCacheForNetwork(info.getNetworkId()); in updateScanDetailCacheFromWifiInfo()
/frameworks/base/telephony/java/android/telephony/cdma/
DCdmaCellLocation.java119 public int getNetworkId() { in getNetworkId() method in CdmaCellLocation
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCellIdentityCdmaTest.java49 assertEquals(NETWORK_ID, ci.getNetworkId()); in testConstructor()
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/
DTrackerService.java357 ", NID=" + cellLocation.getNetworkId() +
361 ", NID=" + cellLocation.getNetworkId();
/frameworks/base/services/core/java/com/android/server/net/
DNetworkIdentitySet.java99 writeOptionalString(out, ident.getNetworkId()); in writeToStream()
/frameworks/base/telephony/java/android/telephony/
DCellIdentityCdma.java133 public int getNetworkId() { in getNetworkId() method in CellIdentityCdma
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java175 if (networks.get(i).networkId == info.getNetworkId()) { in getValidSsid()
DWifiTracker.java533 connectionConfig = getWifiConfigurationForNetworkId(mLastInfo.getNetworkId(), configs); in updateAccessPoints()
655 connectionConfig = getWifiConfigurationForNetworkId(mLastInfo.getNetworkId(), in updateNetworkInfo()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DNetworkPolicyEditor.java218 final String networkId = template.getNetworkId(); in buildUnquotedNetworkTemplate()
/frameworks/base/core/java/android/net/
DNetworkIdentity.java150 public String getNetworkId() { in getNetworkId() method in NetworkIdentity
DNetworkTemplate.java304 public String getNetworkId() { in getNetworkId() method in NetworkTemplate
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java1515 int id = group.getNetworkId(); in processMessage()
1583 netId = mGroups.getNetworkId(mThisDevice.deviceAddress); in processMessage()
1615 if (mGroup.getNetworkId() == WifiP2pGroup.PERSISTENT_NET_ID) { in processMessage()
1951 if (mGroup.getNetworkId() == WifiP2pGroup.PERSISTENT_NET_ID) { in processMessage()
1955 mGroup.setNetworkId(mGroups.getNetworkId(devAddr, in processMessage()
2369 int netId = mGroup.getNetworkId(); in processMessage()
2877 int netId = mGroups.getNetworkId(dev.deviceAddress, ssid); in reinvokePersistentGroup()
2899 netId = mGroups.getNetworkId(dev.deviceAddress); in reinvokePersistentGroup()
2936 int netId = group.getNetworkId(); in getNetworkIdFromClientList()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DOsuNetworkConnectionTest.java92 when(mWifiInfo.getNetworkId()).thenReturn(TEST_NETWORK_ID); in setUp()
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
DUpstreamNetworkMonitorTest.java484 int getNetworkId() { return ++mNetworkId; } in getNetworkId() method in UpstreamNetworkMonitorTest.TestConnectivityManager
567 this.networkId = new Network(cm.getNetworkId()); in TestNetworkAgent()
/frameworks/base/wifi/java/android/net/wifi/
DWifiInfo.java394 public int getNetworkId() { in getNetworkId() method in WifiInfo
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/
DSupplicantP2pIfaceCallbackTest.java306 assertEquals(group.getNetworkId(), WifiP2pGroup.PERSISTENT_NET_ID); in testOnGroupStarted_success()

12