Lines Matching defs:parcel
19 #include <parcel.h>
85 void ReadFromParcel(Parcel& parcel)
87 deviceName_ = Str16ToStr8(parcel.ReadString16());
88 mac_ = Str16ToStr8(parcel.ReadString16());
89 rssi_ = parcel.ReadInt64();
90 timestamp_ = parcel.ReadInt64();
93 bool Marshalling(Parcel& parcel) const override
95 return parcel.WriteString16(Str8ToStr16(deviceName_)) &&
96 parcel.WriteString16(Str8ToStr16(mac_)) &&
97 parcel.WriteInt64(rssi_) &&
98 parcel.WriteInt64(timestamp_);
101 static std::shared_ptr<BluetoothScanInfo> Unmarshalling(Parcel& parcel)
104 bluetoothScanInfo->ReadFromParcel(parcel);