Searched refs:mWifiP2pManager (Results 1 – 3 of 3) sorted by relevance
/packages/apps/Settings/src/com/android/settings/wifi/p2p/ |
D | WifiP2pSettings.java | 77 @VisibleForTesting WifiP2pManager mWifiP2pManager; field in WifiP2pSettings 127 if (mWifiP2pManager == null) return; 147 if (mWifiP2pManager != null && mChannel != null) { 148 mWifiP2pManager.requestDeviceInfo(mChannel, WifiP2pSettings.this); 160 if (mWifiP2pManager != null && mChannel != null) { 161 mWifiP2pManager.requestPersistentGroupInfo(mChannel, WifiP2pSettings.this); 204 if (mWifiP2pManager == null) { in onActivityCreated() 205 mWifiP2pManager = (WifiP2pManager) getSystemService(Context.WIFI_P2P_SERVICE); in onActivityCreated() 208 if (mWifiP2pManager != null) { in onActivityCreated() 212 mWifiP2pManager = null; in onActivityCreated() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/p2p/ |
D | WifiP2pSettingsTest.java | 73 public WifiP2pManager mWifiP2pManager; field in WifiP2pSettingsTest 90 mFragment.mWifiP2pManager = mWifiP2pManager; in setUp() 91 doReturn(mChannel).when(mWifiP2pManager).initialize(any(), any(), any()); in setUp() 144 verify(mWifiP2pManager, times(1)).requestNetworkInfo(any(), any()); in networkInfo_afterFragmentAttached_shouldBeRequested() 214 verify(mWifiP2pManager, times(1)).cancelConnect(any(), any()); in clickCancel_withInvitedPeerDialog_shouldCallCancelConnection() 223 verify(mWifiP2pManager, times(1)).connect(any(), any(), any()); in wifiP2pManager_clickOnFailedPeer_shouldTryToConnect() 274 verify(mWifiP2pManager, times(1)).discoverPeers(any(), any()); in noLastGroupForm_whenP2pDisconnected_shouldStartSearch() 287 verify(mWifiP2pManager, times(1)).setDeviceName(any(), any(), any()); in withValidName_clickRenameDialog_shouldSetName() 300 verify(mWifiP2pManager, times(0)).setDeviceName(any(), any(), any()); in withInValidName_whenGetRenameRequest_shouldNotSetName() 312 verify(mWifiP2pManager, times(1)).removeGroup(any(), any()); in pressDisconnectDialog_clickDisconnectDialog_shouldRemoveGroup() [all …]
|
/packages/apps/Settings/src/com/android/settings/wfd/ |
D | WifiDisplaySettings.java | 111 private WifiP2pManager mWifiP2pManager; field in WifiDisplaySettings 137 mWifiP2pManager = (WifiP2pManager) context.getSystemService(Context.WIFI_P2P_SERVICE); in onCreate() 138 mWifiP2pChannel = mWifiP2pManager.initialize(context, Looper.getMainLooper(), null); in onCreate() 485 mWifiP2pManager.createGroup(mWifiP2pChannel, new ActionListener() { in startAutoGO() 504 mWifiP2pManager.removeGroup(mWifiP2pChannel, new ActionListener() { in stopAutoGO() 539 mWifiP2pManager.startListening(mWifiP2pChannel, listener); in setListenMode() 541 mWifiP2pManager.stopListening(mWifiP2pChannel, listener); in setListenMode() 549 mWifiP2pManager.setWifiP2pChannels(mWifiP2pChannel, in setWifiP2pChannels()
|