Home
last modified time | relevance | path

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

123

/frameworks/base/wifi/tests/src/android/net/wifi/p2p/
DWifiP2pGroupListTest.java80 assertEquals(mTestGroup2.getNetworkId(), in testListOperations()
81 list.getNetworkId(TEST_GROUP_OWNER_2.deviceAddress)); in testListOperations()
83 list.getOwnerAddr(mTestGroup2.getNetworkId())); in testListOperations()
85 assertEquals(-1, list.getNetworkId(TEST_GROUP_OWNER_OTHER.deviceAddress)); in testListOperations()
87 assertEquals(mTestGroup1.getNetworkId(), in testListOperations()
88 list.getNetworkId(TEST_GROUP_OWNER_1.deviceAddress)); in testListOperations()
90 assertEquals(mTestGroup4.getNetworkId(), in testListOperations()
91 list.getNetworkId(TEST_GROUP_OWNER_1.deviceAddress, "testGroup4")); in testListOperations()
93 list.remove(mTestGroup3.getNetworkId()); in testListOperations()
94 assertEquals(-1, list.getNetworkId(TEST_GROUP_OWNER_3.deviceAddress)); in testListOperations()
[all …]
DWifiP2pGroupTest.java62 assertEquals(NETWORK_ID, group.getNetworkId()); in testSetterGetter()
/frameworks/base/wifi/java/android/net/wifi/p2p/
DWifiP2pGroupList.java61 mListener.onDeleteGroup(oldValue.getNetworkId()); in WifiP2pGroupList()
90 mGroups.put(group.getNetworkId(), group); in add()
109 remove(getNetworkId(deviceAddress)); in remove()
134 public int getNetworkId(String deviceAddress) { in getNetworkId() method in WifiP2pGroupList
141 mGroups.get(grp.getNetworkId()); in getNetworkId()
142 return grp.getNetworkId(); in getNetworkId()
157 public int getNetworkId(String deviceAddress, String ssid) { in getNetworkId() method in WifiP2pGroupList
167 mGroups.get(grp.getNetworkId()); in getNetworkId()
168 return grp.getNetworkId(); in getNetworkId()
202 if (netId == grp.getNetworkId()) { in contains()
DWifiP2pGroup.java266 public int getNetworkId() { in getNetworkId() method in WifiP2pGroup
314 mNetId = source.getNetworkId(); in WifiP2pGroup()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigManagerTest.java364 assertTrue(result.getNetworkId() != WifiConfiguration.INVALID_NETWORK_ID); in testAddSingleOpenNetworkWhenCorrespondingEphemeralNetworkExists()
397 assertTrue(result.getNetworkId() != WifiConfiguration.INVALID_NETWORK_ID); in testAddEphemeralNetworkWhenCorrespondingEphemeralNetworkExists()
548 assertNotEquals(WifiConfiguration.INVALID_NETWORK_ID, networkUpdateResult.getNetworkId()); in testCannotUpdateMacRandomizationSettingWithoutPermission()
553 assertEquals(WifiConfiguration.INVALID_NETWORK_ID, networkUpdateResult.getNetworkId()); in testCannotUpdateMacRandomizationSettingWithoutPermission()
575 assertNotEquals(WifiConfiguration.INVALID_NETWORK_ID, networkUpdateResult.getNetworkId()); in testCanUpdateMacRandomizationSettingWithNetworkSettingPermission()
605 assertNotEquals(WifiConfiguration.INVALID_NETWORK_ID, networkUpdateResult.getNetworkId()); in testCanUpdateMacRandomizationSettingWithSetupWizardPermission()
754 assertTrue(result.getNetworkId() == WifiConfiguration.INVALID_NETWORK_ID); in testUpdateSingleOpenNetworkFailedDueToPermissionDenied()
776 assertTrue(result.getNetworkId() != WifiConfiguration.INVALID_NETWORK_ID); in testUpdateSingleOpenNetworkSuccessWithCreatorUID()
1021 int networkId = result.getNetworkId(); in testNetworkSelectionStatus()
1032 verifyUpdateNetworkSelectionStatus(result.getNetworkId(), assocRejectReason, i); in testNetworkSelectionStatus()
[all …]
DWifiNetworkSelectorTest.java248 when(mWifiInfo.getNetworkId()).thenReturn(WifiConfiguration.INVALID_NETWORK_ID); in setupWifiInfo()
430 when(mWifiInfo.getNetworkId()).thenReturn(0); in openNetworkIsNotSufficient()
478 when(mWifiInfo.getNetworkId()).thenReturn(0); in lowRssi5GNetworkIsNotSufficient()
526 when(mWifiInfo.getNetworkId()).thenReturn(0); in noInternetAccessNetworkIsNotSufficient()
639 when(mWifiInfo.getNetworkId()).thenReturn(0); in noSelectionWhenCurrentNetworkNotInScanResults()
1166 when(mWifiInfo.getNetworkId()).thenReturn(0); in testStayOrTryToSwitchImpl()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DCarrierNetworkEvaluator.java144 if (!mWifiConfigManager.enableNetwork(result.getNetworkId(), false, Process.WIFI_UID)) { in evaluateNetworks()
148 if (!mWifiConfigManager.setNetworkCandidateScanResult(result.getNetworkId(), scanResult, in evaluateNetworks()
156 config = mWifiConfigManager.getConfiguredNetwork(result.getNetworkId()); in evaluateNetworks()
167 mWifiConfigManager.updateScanDetailForNetwork(result.getNetworkId(), scanDetail); in evaluateNetworks()
DNetworkUpdateResult.java46 public int getNetworkId() { in getNetworkId() method in NetworkUpdateResult
DNetworkSuggestionEvaluator.java149 if (!mWifiConfigManager.updateNetworkSelectionStatus(result.getNetworkId(), in addCandidateToWifiConfigManager()
154 int candidateNetworkId = result.getNetworkId(); in addCandidateToWifiConfigManager()
DScoredNetworkEvaluator.java309 if (!mWifiConfigManager.updateNetworkSelectionStatus(result.getNetworkId(), in getCandidateConfiguration()
314 candidateNetworkId = result.getNetworkId(); in getCandidateConfiguration()
DWifiNetworkSelector.java228 + " , ID: " + wifiInfo.getNetworkId()); in isCurrentNetworkSufficient()
241 mWifiConfigManager.getConfiguredNetwork(wifiInfo.getNetworkId()); in isCurrentNetworkSufficient()
708 mWifiConfigManager.getConfiguredNetwork(wifiInfo.getNetworkId()); in selectNetwork()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointNetworkEvaluator.java249 mWifiConfigManager.enableNetwork(result.getNetworkId(), false, Process.WIFI_UID); in createWifiConfigForProvider()
250 mWifiConfigManager.setNetworkCandidateScanResult(result.getNetworkId(), in createWifiConfigForProvider()
253 result.getNetworkId(), networkInfo.mScanDetail); in createWifiConfigForProvider()
254 return mWifiConfigManager.getConfiguredNetwork(result.getNetworkId()); in createWifiConfigForProvider()
DOsuNetworkConnection.java246 if (mNetworkId < 0 || mNetworkId != wifiInfo.getNetworkId()) { in onAvailable()
248 + wifiInfo.getNetworkId()); in onAvailable()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pMetrics.java398 mCurrentGroupEvent.netId = group.getNetworkId(); in startGroupEvent()
423 if (mCurrentGroupEvent.netId != group.getNetworkId()) { in updateGroupEvent()
424 Log.w(TAG, "Updating group id " + group.getNetworkId() in updateGroupEvent()
DWifiP2pServiceImpl.java1857 int id = group.getNetworkId(); in processMessage()
1951 netId = mGroups.getNetworkId(mThisDevice.deviceAddress); in processMessage()
1992 if (mGroup.getNetworkId() == WifiP2pGroup.PERSISTENT_NET_ID) { in processMessage()
2362 if (mGroup.getNetworkId() == WifiP2pGroup.PERSISTENT_NET_ID) { in processMessage()
2366 mGroup.setNetworkId(mGroups.getNetworkId(devAddr, in processMessage()
2809 int netId = mGroup.getNetworkId(); in processMessage()
3487 int netId = mGroups.getNetworkId(dev.deviceAddress, ssid); in reinvokePersistentGroup()
3509 netId = mGroups.getNetworkId(dev.deviceAddress); in reinvokePersistentGroup()
3548 int netId = group.getNetworkId(); in getNetworkIdFromClientList()
4151 mWifiNative.removeP2pNetwork(group.getNetworkId()); in factoryReset()
/frameworks/base/packages/SystemUI/src/com/android/systemui/wifi/
DWifiDebuggingSecondaryUserActivity.java83 if (wifiInfo == null || wifiInfo.getNetworkId() == -1) { in onReceive()
DWifiDebuggingActivity.java154 if (wifiInfo == null || wifiInfo.getNetworkId() == -1) { in onReceive()
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/
DTrackerService.java357 ", NID=" + cellLocation.getNetworkId() +
361 ", NID=" + cellLocation.getNetworkId();
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCellIdentityCdmaTest.java50 assertEquals(NETWORK_ID, ci.getNetworkId()); in testConstructor()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkIdentitySet.java99 writeOptionalString(out, ident.getNetworkId()); in writeToStream()
/frameworks/base/telephony/java/android/telephony/cdma/
DCdmaCellLocation.java126 public int getNetworkId() { in getNetworkId() method in CdmaCellLocation
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DNetworkPolicyEditor.java218 final String networkId = template.getNetworkId(); in buildUnquotedNetworkTemplate()
/frameworks/base/telephony/java/android/telephony/
DCellIdentityCdma.java167 public int getNetworkId() { in getNetworkId() method in CellIdentityCdma
/frameworks/base/core/java/android/net/
DNetworkIdentity.java138 public String getNetworkId() { in getNetworkId() method in NetworkIdentity
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java199 if (networks.get(i).networkId == info.getNetworkId()) { in getValidSsid()

123