Searched refs:dup (Results 1 – 25 of 44) sorted by relevance
12
51 T* dup = new (std::nothrow) T[n]; in dup_array() local52 if (dup) in dup_array()54 dup[i] = a[i]; in dup_array()55 return dup; in dup_array()
34 api_name: "dup"40 api_name: "dup"
45 int dup1 = dup(tmp1.fd); in SetUp()47 int dup2 = dup(tmp2.fd); in SetUp()183 unique_fd sent1(dup(tmp1.fd)); in TEST_P()184 unique_fd sent2(dup(tmp2.fd)); in TEST_P()
64 old_fd_ = dup(std_fd_); in Start()
26 int fd = dup(heap->getHeapID()); in fromHeap()
59 dup(1); in main()
91 close(2); dup(1); /* join stdout and stderr */ in main()
15 dup: 1
16 dup: 1
21 dup: 1
37 return unique_fd{dup(iter->second)}; in Open()
88 dup(1); in main()
71 unique_fd cow_fd(dup(cow_device_.get())); in OpenReader()187 unique_fd fd(dup(snapshot_fd_.get())); in OpenReader()
155 unique_fd cow_fd(dup(cow_->fd)); in TEST_F()
60 clone->data[i] = dup(handle->data[i]); in native_handle_clone()
245 *_aidl_return = unique_fd(dup(read.get())); in RepeatFileDescriptor()253 repeated->push_back(unique_fd(dup(item.get()))); in ReverseFileDescriptorArray()254 _aidl_return->push_back(unique_fd(dup(item.get()))); in ReverseFileDescriptorArray()444 _aidl_return->reset(unique_fd(dup(read.get()))); in RepeatParcelFileDescriptor()453 repeated->push_back(ParcelFileDescriptor(unique_fd(dup(item.get())))); in ReverseParcelFileDescriptorArray()457 _aidl_return->push_back(ParcelFileDescriptor(unique_fd(dup(i->get())))); in ReverseParcelFileDescriptorArray()
96 fds.push_back(ndk::ScopedFileDescriptor(dup(hidlDesc.handle()->data[data_index]))); in unsafeHidlToAidlMQDescriptor()
124 mHandle->data[data_index] = dup(fd.get()); in AidlMQDescriptorShim()158 mHandle->data[i] = dup(other.mHandle->data[i]);
141 fds.push_back(ndk::ScopedFileDescriptor(dup(shim->handle()->data[data_index])));
130 old_stdout_ = dup(STDOUT_FILENO); in Start()
225 std::unique_ptr<DIR, decltype(&closedir)> wakelockDp(fdopendir(dup(wakelockFd.get())), in createKernelEntry()286 std::unique_ptr<DIR, decltype(&closedir)> dp(fdopendir(dup(mKernelWakelockStatsFd.get())), in getKernelWakelockStats()
144 FileLogger(const FileLogger& other) { fd_.reset(dup(other.fd_)); } in FileLogger()
158 mHandle->data[i] = dup(other.mHandle->data[i]);