public class

WirelessDisplayManager

extends Object
java.lang.Object
   ↳ com.htc.service.WirelessDisplayManager

Summary

Constants
String CONFIG_FILE_PATH
int ERROR_MIRROR_DONGLE_NOT_FOUND
int ERROR_MIRROR_MEDIA_RECORDER
int ERROR_MIRROR_NETWORK_FAILURE
int ERROR_MIRROR_OUT_OF_RANGE
int ERROR_MIRROR_PLUGGED_FAILED
int ERROR_MIRROR_WIFI_TURN_OFF
String EXTRA_MIRROR_DISPLAY_STATE This lookup key for an int that indicates whether Wi-Fi AP is enabled, disabled, enabling, disabling, pause, app_pause, or unknown.
String EXTRA_MIRROR_DISPLAY_STATUS This lookup key is for a boolean that indicates whether mirror mode is turned ON or OFF.
String EXTRA_MIRROR_ERROR_MESSAGE This lookup key if for a int that indicates the Error message.
String MIRROR_DISPLAY_DONGLE_AVAILABLE_ACTION
String MIRROR_DISPLAY_STATE_CHANGED_ACTION
String MIRROR_DONGLE_LIST_CHANGED_ACTION
int MIRROR_MODE_APP_PAUSE The state when application Pauses Mirror Mode
int MIRROR_MODE_CALL_PAUSE The state when WD service is paused by MT/MO call.
int MIRROR_MODE_DISPLAY_DISABLED Mirror Mode is Disabled
int MIRROR_MODE_DISPLAY_DISABLING Mirror Mode is currently being disabled.
int MIRROR_MODE_DISPLAY_ENABLED Mirror Mode is Enabled
int MIRROR_MODE_DISPLAY_ENABLING Mirror Mode is currently being enabled.
int MIRROR_MODE_DISPLAY_PAUSE Mirror Mode is in PAUSE State.
int MIRROR_MODE_DISPLAY_UNKNOWN Mirror Mode is in UNKNOWN State
int MIRROR_MODE_DONGLE_WAIT The state when WD Service is waiting for dongle to be added to the same network Once the dongle is found on same network the Mirroring will start.
int MIRROR_MODE_OUT_OF_RANGE Dongle or device is OUT OF RANGE for AP
String SWVER_FILE_PATH
Public Methods
String getConnectedDongleIP()
Retrund the connected dongle IP in String format
long getConnectedDongleIPLong()
Return the connected Dongle IP address as Long integer
boolean getDLNAPreloadEnable()
DongleInfo getDefaultDongle()
Return dongleinfo oof dongle whcih is selected by user previously Parameters: NONE Return DongleInfo
List<DongleInfo> getDiscoveryDongleList()
get discovery dongle list
boolean getFingerGestureEnable()
String getInterface()
boolean getMirrorDisplayStatus()
get mirror display status
int getMirrorModeState()
Returns the State of Mirror Mode.
List<DongleInfo> getunConfigDongleList()
get unconfig.
boolean mirrorModeStartStop(boolean start)
Stops the Mirror Mode.
void mirrorNow()
void notifyUserUnConfigDoneleResult(boolean result)
int playOnTV(boolean enable)
playOnTV: To Enable/Disable mirror display Replace Old API: setMirrorDisplayOnOff()
boolean popDialog()
void requestWivuDiscovery(String nwif, String group, boolean auto)
Request WirelessDisplayService to do WIVU discovery.
void selectDongle(String Bssid)
void setDLNAPreloadEnable(boolean enable)
void setFingerGestureEnable(boolean enable)
void setInterface(String nwif)
void setL2peApInfo(String ssid)
int setMirrorDisplayOnOff(boolean enable)
Enable/Disable mirror display
void stopWivuDiscovery()
Request WirelessDisplayService to stop WIVU discovery.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String CONFIG_FILE_PATH

Constant Value: "/data/misc/wifidisplay.conf"

public static final int ERROR_MIRROR_DONGLE_NOT_FOUND

Constant Value: -6 (0xfffffffa)

public static final int ERROR_MIRROR_MEDIA_RECORDER

Constant Value: -4 (0xfffffffc)

public static final int ERROR_MIRROR_NETWORK_FAILURE

Constant Value: -1 (0xffffffff)

public static final int ERROR_MIRROR_OUT_OF_RANGE

Constant Value: -3 (0xfffffffd)

public static final int ERROR_MIRROR_PLUGGED_FAILED

Constant Value: -5 (0xfffffffb)

public static final int ERROR_MIRROR_WIFI_TURN_OFF

Constant Value: -2 (0xfffffffe)

public static final String EXTRA_MIRROR_DISPLAY_STATE

This lookup key for an int that indicates whether Wi-Fi AP is enabled, disabled, enabling, disabling, pause, app_pause, or unknown. Retrieve it with getIntExtra(String, int).

Constant Value: "mirror_display_state"

public static final String EXTRA_MIRROR_DISPLAY_STATUS

This lookup key is for a boolean that indicates whether mirror mode is turned ON or OFF. Retrive it with getIntExtra(String, int).

Constant Value: "mirror_display_status"

public static final String EXTRA_MIRROR_ERROR_MESSAGE

This lookup key if for a int that indicates the Error message. Retrive it with getIntExtra(String, int).

Constant Value: "mirror_error_message"

public static final String MIRROR_DISPLAY_DONGLE_AVAILABLE_ACTION

Constant Value: "com.htc.MIRROR_DISPLAY_DONGLE_AVAILABLE"

public static final String MIRROR_DISPLAY_STATE_CHANGED_ACTION

Constant Value: "com.htc.MIRROR_DISPLAY_STATE_CHANGED"

public static final String MIRROR_DONGLE_LIST_CHANGED_ACTION

Constant Value: "com.htc.MIRROR_DONGLE_LIST_CHANGED"

public static final int MIRROR_MODE_APP_PAUSE

The state when application Pauses Mirror Mode

Constant Value: 7 (0x00000007)

public static final int MIRROR_MODE_CALL_PAUSE

The state when WD service is paused by MT/MO call. It will stop Mediarecorder

Constant Value: 9 (0x00000009)

public static final int MIRROR_MODE_DISPLAY_DISABLED

Mirror Mode is Disabled

Constant Value: 1 (0x00000001)

public static final int MIRROR_MODE_DISPLAY_DISABLING

Mirror Mode is currently being disabled. The state will change to MIRROR_MODE_DISPLAY_DISABLED if it finishes successfully.

Constant Value: 0 (0x00000000)

public static final int MIRROR_MODE_DISPLAY_ENABLED

Mirror Mode is Enabled

Constant Value: 3 (0x00000003)

public static final int MIRROR_MODE_DISPLAY_ENABLING

Mirror Mode is currently being enabled. The state will change to MIRROR_MODE_DISPLAY_ENABLED} if it finishes successfully.

Constant Value: 2 (0x00000002)

public static final int MIRROR_MODE_DISPLAY_PAUSE

Mirror Mode is in PAUSE State.

Constant Value: 4 (0x00000004)

public static final int MIRROR_MODE_DISPLAY_UNKNOWN

Mirror Mode is in UNKNOWN State

Constant Value: 5 (0x00000005)

public static final int MIRROR_MODE_DONGLE_WAIT

The state when WD Service is waiting for dongle to be added to the same network Once the dongle is found on same network the Mirroring will start.

Constant Value: 8 (0x00000008)

public static final int MIRROR_MODE_OUT_OF_RANGE

Dongle or device is OUT OF RANGE for AP

Constant Value: 6 (0x00000006)

public static final String SWVER_FILE_PATH

Constant Value: "/data/misc/wifidisplay.swver"

Public Methods

public String getConnectedDongleIP ()

Retrund the connected dongle IP in String format

Returns
  • The IP address of connected Dongle in String format else NULL

public long getConnectedDongleIPLong ()

Return the connected Dongle IP address as Long integer

Returns
  • IP address as Long integer

public boolean getDLNAPreloadEnable ()

public DongleInfo getDefaultDongle ()

Return dongleinfo oof dongle whcih is selected by user previously Parameters: NONE Return DongleInfo

Returns
  • List

public List<DongleInfo> getDiscoveryDongleList ()

get discovery dongle list

Returns
  • List

public boolean getFingerGestureEnable ()

public String getInterface ()

public boolean getMirrorDisplayStatus ()

get mirror display status

Returns
  • true if mirror display enabled

public int getMirrorModeState ()

Returns the State of Mirror Mode.

public List<DongleInfo> getunConfigDongleList ()

get unconfig. dongle list

Returns
  • List

public boolean mirrorModeStartStop (boolean start)

Stops the Mirror Mode. Must be used by Settings Activity Only.

Parameters
start if true will start Mirror Mode else stops
Returns
  • true if success

public void mirrorNow ()

public void notifyUserUnConfigDoneleResult (boolean result)

public int playOnTV (boolean enable)

playOnTV: To Enable/Disable mirror display Replace Old API: setMirrorDisplayOnOff()

Parameters
enable flag to enable/disabe mirror display
Returns
  • return zero if no problem

public boolean popDialog ()

public void requestWivuDiscovery (String nwif, String group, boolean auto)

Request WirelessDisplayService to do WIVU discovery.

Parameters
nwif network interface
group number of multicast

public void selectDongle (String Bssid)

public void setDLNAPreloadEnable (boolean enable)

public void setFingerGestureEnable (boolean enable)

public void setInterface (String nwif)

public void setL2peApInfo (String ssid)

public int setMirrorDisplayOnOff (boolean enable)

Enable/Disable mirror display

Parameters
enable flag to enable/disabe mirror display
Returns
  • return zero if no problem

public void stopWivuDiscovery ()

Request WirelessDisplayService to stop WIVU discovery.