All Downloads are FREE. Search and download functionalities are using the official Maven repository.

android.net.ITetheringStatsProvider Maven / Gradle / Ivy

Go to download

provide android hidden api definition ,helper for android super framework development

There is a newer version: 1.11
Show newest version
/*
 * This file is auto-generated.  DO NOT MODIFY.
 */
package android.net;

/**
 * Interface for NetworkManagementService to query tethering statistics and set data limits.
 * 

* TODO: this does not really need to be an interface since Tethering runs in the same process * as NetworkManagementService. Consider refactoring Tethering to use direct access to * NetworkManagementService instead of using INetworkManagementService, and then deleting this * interface. * * @hide */ public interface ITetheringStatsProvider extends android.os.IInterface { /** * Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements android.net.ITetheringStatsProvider { /** * Construct the stub at attach it to the interface. */ public Stub() { throw new IllegalStateException("STUB"); } /** * Cast an IBinder object into an android.net.ITetheringStatsProvider interface, * generating a proxy if needed. */ public static android.net.ITetheringStatsProvider asInterface(android.os.IBinder obj) { throw new IllegalStateException("STUB"); } @Override public android.os.IBinder asBinder() { throw new IllegalStateException("STUB"); } @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException { throw new IllegalStateException("STUB"); } } // Indicates that no data usage limit is set. public static final int QUOTA_UNLIMITED = -1; // Returns cumulative statistics for all tethering sessions since boot, on all upstreams. // @code {how} is one of the NetworkStats.STATS_PER_* constants. If {@code how} is // {@code STATS_PER_IFACE}, the provider should not include any traffic that is already // counted by kernel interface counters. public android.net.NetworkStats getTetherStats(int how) throws android.os.RemoteException; // Sets the interface quota for the specified upstream interface. This is defined as the number // of bytes, starting from zero and counting from now, after which data should stop being // forwarded to/from the specified upstream. A value of QUOTA_UNLIMITED means there is no limit. public void setInterfaceQuota(java.lang.String iface, long quotaBytes) throws android.os.RemoteException; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy