Lines Matching refs:mHandle
53 bool isHandleValid() const { return mHandle != nullptr; } in isHandleValid()
61 return mHandle; in handle()
65 return mHandle; in handle()
73 ::android::hardware::details::hidl_pointer<native_handle_t> mHandle;
82 const size_t MQDescriptor<T, flavor>::kOffsetOfHandle = offsetof(MQDescriptor, mHandle);
101 : mHandle(nhandle), mQuantum(static_cast<uint32_t>(size)), mFlags(flavor) { in MQDescriptor()
111 : mHandle(nHandle), mQuantum(static_cast<uint32_t>(messageSize)), mFlags(flavor) { in MQDescriptor()
145 if (mHandle != nullptr) {
146 native_handle_close(mHandle);
147 native_handle_delete(mHandle);
148 mHandle = nullptr;
153 if (other.mHandle != nullptr) {
154 mHandle = native_handle_create(
155 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));
176 if (mHandle != nullptr) { in ~MQDescriptor()
177 native_handle_close(mHandle); in ~MQDescriptor()
178 native_handle_delete(mHandle); in ~MQDescriptor()