Home | History | Annotate | Download | only in gui

Lines Matching refs:parcel

21 #include <binder/Parcel.h>
31 status_t LayerDebugInfo::writeToParcel(Parcel* parcel) const {
32 RETURN_ON_ERROR(parcel->writeCString(mName.c_str()));
33 RETURN_ON_ERROR(parcel->writeCString(mParentName.c_str()));
34 RETURN_ON_ERROR(parcel->writeCString(mType.c_str()));
35 RETURN_ON_ERROR(parcel->write(mTransparentRegion));
36 RETURN_ON_ERROR(parcel->write(mVisibleRegion));
37 RETURN_ON_ERROR(parcel->write(mSurfaceDamageRegion));
38 RETURN_ON_ERROR(parcel->writeUint32(mLayerStack));
39 RETURN_ON_ERROR(parcel->writeFloat(mX));
40 RETURN_ON_ERROR(parcel->writeFloat(mY));
41 RETURN_ON_ERROR(parcel->writeUint32(mZ));
42 RETURN_ON_ERROR(parcel->writeInt32(mWidth));
43 RETURN_ON_ERROR(parcel->writeInt32(mHeight));
44 RETURN_ON_ERROR(parcel->write(mCrop));
45 RETURN_ON_ERROR(parcel->write(mFinalCrop));
46 RETURN_ON_ERROR(parcel->writeFloat(mColor.r));
47 RETURN_ON_ERROR(parcel->writeFloat(mColor.g));
48 RETURN_ON_ERROR(parcel->writeFloat(mColor.b));
49 RETURN_ON_ERROR(parcel->writeFloat(mColor.a));
50 RETURN_ON_ERROR(parcel->writeUint32(mFlags));
51 RETURN_ON_ERROR(parcel->writeInt32(mPixelFormat));
52 RETURN_ON_ERROR(parcel->writeUint32(static_cast<uint32_t>(mDataSpace)));
54 RETURN_ON_ERROR(parcel->writeFloat(mMatrix[index / 2][index % 2]));
56 RETURN_ON_ERROR(parcel->writeInt32(mActiveBufferWidth));
57 RETURN_ON_ERROR(parcel->writeInt32(mActiveBufferHeight));
58 RETURN_ON_ERROR(parcel->writeInt32(mActiveBufferStride));
59 RETURN_ON_ERROR(parcel->writeInt32(mActiveBufferFormat));
60 RETURN_ON_ERROR(parcel->writeInt32(mNumQueuedFrames));
61 RETURN_ON_ERROR(parcel->writeBool(mRefreshPending));
62 RETURN_ON_ERROR(parcel->writeBool(mIsOpaque));
63 RETURN_ON_ERROR(parcel->writeBool(mContentDirty));
67 status_t LayerDebugInfo::readFromParcel(const Parcel* parcel) {
68 mName = parcel->readCString();
69 RETURN_ON_ERROR(parcel->errorCheck());
70 mParentName = parcel->readCString();
71 RETURN_ON_ERROR(parcel->errorCheck());
72 mType = parcel->readCString();
73 RETURN_ON_ERROR(parcel->errorCheck());
74 RETURN_ON_ERROR(parcel->read(mTransparentRegion));
75 RETURN_ON_ERROR(parcel->read(mVisibleRegion));
76 RETURN_ON_ERROR(parcel->read(mSurfaceDamageRegion));
77 RETURN_ON_ERROR(parcel->readUint32(&mLayerStack));
78 RETURN_ON_ERROR(parcel->readFloat(&mX));
79 RETURN_ON_ERROR(parcel->readFloat(&mY));
80 RETURN_ON_ERROR(parcel->readUint32(&mZ));
81 RETURN_ON_ERROR(parcel->readInt32(&mWidth));
82 RETURN_ON_ERROR(parcel->readInt32(&mHeight));
83 RETURN_ON_ERROR(parcel->read(mCrop));
84 RETURN_ON_ERROR(parcel->read(mFinalCrop));
85 mColor.r = parcel->readFloat();
86 RETURN_ON_ERROR(parcel->errorCheck());
87 mColor.g = parcel->readFloat();
88 RETURN_ON_ERROR(parcel->errorCheck());
89 mColor.b = parcel->readFloat();
90 RETURN_ON_ERROR(parcel->errorCheck());
91 mColor.a = parcel->readFloat();
92 RETURN_ON_ERROR(parcel->errorCheck());
93 RETURN_ON_ERROR(parcel->readUint32(&mFlags));
94 RETURN_ON_ERROR(parcel->readInt32(&mPixelFormat));
96 mDataSpace = static_cast<android_dataspace>(parcel->readUint32());
97 RETURN_ON_ERROR(parcel->errorCheck());
99 RETURN_ON_ERROR(parcel->readFloat(&mMatrix[index / 2][index % 2]));
101 RETURN_ON_ERROR(parcel->readInt32(&mActiveBufferWidth));
102 RETURN_ON_ERROR(parcel->readInt32(&mActiveBufferHeight));
103 RETURN_ON_ERROR(parcel->readInt32(&mActiveBufferStride));
104 RETURN_ON_ERROR(parcel->readInt32(&mActiveBufferFormat));
105 RETURN_ON_ERROR(parcel->readInt32(&mNumQueuedFrames));
106 RETURN_ON_ERROR(parcel->readBool(&mRefreshPending));
107 RETURN_ON_ERROR(parcel->readBool(&mIsOpaque));
108 RETURN_ON_ERROR(parcel->readBool(&mContentDirty));