Lines Matching refs:mHandle
63 bool isHandleValid() const { return mHandle != nullptr; } in isHandleValid()
70 inline const ::native_handle_t* handle() const { return mHandle; } in handle()
72 inline ::native_handle_t* handle() { return mHandle; } in handle()
79 native_handle_t* mHandle = nullptr; member
116 mHandle = native_handle_create(desc.handle.fds.size() /* num fds */, in AidlMQDescriptorShim()
118 if (mHandle == nullptr) { in AidlMQDescriptorShim()
124 mHandle->data[data_index] = dup(fd.get()); in AidlMQDescriptorShim()
128 mHandle->data[data_index] = data_int; in AidlMQDescriptorShim()
138 mHandle(nhandle), in AidlMQDescriptorShim()
146 if (mHandle != nullptr) {
147 native_handle_close(mHandle);
148 native_handle_delete(mHandle);
149 mHandle = nullptr;
154 if (other.mHandle != nullptr) {
155 mHandle = native_handle_create(other.mHandle->numFds, other.mHandle->numInts);
157 for (int i = 0; i < other.mHandle->numFds; ++i) {
158 mHandle->data[i] = dup(other.mHandle->data[i]);
161 memcpy(&mHandle->data[other.mHandle->numFds], &other.mHandle->data[other.mHandle->numFds],
162 static_cast<size_t>(other.mHandle->numInts) * sizeof(int));
171 : mHandle(nHandle), mQuantum(messageSize), mFlags(flavor) { in AidlMQDescriptorShim()
225 if (mHandle != nullptr) { in ~AidlMQDescriptorShim()
226 native_handle_close(mHandle); in ~AidlMQDescriptorShim()
227 native_handle_delete(mHandle); in ~AidlMQDescriptorShim()