IT. Expert System.

Android Reference


Class WifiP2pDevice

    • Field Detail

      • deviceName

        public String deviceName
        The device name is a user friendly string to identify a Wi-Fi p2p device
      • deviceAddress

        public String deviceAddress
        The device MAC address uniquely identifies a Wi-Fi p2p device
      • primaryDeviceType

        public String primaryDeviceType
        Primary device type identifies the type of device. For example, an application could filter the devices discovered to only display printers if the purpose is to enable a printing action from the user. See the Wi-Fi Direct technical specification for the full list of standard device types supported.
      • secondaryDeviceType

        public String secondaryDeviceType
        Secondary device type is an optional attribute that can be provided by a device in addition to the primary device type.
      • wpsConfigMethodsSupported

        public int wpsConfigMethodsSupported
        WPS config methods supported
      • deviceCapability

        public int deviceCapability
        Device capability
      • groupCapability

        public int groupCapability
        Group capability
      • status

        public int status
        Device connection status
    • Constructor Detail

      • WifiP2pDevice

        public WifiP2pDevice()
      • WifiP2pDevice

        public WifiP2pDevice(String string)
                      throws IllegalArgumentException
        string - formats supported include P2P-DEVICE-FOUND fa:7b:7a:42:02:13 p2p_dev_addr=fa:7b:7a:42:02:13 pri_dev_type=1-0050F204-1 name='p2p-TEST1' config_methods=0x188 dev_capab=0x27 group_capab=0x0 wfd_dev_info=000006015d022a0032 P2P-DEVICE-LOST p2p_dev_addr=fa:7b:7a:42:02:13 AP-STA-CONNECTED 42:fc:89:a8:96:09 [p2p_dev_addr=02:90:4c:a0:92:54] AP-STA-DISCONNECTED 42:fc:89:a8:96:09 [p2p_dev_addr=02:90:4c:a0:92:54] fa:7b:7a:42:02:13 Note: The events formats can be looked up in the wpa_supplicant code
      • WifiP2pDevice

        public WifiP2pDevice(WifiP2pDevice source)
        copy constructor
    • Method Detail

      • wpsPbcSupported

        public boolean wpsPbcSupported()
        Returns true if WPS push button configuration is supported
      • wpsKeypadSupported

        public boolean wpsKeypadSupported()
        Returns true if WPS keypad configuration is supported
      • wpsDisplaySupported

        public boolean wpsDisplaySupported()
        Returns true if WPS display configuration is supported
      • isServiceDiscoveryCapable

        public boolean isServiceDiscoveryCapable()
        Returns true if the device is capable of service discovery
      • isInvitationCapable

        public boolean isInvitationCapable()
        Returns true if the device is capable of invitation
      • isDeviceLimit

        public boolean isDeviceLimit()
        Returns true if the device reaches the limit.
      • isGroupOwner

        public boolean isGroupOwner()
        Returns true if the device is a group owner
      • isGroupLimit

        public boolean isGroupLimit()
        Returns true if the group reaches the limit.
      • equals

        public boolean equals(Object obj)
        Description copied from class: Object
        Compares this instance with the specified object and indicates if they are equal. In order to be equal, o must represent the same object as this instance using a class-specific comparison. The general contract is that this comparison should be reflexive, symmetric, and transitive. Also, no object reference other than null is equal to null.

        The default implementation returns true only if this == o. See Writing a correct equals method if you intend implementing your own equals method.

        The general contract for the equals and Object.hashCode() methods is that if equals returns true for any two objects, then hashCode() must return the same value for these objects. This means that subclasses of Object usually override either both methods or neither of them.

        equals in class Object
        obj - the object to compare this instance with.
        true if the specified object is equal to this Object; false otherwise.
        See Also:
      • toString

        public String toString()
        Description copied from class: Object
        Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
           getClass().getName() + '@' + Integer.toHexString(hashCode())

        See Writing a useful toString method if you intend implementing your own toString method.

        toString in class Object
        a printable representation of this object.
      • describeContents

        public int describeContents()
        Implement the Parcelable interface
        Specified by:
        describeContents in interface Parcelable
        a bitmask indicating the set of special object types marshalled by the Parcelable.


Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)





Java Script








Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 101 / 158746638. Delta: 0.03549 с