packages/services/Car/procfs-inspector/server/process.cpp

16 lines
386 B
C++
Raw Normal View History

2025-08-25 08:38:42 +08:00
#include "process.h"
#include <binder/Parcel.h>
status_t procfsinspector::ProcessInfo::writeToParcel(Parcel* parcel) const {
parcel->writeUint32(mPid);
parcel->writeUint32(mUid);
return android::OK;
}
status_t procfsinspector::ProcessInfo::readFromParcel(const Parcel* parcel) {
mPid = parcel->readUint32();
mUid = parcel->readUint32();
return android::OK;
}