/*
 * This file is auto-generated.  DO NOT MODIFY.
 * Original file: /var/tmp/code-browser-generator/android_android_9.0.0_r358833596918674107602/combined/android/net/INetworkPolicyManager.aidl
 */
package android.net;
Interface that creates and modifies network policy rules. {@hide}
/** * Interface that creates and modifies network policy rules. * * {@hide} */
public interface INetworkPolicyManager extends android.os.IInterface {
Local-side IPC implementation stub class.
/** 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.
/** 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.
/** * 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.
/** 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); mRemote.transact(Stub.TRANSACTION_setUidPolicy, _data, _reply, 0); _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); mRemote.transact(Stub.TRANSACTION_addUidPolicy, _data, _reply, 0); _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); mRemote.transact(Stub.TRANSACTION_removeUidPolicy, _data, _reply, 0); _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); mRemote.transact(Stub.TRANSACTION_getUidPolicy, _data, _reply, 0); _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); mRemote.transact(Stub.TRANSACTION_getUidsWithPolicy, _data, _reply, 0); _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))); mRemote.transact(Stub.TRANSACTION_registerListener, _data, _reply, 0); _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))); mRemote.transact(Stub.TRANSACTION_unregisterListener, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } }
Control network policies atomically.
/** 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); mRemote.transact(Stub.TRANSACTION_setNetworkPolicies, _data, _reply, 0); _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); mRemote.transact(Stub.TRANSACTION_getNetworkPolicies, _data, _reply, 0); _reply.readException(); _result = _reply.createTypedArray(android.net.NetworkPolicy.CREATOR); } finally { _reply.recycle(); _data.recycle(); } return _result; }
Snooze limit on policy matching given template.
/** 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); } mRemote.transact(Stub.TRANSACTION_snoozeLimit, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } }
Control if background data is restricted system-wide.
/** 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))); mRemote.transact(Stub.TRANSACTION_setRestrictBackground, _data, _reply, 0); _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); mRemote.transact(Stub.TRANSACTION_getRestrictBackground, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; }
Callback used to change internal state on tethering
/** 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))); mRemote.transact(Stub.TRANSACTION_onTetheringChanged, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } @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); mRemote.transact(Stub.TRANSACTION_getRestrictBackgroundByCaller, _data, _reply, 0); _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))); mRemote.transact(Stub.TRANSACTION_setDeviceIdleMode, _data, _reply, 0); _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); mRemote.transact(Stub.TRANSACTION_setWifiMeteredOverride, _data, _reply, 0); _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); } mRemote.transact(Stub.TRANSACTION_getNetworkQuotaInfo, _data, _reply, 0); _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); mRemote.transact(Stub.TRANSACTION_getSubscriptionPlans, _data, _reply, 0); _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); mRemote.transact(Stub.TRANSACTION_setSubscriptionPlans, _data, _reply, 0); _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); mRemote.transact(Stub.TRANSACTION_getSubscriptionPlansOwner, _data, _reply, 0); _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); mRemote.transact(Stub.TRANSACTION_setSubscriptionOverride, _data, _reply, 0); _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); mRemote.transact(Stub.TRANSACTION_factoryReset, _data, _reply, 0); _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))); mRemote.transact(Stub.TRANSACTION_isUidNetworkingBlocked, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } } 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); }
Control UID policies.
/** Control UID policies. */
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; 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.
/** Control network policies atomically. */
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.
/** Snooze limit on policy matching given template. */
public void snoozeLimit(android.net.NetworkTemplate template) throws android.os.RemoteException;
Control if background data is restricted system-wide.
/** Control if background data is restricted system-wide. */
public void setRestrictBackground(boolean restrictBackground) throws android.os.RemoteException; public boolean getRestrictBackground() throws android.os.RemoteException;
Callback used to change internal state on tethering
/** Callback used to change internal state on tethering */
public void onTetheringChanged(java.lang.String iface, boolean tethering) throws android.os.RemoteException; 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; 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; }