IT. Expert System.

Android Reference

EthernetDataTracker


android.net

Class EthernetDataTracker

  • All Implemented Interfaces:
    NetworkStateTracker


    public class EthernetDataTracker
    extends Object
    implements NetworkStateTracker
    This class tracks the data connection associated with Ethernet This is a singleton class and an instance will be created by ConnectivityService.
    • Method Detail

      • disconnect

        public void disconnect()
      • startMonitoring

        public void startMonitoring(Context context,
                           Handler target)
        Begin monitoring connectivity
        Specified by:
        startMonitoring in interface NetworkStateTracker
        Parameters:
        context - is the current Android context
        target - is the Hander to which to return the events.
      • teardown

        public boolean teardown()
        Disable connectivity to a network TODO: do away with return value after making MobileDataStateTracker async
        Specified by:
        teardown in interface NetworkStateTracker
        Returns:
        true if a teardown occurred, false if the teardown did not occur.
      • reconnect

        public boolean reconnect()
        Re-enable connectivity to a network after a teardown().
        Specified by:
        reconnect in interface NetworkStateTracker
        Returns:
        true if we're connected or expect to be connected
      • setRadio

        public boolean setRadio(boolean turnOn)
        Turn the wireless radio off for a network.
        Specified by:
        setRadio in interface NetworkStateTracker
        Parameters:
        turnOn - true to turn the radio on, false
      • isAvailable

        public boolean isAvailable()
        Description copied from interface: NetworkStateTracker
        Returns an indication of whether this network is available for connections. A value of false means that some quasi-permanent condition prevents connectivity to this network. NOTE that this is broken on multi-connection devices. Should be fixed in J release TODO - fix on multi-pdp devices
        Specified by:
        isAvailable in interface NetworkStateTracker
        Returns:
        true - If are we currently tethered with another device.
      • startUsingNetworkFeature

        public int startUsingNetworkFeature(String feature,
                                   int callingPid,
                                   int callingUid)
        Tells the underlying networking system that the caller wants to begin using the named feature. The interpretation of feature is completely up to each networking implementation.
        Parameters:
        feature - the name of the feature to be used
        callingPid - the process ID of the process that is issuing this request
        callingUid - the user ID of the process that is issuing this request
        Returns:
        an integer value representing the outcome of the request. The interpretation of this value is specific to each networking implementation+feature combination, except that the value -1 always indicates failure. TODO: needs to go away
      • stopUsingNetworkFeature

        public int stopUsingNetworkFeature(String feature,
                                  int callingPid,
                                  int callingUid)
        Tells the underlying networking system that the caller is finished using the named feature. The interpretation of feature is completely up to each networking implementation.
        Parameters:
        feature - the name of the feature that is no longer needed.
        callingPid - the process ID of the process that is issuing this request
        callingUid - the user ID of the process that is issuing this request
        Returns:
        an integer value representing the outcome of the request. The interpretation of this value is specific to each networking implementation+feature combination, except that the value -1 always indicates failure. TODO: needs to go away
      • getLinkCapabilities

        public LinkCapabilities getLinkCapabilities()
        A capability is an Integer/String pair, the capabilities are defined in the class LinkSocket#Key.
        Specified by:
        getLinkCapabilities in interface NetworkStateTracker
        Returns:
        a copy of this connections capabilities, may be empty but never null.
      • getDefaultGatewayAddr

        public int getDefaultGatewayAddr()
        Fetch default gateway address for the network
      • defaultRouteSet

        public void defaultRouteSet(boolean enabled)
        Set a flag indicating default route is set for the network
        Specified by:
        defaultRouteSet in interface NetworkStateTracker


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

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

License.
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: 313 / 96390887. Delta: 0.03883 с