/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | ApConfigUtilTest.java | 179 @Mock CoexManager mCoexManager; field in ApConfigUtilTest 456 mCoexManager, mResources, new SoftApCapability(0)); in chooseApChannel2GBandWithNoAllowedChannel() 473 mCoexManager, mResources, mCapability); in chooseApChannel2GBandWithAllowedChannels() 487 mCoexManager, mResources, mCapability); in chooseApChannel5GBandWithAllowedChannels() 501 mCoexManager, mResources, mCapability); in chooseApChannel60GBandWithAllowedChannels() 515 mCoexManager, mResources, mCapability)); in chooseApChannel5GBandWithNoAllowedChannels() 534 mCoexManager, mResources, mCapability); in chooseApChannelWillHighBandPrefer() 554 when(mCoexManager.getCoexUnsafeChannels()).thenReturn(Arrays.asList( in chooseApChannelWithUnsafeChannelsPreferSafe() 559 when(mCoexManager.getCoexRestrictions()).thenReturn(0); in chooseApChannelWithUnsafeChannelsPreferSafe() 563 mCoexManager, mResources, mCapability); in chooseApChannelWithUnsafeChannelsPreferSafe() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiShellCommandTest.java | 102 @Mock CoexManager mCoexManager; field in WifiShellCommandTest 134 when(mWifiInjector.getCoexManager()).thenReturn(mCoexManager); in setUp() 507 verify(mCoexManager, never()).setMockCellChannels(any()); in testSetCoexCellChannels() 517 verify(mCoexManager, never()).setMockCellChannels(any()); in testSetCoexCellChannels() 525 verify(mCoexManager, never()).setMockCellChannels(any()); in testSetCoexCellChannels() 532 verify(mCoexManager, times(1)).setMockCellChannels(any()); in testSetCoexCellChannels() 540 verify(mCoexManager, times(2)).setMockCellChannels(any()); in testSetCoexCellChannels() 545 verify(mCoexManager, times(3)).setMockCellChannels(any()); in testSetCoexCellChannels() 554 verify(mCoexManager, never()).resetMockCellChannels(); in testResetCoexCellChannel() 562 verify(mCoexManager).resetMockCellChannels(); in testResetCoexCellChannel()
|
D | WifiNativeTest.java | 290 @Mock private CoexManager mCoexManager; field in WifiNativeTest 350 when(mWifiInjector.getCoexManager()).thenReturn(mCoexManager); in setUp() 958 when(mCoexManager.getCoexUnsafeChannels()).thenReturn(unsafeChannels); in testStartHalUpdatesCoexUnsafeChannels() 959 when(mCoexManager.getCoexRestrictions()).thenReturn(restrictions); in testStartHalUpdatesCoexUnsafeChannels()
|
D | SoftApManagerTest.java | 221 @Mock CoexManager mCoexManager; field in SoftApManagerTest 506 mCoexManager, in createSoftApManager() 2727 verify(mCoexManager).registerCoexListener(mCoexListenerCaptor.capture()); in startSoftApAndVerifyEnabled() 3597 when(mCoexManager.getCoexUnsafeChannels()).thenReturn(Arrays.asList( in testBridgedModeKeepDueToCoexIsSoftUnsafeWhenStartingSAP() 3613 when(mCoexManager.getCoexRestrictions()).thenReturn(WifiManager.COEX_RESTRICTION_SOFTAP); in testBridgedModeFallbackToSingleModeDueToCoexIsHardUnsafe() 3614 when(mCoexManager.getCoexUnsafeChannels()).thenReturn(Arrays.asList( in testBridgedModeFallbackToSingleModeDueToCoexIsHardUnsafe() 3666 when(mCoexManager.getCoexUnsafeChannels()).thenReturn(Arrays.asList( in testBridgedModeKeepWhenCoexChangedToSoftUnsafe() 3697 when(mCoexManager.getCoexRestrictions()).thenReturn(WifiManager.COEX_RESTRICTION_SOFTAP); in testBridgedModeShutDownInstanceDueToCoexIsHardUnsafe() 3699 when(mCoexManager.getCoexUnsafeChannels()).thenReturn(Arrays.asList( in testBridgedModeShutDownInstanceDueToCoexIsHardUnsafe() 3741 when(mCoexManager.getCoexUnsafeChannels()).thenReturn(Arrays.asList( in testBridgedModeKeepWhenCoexChangedButAvailableChannelExist()
|
D | WifiServiceImplTest.java | 445 @Mock CoexManager mCoexManager; field in WifiServiceImplTest 618 when(mWifiInjector.getCoexManager()).thenReturn(mCoexManager); in setUp() 2118 verify(mCoexManager, times(1)).setCoexUnsafeChannels(any(), anyInt()); in testSetCoexUnsafeChannelsDefaultAlgorithmDisabled() 2137 verify(mCoexManager, never()).setCoexUnsafeChannels(any(), anyInt()); in testSetCoexUnsafeChannelsDefaultAlgorithmEnabled() 2162 verify(mCoexManager).registerRemoteCoexCallback(mCoexCallback); in testRegisterUnregisterCoexCallback() 2165 verify(mCoexManager).unregisterRemoteCoexCallback(mCoexCallback); in testRegisterUnregisterCoexCallback()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | SoftApManager.java | 183 @Nullable private final CoexManager mCoexManager; field in SoftApManager 395 if ((mCoexManager.getCoexRestrictions() & WifiManager.COEX_RESTRICTION_SOFTAP) != 0) { in updateSafeChannelFrequencyList() 397 ApConfigUtil.getUnsafeChannelFreqsFromCoex(mCoexManager)); in updateSafeChannelFrequencyList() 474 mCoexManager = coexManager; in SoftApManager() 920 mWifiNative, mCoexManager, mResourceCache, mCountryCode, in startSoftAp() 1270 mCoexManager, in processMessageImpl() 1536 mCurrentSoftApCapability, mCoexManager, mContext); in processMessageImpl() 1961 mCoexManager.registerCoexListener(mCoexListener); in enterImpl() 1982 mCoexManager.unregisterCoexListener(mCoexListener); in exitImpl() 2295 sapBand, mCoexManager)) { in processMessageImpl()
|
D | WifiInjector.java | 194 @Nullable private final CoexManager mCoexManager; field in WifiInjector 374 mCoexManager = new CoexManager(mContext, mWifiNative, makeTelephonyManager(), in WifiInjector() 378 mCoexManager = null; in WifiInjector() 709 mCoexManager.enableVerboseLogging(verboseEnabled); in enableVerboseLogging() 876 mWifiNative, this, mCoexManager, mInterfaceConflictManager, in makeSoftApManager() 1061 return mCoexManager; in getCoexManager()
|
D | WifiShellCommand.java | 204 private final CoexManager mCoexManager; field in WifiShellCommand 462 mCoexManager = wifiInjector.getCoexManager(); in WifiShellCommand() 1358 mCoexManager.setMockCellChannels(buildCoexCellChannels()); in onCommand() 1365 mCoexManager.resetMockCellChannels(); in onCommand() 1372 pw.println("Cell channels: " + mCoexManager.getCellChannels()); in onCommand()
|
D | WifiServiceImpl.java | 349 private final CoexManager mCoexManager; field in WifiServiceImpl 778 mCoexManager = wifiInjector.getCoexManager(); in WifiServiceImpl() 1971 mCoexManager.setCoexUnsafeChannels(unsafeChannels, restrictions), in setCoexUnsafeChannels() 1992 mWifiThreadRunner.post(() -> mCoexManager.registerRemoteCoexCallback(callback), in registerCoexCallback() 2031 mWifiThreadRunner.post(() -> mCoexManager.unregisterRemoteCoexCallback(callback), in unregisterCoexCallback()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | WifiP2pServiceImplTest.java | 309 @Mock CoexManager mCoexManager; field in WifiP2pServiceImplTest 1489 when(mWifiInjector.getCoexManager()).thenReturn(mCoexManager); in setUpWifiP2pServiceImpl() 1557 }).when(mCoexManager).registerCoexListener(any(CoexManager.CoexListener.class)); in setUpWifiP2pServiceImpl() 1558 when(mCoexManager.getCoexRestrictions()).thenReturn(0); in setUpWifiP2pServiceImpl() 1559 when(mCoexManager.getCoexUnsafeChannels()).thenReturn(Collections.emptyList()); in setUpWifiP2pServiceImpl() 6443 when(mCoexManager.getCoexRestrictions()).thenReturn(restrictionBits); in setupCoexMock() 6444 when(mCoexManager.getCoexUnsafeChannels()).thenReturn(unsafeChannels); in setupCoexMock()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/ |
D | WifiP2pServiceImpl.java | 252 @Nullable private final CoexManager mCoexManager; field in WifiP2pServiceImpl 762 mCoexManager = mWifiInjector.getCoexManager(); in WifiP2pServiceImpl() 1623 mCoexManager.registerCoexListener(this::checkCoexUnsafeChannels); in P2pStateMachine() 2005 && (mCoexManager.getCoexRestrictions() in checkCoexUnsafeChannels() 2007 unsafeChannels = mCoexManager.getCoexUnsafeChannels(); in checkCoexUnsafeChannels()
|