Home
last modified time | relevance | path

Searched refs:mCoexManager (Results 1 – 11 of 11) sorted by relevance

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DApConfigUtilTest.java179 @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/
DWifiShellCommandTest.java102 @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()
DWifiNativeTest.java290 @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()
DSoftApManagerTest.java221 @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()
DWifiServiceImplTest.java445 @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/
DSoftApManager.java183 @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()
DWifiInjector.java194 @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()
DWifiShellCommand.java204 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()
DWifiServiceImpl.java349 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/
DWifiP2pServiceImplTest.java309 @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/
DWifiP2pServiceImpl.java252 @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()