public class WifiP2pServiceImpl
extends IWifiP2pManager.Stub
Modifier and Type | Class and Description |
---|---|
static class |
WifiP2pServiceImpl.P2pStatus
Error code definition.
|
Modifier and Type | Field and Description |
---|---|
static int |
BLOCK_DISCOVERY |
static int |
DISABLE_P2P_TIMED_OUT |
static int |
DISABLED |
static int |
DISCONNECT_WIFI_REQUEST |
static int |
DISCONNECT_WIFI_RESPONSE |
static int |
ENABLED |
static int |
GROUP_CREATING_TIMED_OUT |
static int |
P2P_CONNECTION_CHANGED |
static int |
SET_MIRACAST_MODE |
Constructor and Description |
---|
WifiP2pServiceImpl(Context context) |
Modifier and Type | Method and Description |
---|---|
void |
connectivityServiceReady() |
protected void |
dump(FileDescriptor fd,
PrintWriter pw,
String[] args) |
Messenger |
getMessenger()
Get a reference to handler.
|
Messenger |
getP2pStateMachineMessenger()
Get a reference to handler.
|
void |
setMiracastMode(int mode)
This is used to provide information to drivers to optimize performance depending
on the current mode of operation.
0 - disabled
1 - source operation
2 - sink operation
As an example, the driver could reduce the channel dwell time during scanning
when acting as a source or sink to minimize impact on miracast.
|
public static final int GROUP_CREATING_TIMED_OUT
public static final int DISABLE_P2P_TIMED_OUT
public static final int P2P_CONNECTION_CHANGED
public static final int DISCONNECT_WIFI_REQUEST
public static final int DISCONNECT_WIFI_RESPONSE
public static final int SET_MIRACAST_MODE
public static final int BLOCK_DISCOVERY
public static final int ENABLED
public static final int DISABLED
public WifiP2pServiceImpl(Context context)
public void connectivityServiceReady()
public Messenger getMessenger()
public Messenger getP2pStateMachineMessenger()
public void setMiracastMode(int mode)
protected void dump(FileDescriptor fd, PrintWriter pw, String[] args)