Lines Matching refs:parcel
50 OutputConfiguration::OutputConfiguration(const Parcel& parcel) :
53 readFromParcel(&parcel);
56 status_t OutputConfiguration::readFromParcel(const Parcel* parcel) {
60 if (parcel == nullptr) return BAD_VALUE;
62 if ((err = parcel->readInt32(&rotation)) != OK) {
63 ALOGE("%s: Failed to read rotation from parcel", __FUNCTION__);
68 if ((err = parcel->readInt32(&setID)) != OK) {
69 ALOGE("%s: Failed to read surface set ID from parcel", __FUNCTION__);
74 if ((err = surfaceShim.readFromParcel(parcel)) != OK) {
75 ALOGE("%s: Failed to read surface from parcel", __FUNCTION__);
96 status_t OutputConfiguration::writeToParcel(Parcel* parcel) const {
98 if (parcel == nullptr) return BAD_VALUE;
101 err = parcel->writeInt32(mRotation);
104 err = parcel->writeInt32(mSurfaceSetID);
111 err = surfaceShim.writeToParcel(parcel);