Home
last modified time | relevance | path

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

12

/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.arm64.policy15 dup: 1
Dcrash_dump.arm.policy16 dup: 1
Dcrash_dump.x86_64.policy15 dup: 1
Dcrash_dump.x86.policy16 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/keymaster/include/keymaster/
Dandroid_keymaster_utils.h92 T* dup = new (std::nothrow) T[n]; in dup_array() local
93 if (dup) in dup_array()
95 dup[i] = a[i]; in dup_array()
96 return dup; in dup_array()
/system/tools/aidl/tests/
Daidl_test_service.cpp323 *_aidl_return = unique_fd(dup(read.get())); in RepeatFileDescriptor()
332 repeated->push_back(unique_fd(dup(item.get()))); in ReverseFileDescriptorArray()
333 _aidl_return->push_back(unique_fd(dup(item.get()))); in ReverseFileDescriptorArray()
342 _aidl_return->reset(unique_fd(dup(read.get()))); in RepeatParcelFileDescriptor()
351 repeated->push_back(ParcelFileDescriptor(unique_fd(dup(item.get())))); in ReverseParcelFileDescriptorArray()
355 _aidl_return->push_back(ParcelFileDescriptor(unique_fd(dup(i->get())))); in ReverseParcelFileDescriptorArray()
/system/core/libcutils/
Dnative_handle.cpp60 clone->data[i] = dup(handle->data[i]); in native_handle_clone()
/system/extras/simpleperf/
Dtest_util.h113 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()
DSystemSuspend.cpp239 std::unique_ptr<DIR, decltype(&closedir)> dp(fdopendir(dup(mSuspendStatsFd.get())), &closedir); in getSuspendStats()
/system/update_engine/
Dlogging_android.cc144 FileLogger(const FileLogger& other) { fd_.reset(dup(other.fd_)); } in FileLogger()
/system/core/debuggerd/
Dcrash_dump.cpp405 unique_fd output_pipe(dup(STDOUT_FILENO)); in main()
406 unique_fd input_pipe(dup(STDIN_FILENO)); in main()
/system/memory/libdmabufheap/
DBufferAllocator.cpp241 int new_ion_fd = TEMP_FAILURE_RETRY(dup(ion_fd_.get())); in LegacyIonCpuSync()
/system/vold/
DVoldNativeService.cpp873 _aidl_return->cmd.emplace(unique_fd(dup(IncFs_GetControlFd(control, CMD)))); in mountIncFs()
874 _aidl_return->pendingReads.emplace(unique_fd(dup(IncFs_GetControlFd(control, PENDING_READS)))); in mountIncFs()
877 _aidl_return->log.emplace(unique_fd(dup(logsFd))); in mountIncFs()
/system/core/debuggerd/client/
Ddebuggerd_client.cpp309 android::base::unique_fd copy(dup(fd)); in dump_backtrace_to_file_timeout()
/system/libhidl/base/include/hidl/
DMQDescriptor.h230 mHandle->data[i] = dup(other.mHandle->data[i]);

12