Home
last modified time | relevance | path

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

12

/system/tools/sysprop/tests/
DInvalidSyspropTest.cpp34 api_name: "dup"
40 api_name: "dup"
/system/core/base/
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.arm64.policy15 dup: 1
Dcrash_dump.arm.policy16 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()
Dutility.cpp182 int newfd = TEMP_FAILURE_RETRY(dup(fd)); in GetControlFileOrOpen()
/system/ashmemd/
Dashmemd_client.cpp71 return dup(fd.get()); in openAshmemdFd()
/system/tools/aidl/tests/
Daidl_test_service.cpp303 *_aidl_return = unique_fd(dup(read.get())); in RepeatFileDescriptor()
312 repeated->push_back(unique_fd(dup(item.get()))); in ReverseFileDescriptorArray()
313 _aidl_return->push_back(unique_fd(dup(item.get()))); in ReverseFileDescriptorArray()
322 _aidl_return->reset(unique_fd(dup(read.get()))); in RepeatParcelFileDescriptor()
331 repeated->push_back(ParcelFileDescriptor(unique_fd(dup(item.get())))); in ReverseParcelFileDescriptorArray()
335 _aidl_return->push_back(ParcelFileDescriptor(unique_fd(dup(i->get())))); in ReverseParcelFileDescriptorArray()
/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/extras/simpleperf/
Dtest_util.h94 old_stdout_ = dup(STDOUT_FILENO); in Start()
/system/core/libcutils/
Dnative_handle.cpp60 clone->data[i] = dup(handle->data[i]); in native_handle_clone()
/system/core/debuggerd/
Dcrash_dump.cpp391 unique_fd output_pipe(dup(STDOUT_FILENO)); in main()
392 unique_fd input_pipe(dup(STDIN_FILENO)); in main()
/system/core/debuggerd/client/
Ddebuggerd_client.cpp260 android::base::unique_fd copy(dup(fd)); in dump_backtrace_to_file_timeout()
/system/libhidl/base/include/hidl/
DMQDescriptor.h234 mHandle->data[i] = dup(other.mHandle->data[i]);
/system/core/init/
Dsubcontext.cpp248 int child_fd = dup(subcontext_socket); in Fork()
/system/core/deprecated-adf/libadfhwc/
Dadfhwc.cpp326 int dup_intf_fd = dup(intf_fds[i]); in adf_hwc_open()
/system/core/debuggerd/tombstoned/
Dtombstoned.cpp222 crash->crash_tombstone_fd.reset(dup(output_fd.get())); in perform_request()

12