Searched refs:mWifiP2pChannel (Results 1 – 3 of 3) sorted by relevance
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | WifiP2pShellCommandTest.java | 65 @Mock WifiP2pManager.Channel mWifiP2pChannel; field in WifiP2pShellCommandTest 74 when(mWifiP2pManager.initialize(any(), any(), any())).thenReturn(mWifiP2pChannel); in setUp() 100 verify(mWifiP2pChannel).close(); in testP2pInitAndDeinit() 106 verify(mWifiP2pChannel, never()).close(); in testP2pDeinitWithNoInit() 113 verify(mWifiP2pManager).discoverPeers(eq(mWifiP2pChannel), any()); in testP2pPeerDiscovery() 115 verify(mWifiP2pManager).stopPeerDiscovery(eq(mWifiP2pChannel), any()); in testP2pPeerDiscovery() 123 verify(mWifiP2pManager).discoverPeersOnSocialChannels(eq(mWifiP2pChannel), any()); in testP2pPeerDiscoveryOnSocialChannels() 125 verify(mWifiP2pManager).stopPeerDiscovery(eq(mWifiP2pChannel), any()); in testP2pPeerDiscoveryOnSocialChannels() 136 eq(mWifiP2pChannel), eq(frequencyMhz), any()); in testP2pPeerDiscoveryOnSpecificFrequencyWithPositiveFrequency() 138 verify(mWifiP2pManager).stopPeerDiscovery(eq(mWifiP2pChannel), any()); in testP2pPeerDiscoveryOnSpecificFrequencyWithPositiveFrequency() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiP2pConnection.java | 45 private AsyncChannel mWifiP2pChannel; field in WifiP2pConnection 75 if (ac == mWifiP2pChannel) { in handleMessage() 92 if (ac == mWifiP2pChannel) { in handleMessage() 124 mWifiP2pChannel = new AsyncChannel(); in handleBootCompleted() 125 mWifiP2pChannel.connect(mContext, mHandler, p2pManager.getP2pStateMachineMessenger()); in handleBootCompleted() 134 return mWifiP2pChannel != null; in isConnected() 139 if (mWifiP2pChannel == null) { in sendMessage() 143 mWifiP2pChannel.sendMessage(what); in sendMessage() 149 if (mWifiP2pChannel == null) { in sendMessage() 153 mWifiP2pChannel.sendMessage(what, arg1); in sendMessage() [all …]
|
/packages/apps/Settings/src/com/android/settings/wfd/ |
D | WifiDisplaySettings.java | 114 private Channel mWifiP2pChannel; field in WifiDisplaySettings 140 mWifiP2pChannel = mWifiP2pManager.initialize(context, Looper.getMainLooper(), null); in onCreate() 487 mWifiP2pManager.createGroup(mWifiP2pChannel, new ActionListener() { in startAutoGO() 506 mWifiP2pManager.removeGroup(mWifiP2pChannel, new ActionListener() { in stopAutoGO() 541 mWifiP2pManager.startListening(mWifiP2pChannel, listener); in setListenMode() 543 mWifiP2pManager.stopListening(mWifiP2pChannel, listener); in setListenMode() 551 mWifiP2pManager.setWifiP2pChannels(mWifiP2pChannel, in setWifiP2pChannels()
|