Home
last modified time | relevance | path

Searched refs:dup (Results 1 – 25 of 44) sorted by relevance

12

/system/keymaster/include/keymaster/
Dmem.h51 T* dup = new (std::nothrow) T[n]; in dup_array() local
52 if (dup) in dup_array()
54 dup[i] = a[i]; in dup_array()
55 return dup; in dup_array()
/system/tools/sysprop/tests/
DInvalidSyspropTest.cpp34 api_name: "dup"
40 api_name: "dup"
/system/libbase/
Dcmsg_test.cpp45 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()
Dtest_utils.cpp64 old_fd_ = dup(std_fd_); in Start()
/system/libhidl/transport/allocator/1.0/utils/
DFrameworkUtils.cpp26 int fd = dup(heap->getHeapID()); in fromHeap()
/system/extras/tests/cpueater/
Dcpueater.c59 dup(1); in main()
Ddaemonize.c91 close(2); dup(1); /* join stdout and stderr */ in main()
/system/core/debuggerd/seccomp_policy/
Dcrash_dump.x86_64.policy15 dup: 1
Dcrash_dump.arm.policy16 dup: 1
Dcrash_dump.x86.policy16 dup: 1
Dcrash_dump.arm64.policy15 dup: 1
Dcrash_dump.policy.def21 dup: 1
/system/core/fs_mgr/liblp/
Dtest_partition_opener.cpp37 return unique_fd{dup(iter->second)}; in Open()
/system/extras/tests/memeater/
Dmemeater.c88 dup(1); in main()
/system/core/fs_mgr/libsnapshot/
Dsnapshot_writer.cpp71 unique_fd cow_fd(dup(cow_device_.get())); in OpenReader()
187 unique_fd fd(dup(snapshot_fd_.get())); in OpenReader()
Dsnapshot_reader_test.cpp155 unique_fd cow_fd(dup(cow_->fd)); in TEST_F()
/system/core/libcutils/
Dnative_handle.cpp60 clone->data[i] = dup(handle->data[i]); in native_handle_clone()
/system/tools/aidl/tests/
Daidl_test_service.cpp245 *_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()
/system/libfmq/include/fmq/
DConvertMQDescriptors.h96 fds.push_back(ndk::ScopedFileDescriptor(dup(hidlDesc.handle()->data[data_index]))); in unsafeHidlToAidlMQDescriptor()
DAidlMQDescriptorShim.h124 mHandle->data[data_index] = dup(fd.get()); in AidlMQDescriptorShim()
158 mHandle->data[i] = dup(other.mHandle->data[i]);
DAidlMessageQueue.h141 fds.push_back(ndk::ScopedFileDescriptor(dup(shim->handle()->data[data_index])));
/system/extras/simpleperf/
Dtest_util.h130 old_stdout_ = dup(STDOUT_FILENO); in Start()
/system/hardware/interfaces/suspend/1.0/default/
DWakeLockEntryList.cpp225 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()
/system/update_engine/aosp/
Dlogging_android.cc144 FileLogger(const FileLogger& other) { fd_.reset(dup(other.fd_)); } in FileLogger()
/system/libhidl/base/include/hidl/
DMQDescriptor.h158 mHandle->data[i] = dup(other.mHandle->data[i]);

12