use of android.os.Parcel in project android_frameworks_base by ParanoidAndroid.
the class ActivityManagerProxy method finishActivityAffinity.
public boolean finishActivityAffinity(IBinder token) throws RemoteException {
Parcel data = Parcel.obtain();
Parcel reply = Parcel.obtain();
data.writeInterfaceToken(IActivityManager.descriptor);
data.writeStrongBinder(token);
mRemote.transact(FINISH_ACTIVITY_AFFINITY_TRANSACTION, data, reply, 0);
reply.readException();
boolean res = reply.readInt() != 0;
data.recycle();
reply.recycle();
return res;
}
use of android.os.Parcel in project android_frameworks_base by ParanoidAndroid.
the class ActivityManagerProxy method noteWakeupAlarm.
public void noteWakeupAlarm(IIntentSender sender) throws RemoteException {
Parcel data = Parcel.obtain();
data.writeStrongBinder(sender.asBinder());
data.writeInterfaceToken(IActivityManager.descriptor);
mRemote.transact(NOTE_WAKEUP_ALARM_TRANSACTION, data, null, 0);
data.recycle();
}
use of android.os.Parcel in project android_frameworks_base by ParanoidAndroid.
the class ActivityManagerProxy method stopUser.
public int stopUser(int userid, IStopUserCallback callback) throws RemoteException {
Parcel data = Parcel.obtain();
Parcel reply = Parcel.obtain();
data.writeInterfaceToken(IActivityManager.descriptor);
data.writeInt(userid);
data.writeStrongInterface(callback);
mRemote.transact(STOP_USER_TRANSACTION, data, reply, 0);
reply.readException();
int result = reply.readInt();
reply.recycle();
data.recycle();
return result;
}
use of android.os.Parcel in project android_frameworks_base by ParanoidAndroid.
the class ActivityManagerProxy method getPackageScreenCompatMode.
public int getPackageScreenCompatMode(String packageName) throws RemoteException {
Parcel data = Parcel.obtain();
Parcel reply = Parcel.obtain();
data.writeInterfaceToken(IActivityManager.descriptor);
data.writeString(packageName);
mRemote.transact(GET_PACKAGE_SCREEN_COMPAT_MODE_TRANSACTION, data, reply, 0);
reply.readException();
int mode = reply.readInt();
reply.recycle();
data.recycle();
return mode;
}
use of android.os.Parcel in project android_frameworks_base by ParanoidAndroid.
the class ActivityManagerProxy method killProcessesBelowForeground.
@Override
public boolean killProcessesBelowForeground(String reason) throws RemoteException {
Parcel data = Parcel.obtain();
Parcel reply = Parcel.obtain();
data.writeInterfaceToken(IActivityManager.descriptor);
data.writeString(reason);
mRemote.transact(KILL_PROCESSES_BELOW_FOREGROUND_TRANSACTION, data, reply, 0);
boolean res = reply.readInt() != 0;
data.recycle();
reply.recycle();
return res;
}
Aggregations