package android.os;
public interface ISchedulingPolicyService extends android.os.IInterface
{
public static abstract class Stub extends android.os.Binder implements android.os.ISchedulingPolicyService
{
private static final java.lang.String DESCRIPTOR = "android.os.ISchedulingPolicyService";
public Stub()
{
this.attachInterface(this, DESCRIPTOR);
}
public static android.os.ISchedulingPolicyService asInterface(android.os.IBinder obj)
{
if ((obj==null)) {
return null;
}
android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
if (((iin!=null)&&(iin instanceof android.os.ISchedulingPolicyService))) {
return ((android.os.ISchedulingPolicyService)iin);
}
return new android.os.ISchedulingPolicyService.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_requestPriority:
{
data.enforceInterface(descriptor);
int _arg0;
_arg0 = data.readInt();
int _arg1;
_arg1 = data.readInt();
int _arg2;
_arg2 = data.readInt();
boolean _arg3;
_arg3 = (0!=data.readInt());
int _result = this.requestPriority(_arg0, _arg1, _arg2, _arg3);
reply.writeNoException();
reply.writeInt(_result);
return true;
}
case TRANSACTION_requestCpusetBoost:
{
data.enforceInterface(descriptor);
boolean _arg0;
_arg0 = (0!=data.readInt());
android.os.IBinder _arg1;
_arg1 = data.readStrongBinder();
int _result = this.requestCpusetBoost(_arg0, _arg1);
reply.writeNoException();
reply.writeInt(_result);
return true;
}
default:
{
return super.onTransact(code, data, reply, flags);
}
}
}
private static class Proxy implements android.os.ISchedulingPolicyService
{
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 int requestPriority(int pid, int tid, int prio, boolean isForApp) 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(pid);
_data.writeInt(tid);
_data.writeInt(prio);
_data.writeInt(((isForApp)?(1):(0)));
mRemote.transact(Stub.TRANSACTION_requestPriority, _data, _reply, 0);
_reply.readException();
_result = _reply.readInt();
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public int requestCpusetBoost(boolean enable, android.os.IBinder client) 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(((enable)?(1):(0)));
_data.writeStrongBinder(client);
mRemote.transact(Stub.TRANSACTION_requestCpusetBoost, _data, _reply, 0);
_reply.readException();
_result = _reply.readInt();
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
}
static final int TRANSACTION_requestPriority = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
static final int TRANSACTION_requestCpusetBoost = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);
}
public int requestPriority(int pid, int tid, int prio, boolean isForApp) throws android.os.RemoteException;
public int requestCpusetBoost(boolean enable, android.os.IBinder client) throws android.os.RemoteException;
}