Package org.robolectric.shadows
Class ShadowWifiP2pManager
java.lang.Object
org.robolectric.shadows.ShadowWifiP2pManager
@Implements(android.net.wifi.p2p.WifiP2pManager.class) public class ShadowWifiP2pManager extends Object
-
Constructor Summary
Constructors Constructor Description ShadowWifiP2pManager() -
Method Summary
Modifier and Type Method Description protected voidcreateGroup(WifiP2pManager.Channel c, WifiP2pManager.ActionListener al)WifiP2pManager.GroupInfoListenergetGroupInfoListener()intgetListeningChannel()intgetOperatingChannel()protected WifiP2pManager.Channelinitialize(Context context, Looper looper, WifiP2pManager.ChannelListener listener)protected voidremoveGroup(WifiP2pManager.Channel c, WifiP2pManager.ActionListener al)protected voidrequestGroupInfo(WifiP2pManager.Channel c, WifiP2pManager.GroupInfoListener gl)voidsetGroupInfo(WifiP2pManager.Channel channel, WifiP2pGroup wifiP2pGroup)voidsetNextActionFailure(int nextActionFailure)protected voidsetWifiP2pChannels(WifiP2pManager.Channel c, int listeningChannel, int operatingChannel, WifiP2pManager.ActionListener al)
-
Constructor Details
-
ShadowWifiP2pManager
public ShadowWifiP2pManager()
-
-
Method Details
-
getListeningChannel
public int getListeningChannel() -
getOperatingChannel
public int getOperatingChannel() -
getGroupInfoListener
-
setWifiP2pChannels
@Implementation(minSdk=19) protected void setWifiP2pChannels(WifiP2pManager.Channel c, int listeningChannel, int operatingChannel, WifiP2pManager.ActionListener al) -
initialize
@Implementation protected WifiP2pManager.Channel initialize(Context context, Looper looper, WifiP2pManager.ChannelListener listener) -
createGroup
@Implementation protected void createGroup(WifiP2pManager.Channel c, WifiP2pManager.ActionListener al) -
requestGroupInfo
@Implementation protected void requestGroupInfo(WifiP2pManager.Channel c, WifiP2pManager.GroupInfoListener gl) -
removeGroup
@Implementation protected void removeGroup(WifiP2pManager.Channel c, WifiP2pManager.ActionListener al) -
setNextActionFailure
public void setNextActionFailure(int nextActionFailure) -
setGroupInfo
-