content: /*___Generated_by_IDEA___*/
  
  /*
   * This file is auto-generated.  DO NOT MODIFY.
   */
  package android.net;
  /**
   * Interface that creates and modifies network policy rules.
   *
   * {@hide}
   */
  public interface INetworkPolicyManager extends android.os.IInterface
  {
    /** Default implementation for INetworkPolicyManager. */
    public static class Default implements android.net.INetworkPolicyManager
    {
      /** Control UID policies. */
      @Override public void setUidPolicy(int uid, int policy) throws android.os.RemoteException
      {
      }
      @Override public void addUidPolicy(int uid, int policy) throws android.os.RemoteException
      {
      }
      @Override public void removeUidPolicy(int uid, int policy) throws android.os.RemoteException
      {
      }
      @Override public int getUidPolicy(int uid) throws android.os.RemoteException
      {
        return 0;
      }
      @Override public int[] getUidsWithPolicy(int policy) throws android.os.RemoteException
      {
        return null;
      }
      @Override public void registerListener(android.net.INetworkPolicyListener listener) throws android.os.RemoteException
      {
      }
      @Override public void unregisterListener(android.net.INetworkPolicyListener listener) throws android.os.RemoteException
      {
      }
      /** Control network policies atomically. */
      @Override public void setNetworkPolicies(android.net.NetworkPolicy[] policies) throws android.os.RemoteException
      {
      }
      @Override public android.net.NetworkPolicy[] getNetworkPolicies(java.lang.String callingPackage) throws android.os.RemoteException
      {
        return null;
      }
      /** Snooze limit on policy matching given template. */
      @Override public void snoozeLimit(android.net.NetworkTemplate template) throws android.os.RemoteException
      {
      }
      /** Control if background data is restricted system-wide. */
      @Override public void setRestrictBackground(boolean restrictBackground) throws android.os.RemoteException
      {
      }
      @Override public boolean getRestrictBackground() throws android.os.RemoteException
      {
        return false;
      }
      /** Callback used to change internal state on tethering */
      @Override public void onTetheringChanged(java.lang.String iface, boolean tethering) throws android.os.RemoteException
      {
      }
      /** Gets the restrict background status based on the caller's UID:
              1 - disabled
              2 - whitelisted
              3 - enabled
          */
      @Override public int getRestrictBackgroundByCaller() throws android.os.RemoteException
      {
        return 0;
      }
      @Override public void setDeviceIdleMode(boolean enabled) throws android.os.RemoteException
      {
      }
      @Override public void setWifiMeteredOverride(java.lang.String networkId, int meteredOverride) throws android.os.RemoteException
      {
      }
      @Override public android.net.NetworkQuotaInfo getNetworkQuotaInfo(android.net.NetworkState state) throws android.os.RemoteException
      {
        return null;
      }
      @Override public android.telephony.SubscriptionPlan[] getSubscriptionPlans(int subId, java.lang.String callingPackage) throws android.os.RemoteException
      {
        return null;
      }
      @Override public void setSubscriptionPlans(int subId, android.telephony.SubscriptionPlan[] plans, java.lang.String callingPackage) throws android.os.RemoteException
      {
      }
      @Override public java.lang.String getSubscriptionPlansOwner(int subId) throws android.os.RemoteException
      {
        return null;
      }
      @Override public void setSubscriptionOverride(int subId, int overrideMask, int overrideValue, long timeoutMillis, java.lang.String callingPackage) throws android.os.RemoteException
      {
      }
      @Override public void factoryReset(java.lang.String subscriber) throws android.os.RemoteException
      {
      }
      @Override public boolean isUidNetworkingBlocked(int uid, boolean meteredNetwork) throws android.os.RemoteException
      {
        return false;
      }
      @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.INetworkPolicyManager
    {
      private static final java.lang.String DESCRIPTOR = "android.net.INetworkPolicyManager";
      /** Construct the stub at attach it to the interface. */
      public Stub()
      {
        this.attachInterface(this, DESCRIPTOR);
      }
      /**
       * Cast an IBinder object into an android.net.INetworkPolicyManager interface,
       * generating a proxy if needed.
       */
      public static android.net.INetworkPolicyManager asInterface(android.os.IBinder obj)
      {
        if ((obj==null)) {
          return null;
        }
        android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
        if (((iin!=null)&&(iin instanceof android.net.INetworkPolicyManager))) {
          return ((android.net.INetworkPolicyManager)iin);
        }
        return new android.net.INetworkPolicyManager.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_setUidPolicy:
          {
            data.enforceInterface(descriptor);
            int _arg0;
            _arg0 = data.readInt();
            int _arg1;
            _arg1 = data.readInt();
            this.setUidPolicy(_arg0, _arg1);
            reply.writeNoException();
            return true;
          }
          case TRANSACTION_addUidPolicy:
          {
            data.enforceInterface(descriptor);
            int _arg0;
            _arg0 = data.readInt();
            int _arg1;
            _arg1 = data.readInt();
            this.addUidPolicy(_arg0, _arg1);
            reply.writeNoException();
            return true;
          }
          case TRANSACTION_removeUidPolicy:
          {
            data.enforceInterface(descriptor);
            int _arg0;
            _arg0 = data.readInt();
            int _arg1;
            _arg1 = data.readInt();
            this.removeUidPolicy(_arg0, _arg1);
            reply.writeNoException();
            return true;
          }
          case TRANSACTION_getUidPolicy:
          {
            data.enforceInterface(descriptor);
            int _arg0;
            _arg0 = data.readInt();
            int _result = this.getUidPolicy(_arg0);
            reply.writeNoException();
            reply.writeInt(_result);
            return true;
          }
          case TRANSACTION_getUidsWithPolicy:
          {
            data.enforceInterface(descriptor);
            int _arg0;
            _arg0 = data.readInt();
            int[] _result = this.getUidsWithPolicy(_arg0);
            reply.writeNoException();
            reply.writeIntArray(_result);
            return true;
          }
          case TRANSACTION_registerListener:
          {
            data.enforceInterface(descriptor);
            android.net.INetworkPolicyListener _arg0;
            _arg0 = android.net.INetworkPolicyListener.Stub.asInterface(data.readStrongBinder());
            this.registerListener(_arg0);
            reply.writeNoException();
            return true;
          }
          case TRANSACTION_unregisterListener:
          {
            data.enforceInterface(descriptor);
            android.net.INetworkPolicyListener _arg0;
            _arg0 = android.net.INetworkPolicyListener.Stub.asInterface(data.readStrongBinder());
            this.unregisterListener(_arg0);
            reply.writeNoException();
            return true;
          }
          case TRANSACTION_setNetworkPolicies:
          {
            data.enforceInterface(descriptor);
            android.net.NetworkPolicy[] _arg0;
            _arg0 = data.createTypedArray(android.net.NetworkPolicy.CREATOR);
            this.setNetworkPolicies(_arg0);
            reply.writeNoException();
            return true;
          }
          case TRANSACTION_getNetworkPolicies:
          {
            data.enforceInterface(descriptor);
            java.lang.String _arg0;
            _arg0 = data.readString();
            android.net.NetworkPolicy[] _result = this.getNetworkPolicies(_arg0);
            reply.writeNoException();
            reply.writeTypedArray(_result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);
            return true;
          }
          case TRANSACTION_snoozeLimit:
          {
            data.enforceInterface(descriptor);
            android.net.NetworkTemplate _arg0;
            if ((0!=data.readInt())) {
              _arg0 = android.net.NetworkTemplate.CREATOR.createFromParcel(data);
            }
            else {
              _arg0 = null;
            }
            this.snoozeLimit(_arg0);
            reply.writeNoException();
            return true;
          }
          case TRANSACTION_setRestrictBackground:
          {
            data.enforceInterface(descriptor);
            boolean _arg0;
            _arg0 = (0!=data.readInt());
            this.setRestrictBackground(_arg0);
            reply.writeNoException();
            return true;
          }
          case TRANSACTION_getRestrictBackground:
          {
            data.enforceInterface(descriptor);
            boolean _result = this.getRestrictBackground();
            reply.writeNoException();
            reply.writeInt(((_result)?(1):(0)));
            return true;
          }
          case TRANSACTION_onTetheringChanged:
          {
            data.enforceInterface(descriptor);
            java.lang.String _arg0;
            _arg0 = data.readString();
            boolean _arg1;
            _arg1 = (0!=data.readInt());
            this.onTetheringChanged(_arg0, _arg1);
            reply.writeNoException();
            return true;
          }
          case TRANSACTION_getRestrictBackgroundByCaller:
          {
            data.enforceInterface(descriptor);
            int _result = this.getRestrictBackgroundByCaller();
            reply.writeNoException();
            reply.writeInt(_result);
            return true;
          }
          case TRANSACTION_setDeviceIdleMode:
          {
            data.enforceInterface(descriptor);
            boolean _arg0;
            _arg0 = (0!=data.readInt());
            this.setDeviceIdleMode(_arg0);
            reply.writeNoException();
            return true;
          }
          case TRANSACTION_setWifiMeteredOverride:
          {
            data.enforceInterface(descriptor);
            java.lang.String _arg0;
            _arg0 = data.readString();
            int _arg1;
            _arg1 = data.readInt();
            this.setWifiMeteredOverride(_arg0, _arg1);
            reply.writeNoException();
            return true;
          }
          case TRANSACTION_getNetworkQuotaInfo:
          {
            data.enforceInterface(descriptor);
            android.net.NetworkState _arg0;
            if ((0!=data.readInt())) {
              _arg0 = android.net.NetworkState.CREATOR.createFromParcel(data);
            }
            else {
              _arg0 = null;
            }
            android.net.NetworkQuotaInfo _result = this.getNetworkQuotaInfo(_arg0);
            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_getSubscriptionPlans:
          {
            data.enforceInterface(descriptor);
            int _arg0;
            _arg0 = data.readInt();
            java.lang.String _arg1;
            _arg1 = data.readString();
            android.telephony.SubscriptionPlan[] _result = this.getSubscriptionPlans(_arg0, _arg1);
            reply.writeNoException();
            reply.writeTypedArray(_result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);
            return true;
          }
          case TRANSACTION_setSubscriptionPlans:
          {
            data.enforceInterface(descriptor);
            int _arg0;
            _arg0 = data.readInt();
            android.telephony.SubscriptionPlan[] _arg1;
            _arg1 = data.createTypedArray(android.telephony.SubscriptionPlan.CREATOR);
            java.lang.String _arg2;
            _arg2 = data.readString();
            this.setSubscriptionPlans(_arg0, _arg1, _arg2);
            reply.writeNoException();
            return true;
          }
          case TRANSACTION_getSubscriptionPlansOwner:
          {
            data.enforceInterface(descriptor);
            int _arg0;
            _arg0 = data.readInt();
            java.lang.String _result = this.getSubscriptionPlansOwner(_arg0);
            reply.writeNoException();
            reply.writeString(_result);
            return true;
          }
          case TRANSACTION_setSubscriptionOverride:
          {
            data.enforceInterface(descriptor);
            int _arg0;
            _arg0 = data.readInt();
            int _arg1;
            _arg1 = data.readInt();
            int _arg2;
            _arg2 = data.readInt();
            long _arg3;
            _arg3 = data.readLong();
            java.lang.String _arg4;
            _arg4 = data.readString();
            this.setSubscriptionOverride(_arg0, _arg1, _arg2, _arg3, _arg4);
            reply.writeNoException();
            return true;
          }
          case TRANSACTION_factoryReset:
          {
            data.enforceInterface(descriptor);
            java.lang.String _arg0;
            _arg0 = data.readString();
            this.factoryReset(_arg0);
            reply.writeNoException();
            return true;
          }
          case TRANSACTION_isUidNetworkingBlocked:
          {
            data.enforceInterface(descriptor);
            int _arg0;
            _arg0 = data.readInt();
            boolean _arg1;
            _arg1 = (0!=data.readInt());
            boolean _result = this.isUidNetworkingBlocked(_arg0, _arg1);
            reply.writeNoException();
            reply.writeInt(((_result)?(1):(0)));
            return true;
          }
          default:
          {
            return super.onTransact(code, data, reply, flags);
          }
        }
      }
      private static class Proxy implements android.net.INetworkPolicyManager
      {
        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;
        }
        /** Control UID policies. */
        @Override public void setUidPolicy(int uid, int policy) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          android.os.Parcel _reply = android.os.Parcel.obtain();
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            _data.writeInt(uid);
            _data.writeInt(policy);
            boolean _status = mRemote.transact(Stub.TRANSACTION_setUidPolicy, _data, _reply, 0);
            if (!_status && getDefaultImpl() != null) {
              getDefaultImpl().setUidPolicy(uid, policy);
              return;
            }
            _reply.readException();
          }
          finally {
            _reply.recycle();
            _data.recycle();
          }
        }
        @Override public void addUidPolicy(int uid, int policy) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          android.os.Parcel _reply = android.os.Parcel.obtain();
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            _data.writeInt(uid);
            _data.writeInt(policy);
            boolean _status = mRemote.transact(Stub.TRANSACTION_addUidPolicy, _data, _reply, 0);
            if (!_status && getDefaultImpl() != null) {
              getDefaultImpl().addUidPolicy(uid, policy);
              return;
            }
            _reply.readException();
          }
          finally {
            _reply.recycle();
            _data.recycle();
          }
        }
        @Override public void removeUidPolicy(int uid, int policy) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          android.os.Parcel _reply = android.os.Parcel.obtain();
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            _data.writeInt(uid);
            _data.writeInt(policy);
            boolean _status = mRemote.transact(Stub.TRANSACTION_removeUidPolicy, _data, _reply, 0);
            if (!_status && getDefaultImpl() != null) {
              getDefaultImpl().removeUidPolicy(uid, policy);
              return;
            }
            _reply.readException();
          }
          finally {
            _reply.recycle();
            _data.recycle();
          }
        }
        @Override public int getUidPolicy(int uid) 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);
            _data.writeInt(uid);
            boolean _status = mRemote.transact(Stub.TRANSACTION_getUidPolicy, _data, _reply, 0);
            if (!_status && getDefaultImpl() != null) {
              return getDefaultImpl().getUidPolicy(uid);
            }
            _reply.readException();
            _result = _reply.readInt();
          }
          finally {
            _reply.recycle();
            _data.recycle();
          }
          return _result;
        }
        @Override public int[] getUidsWithPolicy(int policy) 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);
            _data.writeInt(policy);
            boolean _status = mRemote.transact(Stub.TRANSACTION_getUidsWithPolicy, _data, _reply, 0);
            if (!_status && getDefaultImpl() != null) {
              return getDefaultImpl().getUidsWithPolicy(policy);
            }
            _reply.readException();
            _result = _reply.createIntArray();
          }
          finally {
            _reply.recycle();
            _data.recycle();
          }
          return _result;
        }
        @Override public void registerListener(android.net.INetworkPolicyListener listener) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          android.os.Parcel _reply = android.os.Parcel.obtain();
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            _data.writeStrongBinder((((listener!=null))?(listener.asBinder()):(null)));
            boolean _status = mRemote.transact(Stub.TRANSACTION_registerListener, _data, _reply, 0);
            if (!_status && getDefaultImpl() != null) {
              getDefaultImpl().registerListener(listener);
              return;
            }
            _reply.readException();
          }
          finally {
            _reply.recycle();
            _data.recycle();
          }
        }
        @Override public void unregisterListener(android.net.INetworkPolicyListener listener) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          android.os.Parcel _reply = android.os.Parcel.obtain();
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            _data.writeStrongBinder((((listener!=null))?(listener.asBinder()):(null)));
            boolean _status = mRemote.transact(Stub.TRANSACTION_unregisterListener, _data, _reply, 0);
            if (!_status && getDefaultImpl() != null) {
              getDefaultImpl().unregisterListener(listener);
              return;
            }
            _reply.readException();
          }
          finally {
            _reply.recycle();
            _data.recycle();
          }
        }
        /** Control network policies atomically. */
        @Override public void setNetworkPolicies(android.net.NetworkPolicy[] policies) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          android.os.Parcel _reply = android.os.Parcel.obtain();
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            _data.writeTypedArray(policies, 0);
            boolean _status = mRemote.transact(Stub.TRANSACTION_setNetworkPolicies, _data, _reply, 0);
            if (!_status && getDefaultImpl() != null) {
              getDefaultImpl().setNetworkPolicies(policies);
              return;
            }
            _reply.readException();
          }
          finally {
            _reply.recycle();
            _data.recycle();
          }
        }
        @Override public android.net.NetworkPolicy[] getNetworkPolicies(java.lang.String callingPackage) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          android.os.Parcel _reply = android.os.Parcel.obtain();
          android.net.NetworkPolicy[] _result;
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            _data.writeString(callingPackage);
            boolean _status = mRemote.transact(Stub.TRANSACTION_getNetworkPolicies, _data, _reply, 0);
            if (!_status && getDefaultImpl() != null) {
              return getDefaultImpl().getNetworkPolicies(callingPackage);
            }
            _reply.readException();
            _result = _reply.createTypedArray(android.net.NetworkPolicy.CREATOR);
          }
          finally {
            _reply.recycle();
            _data.recycle();
          }
          return _result;
        }
        /** Snooze limit on policy matching given template. */
        @Override public void snoozeLimit(android.net.NetworkTemplate template) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          android.os.Parcel _reply = android.os.Parcel.obtain();
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            if ((template!=null)) {
              _data.writeInt(1);
              template.writeToParcel(_data, 0);
            }
            else {
              _data.writeInt(0);
            }
            boolean _status = mRemote.transact(Stub.TRANSACTION_snoozeLimit, _data, _reply, 0);
            if (!_status && getDefaultImpl() != null) {
              getDefaultImpl().snoozeLimit(template);
              return;
            }
            _reply.readException();
          }
          finally {
            _reply.recycle();
            _data.recycle();
          }
        }
        /** Control if background data is restricted system-wide. */
        @Override public void setRestrictBackground(boolean restrictBackground) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          android.os.Parcel _reply = android.os.Parcel.obtain();
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            _data.writeInt(((restrictBackground)?(1):(0)));
            boolean _status = mRemote.transact(Stub.TRANSACTION_setRestrictBackground, _data, _reply, 0);
            if (!_status && getDefaultImpl() != null) {
              getDefaultImpl().setRestrictBackground(restrictBackground);
              return;
            }
            _reply.readException();
          }
          finally {
            _reply.recycle();
            _data.recycle();
          }
        }
        @Override public boolean getRestrictBackground() throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          android.os.Parcel _reply = android.os.Parcel.obtain();
          boolean _result;
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            boolean _status = mRemote.transact(Stub.TRANSACTION_getRestrictBackground, _data, _reply, 0);
            if (!_status && getDefaultImpl() != null) {
              return getDefaultImpl().getRestrictBackground();
            }
            _reply.readException();
            _result = (0!=_reply.readInt());
          }
          finally {
            _reply.recycle();
            _data.recycle();
          }
          return _result;
        }
        /** Callback used to change internal state on tethering */
        @Override public void onTetheringChanged(java.lang.String iface, boolean tethering) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          android.os.Parcel _reply = android.os.Parcel.obtain();
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            _data.writeString(iface);
            _data.writeInt(((tethering)?(1):(0)));
            boolean _status = mRemote.transact(Stub.TRANSACTION_onTetheringChanged, _data, _reply, 0);
            if (!_status && getDefaultImpl() != null) {
              getDefaultImpl().onTetheringChanged(iface, tethering);
              return;
            }
            _reply.readException();
          }
          finally {
            _reply.recycle();
            _data.recycle();
          }
        }
        /** Gets the restrict background status based on the caller's UID:
                1 - disabled
                2 - whitelisted
                3 - enabled
            */
        @Override public int getRestrictBackgroundByCaller() 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_getRestrictBackgroundByCaller, _data, _reply, 0);
            if (!_status && getDefaultImpl() != null) {
              return getDefaultImpl().getRestrictBackgroundByCaller();
            }
            _reply.readException();
            _result = _reply.readInt();
          }
          finally {
            _reply.recycle();
            _data.recycle();
          }
          return _result;
        }
        @Override public void setDeviceIdleMode(boolean enabled) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          android.os.Parcel _reply = android.os.Parcel.obtain();
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            _data.writeInt(((enabled)?(1):(0)));
            boolean _status = mRemote.transact(Stub.TRANSACTION_setDeviceIdleMode, _data, _reply, 0);
            if (!_status && getDefaultImpl() != null) {
              getDefaultImpl().setDeviceIdleMode(enabled);
              return;
            }
            _reply.readException();
          }
          finally {
            _reply.recycle();
            _data.recycle();
          }
        }
        @Override public void setWifiMeteredOverride(java.lang.String networkId, int meteredOverride) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          android.os.Parcel _reply = android.os.Parcel.obtain();
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            _data.writeString(networkId);
            _data.writeInt(meteredOverride);
            boolean _status = mRemote.transact(Stub.TRANSACTION_setWifiMeteredOverride, _data, _reply, 0);
            if (!_status && getDefaultImpl() != null) {
              getDefaultImpl().setWifiMeteredOverride(networkId, meteredOverride);
              return;
            }
            _reply.readException();
          }
          finally {
            _reply.recycle();
            _data.recycle();
          }
        }
        @Override public android.net.NetworkQuotaInfo getNetworkQuotaInfo(android.net.NetworkState state) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          android.os.Parcel _reply = android.os.Parcel.obtain();
          android.net.NetworkQuotaInfo _result;
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            if ((state!=null)) {
              _data.writeInt(1);
              state.writeToParcel(_data, 0);
            }
            else {
              _data.writeInt(0);
            }
            boolean _status = mRemote.transact(Stub.TRANSACTION_getNetworkQuotaInfo, _data, _reply, 0);
            if (!_status && getDefaultImpl() != null) {
              return getDefaultImpl().getNetworkQuotaInfo(state);
            }
            _reply.readException();
            if ((0!=_reply.readInt())) {
              _result = android.net.NetworkQuotaInfo.CREATOR.createFromParcel(_reply);
            }
            else {
              _result = null;
            }
          }
          finally {
            _reply.recycle();
            _data.recycle();
          }
          return _result;
        }
        @Override public android.telephony.SubscriptionPlan[] getSubscriptionPlans(int subId, java.lang.String callingPackage) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          android.os.Parcel _reply = android.os.Parcel.obtain();
          android.telephony.SubscriptionPlan[] _result;
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            _data.writeInt(subId);
            _data.writeString(callingPackage);
            boolean _status = mRemote.transact(Stub.TRANSACTION_getSubscriptionPlans, _data, _reply, 0);
            if (!_status && getDefaultImpl() != null) {
              return getDefaultImpl().getSubscriptionPlans(subId, callingPackage);
            }
            _reply.readException();
            _result = _reply.createTypedArray(android.telephony.SubscriptionPlan.CREATOR);
          }
          finally {
            _reply.recycle();
            _data.recycle();
          }
          return _result;
        }
        @Override public void setSubscriptionPlans(int subId, android.telephony.SubscriptionPlan[] plans, java.lang.String callingPackage) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          android.os.Parcel _reply = android.os.Parcel.obtain();
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            _data.writeInt(subId);
            _data.writeTypedArray(plans, 0);
            _data.writeString(callingPackage);
            boolean _status = mRemote.transact(Stub.TRANSACTION_setSubscriptionPlans, _data, _reply, 0);
            if (!_status && getDefaultImpl() != null) {
              getDefaultImpl().setSubscriptionPlans(subId, plans, callingPackage);
              return;
            }
            _reply.readException();
          }
          finally {
            _reply.recycle();
            _data.recycle();
          }
        }
        @Override public java.lang.String getSubscriptionPlansOwner(int subId) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          android.os.Parcel _reply = android.os.Parcel.obtain();
          java.lang.String _result;
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            _data.writeInt(subId);
            boolean _status = mRemote.transact(Stub.TRANSACTION_getSubscriptionPlansOwner, _data, _reply, 0);
            if (!_status && getDefaultImpl() != null) {
              return getDefaultImpl().getSubscriptionPlansOwner(subId);
            }
            _reply.readException();
            _result = _reply.readString();
          }
          finally {
            _reply.recycle();
            _data.recycle();
          }
          return _result;
        }
        @Override public void setSubscriptionOverride(int subId, int overrideMask, int overrideValue, long timeoutMillis, java.lang.String callingPackage) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          android.os.Parcel _reply = android.os.Parcel.obtain();
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            _data.writeInt(subId);
            _data.writeInt(overrideMask);
            _data.writeInt(overrideValue);
            _data.writeLong(timeoutMillis);
            _data.writeString(callingPackage);
            boolean _status = mRemote.transact(Stub.TRANSACTION_setSubscriptionOverride, _data, _reply, 0);
            if (!_status && getDefaultImpl() != null) {
              getDefaultImpl().setSubscriptionOverride(subId, overrideMask, overrideValue, timeoutMillis, callingPackage);
              return;
            }
            _reply.readException();
          }
          finally {
            _reply.recycle();
            _data.recycle();
          }
        }
        @Override public void factoryReset(java.lang.String subscriber) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          android.os.Parcel _reply = android.os.Parcel.obtain();
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            _data.writeString(subscriber);
            boolean _status = mRemote.transact(Stub.TRANSACTION_factoryReset, _data, _reply, 0);
            if (!_status && getDefaultImpl() != null) {
              getDefaultImpl().factoryReset(subscriber);
              return;
            }
            _reply.readException();
          }
          finally {
            _reply.recycle();
            _data.recycle();
          }
        }
        @Override public boolean isUidNetworkingBlocked(int uid, boolean meteredNetwork) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          android.os.Parcel _reply = android.os.Parcel.obtain();
          boolean _result;
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            _data.writeInt(uid);
            _data.writeInt(((meteredNetwork)?(1):(0)));
            boolean _status = mRemote.transact(Stub.TRANSACTION_isUidNetworkingBlocked, _data, _reply, 0);
            if (!_status && getDefaultImpl() != null) {
              return getDefaultImpl().isUidNetworkingBlocked(uid, meteredNetwork);
            }
            _reply.readException();
            _result = (0!=_reply.readInt());
          }
          finally {
            _reply.recycle();
            _data.recycle();
          }
          return _result;
        }
        public static android.net.INetworkPolicyManager sDefaultImpl;
      }
      static final int TRANSACTION_setUidPolicy = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
      static final int TRANSACTION_addUidPolicy = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);
      static final int TRANSACTION_removeUidPolicy = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2);
      static final int TRANSACTION_getUidPolicy = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3);
      static final int TRANSACTION_getUidsWithPolicy = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4);
      static final int TRANSACTION_registerListener = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5);
      static final int TRANSACTION_unregisterListener = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6);
      static final int TRANSACTION_setNetworkPolicies = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7);
      static final int TRANSACTION_getNetworkPolicies = (android.os.IBinder.FIRST_CALL_TRANSACTION + 8);
      static final int TRANSACTION_snoozeLimit = (android.os.IBinder.FIRST_CALL_TRANSACTION + 9);
      static final int TRANSACTION_setRestrictBackground = (android.os.IBinder.FIRST_CALL_TRANSACTION + 10);
      static final int TRANSACTION_getRestrictBackground = (android.os.IBinder.FIRST_CALL_TRANSACTION + 11);
      static final int TRANSACTION_onTetheringChanged = (android.os.IBinder.FIRST_CALL_TRANSACTION + 12);
      static final int TRANSACTION_getRestrictBackgroundByCaller = (android.os.IBinder.FIRST_CALL_TRANSACTION + 13);
      static final int TRANSACTION_setDeviceIdleMode = (android.os.IBinder.FIRST_CALL_TRANSACTION + 14);
      static final int TRANSACTION_setWifiMeteredOverride = (android.os.IBinder.FIRST_CALL_TRANSACTION + 15);
      static final int TRANSACTION_getNetworkQuotaInfo = (android.os.IBinder.FIRST_CALL_TRANSACTION + 16);
      static final int TRANSACTION_getSubscriptionPlans = (android.os.IBinder.FIRST_CALL_TRANSACTION + 17);
      static final int TRANSACTION_setSubscriptionPlans = (android.os.IBinder.FIRST_CALL_TRANSACTION + 18);
      static final int TRANSACTION_getSubscriptionPlansOwner = (android.os.IBinder.FIRST_CALL_TRANSACTION + 19);
      static final int TRANSACTION_setSubscriptionOverride = (android.os.IBinder.FIRST_CALL_TRANSACTION + 20);
      static final int TRANSACTION_factoryReset = (android.os.IBinder.FIRST_CALL_TRANSACTION + 21);
      static final int TRANSACTION_isUidNetworkingBlocked = (android.os.IBinder.FIRST_CALL_TRANSACTION + 22);
      public static boolean setDefaultImpl(android.net.INetworkPolicyManager 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.INetworkPolicyManager getDefaultImpl() {
        return Stub.Proxy.sDefaultImpl;
      }
    }
    /** Control UID policies. */
    @android.compat.annotation.UnsupportedAppUsage(overrideSourcePosition="/Volumes/1tdisk/Android10/android-10.0.0_r41/frameworks/base/core/java/android/net/INetworkPolicyManager.aidl:34:1:34:25")
    public void setUidPolicy(int uid, int policy) throws android.os.RemoteException;
    public void addUidPolicy(int uid, int policy) throws android.os.RemoteException;
    public void removeUidPolicy(int uid, int policy) throws android.os.RemoteException;
    @android.compat.annotation.UnsupportedAppUsage(overrideSourcePosition="/Volumes/1tdisk/Android10/android-10.0.0_r41/frameworks/base/core/java/android/net/INetworkPolicyManager.aidl:38:1:38:25")
    public int getUidPolicy(int uid) throws android.os.RemoteException;
    public int[] getUidsWithPolicy(int policy) throws android.os.RemoteException;
    public void registerListener(android.net.INetworkPolicyListener listener) throws android.os.RemoteException;
    public void unregisterListener(android.net.INetworkPolicyListener listener) throws android.os.RemoteException;
    /** Control network policies atomically. */
    @android.compat.annotation.UnsupportedAppUsage(overrideSourcePosition="/Volumes/1tdisk/Android10/android-10.0.0_r41/frameworks/base/core/java/android/net/INetworkPolicyManager.aidl:46:1:46:25")
    public void setNetworkPolicies(android.net.NetworkPolicy[] policies) throws android.os.RemoteException;
    public android.net.NetworkPolicy[] getNetworkPolicies(java.lang.String callingPackage) throws android.os.RemoteException;
    /** Snooze limit on policy matching given template. */
    @android.compat.annotation.UnsupportedAppUsage(overrideSourcePosition="/Volumes/1tdisk/Android10/android-10.0.0_r41/frameworks/base/core/java/android/net/INetworkPolicyManager.aidl:51:1:51:25")
    public void snoozeLimit(android.net.NetworkTemplate template) throws android.os.RemoteException;
    /** Control if background data is restricted system-wide. */
    @android.compat.annotation.UnsupportedAppUsage(overrideSourcePosition="/Volumes/1tdisk/Android10/android-10.0.0_r41/frameworks/base/core/java/android/net/INetworkPolicyManager.aidl:55:1:55:25")
    public void setRestrictBackground(boolean restrictBackground) throws android.os.RemoteException;
    @android.compat.annotation.UnsupportedAppUsage(overrideSourcePosition="/Volumes/1tdisk/Android10/android-10.0.0_r41/frameworks/base/core/java/android/net/INetworkPolicyManager.aidl:57:1:57:25")
    public boolean getRestrictBackground() throws android.os.RemoteException;
    /** Callback used to change internal state on tethering */
    public void onTetheringChanged(java.lang.String iface, boolean tethering) throws android.os.RemoteException;
    /** Gets the restrict background status based on the caller's UID:
            1 - disabled
            2 - whitelisted
            3 - enabled
        */
    public int getRestrictBackgroundByCaller() throws android.os.RemoteException;
    public void setDeviceIdleMode(boolean enabled) throws android.os.RemoteException;
    public void setWifiMeteredOverride(java.lang.String networkId, int meteredOverride) throws android.os.RemoteException;
    @android.compat.annotation.UnsupportedAppUsage(overrideSourcePosition="/Volumes/1tdisk/Android10/android-10.0.0_r41/frameworks/base/core/java/android/net/INetworkPolicyManager.aidl:73:1:73:25")
    public android.net.NetworkQuotaInfo getNetworkQuotaInfo(android.net.NetworkState state) throws android.os.RemoteException;
    public android.telephony.SubscriptionPlan[] getSubscriptionPlans(int subId, java.lang.String callingPackage) throws android.os.RemoteException;
    public void setSubscriptionPlans(int subId, android.telephony.SubscriptionPlan[] plans, java.lang.String callingPackage) throws android.os.RemoteException;
    public java.lang.String getSubscriptionPlansOwner(int subId) throws android.os.RemoteException;
    public void setSubscriptionOverride(int subId, int overrideMask, int overrideValue, long timeoutMillis, java.lang.String callingPackage) throws android.os.RemoteException;
    public void factoryReset(java.lang.String subscriber) throws android.os.RemoteException;
    public boolean isUidNetworkingBlocked(int uid, boolean meteredNetwork) throws android.os.RemoteException;
  }
  