Lines Matching refs:fd
37 HdifdParcelable::HdifdParcelable(int32_t fd) in HdifdParcelable() argument
38 : init_(true), hdiFd_(fd) in HdifdParcelable()
49 bool HdifdParcelable::Init(int32_t fd) in Init() argument
57 if (fd < 0) { in Init()
60 hdiFd_ = dup(fd); in Init()
71 bool HdifdParcelable::WriteFileDescriptor(const int fd, Parcel& parcel) in WriteFileDescriptor() argument
73 if (fd < 0) { in WriteFileDescriptor()
76 int dupFd = dup(fd); in WriteFileDescriptor()
95 int fd = descriptor->GetFd(); in ReadFileDescriptor() local
96 if (fd < 0) { in ReadFileDescriptor()
99 return dup(fd); in ReadFileDescriptor()
123 int32_t fd = -1; in Unmarshalling() local
125 fd = ReadFileDescriptor(parcel); in Unmarshalling()
126 if (fd < 0) { in Unmarshalling()
131 sptr<HdifdParcelable> newParcelable = new HdifdParcelable(fd); in Unmarshalling()