content: /*___Generated_by_IDEA___*/
  
  /*
   * This file is auto-generated.  DO NOT MODIFY.
   */
  package android.net;
  /** {@hide} */
  public interface INetworkStatsSession extends android.os.IInterface
  {
    /** Default implementation for INetworkStatsSession. */
    public static class Default implements android.net.INetworkStatsSession
    {
      /** Return device aggregated network layer usage summary for traffic that matches template. */
      @Override public android.net.NetworkStats getDeviceSummaryForNetwork(android.net.NetworkTemplate template, long start, long end) throws android.os.RemoteException
      {
        return null;
      }
      /** Return network layer usage summary for traffic that matches template. */
      @Override public android.net.NetworkStats getSummaryForNetwork(android.net.NetworkTemplate template, long start, long end) throws android.os.RemoteException
      {
        return null;
      }
      /** Return historical network layer stats for traffic that matches template. */
      @Override public android.net.NetworkStatsHistory getHistoryForNetwork(android.net.NetworkTemplate template, int fields) throws android.os.RemoteException
      {
        return null;
      }
      /** Return network layer usage summary per UID for traffic that matches template. */
      @Override public android.net.NetworkStats getSummaryForAllUid(android.net.NetworkTemplate template, long start, long end, boolean includeTags) throws android.os.RemoteException
      {
        return null;
      }
      /** Return historical network layer stats for specific UID traffic that matches template. */
      @Override public android.net.NetworkStatsHistory getHistoryForUid(android.net.NetworkTemplate template, int uid, int set, int tag, int fields) throws android.os.RemoteException
      {
        return null;
      }
      /** Return historical network layer stats for specific UID traffic that matches template. */
      @Override public android.net.NetworkStatsHistory getHistoryIntervalForUid(android.net.NetworkTemplate template, int uid, int set, int tag, int fields, long start, long end) throws android.os.RemoteException
      {
        return null;
      }
      /** Return array of uids that have stats and are accessible to the calling user */
      @Override public int[] getRelevantUids() throws android.os.RemoteException
      {
        return null;
      }
      @Override public void close() throws android.os.RemoteException
      {
      }
      @Override
      public android.os.IBinder asBinder() {
        return null;
      }
    }
    /** Local-side IPC implementation stub class. */
    public static abstract class Stub extends android.os.Binder implements android.net.INetworkStatsSession
    {
      private static final java.lang.String DESCRIPTOR = "android.net.INetworkStatsSession";
      /** Construct the stub at attach it to the interface. */
      public Stub()
      {
        this.attachInterface(this, DESCRIPTOR);
      }
      /**
       * Cast an IBinder object into an android.net.INetworkStatsSession interface,
       * generating a proxy if needed.
       */
      public static android.net.INetworkStatsSession asInterface(android.os.IBinder obj)
      {
        if ((obj==null)) {
          return null;
        }
        android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
        if (((iin!=null)&&(iin instanceof android.net.INetworkStatsSession))) {
          return ((android.net.INetworkStatsSession)iin);
        }
        return new android.net.INetworkStatsSession.Stub.Proxy(obj);
      }
      @Override public android.os.IBinder asBinder()
      {
        return this;
      }
      @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException
      {
        java.lang.String descriptor = DESCRIPTOR;
        switch (code)
        {
          case INTERFACE_TRANSACTION:
          {
            reply.writeString(descriptor);
            return true;
          }
          case TRANSACTION_getDeviceSummaryForNetwork:
          {
            data.enforceInterface(descriptor);
            android.net.NetworkTemplate _arg0;
            if ((0!=data.readInt())) {
              _arg0 = android.net.NetworkTemplate.CREATOR.createFromParcel(data);
            }
            else {
              _arg0 = null;
            }
            long _arg1;
            _arg1 = data.readLong();
            long _arg2;
            _arg2 = data.readLong();
            android.net.NetworkStats _result = this.getDeviceSummaryForNetwork(_arg0, _arg1, _arg2);
            reply.writeNoException();
            if ((_result!=null)) {
              reply.writeInt(1);
              _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);
            }
            else {
              reply.writeInt(0);
            }
            return true;
          }
          case TRANSACTION_getSummaryForNetwork:
          {
            data.enforceInterface(descriptor);
            android.net.NetworkTemplate _arg0;
            if ((0!=data.readInt())) {
              _arg0 = android.net.NetworkTemplate.CREATOR.createFromParcel(data);
            }
            else {
              _arg0 = null;
            }
            long _arg1;
            _arg1 = data.readLong();
            long _arg2;
            _arg2 = data.readLong();
            android.net.NetworkStats _result = this.getSummaryForNetwork(_arg0, _arg1, _arg2);
            reply.writeNoException();
            if ((_result!=null)) {
              reply.writeInt(1);
              _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);
            }
            else {
              reply.writeInt(0);
            }
            return true;
          }
          case TRANSACTION_getHistoryForNetwork:
          {
            data.enforceInterface(descriptor);
            android.net.NetworkTemplate _arg0;
            if ((0!=data.readInt())) {
              _arg0 = android.net.NetworkTemplate.CREATOR.createFromParcel(data);
            }
            else {
              _arg0 = null;
            }
            int _arg1;
            _arg1 = data.readInt();
            android.net.NetworkStatsHistory _result = this.getHistoryForNetwork(_arg0, _arg1);
            reply.writeNoException();
            if ((_result!=null)) {
              reply.writeInt(1);
              _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);
            }
            else {
              reply.writeInt(0);
            }
            return true;
          }
          case TRANSACTION_getSummaryForAllUid:
          {
            data.enforceInterface(descriptor);
            android.net.NetworkTemplate _arg0;
            if ((0!=data.readInt())) {
              _arg0 = android.net.NetworkTemplate.CREATOR.createFromParcel(data);
            }
            else {
              _arg0 = null;
            }
            long _arg1;
            _arg1 = data.readLong();
            long _arg2;
            _arg2 = data.readLong();
            boolean _arg3;
            _arg3 = (0!=data.readInt());
            android.net.NetworkStats _result = this.getSummaryForAllUid(_arg0, _arg1, _arg2, _arg3);
            reply.writeNoException();
            if ((_result!=null)) {
              reply.writeInt(1);
              _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);
            }
            else {
              reply.writeInt(0);
            }
            return true;
          }
          case TRANSACTION_getHistoryForUid:
          {
            data.enforceInterface(descriptor);
            android.net.NetworkTemplate _arg0;
            if ((0!=data.readInt())) {
              _arg0 = android.net.NetworkTemplate.CREATOR.createFromParcel(data);
            }
            else {
              _arg0 = null;
            }
            int _arg1;
            _arg1 = data.readInt();
            int _arg2;
            _arg2 = data.readInt();
            int _arg3;
            _arg3 = data.readInt();
            int _arg4;
            _arg4 = data.readInt();
            android.net.NetworkStatsHistory _result = this.getHistoryForUid(_arg0, _arg1, _arg2, _arg3, _arg4);
            reply.writeNoException();
            if ((_result!=null)) {
              reply.writeInt(1);
              _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);
            }
            else {
              reply.writeInt(0);
            }
            return true;
          }
          case TRANSACTION_getHistoryIntervalForUid:
          {
            data.enforceInterface(descriptor);
            android.net.NetworkTemplate _arg0;
            if ((0!=data.readInt())) {
              _arg0 = android.net.NetworkTemplate.CREATOR.createFromParcel(data);
            }
            else {
              _arg0 = null;
            }
            int _arg1;
            _arg1 = data.readInt();
            int _arg2;
            _arg2 = data.readInt();
            int _arg3;
            _arg3 = data.readInt();
            int _arg4;
            _arg4 = data.readInt();
            long _arg5;
            _arg5 = data.readLong();
            long _arg6;
            _arg6 = data.readLong();
            android.net.NetworkStatsHistory _result = this.getHistoryIntervalForUid(_arg0, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
            reply.writeNoException();
            if ((_result!=null)) {
              reply.writeInt(1);
              _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);
            }
            else {
              reply.writeInt(0);
            }
            return true;
          }
          case TRANSACTION_getRelevantUids:
          {
            data.enforceInterface(descriptor);
            int[] _result = this.getRelevantUids();
            reply.writeNoException();
            reply.writeIntArray(_result);
            return true;
          }
          case TRANSACTION_close:
          {
            data.enforceInterface(descriptor);
            this.close();
            reply.writeNoException();
            return true;
          }
          default:
          {
            return super.onTransact(code, data, reply, flags);
          }
        }
      }
      private static class Proxy implements android.net.INetworkStatsSession
      {
        private android.os.IBinder mRemote;
        Proxy(android.os.IBinder remote)
        {
          mRemote = remote;
        }
        @Override public android.os.IBinder asBinder()
        {
          return mRemote;
        }
        public java.lang.String getInterfaceDescriptor()
        {
          return DESCRIPTOR;
        }
        /** Return device aggregated network layer usage summary for traffic that matches template. */
        @Override public android.net.NetworkStats getDeviceSummaryForNetwork(android.net.NetworkTemplate template, long start, long end) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          android.os.Parcel _reply = android.os.Parcel.obtain();
          android.net.NetworkStats _result;
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            if ((template!=null)) {
              _data.writeInt(1);
              template.writeToParcel(_data, 0);
            }
            else {
              _data.writeInt(0);
            }
            _data.writeLong(start);
            _data.writeLong(end);
            boolean _status = mRemote.transact(Stub.TRANSACTION_getDeviceSummaryForNetwork, _data, _reply, 0);
            if (!_status && getDefaultImpl() != null) {
              return getDefaultImpl().getDeviceSummaryForNetwork(template, start, end);
            }
            _reply.readException();
            if ((0!=_reply.readInt())) {
              _result = android.net.NetworkStats.CREATOR.createFromParcel(_reply);
            }
            else {
              _result = null;
            }
          }
          finally {
            _reply.recycle();
            _data.recycle();
          }
          return _result;
        }
        /** Return network layer usage summary for traffic that matches template. */
        @Override public android.net.NetworkStats getSummaryForNetwork(android.net.NetworkTemplate template, long start, long end) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          android.os.Parcel _reply = android.os.Parcel.obtain();
          android.net.NetworkStats _result;
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            if ((template!=null)) {
              _data.writeInt(1);
              template.writeToParcel(_data, 0);
            }
            else {
              _data.writeInt(0);
            }
            _data.writeLong(start);
            _data.writeLong(end);
            boolean _status = mRemote.transact(Stub.TRANSACTION_getSummaryForNetwork, _data, _reply, 0);
            if (!_status && getDefaultImpl() != null) {
              return getDefaultImpl().getSummaryForNetwork(template, start, end);
            }
            _reply.readException();
            if ((0!=_reply.readInt())) {
              _result = android.net.NetworkStats.CREATOR.createFromParcel(_reply);
            }
            else {
              _result = null;
            }
          }
          finally {
            _reply.recycle();
            _data.recycle();
          }
          return _result;
        }
        /** Return historical network layer stats for traffic that matches template. */
        @Override public android.net.NetworkStatsHistory getHistoryForNetwork(android.net.NetworkTemplate template, int fields) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          android.os.Parcel _reply = android.os.Parcel.obtain();
          android.net.NetworkStatsHistory _result;
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            if ((template!=null)) {
              _data.writeInt(1);
              template.writeToParcel(_data, 0);
            }
            else {
              _data.writeInt(0);
            }
            _data.writeInt(fields);
            boolean _status = mRemote.transact(Stub.TRANSACTION_getHistoryForNetwork, _data, _reply, 0);
            if (!_status && getDefaultImpl() != null) {
              return getDefaultImpl().getHistoryForNetwork(template, fields);
            }
            _reply.readException();
            if ((0!=_reply.readInt())) {
              _result = android.net.NetworkStatsHistory.CREATOR.createFromParcel(_reply);
            }
            else {
              _result = null;
            }
          }
          finally {
            _reply.recycle();
            _data.recycle();
          }
          return _result;
        }
        /** Return network layer usage summary per UID for traffic that matches template. */
        @Override public android.net.NetworkStats getSummaryForAllUid(android.net.NetworkTemplate template, long start, long end, boolean includeTags) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          android.os.Parcel _reply = android.os.Parcel.obtain();
          android.net.NetworkStats _result;
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            if ((template!=null)) {
              _data.writeInt(1);
              template.writeToParcel(_data, 0);
            }
            else {
              _data.writeInt(0);
            }
            _data.writeLong(start);
            _data.writeLong(end);
            _data.writeInt(((includeTags)?(1):(0)));
            boolean _status = mRemote.transact(Stub.TRANSACTION_getSummaryForAllUid, _data, _reply, 0);
            if (!_status && getDefaultImpl() != null) {
              return getDefaultImpl().getSummaryForAllUid(template, start, end, includeTags);
            }
            _reply.readException();
            if ((0!=_reply.readInt())) {
              _result = android.net.NetworkStats.CREATOR.createFromParcel(_reply);
            }
            else {
              _result = null;
            }
          }
          finally {
            _reply.recycle();
            _data.recycle();
          }
          return _result;
        }
        /** Return historical network layer stats for specific UID traffic that matches template. */
        @Override public android.net.NetworkStatsHistory getHistoryForUid(android.net.NetworkTemplate template, int uid, int set, int tag, int fields) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          android.os.Parcel _reply = android.os.Parcel.obtain();
          android.net.NetworkStatsHistory _result;
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            if ((template!=null)) {
              _data.writeInt(1);
              template.writeToParcel(_data, 0);
            }
            else {
              _data.writeInt(0);
            }
            _data.writeInt(uid);
            _data.writeInt(set);
            _data.writeInt(tag);
            _data.writeInt(fields);
            boolean _status = mRemote.transact(Stub.TRANSACTION_getHistoryForUid, _data, _reply, 0);
            if (!_status && getDefaultImpl() != null) {
              return getDefaultImpl().getHistoryForUid(template, uid, set, tag, fields);
            }
            _reply.readException();
            if ((0!=_reply.readInt())) {
              _result = android.net.NetworkStatsHistory.CREATOR.createFromParcel(_reply);
            }
            else {
              _result = null;
            }
          }
          finally {
            _reply.recycle();
            _data.recycle();
          }
          return _result;
        }
        /** Return historical network layer stats for specific UID traffic that matches template. */
        @Override public android.net.NetworkStatsHistory getHistoryIntervalForUid(android.net.NetworkTemplate template, int uid, int set, int tag, int fields, long start, long end) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          android.os.Parcel _reply = android.os.Parcel.obtain();
          android.net.NetworkStatsHistory _result;
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            if ((template!=null)) {
              _data.writeInt(1);
              template.writeToParcel(_data, 0);
            }
            else {
              _data.writeInt(0);
            }
            _data.writeInt(uid);
            _data.writeInt(set);
            _data.writeInt(tag);
            _data.writeInt(fields);
            _data.writeLong(start);
            _data.writeLong(end);
            boolean _status = mRemote.transact(Stub.TRANSACTION_getHistoryIntervalForUid, _data, _reply, 0);
            if (!_status && getDefaultImpl() != null) {
              return getDefaultImpl().getHistoryIntervalForUid(template, uid, set, tag, fields, start, end);
            }
            _reply.readException();
            if ((0!=_reply.readInt())) {
              _result = android.net.NetworkStatsHistory.CREATOR.createFromParcel(_reply);
            }
            else {
              _result = null;
            }
          }
          finally {
            _reply.recycle();
            _data.recycle();
          }
          return _result;
        }
        /** Return array of uids that have stats and are accessible to the calling user */
        @Override public int[] getRelevantUids() throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          android.os.Parcel _reply = android.os.Parcel.obtain();
          int[] _result;
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            boolean _status = mRemote.transact(Stub.TRANSACTION_getRelevantUids, _data, _reply, 0);
            if (!_status && getDefaultImpl() != null) {
              return getDefaultImpl().getRelevantUids();
            }
            _reply.readException();
            _result = _reply.createIntArray();
          }
          finally {
            _reply.recycle();
            _data.recycle();
          }
          return _result;
        }
        @Override public void close() throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          android.os.Parcel _reply = android.os.Parcel.obtain();
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            boolean _status = mRemote.transact(Stub.TRANSACTION_close, _data, _reply, 0);
            if (!_status && getDefaultImpl() != null) {
              getDefaultImpl().close();
              return;
            }
            _reply.readException();
          }
          finally {
            _reply.recycle();
            _data.recycle();
          }
        }
        public static android.net.INetworkStatsSession sDefaultImpl;
      }
      static final int TRANSACTION_getDeviceSummaryForNetwork = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
      static final int TRANSACTION_getSummaryForNetwork = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);
      static final int TRANSACTION_getHistoryForNetwork = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2);
      static final int TRANSACTION_getSummaryForAllUid = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3);
      static final int TRANSACTION_getHistoryForUid = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4);
      static final int TRANSACTION_getHistoryIntervalForUid = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5);
      static final int TRANSACTION_getRelevantUids = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6);
      static final int TRANSACTION_close = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7);
      public static boolean setDefaultImpl(android.net.INetworkStatsSession impl) {
        // Only one user of this interface can use this function
        // at a time. This is a heuristic to detect if two different
        // users in the same process use this function.
        if (Stub.Proxy.sDefaultImpl != null) {
          throw new IllegalStateException("setDefaultImpl() called twice");
        }
        if (impl != null) {
          Stub.Proxy.sDefaultImpl = impl;
          return true;
        }
        return false;
      }
      public static android.net.INetworkStatsSession getDefaultImpl() {
        return Stub.Proxy.sDefaultImpl;
      }
    }
    /** Return device aggregated network layer usage summary for traffic that matches template. */
    public android.net.NetworkStats getDeviceSummaryForNetwork(android.net.NetworkTemplate template, long start, long end) throws android.os.RemoteException;
    /** Return network layer usage summary for traffic that matches template. */
    @android.compat.annotation.UnsupportedAppUsage(overrideSourcePosition="/Volumes/1tdisk/Android10/android-10.0.0_r41/frameworks/base/core/java/android/net/INetworkStatsSession.aidl:30:1:30:25")
    public android.net.NetworkStats getSummaryForNetwork(android.net.NetworkTemplate template, long start, long end) throws android.os.RemoteException;
    /** Return historical network layer stats for traffic that matches template. */
    @android.compat.annotation.UnsupportedAppUsage(overrideSourcePosition="/Volumes/1tdisk/Android10/android-10.0.0_r41/frameworks/base/core/java/android/net/INetworkStatsSession.aidl:33:1:33:25")
    public android.net.NetworkStatsHistory getHistoryForNetwork(android.net.NetworkTemplate template, int fields) throws android.os.RemoteException;
    /** Return network layer usage summary per UID for traffic that matches template. */
    @android.compat.annotation.UnsupportedAppUsage(overrideSourcePosition="/Volumes/1tdisk/Android10/android-10.0.0_r41/frameworks/base/core/java/android/net/INetworkStatsSession.aidl:37:1:37:25")
    public android.net.NetworkStats getSummaryForAllUid(android.net.NetworkTemplate template, long start, long end, boolean includeTags) throws android.os.RemoteException;
    /** Return historical network layer stats for specific UID traffic that matches template. */
    @android.compat.annotation.UnsupportedAppUsage(overrideSourcePosition="/Volumes/1tdisk/Android10/android-10.0.0_r41/frameworks/base/core/java/android/net/INetworkStatsSession.aidl:40:1:40:25")
    public android.net.NetworkStatsHistory getHistoryForUid(android.net.NetworkTemplate template, int uid, int set, int tag, int fields) throws android.os.RemoteException;
    /** Return historical network layer stats for specific UID traffic that matches template. */
    public android.net.NetworkStatsHistory getHistoryIntervalForUid(android.net.NetworkTemplate template, int uid, int set, int tag, int fields, long start, long end) throws android.os.RemoteException;
    /** Return array of uids that have stats and are accessible to the calling user */
    public int[] getRelevantUids() throws android.os.RemoteException;
    @android.compat.annotation.UnsupportedAppUsage(overrideSourcePosition="/Volumes/1tdisk/Android10/android-10.0.0_r41/frameworks/base/core/java/android/net/INetworkStatsSession.aidl:48:1:48:25")
    public void close() throws android.os.RemoteException;
  }
  