Lines Matching refs:parcel

40 binder_status_t ECOData::readFromParcel(const AParcel* parcel) {  in readFromParcel()  argument
41 if (parcel == nullptr) { in readFromParcel()
47 RETURN_STATUS_IF_ERROR(AParcel_readInt32(parcel, &mDataType)); in readFromParcel()
48 RETURN_STATUS_IF_ERROR(AParcel_readInt64(parcel, &mDataTimeUs)); in readFromParcel()
52 RETURN_STATUS_IF_ERROR(AParcel_readUint32(parcel, &numOfItems)); in readFromParcel()
58 AParcel_readString(parcel, &name, ndk::AParcel_stdStringAllocator); in readFromParcel()
61 RETURN_STATUS_IF_ERROR(AParcel_readInt32(parcel, &type)); in readFromParcel()
65 RETURN_STATUS_IF_ERROR(AParcel_readInt32(parcel, &value32)); in readFromParcel()
71 RETURN_STATUS_IF_ERROR(AParcel_readInt64(parcel, &value64)); in readFromParcel()
77 RETURN_STATUS_IF_ERROR(AParcel_readInt32(parcel, &valueSize)); in readFromParcel()
83 RETURN_STATUS_IF_ERROR(AParcel_readFloat(parcel, &valueFloat)); in readFromParcel()
89 RETURN_STATUS_IF_ERROR(AParcel_readDouble(parcel, &valueDouble)); in readFromParcel()
95 AParcel_readString(parcel, &valueString, ndk::AParcel_stdStringAllocator); in readFromParcel()
101 RETURN_STATUS_IF_ERROR(AParcel_readByte(parcel, &value8)); in readFromParcel()
114 binder_status_t ECOData::writeToParcel(AParcel* parcel) const { in writeToParcel()
115 if (parcel == nullptr) { in writeToParcel()
121 RETURN_STATUS_IF_ERROR(AParcel_writeInt32(parcel, mDataType)); in writeToParcel()
122 RETURN_STATUS_IF_ERROR(AParcel_writeInt64(parcel, mDataTimeUs)); in writeToParcel()
125 RETURN_STATUS_IF_ERROR(AParcel_writeUint32(parcel, int32_t(mKeyValueStore.size()))); in writeToParcel()
130 RETURN_STATUS_IF_ERROR(AParcel_writeString(parcel, it.first.c_str(), in writeToParcel()
135 RETURN_STATUS_IF_ERROR(AParcel_writeInt32(parcel, static_cast<int32_t>(value.index()))); in writeToParcel()
138 RETURN_STATUS_IF_ERROR(AParcel_writeInt32(parcel, std::get<int32_t>(it.second))); in writeToParcel()
142 RETURN_STATUS_IF_ERROR(AParcel_writeInt64(parcel, std::get<int64_t>(it.second))); in writeToParcel()
146 RETURN_STATUS_IF_ERROR(AParcel_writeUint32(parcel, std::get<size_t>(it.second))); in writeToParcel()
150 RETURN_STATUS_IF_ERROR(AParcel_writeFloat(parcel, std::get<float>(it.second))); in writeToParcel()
154 RETURN_STATUS_IF_ERROR(AParcel_writeDouble(parcel, std::get<double>(it.second))); in writeToParcel()
159 parcel, std::get<std::string>(it.second).c_str(), in writeToParcel()
164 RETURN_STATUS_IF_ERROR(AParcel_writeByte(parcel, std::get<int8_t>(it.second))); in writeToParcel()