Lines Matching refs:WifiP2pManager
68 <dt>{@link android.net.wifi.p2p.WifiP2pManager#WIFI_P2P_STATE_CHANGED_ACTION}</dt>
70 <dt>{@link android.net.wifi.p2p.WifiP2pManager#WIFI_P2P_PEERS_CHANGED_ACTION}</dt>
72 <dt>{@link android.net.wifi.p2p.WifiP2pManager#WIFI_P2P_CONNECTION_CHANGED_ACTION}</dt>
74 <dt>{@link android.net.wifi.p2p.WifiP2pManager#WIFI_P2P_THIS_DEVICE_CHANGED_ACTION}</dt>
85 intentFilter.addAction(WifiP2pManager.WIFI_P2P_STATE_CHANGED_ACTION);
88 intentFilter.addAction(WifiP2pManager.WIFI_P2P_PEERS_CHANGED_ACTION);
91 intentFilter.addAction(WifiP2pManager.WIFI_P2P_CONNECTION_CHANGED_ACTION);
94 intentFilter.addAction(WifiP2pManager.WIFI_P2P_THIS_DEVICE_CHANGED_ACTION);
101 android.net.wifi.p2p.WifiP2pManager}, and call its {@link
102 android.net.wifi.p2p.WifiP2pManager#initialize(Context, Looper, WifiP2pManager.ChannelListener) ini…
104 android.net.wifi.p2p.WifiP2pManager.Channel} object, which you'll use later to
114 mManager = (WifiP2pManager) getSystemService(Context.WIFI_P2P_SERVICE);
129 if (WifiP2pManager.WIFI_P2P_STATE_CHANGED_ACTION.equals(action)) {
132 int state = intent.getIntExtra(WifiP2pManager.EXTRA_WIFI_STATE, -1);
133 if (state == WifiP2pManager.WIFI_P2P_STATE_ENABLED) {
138 } else if (WifiP2pManager.WIFI_P2P_PEERS_CHANGED_ACTION.equals(action)) {
143 } else if (WifiP2pManager.WIFI_P2P_CONNECTION_CHANGED_ACTION.equals(action)) {
148 } else if (WifiP2pManager.WIFI_P2P_THIS_DEVICE_CHANGED_ACTION.equals(action)) {
152 WifiP2pManager.EXTRA_WIFI_P2P_DEVICE));
182 android.net.wifi.p2p.WifiP2pManager#discoverPeers(WifiP2pManager.Channel,
183 WifiP2pManager.ActionListener) discoverPeers()}. This method takes the
186 <li>The {@link android.net.wifi.p2p.WifiP2pManager.Channel} you
188 <li>An implementation of {@link android.net.wifi.p2p.WifiP2pManager.ActionListener} with methods
193 mManager.discoverPeers(mChannel, new WifiP2pManager.ActionListener() {
212 {@link android.net.wifi.p2p.WifiP2pManager#discoverPeers(WifiP2pManager.Channel,
213 WifiP2pManager.ActionListener) discoverPeers()} method starts the discovery process and then
221 implement the {@link android.net.wifi.p2p.WifiP2pManager.PeerListListener}
251 method to call {@link android.net.wifi.p2p.WifiP2pManager#requestPeers
253 android.net.wifi.p2p.WifiP2pManager#WIFI_P2P_PEERS_CHANGED_ACTION} is received. You
261 else if (WifiP2pManager.WIFI_P2P_PEERS_CHANGED_ACTION.equals(action)) {
275 android.net.wifi.p2p.WifiP2pManager#WIFI_P2P_PEERS_CHANGED_ACTION} intent will
283 android.net.wifi.p2p.WifiP2pManager#connect(WifiP2pManager.Channel,
284 WifiP2pConfig, WifiP2pManager.ActionListener) connect()}
313 <p>The {@link android.net.wifi.p2p.WifiP2pManager.ActionListener} implemented in
316 android.net.wifi.p2p.WifiP2pManager.ConnectionInfoListener} interface. Its {@link
317 android.net.wifi.p2p.WifiP2pManager.ConnectionInfoListener#onConnectionInfoAvailable(WifiP2pInfo)
347 android.net.wifi.p2p.WifiP2pManager#WIFI_P2P_CONNECTION_CHANGED_ACTION} intent.
349 android.net.wifi.p2p.WifiP2pManager#requestConnectionInfo(WifiP2pManager.Channel,
350 WifiP2pManager.ConnectionInfoListener) requestConnectionInfo()}. This is an
356 } else if (WifiP2pManager.WIFI_P2P_CONNECTION_CHANGED_ACTION.equals(action)) {
363 .getParcelableExtra(WifiP2pManager.EXTRA_NETWORK_INFO);