/packages/modules/Wifi/framework/tests/src/android/net/wifi/p2p/ |
D | WifiP2pGroupListTest.java | 80 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 …]
|
D | WifiP2pGroupTest.java | 62 assertEquals(NETWORK_ID, group.getNetworkId()); in testSetterGetter()
|
/packages/modules/Wifi/framework/java/android/net/wifi/p2p/ |
D | WifiP2pGroupList.java | 67 mListener.onDeleteGroup(oldValue.getNetworkId()); in WifiP2pGroupList() 94 mGroups.put(group.getNetworkId(), group); in add() 113 remove(getNetworkId(deviceAddress)); in remove() 138 public int getNetworkId(String deviceAddress) { in getNetworkId() method in WifiP2pGroupList 145 mGroups.get(grp.getNetworkId()); in getNetworkId() 146 return grp.getNetworkId(); in getNetworkId() 161 public int getNetworkId(String deviceAddress, String ssid) { in getNetworkId() method in WifiP2pGroupList 171 mGroups.get(grp.getNetworkId()); in getNetworkId() 172 return grp.getNetworkId(); in getNetworkId() 206 if (netId == grp.getNetworkId()) { in contains()
|
D | WifiP2pGroup.java | 280 public int getNetworkId() { in getNetworkId() method in WifiP2pGroup 328 mNetId = source.getNetworkId(); in WifiP2pGroup()
|
D | WifiP2pConfig.java | 150 public int getNetworkId() { in getNetworkId() method in WifiP2pConfig
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiConfigManagerTest.java | 498 assertTrue(result.getNetworkId() != WifiConfiguration.INVALID_NETWORK_ID); in testAddSingleOpenNetworkWhenCorrespondingEphemeralNetworkExists() 531 assertTrue(result.getNetworkId() != WifiConfiguration.INVALID_NETWORK_ID); in testAddEphemeralNetworkWhenCorrespondingEphemeralNetworkExists() 775 assertNotEquals(WifiConfiguration.INVALID_NETWORK_ID, networkUpdateResult.getNetworkId()); in testCannotUpdateMacRandomizationSettingWithoutPermission() 780 assertEquals(WifiConfiguration.INVALID_NETWORK_ID, networkUpdateResult.getNetworkId()); in testCannotUpdateMacRandomizationSettingWithoutPermission() 807 assertNotEquals(WifiConfiguration.INVALID_NETWORK_ID, networkUpdateResult.getNetworkId()); in testCanUpdateMacRandomizationSettingWithNetworkSettingPermission() 841 assertNotEquals(WifiConfiguration.INVALID_NETWORK_ID, networkUpdateResult.getNetworkId()); in testCanUpdateMacRandomizationSettingWithSetupWizardPermission() 1083 assertTrue(result.getNetworkId() == WifiConfiguration.INVALID_NETWORK_ID); in testUpdateSingleOpenNetworkFailedDueToPermissionDenied() 1105 assertTrue(result.getNetworkId() != WifiConfiguration.INVALID_NETWORK_ID); in testUpdateSingleOpenNetworkSuccessWithCreatorUID() 1364 int networkId = result.getNetworkId(); in testNetworkSelectionStatus() 1405 assertTrue(mWifiConfigManager.tryEnableNetwork(result.getNetworkId())); in testTryEnableNetwork() [all …]
|
D | WifiNetworkSelectorTest.java | 333 when(mWifiInfo.getNetworkId()).thenReturn(WifiConfiguration.INVALID_NETWORK_ID); in setupWifiInfo() 546 when(mWifiInfo.getNetworkId()).thenReturn(0); in lowRssi5GNetworkIsNotSufficient() 601 when(mWifiInfo.getNetworkId()).thenReturn(0); in noInternetAccessNetworkIsNotSufficient() 732 when(mWifiInfo.getNetworkId()).thenReturn(0); in noSelectionWhenCurrentNetworkNotInScanResults() 795 when(mWifiInfo.getNetworkId()).thenReturn(0); // 0 is current network in includeCurrentNetworkWhenCurrentNetworkNotNominated() 1364 when(mWifiInfo.getNetworkId()).thenReturn(0); in testStayOrTryToSwitchImpl() 1376 when(mWifiConfigManager.getConfiguredNetwork(mWifiInfo.getNetworkId())) in testStayOrTryToSwitchImpl() 1382 when(mWifiConfigManager.getConfiguredNetwork(mWifiInfo.getNetworkId())) in testStayOrTryToSwitchImpl() 1388 when(mWifiConfigManager.getConfiguredNetwork(mWifiInfo.getNetworkId())) in testStayOrTryToSwitchImpl() 1962 when(mWifiInfo.getNetworkId()).thenReturn(0); in networkSelectionPerformedWhenAnyCmmIsNotSufficient() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/ |
D | PasspointNetworkNominateHelper.java | 220 mWifiConfigManager.allowAutojoin(result.getNetworkId(), config.allowAutojoin); in createWifiConfigForProvider() 221 mWifiConfigManager.enableNetwork(result.getNetworkId(), false, Process.WIFI_UID, null); in createWifiConfigForProvider() 222 mWifiConfigManager.setNetworkCandidateScanResult(result.getNetworkId(), in createWifiConfigForProvider() 225 result.getNetworkId(), candidate.mScanDetail); in createWifiConfigForProvider() 226 return mWifiConfigManager.getConfiguredNetwork(result.getNetworkId()); in createWifiConfigForProvider()
|
D | OsuNetworkConnection.java | 249 if (mNetworkId < 0 || mNetworkId != wifiInfo.getNetworkId()) { in onAvailable() 251 + wifiInfo.getNetworkId()); in onAvailable()
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
D | WifiInfoTest.java | 102 assertEquals(TEST_NETWORK_ID, info.getNetworkId()); in assertNoRedaction() 196 assertEquals(WifiConfiguration.INVALID_NETWORK_ID, info.getNetworkId()); in assertLocationSensitiveRedaction() 334 assertEquals(WifiConfiguration.INVALID_NETWORK_ID, info.getNetworkId()); in assertLocationSensitiveAndLocalMacAddressRedaction() 470 assertEquals(-1, wifiInfo.getNetworkId()); in testWifiInfoResetValue() 497 assertEquals(TEST_NETWORK_ID, info1.getNetworkId()); in testWifiInfoBuilder() 510 assertEquals(TEST_NETWORK_ID, info1.getNetworkId()); in testWifiInfoBuilder() 516 assertEquals(TEST_NETWORK_ID2, info2.getNetworkId()); in testWifiInfoBuilder()
|
/packages/apps/Settings/src/com/android/settings/wifi/p2p/ |
D | WifiP2pPersistentGroup.java | 34 int getNetworkId() { in getNetworkId() method in WifiP2pPersistentGroup 35 return mGroup.getNetworkId(); in getNetworkId()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/ |
D | WifiP2pMetrics.java | 398 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()
|
D | WifiP2pServiceImpl.java | 2094 int id = group.getNetworkId(); in processMessage() 2189 netId = mGroups.getNetworkId(mThisDevice.deviceAddress); in processMessage() 2230 if (mGroup.getNetworkId() == WifiP2pGroup.NETWORK_ID_PERSISTENT) { in processMessage() 2611 if (mGroup.getNetworkId() == WifiP2pGroup.NETWORK_ID_PERSISTENT) { in processMessage() 2615 mGroup.setNetworkId(mGroups.getNetworkId(devAddr, in processMessage() 3096 int netId = mGroup.getNetworkId(); in processMessage() 3793 int netId = mGroups.getNetworkId(dev.deviceAddress, ssid); in reinvokePersistentGroup() 3795 netId = mGroups.getNetworkId(dev.deviceAddress); in reinvokePersistentGroup() 3818 netId = mGroups.getNetworkId(dev.deviceAddress); in reinvokePersistentGroup() 3857 int netId = group.getNetworkId(); in getNetworkIdFromClientList() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | NetworkSuggestionNominator.java | 133 mWifiConfigManager.allowAutojoin(result.getNetworkId(), config.allowAutojoin); in addOrUpdateSuggestionToWifiConfigManger() 135 mWifiConfigManager.getConfiguredNetwork(result.getNetworkId()); in addOrUpdateSuggestionToWifiConfigManger() 138 if (!mWifiConfigManager.updateNetworkSelectionStatus(result.getNetworkId(), in addOrUpdateSuggestionToWifiConfigManger()
|
D | WifiNetworkSelector.java | 231 mWifiConfigManager.getConfiguredNetwork(wifiInfo.getNetworkId()); in hasInternetOrExpectNoInternet() 252 localLog("Current connected network: " + wifiInfo.getNetworkId()); in isNetworkSufficient() 255 mWifiConfigManager.getConfiguredNetwork(wifiInfo.getNetworkId()); in isNetworkSufficient() 678 if (info != null && info.getNetworkId() != config.networkId) info = null; in isEverMetered() 840 mWifiConfigManager.getConfiguredNetwork(cmmState.wifiInfo.getNetworkId()); in getCandidatesFromScan()
|
D | ScoredNetworkNominator.java | 349 if (!mWifiConfigManager.updateNetworkSelectionStatus(result.getNetworkId(), in getCandidateConfiguration() 354 candidateNetworkId = result.getNetworkId(); in getCandidateConfiguration()
|
D | ConnectHelper.java | 63 int netId = result.getNetworkId(); in connectToNetwork()
|
D | NetworkUpdateResult.java | 52 public int getNetworkId() { in getNetworkId() method in NetworkUpdateResult
|
D | AvailableNetworkNotifier.java | 446 mWifiMetrics.setNominatorForNetwork(result.getNetworkId(), mNominatorId); in handleConnectToNetworkAction() 451 new NetworkUpdateResult(result.getNetworkId()), in handleConnectToNetworkAction()
|
/packages/apps/Settings/src/com/android/settings/wifi/dpp/ |
D | WifiDppConfiguratorActivity.java | 346 outState.putInt(KEY_WIFI_NETWORK_ID, mWifiNetworkConfig.getNetworkId()); in onSaveInstanceState() 371 final int connectionNetworkId = connectionInfo.getNetworkId(); in getConnectedWifiNetworkConfigOrNull()
|
D | WifiNetworkConfig.java | 199 public int getNetworkId() { in getNetworkId() method in WifiNetworkConfig
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/ |
D | ConnectivityListener.java | 256 if (wifiInfo != null && wifiInfo.getNetworkId() == ap.getConfig().networkId) { in applyMacRandomizationSetting() 272 return connectionInfo.getNetworkId() != -1; in isWifiConnected()
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | WifiStatusTest.java | 193 mNetworkId.setText(String.valueOf(wifiInfo.getNetworkId())); 301 info.getNetworkId() == WifiConfiguration.INVALID_NETWORK_ID, in handleNetworkStateChanged()
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | TestConnectivityManager.java | 138 int getNetworkId() { in getNetworkId() method in TestConnectivityManager 307 this.networkId = new Network(cm.getNetworkId()); in TestNetworkAgent()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | SupplicantP2pIfaceCallbackImplTest.java | 361 assertEquals(group.getNetworkId(), WifiP2pGroup.NETWORK_ID_PERSISTENT); in testOnGroupStarted_success() 627 assertEquals(TEST_NETWORK_ID, group.getNetworkId()); in testOnInvitationReceived()
|