/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | ApConfigUtilTest.java | 144 @Mock CoexManager mCoexManager; field in ApConfigUtilTest 296 mCoexManager, mResources); in chooseApChannel2GBandWithNoAllowedChannel() 312 mCoexManager, mResources); in chooseApChannel2GBandWithAllowedChannels() 327 SoftApConfiguration.BAND_5GHZ, mWifiNative, mCoexManager, mResources); in chooseApChannel5GBandWithAllowedChannels() 342 SoftApConfiguration.BAND_60GHZ, mWifiNative, mCoexManager, mResources); in chooseApChannel60GBandWithAllowedChannels() 355 mCoexManager, mResources)); in chooseApChannel5GBandWithNoAllowedChannels() 374 mWifiNative, mCoexManager, mResources); in chooseApChannelWillHighBandPrefer() 392 when(mCoexManager.getCoexUnsafeChannels()).thenReturn(Arrays.asList( in chooseApChannelWithUnsafeChannelsPreferSafe() 397 when(mCoexManager.getCoexRestrictions()).thenReturn(0); in chooseApChannelWithUnsafeChannelsPreferSafe() 401 mWifiNative, mCoexManager, mResources); in chooseApChannelWithUnsafeChannelsPreferSafe() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiShellCommandTest.java | 84 @Mock CoexManager mCoexManager; field in WifiShellCommandTest 113 when(mWifiInjector.getCoexManager()).thenReturn(mCoexManager); in setUp() 475 verify(mCoexManager, never()).setMockCellChannels(any()); in testSetCoexCellChannels() 485 verify(mCoexManager, never()).setMockCellChannels(any()); in testSetCoexCellChannels() 493 verify(mCoexManager, never()).setMockCellChannels(any()); in testSetCoexCellChannels() 500 verify(mCoexManager, times(1)).setMockCellChannels(any()); in testSetCoexCellChannels() 508 verify(mCoexManager, times(2)).setMockCellChannels(any()); in testSetCoexCellChannels() 513 verify(mCoexManager, times(3)).setMockCellChannels(any()); in testSetCoexCellChannels() 522 verify(mCoexManager, never()).resetMockCellChannels(); in testResetCoexCellChannel() 530 verify(mCoexManager).resetMockCellChannels(); in testResetCoexCellChannel()
|
D | WifiNativeTest.java | 253 @Mock private CoexManager mCoexManager; field in WifiNativeTest 288 when(mWifiInjector.getCoexManager()).thenReturn(mCoexManager); in setUp() 734 when(mCoexManager.getCoexUnsafeChannels()).thenReturn(unsafeChannels); in testStartHalUpdatesCoexUnsafeChannels() 735 when(mCoexManager.getCoexRestrictions()).thenReturn(restrictions); in testStartHalUpdatesCoexUnsafeChannels()
|
D | SoftApManagerTest.java | 164 @Mock CoexManager mCoexManager; field in SoftApManagerTest 326 mCoexManager, in createSoftApManager() 1980 verify(mCoexManager).registerCoexListener(mCoexListenerCaptor.capture()); in startSoftApAndVerifyEnabled() 2850 when(mCoexManager.getCoexUnsafeChannels()).thenReturn(Arrays.asList( in testBridgedModeKeepDueToCoexIsSoftUnsafeWhenStartingSAP() 2874 when(mCoexManager.getCoexRestrictions()).thenReturn(WifiManager.COEX_RESTRICTION_SOFTAP); in testBridgedModeFallbackToSingleModeDueToCoexIsHardUnsafe() 2875 when(mCoexManager.getCoexUnsafeChannels()).thenReturn(Arrays.asList( in testBridgedModeFallbackToSingleModeDueToCoexIsHardUnsafe() 2918 when(mCoexManager.getCoexUnsafeChannels()).thenReturn(Arrays.asList( in testBridgedModeKeepWhenCoexChangedToSoftUnsafe() 2961 when(mCoexManager.getCoexRestrictions()).thenReturn(WifiManager.COEX_RESTRICTION_SOFTAP); in testBridgedModeShutDownInstanceDueToCoexIsHardUnsafe() 2963 when(mCoexManager.getCoexUnsafeChannels()).thenReturn(Arrays.asList( in testBridgedModeShutDownInstanceDueToCoexIsHardUnsafe() 3016 when(mCoexManager.getCoexUnsafeChannels()).thenReturn(Arrays.asList( in testBridgedModeKeepWhenCoexChangedButAvailableChannelExist()
|
D | WifiServiceImplTest.java | 342 @Mock CoexManager mCoexManager; field in WifiServiceImplTest 456 when(mWifiInjector.getCoexManager()).thenReturn(mCoexManager); in setUp() 1489 verify(mCoexManager, times(1)).setCoexUnsafeChannels(any(), anyInt()); in testSetCoexUnsafeChannelsDefaultAlgorithmDisabled() 1508 verify(mCoexManager, never()).setCoexUnsafeChannels(any(), anyInt()); in testSetCoexUnsafeChannelsDefaultAlgorithmEnabled() 1533 verify(mCoexManager).registerRemoteCoexCallback(mCoexCallback); in testRegisterUnregisterCoexCallback() 1536 verify(mCoexManager).unregisterRemoteCoexCallback(mCoexCallback); in testRegisterUnregisterCoexCallback()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | SoftApManager.java | 94 @Nullable private final CoexManager mCoexManager; field in SoftApManager 259 if ((mCoexManager.getCoexRestrictions() & WifiManager.COEX_RESTRICTION_SOFTAP) != 0) { in updateSafeChannelFrequencyList() 261 ApConfigUtil.getUnsafeChannelFreqsFromCoex(mCoexManager)); in updateSafeChannelFrequencyList() 325 mCoexManager = coexManager; in SoftApManager() 642 mWifiNative, mCoexManager, mContext.getResources(), mCountryCode, in startSoftAp() 877 configuredBand, mCoexManager); in processMessage() 1285 mCoexManager.registerCoexListener(mCoexListener); in enter() 1301 mCoexManager.unregisterCoexListener(mCoexListener); in exit() 1556 sapBand, mCoexManager)) { in processMessage()
|
D | WifiInjector.java | 168 @Nullable private final CoexManager mCoexManager; field in WifiInjector 317 mCoexManager = new CoexManager(mContext, mWifiNative, makeTelephonyManager(), in WifiInjector() 321 mCoexManager = null; in WifiInjector() 571 mCoexManager.enableVerboseLogging(verboseBool); in enableVerboseLogging() 707 mFrameworkFacade, mWifiNative, mCoexManager, mCountryCode.getCountryCode(), in makeSoftApManager() 911 return mCoexManager; in getCoexManager()
|
D | WifiShellCommand.java | 149 private final CoexManager mCoexManager; field in WifiShellCommand 211 mCoexManager = wifiInjector.getCoexManager(); in WifiShellCommand() 852 mCoexManager.setMockCellChannels(buildCoexCellChannels()); in onCommand() 859 mCoexManager.resetMockCellChannels(); in onCommand() 866 pw.println("Cell channels: " + mCoexManager.getCellChannels()); in onCommand()
|
D | WifiServiceImpl.java | 210 private final CoexManager mCoexManager; field in WifiServiceImpl 359 mCoexManager = wifiInjector.getCoexManager(); in WifiServiceImpl() 1084 mCoexManager.setCoexUnsafeChannels(unsafeChannels, restrictions)); in setCoexUnsafeChannels() 1103 mWifiThreadRunner.post(() -> mCoexManager.registerRemoteCoexCallback(callback)); in registerCoexCallback() 1122 mWifiThreadRunner.post(() -> mCoexManager.unregisterRemoteCoexCallback(callback)); in unregisterCoexCallback()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | WifiP2pServiceImplTest.java | 188 @Mock CoexManager mCoexManager; field in WifiP2pServiceImplTest 858 when(mWifiInjector.getCoexManager()).thenReturn(mCoexManager); in setUpWifiP2pServiceImpl() 890 }).when(mCoexManager).registerCoexListener(any(CoexManager.CoexListener.class)); in setUpWifiP2pServiceImpl() 891 when(mCoexManager.getCoexRestrictions()).thenReturn(0); in setUpWifiP2pServiceImpl() 892 when(mCoexManager.getCoexUnsafeChannels()).thenReturn(Collections.emptyList()); in setUpWifiP2pServiceImpl() 4306 when(mCoexManager.getCoexRestrictions()).thenReturn(restrictionBits); in setupCoexMock() 4307 when(mCoexManager.getCoexUnsafeChannels()).thenReturn(unsafeChannels); in setupCoexMock()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/ |
D | WifiP2pServiceImpl.java | 186 @Nullable private CoexManager mCoexManager; field in WifiP2pServiceImpl 533 mCoexManager = mWifiInjector.getCoexManager(); in WifiP2pServiceImpl() 959 mCoexManager.registerCoexListener(new CoexManager.CoexListener() { in P2pStateMachine() 1001 && (mCoexManager.getCoexRestrictions() in checkCoexUnsafeChannels() 1003 unsafeChannels = mCoexManager.getCoexUnsafeChannels(); in checkCoexUnsafeChannels()
|