IT. Expert System.

Android Reference

ThrottleManager


android.net

Class ThrottleManager



  • public class ThrottleManager
    extends Object
    Class that handles throttling. It provides read/write numbers per interface and methods to apply throttled rates.
    • Field Detail

      • THROTTLE_POLL_ACTION

        public static final String THROTTLE_POLL_ACTION
        Broadcast each polling period to indicate new data counts. Includes four extras: EXTRA_CYCLE_READ - a long of the read bytecount for the current cycle EXTRA_CYCLE_WRITE -a long of the write bytecount for the current cycle EXTRA_CYLCE_START -a long of MS for the cycle start time EXTRA_CYCLE_END -a long of MS for the cycle stop time
        See Also:
        Constant Field Values
      • EXTRA_CYCLE_READ

        public static final String EXTRA_CYCLE_READ
        The lookup key for a long for the read bytecount for this period. Retrieve with android.content.Intent#getLongExtra(String).
        See Also:
        Constant Field Values
      • EXTRA_CYCLE_WRITE

        public static final String EXTRA_CYCLE_WRITE
        contains a long of the number of bytes written in the cycle
        See Also:
        Constant Field Values
      • EXTRA_CYCLE_START

        public static final String EXTRA_CYCLE_START
        contains a long of the number of bytes read in the cycle
        See Also:
        Constant Field Values
      • EXTRA_CYCLE_END

        public static final String EXTRA_CYCLE_END
        contains a long of the ms since 1970 used to init a calendar, etc for the end of the cycle
        See Also:
        Constant Field Values
      • EXTRA_THROTTLE_LEVEL

        public static final String EXTRA_THROTTLE_LEVEL
        int of the current bandwidth in TODO
        See Also:
        Constant Field Values
      • POLICY_CHANGED_ACTION

        public static final String POLICY_CHANGED_ACTION
        Broadcast on boot and whenever the settings change.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ThrottleManager

        public ThrottleManager(IThrottleManager service)
    • Method Detail

      • getResetTime

        public long getResetTime(String iface)
        returns a long of the ms from the epoch to the time the current cycle ends for the named interface
      • getPeriodStartTime

        public long getPeriodStartTime(String iface)
        returns a long of the ms from the epoch to the time the current cycle started for the named interface
      • getByteCount

        public long getByteCount(String iface,
                        int direction,
                        int period,
                        int ago)
        returns a long of the byte count either read or written on the named interface for the period described. Direction is either DIRECTION_RX or DIRECTION_TX and period may only be PERIOD_CYCLE for the current cycle (other periods may be supported in the future). Ago indicates the number of periods in the past to lookup - 0 means the current period, 1 is the last one, 2 was two periods ago..
      • getCliffThreshold

        public long getCliffThreshold(String iface,
                             int cliff)
        returns the number of bytes read+written after which a particular cliff takes effect on the named iface. Currently only cliff #1 is supported (1 step)
      • getCliffLevel

        public int getCliffLevel(String iface,
                        int cliff)
        returns the thottling bandwidth (bps) for a given cliff # on the named iface. only cliff #1 is currently supported.
      • getHelpUri

        public String getHelpUri()
        returns the help URI for throttling


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: 905 / 158735883. Delta: 0.03767 с