/*
 * This file is auto-generated.  DO NOT MODIFY.
 * Original file: /var/tmp/code-browser-generator/android_android_9.0.0_r358833596918674107602/combined/android/os/IProcessInfoService.aidl
 */
package android.os;
{@hide}
/** {@hide} */
public interface IProcessInfoService 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.os.IProcessInfoService { private static final java.lang.String DESCRIPTOR = "android.os.IProcessInfoService";
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.os.IProcessInfoService interface, generating a proxy if needed.
/** * Cast an IBinder object into an android.os.IProcessInfoService interface, * generating a proxy if needed. */
public static android.os.IProcessInfoService asInterface(android.os.IBinder obj) { if ((obj==null)) { return null; } android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); if (((iin!=null)&&(iin instanceof android.os.IProcessInfoService))) { return ((android.os.IProcessInfoService)iin); } return new android.os.IProcessInfoService.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_getProcessStatesFromPids: { data.enforceInterface(descriptor); int[] _arg0; _arg0 = data.createIntArray(); int[] _arg1; int _arg1_length = data.readInt(); if ((_arg1_length<0)) { _arg1 = null; } else { _arg1 = new int[_arg1_length]; } this.getProcessStatesFromPids(_arg0, _arg1); reply.writeNoException(); reply.writeIntArray(_arg1); return true; } case TRANSACTION_getProcessStatesAndOomScoresFromPids: { data.enforceInterface(descriptor); int[] _arg0; _arg0 = data.createIntArray(); int[] _arg1; int _arg1_length = data.readInt(); if ((_arg1_length<0)) { _arg1 = null; } else { _arg1 = new int[_arg1_length]; } int[] _arg2; int _arg2_length = data.readInt(); if ((_arg2_length<0)) { _arg2 = null; } else { _arg2 = new int[_arg2_length]; } this.getProcessStatesAndOomScoresFromPids(_arg0, _arg1, _arg2); reply.writeNoException(); reply.writeIntArray(_arg1); reply.writeIntArray(_arg2); return true; } default: { return super.onTransact(code, data, reply, flags); } } } private static class Proxy implements android.os.IProcessInfoService { 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; }
For each PID in the given input array, write the current process state for that process into the output array, or ActivityManager.PROCESS_STATE_NONEXISTENT to indicate that no process with the given PID exists.
/** * For each PID in the given input array, write the current process state * for that process into the output array, or ActivityManager.PROCESS_STATE_NONEXISTENT * to indicate that no process with the given PID exists. */
@Override public void getProcessStatesFromPids(int[] pids, int[] states) 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.writeIntArray(pids); if ((states==null)) { _data.writeInt(-1); } else { _data.writeInt(states.length); } mRemote.transact(Stub.TRANSACTION_getProcessStatesFromPids, _data, _reply, 0); _reply.readException(); _reply.readIntArray(states); } finally { _reply.recycle(); _data.recycle(); } }
For each PID in the given input array, write the current process state and OOM score for that process into the output arrays, or ActivityManager.PROCESS_STATE_NONEXISTENT in the states array to indicate that no process with the given PID exists.
/** * For each PID in the given input array, write the current process state and OOM score * for that process into the output arrays, or ActivityManager.PROCESS_STATE_NONEXISTENT * in the states array to indicate that no process with the given PID exists. */
@Override public void getProcessStatesAndOomScoresFromPids(int[] pids, int[] states, int[] scores) 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.writeIntArray(pids); if ((states==null)) { _data.writeInt(-1); } else { _data.writeInt(states.length); } if ((scores==null)) { _data.writeInt(-1); } else { _data.writeInt(scores.length); } mRemote.transact(Stub.TRANSACTION_getProcessStatesAndOomScoresFromPids, _data, _reply, 0); _reply.readException(); _reply.readIntArray(states); _reply.readIntArray(scores); } finally { _reply.recycle(); _data.recycle(); } } } static final int TRANSACTION_getProcessStatesFromPids = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_getProcessStatesAndOomScoresFromPids = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); }
For each PID in the given input array, write the current process state for that process into the output array, or ActivityManager.PROCESS_STATE_NONEXISTENT to indicate that no process with the given PID exists.
/** * For each PID in the given input array, write the current process state * for that process into the output array, or ActivityManager.PROCESS_STATE_NONEXISTENT * to indicate that no process with the given PID exists. */
public void getProcessStatesFromPids(int[] pids, int[] states) throws android.os.RemoteException;
For each PID in the given input array, write the current process state and OOM score for that process into the output arrays, or ActivityManager.PROCESS_STATE_NONEXISTENT in the states array to indicate that no process with the given PID exists.
/** * For each PID in the given input array, write the current process state and OOM score * for that process into the output arrays, or ActivityManager.PROCESS_STATE_NONEXISTENT * in the states array to indicate that no process with the given PID exists. */
public void getProcessStatesAndOomScoresFromPids(int[] pids, int[] states, int[] scores) throws android.os.RemoteException; }