package android.net;
public interface INetworkScoreService extends android.os.IInterface
{
public static abstract class Stub extends android.os.Binder implements android.net.INetworkScoreService
{
private static final java.lang.String DESCRIPTOR = "android.net.INetworkScoreService";
public Stub()
{
this.attachInterface(this, DESCRIPTOR);
}
public static android.net.INetworkScoreService asInterface(android.os.IBinder obj)
{
if ((obj==null)) {
return null;
}
android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
if (((iin!=null)&&(iin instanceof android.net.INetworkScoreService))) {
return ((android.net.INetworkScoreService)iin);
}
return new android.net.INetworkScoreService.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_updateScores:
{
data.enforceInterface(descriptor);
android.net.ScoredNetwork[] _arg0;
_arg0 = data.createTypedArray(android.net.ScoredNetwork.CREATOR);
boolean _result = this.updateScores(_arg0);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_clearScores:
{
data.enforceInterface(descriptor);
boolean _result = this.clearScores();
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_setActiveScorer:
{
data.enforceInterface(descriptor);
java.lang.String _arg0;
_arg0 = data.readString();
boolean _result = this.setActiveScorer(_arg0);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_disableScoring:
{
data.enforceInterface(descriptor);
this.disableScoring();
reply.writeNoException();
return true;
}
case TRANSACTION_registerNetworkScoreCache:
{
data.enforceInterface(descriptor);
int _arg0;
_arg0 = data.readInt();
android.net.INetworkScoreCache _arg1;
_arg1 = android.net.INetworkScoreCache.Stub.asInterface(data.readStrongBinder());
int _arg2;
_arg2 = data.readInt();
this.registerNetworkScoreCache(_arg0, _arg1, _arg2);
reply.writeNoException();
return true;
}
case TRANSACTION_unregisterNetworkScoreCache:
{
data.enforceInterface(descriptor);
int _arg0;
_arg0 = data.readInt();
android.net.INetworkScoreCache _arg1;
_arg1 = android.net.INetworkScoreCache.Stub.asInterface(data.readStrongBinder());
this.unregisterNetworkScoreCache(_arg0, _arg1);
reply.writeNoException();
return true;
}
case TRANSACTION_requestScores:
{
data.enforceInterface(descriptor);
android.net.NetworkKey[] _arg0;
_arg0 = data.createTypedArray(android.net.NetworkKey.CREATOR);
boolean _result = this.requestScores(_arg0);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_isCallerActiveScorer:
{
data.enforceInterface(descriptor);
int _arg0;
_arg0 = data.readInt();
boolean _result = this.isCallerActiveScorer(_arg0);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_getActiveScorerPackage:
{
data.enforceInterface(descriptor);
java.lang.String _result = this.getActiveScorerPackage();
reply.writeNoException();
reply.writeString(_result);
return true;
}
case TRANSACTION_getActiveScorer:
{
data.enforceInterface(descriptor);
android.net.NetworkScorerAppData _result = this.getActiveScorer();
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_getAllValidScorers:
{
data.enforceInterface(descriptor);
java.util.List<android.net.NetworkScorerAppData> _result = this.getAllValidScorers();
reply.writeNoException();
reply.writeTypedList(_result);
return true;
}
default:
{
return super.onTransact(code, data, reply, flags);
}
}
}
private static class Proxy implements android.net.INetworkScoreService
{
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;
}
@Override public boolean updateScores(android.net.ScoredNetwork[] networks) 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.writeTypedArray(networks, 0);
mRemote.transact(Stub.TRANSACTION_updateScores, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public boolean clearScores() 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_clearScores, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public boolean setActiveScorer(java.lang.String packageName) 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.writeString(packageName);
mRemote.transact(Stub.TRANSACTION_setActiveScorer, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public void disableScoring() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_disableScoring, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void registerNetworkScoreCache(int networkType, android.net.INetworkScoreCache scoreCache, int filterType) 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(networkType);
_data.writeStrongBinder((((scoreCache!=null))?(scoreCache.asBinder()):(null)));
_data.writeInt(filterType);
mRemote.transact(Stub.TRANSACTION_registerNetworkScoreCache, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void unregisterNetworkScoreCache(int networkType, android.net.INetworkScoreCache scoreCache) 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(networkType);
_data.writeStrongBinder((((scoreCache!=null))?(scoreCache.asBinder()):(null)));
mRemote.transact(Stub.TRANSACTION_unregisterNetworkScoreCache, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public boolean requestScores(android.net.NetworkKey[] networks) 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.writeTypedArray(networks, 0);
mRemote.transact(Stub.TRANSACTION_requestScores, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public boolean isCallerActiveScorer(int callingUid) 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(callingUid);
mRemote.transact(Stub.TRANSACTION_isCallerActiveScorer, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public java.lang.String getActiveScorerPackage() 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);
mRemote.transact(Stub.TRANSACTION_getActiveScorerPackage, _data, _reply, 0);
_reply.readException();
_result = _reply.readString();
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public android.net.NetworkScorerAppData getActiveScorer() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
android.net.NetworkScorerAppData _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_getActiveScorer, _data, _reply, 0);
_reply.readException();
if ((0!=_reply.readInt())) {
_result = android.net.NetworkScorerAppData.CREATOR.createFromParcel(_reply);
}
else {
_result = null;
}
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public java.util.List<android.net.NetworkScorerAppData> getAllValidScorers() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
java.util.List<android.net.NetworkScorerAppData> _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_getAllValidScorers, _data, _reply, 0);
_reply.readException();
_result = _reply.createTypedArrayList(android.net.NetworkScorerAppData.CREATOR);
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
}
static final int TRANSACTION_updateScores = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
static final int TRANSACTION_clearScores = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);
static final int TRANSACTION_setActiveScorer = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2);
static final int TRANSACTION_disableScoring = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3);
static final int TRANSACTION_registerNetworkScoreCache = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4);
static final int TRANSACTION_unregisterNetworkScoreCache = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5);
static final int TRANSACTION_requestScores = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6);
static final int TRANSACTION_isCallerActiveScorer = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7);
static final int TRANSACTION_getActiveScorerPackage = (android.os.IBinder.FIRST_CALL_TRANSACTION + 8);
static final int TRANSACTION_getActiveScorer = (android.os.IBinder.FIRST_CALL_TRANSACTION + 9);
static final int TRANSACTION_getAllValidScorers = (android.os.IBinder.FIRST_CALL_TRANSACTION + 10);
}
public boolean updateScores(android.net.ScoredNetwork[] networks) throws android.os.RemoteException;
public boolean clearScores() throws android.os.RemoteException;
public boolean setActiveScorer(java.lang.String packageName) throws android.os.RemoteException;
public void disableScoring() throws android.os.RemoteException;
public void registerNetworkScoreCache(int networkType, android.net.INetworkScoreCache scoreCache, int filterType) throws android.os.RemoteException;
public void unregisterNetworkScoreCache(int networkType, android.net.INetworkScoreCache scoreCache) throws android.os.RemoteException;
public boolean requestScores(android.net.NetworkKey[] networks) throws android.os.RemoteException;
public boolean isCallerActiveScorer(int callingUid) throws android.os.RemoteException;
public java.lang.String getActiveScorerPackage() throws android.os.RemoteException;
public android.net.NetworkScorerAppData getActiveScorer() throws android.os.RemoteException;
public java.util.List<android.net.NetworkScorerAppData> getAllValidScorers() throws android.os.RemoteException;
}