Lines Matching refs:parcel
27 status_t AudioAttributes::readFromParcel(const Parcel *parcel) in readFromParcel() argument
30 mAttributes.content_type = static_cast<audio_content_type_t>(parcel->readInt32()); in readFromParcel()
31 mAttributes.usage = static_cast<audio_usage_t>(parcel->readInt32()); in readFromParcel()
32 mAttributes.source = static_cast<audio_source_t>(parcel->readInt32()); in readFromParcel()
33 mAttributes.flags = static_cast<audio_flags_mask_t>(parcel->readInt32()); in readFromParcel()
34 const bool hasFlattenedTag = (parcel->readInt32() == 1); in readFromParcel()
37 ret = parcel->readUtf8FromUtf16(&tags); in readFromParcel()
45 mStreamType = static_cast<audio_stream_type_t>(parcel->readInt32()); in readFromParcel()
46 mGroupId = static_cast<volume_group_t>(parcel->readUint32()); in readFromParcel()
50 status_t AudioAttributes::writeToParcel(Parcel *parcel) const in writeToParcel()
52 parcel->writeInt32(static_cast<int32_t>(mAttributes.content_type)); in writeToParcel()
53 parcel->writeInt32(static_cast<int32_t>(mAttributes.usage)); in writeToParcel()
54 parcel->writeInt32(static_cast<int32_t>(mAttributes.source)); in writeToParcel()
55 parcel->writeInt32(static_cast<int32_t>(mAttributes.flags)); in writeToParcel()
57 parcel->writeInt32(0); in writeToParcel()
59 parcel->writeInt32(1); in writeToParcel()
60 parcel->writeUtf8AsUtf16(mAttributes.tags); in writeToParcel()
62 parcel->writeInt32(static_cast<int32_t>(mStreamType)); in writeToParcel()
63 parcel->writeUint32(static_cast<uint32_t>(mGroupId)); in writeToParcel()