Home
last modified time | relevance | path

Searched refs:unique_fd (Results 1 – 25 of 147) sorted by relevance

123456

/frameworks/native/services/vr/hardware_composer/aidl/android/dvr/
Dparcelable_unique_fd.h16 explicit ParcelableUniqueFd(const base::unique_fd& fence);
19 void set_fence(const base::unique_fd& fence) { in set_fence()
22 base::unique_fd fence() const { return base::unique_fd(dup(fence_.get())); } in fence()
28 base::unique_fd fence_;
/frameworks/base/cmds/incidentd/src/
Dincidentd_util.h35 using android::base::unique_fd;
72 unique_fd& readFd();
73 unique_fd& writeFd();
76 unique_fd mRead;
77 unique_fd mWrite;
DSection.h94 virtual status_t BlockingCall(unique_fd& pipeWriteFd) const = 0;
123 virtual status_t BlockingCall(unique_fd& pipeWriteFd) const;
153 virtual status_t BlockingCall(unique_fd& pipeWriteFd) const;
174 virtual status_t BlockingCall(unique_fd& pipeWriteFd) const;
190 virtual status_t BlockingCall(unique_fd& pipeWriteFd) const;
207 virtual status_t BlockingCall(unique_fd& pipeWriteFd) const;
/frameworks/native/cmds/installd/
Ddexopt.cpp65 using android::base::unique_fd;
93 static unique_fd invalid_unique_fd() { in invalid_unique_fd()
94 return unique_fd(-1); in invalid_unique_fd()
106 unique_fd ufd(open(profile.c_str(), O_WRONLY | O_NOFOLLOW | O_CLOEXEC)); in clear_profile()
668 static unique_fd create_profile(uid_t uid, const std::string& profile, int32_t flags) { in create_profile()
669 unique_fd fd(TEMP_FAILURE_RETRY(open(profile.c_str(), flags, 0600))); in create_profile()
686 static unique_fd open_profile(uid_t uid, const std::string& profile, int32_t flags) { in open_profile()
694 unique_fd fd; in open_profile()
717 static unique_fd open_current_profile(uid_t uid, userid_t user, const std::string& package_name, in open_current_profile()
724 static unique_fd open_reference_profile(uid_t uid, const std::string& package_name, in open_reference_profile()
[all …]
Dview_compiler.cpp36 using base::unique_fd;
48 unique_fd infd{open(apk_path, O_RDONLY)}; // NOLINT(android-cloexec-open) in view_compiler()
56 unique_fd outfd{open(out_dex_file, O_CREAT | O_TRUNC | O_WRONLY | O_CLOEXEC, 0644)}; in view_compiler()
/frameworks/native/include/binder/
DParcelFileDescriptor.h33 explicit ParcelFileDescriptor(android::base::unique_fd fd);
38 android::base::unique_fd release() { return std::move(mFd); } in release()
39 void reset(android::base::unique_fd fd = android::base::unique_fd()) { mFd = std::move(fd); }
64 android::base::unique_fd mFd;
/frameworks/native/libs/binder/include/binder/
DParcelFileDescriptor.h33 explicit ParcelFileDescriptor(android::base::unique_fd fd);
38 android::base::unique_fd release() { return std::move(mFd); } in release()
39 void reset(android::base::unique_fd fd = android::base::unique_fd()) { mFd = std::move(fd); }
64 android::base::unique_fd mFd;
/frameworks/av/media/mtp/
DMtpFfsHandle.h61 android::base::unique_fd mControl;
63 android::base::unique_fd mBulkIn;
65 android::base::unique_fd mBulkOut;
66 android::base::unique_fd mIntr;
70 android::base::unique_fd mEventFd;
/frameworks/native/services/vr/performanced/
Dcpu_set.h40 CpuSet(CpuSet* parent, const std::string& name, base::unique_fd&& cpuset_fd);
44 base::unique_fd OpenPropertyFile(const std::string& name) const;
47 base::unique_fd OpenFile(const std::string& name, int flags = O_RDONLY) const;
54 base::unique_fd cpuset_fd_;
95 std::unique_ptr<CpuSet> Create(base::unique_fd base_fd,
Dcpu_set.cpp39 base::unique_fd root_cpuset_fd(open(path.c_str(), kDirectoryFlags)); in Create()
49 std::unique_ptr<CpuSet> CpuSetManager::Create(base::unique_fd base_fd, in Create()
52 DirectoryReader directory(base::unique_fd(dup(base_fd))); in Create()
60 new CpuSet(parent, name, base::unique_fd(dup(base_fd)))); in Create()
70 base::unique_fd entry_fd( in Create()
192 base::unique_fd&& cpuset_fd) in CpuSet()
204 base::unique_fd CpuSet::OpenPropertyFile(const std::string& name) const { in OpenPropertyFile()
212 base::unique_fd CpuSet::OpenFile(const std::string& name, int flags) const { in OpenFile()
214 return base::unique_fd( in OpenFile()
220 base::unique_fd fd(openat(cpuset_fd_.get(), relative_path.c_str(), flags)); in OpenFilePointer()
Dtask.cpp22 android::base::unique_fd OpenTaskDirectory(pid_t task_id) { in OpenTaskDirectory()
26 return android::base::unique_fd( in OpenTaskDirectory()
65 base::unique_fd Task::OpenTaskFile(const std::string& name) const { in OpenTaskFile()
67 return base::unique_fd( in OpenTaskFile()
73 base::unique_fd fd(openat(task_fd_.get(), relative_path.c_str(), O_RDONLY)); in OpenTaskFilePointer()
/frameworks/native/libs/gui/include/private/gui/
DBitTube.h56 base::unique_fd moveReceiveFd();
59 void setReceiveFd(base::unique_fd&& receiveFd);
88 base::unique_fd mSendFd;
89 mutable base::unique_fd mReceiveFd;
/frameworks/av/services/minijail/
Dav_services_minijail_unittest.cpp51 android::base::unique_fd fd(android::WritePolicyToPipe(base_policy_, {std::string()})); in TEST_F()
62 android::base::unique_fd fd(android::WritePolicyToPipe(base_policy_, {})); in TEST_F()
72 android::base::unique_fd fd(android::WritePolicyToPipe(base_policy_, {additional_policy_})); in TEST_F()
82 …android::base::unique_fd fd(android::WritePolicyToPipe(base_policy_, {additional_policy_, third_po… in TEST_F()
/frameworks/av/media/libaaudio/src/binding/
DSharedMemoryParcelable.h50 void setup(const android::base::unique_fd& fd, int32_t sizeInBytes);
70 aaudio_result_t resolveSharedMemory(const android::base::unique_fd& fd);
72 android::base::unique_fd mFd;
DSharedMemoryParcelable.cpp33 using android::base::unique_fd;
44 void SharedMemoryParcelable::setup(const unique_fd& fd, int32_t sizeInBytes) { in setup()
71 unique_fd mmapFd; in readFromParcel()
103 aaudio_result_t SharedMemoryParcelable::resolveSharedMemory(const unique_fd& fd) { in resolveSharedMemory()
/frameworks/native/libs/cputimeinstate/
Dcputimeinstate.cpp45 using android::base::unique_fd;
59 static unique_fd gTisMapFd;
60 static unique_fd gConcurrentMapFd;
61 static unique_fd gUidLastUpdateMapFd;
131 gTisMapFd = unique_fd{bpf_obj_get(BPF_FS_PATH "map_time_in_state_uid_time_in_state_map")}; in initGlobals()
135 unique_fd{bpf_obj_get(BPF_FS_PATH "map_time_in_state_uid_concurrent_times_map")}; in initGlobals()
139 unique_fd{bpf_obj_get(BPF_FS_PATH "map_time_in_state_uid_last_update_map")}; in initGlobals()
176 unique_fd cpuPolicyFd(mapRetrieveWO(BPF_FS_PATH "map_time_in_state_cpu_policy_map")); in startTrackingUidTimes()
185 unique_fd freqToIdxFd(mapRetrieveWO(BPF_FS_PATH "map_time_in_state_freq_to_idx_map")); in startTrackingUidTimes()
200 unique_fd cpuLastUpdateFd(mapRetrieveWO(BPF_FS_PATH "map_time_in_state_cpu_last_update_map")); in startTrackingUidTimes()
[all …]
/frameworks/ml/nn/runtime/test/
DTestUtils.h35 TestAshmem(::android::base::unique_fd fd, std::unique_ptr<::android::base::MappedFile> mapped, in TestAshmem()
49 ::android::base::unique_fd managedFd(fd); in createFrom()
75 ::android::base::unique_fd mFd;
/frameworks/opt/net/wifi/libwifi_system_iface/
Dinterface_tool.cpp57 base::unique_fd sock(socket(PF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0)); in GetUpState()
73 base::unique_fd sock(socket(PF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0)); in SetUpState()
115 base::unique_fd sock(socket(PF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0)); in SetMacAddress()
148 base::unique_fd sock(socket(PF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0)); in GetFactoryMacAddress()
/frameworks/base/tests/ApkVerityTest/block_device_writer/
Dblock_device_writer.cpp78 android::base::unique_fd fd_;
82 android::base::unique_fd fd(open(block_device, O_RDONLY)); in get_logical_block_size()
97 android::base::unique_fd fd(open(file_name, O_RDONLY)); in get_physical_offset()
142 android::base::unique_fd fd(open(device_path, O_RDONLY | O_DIRECT)); in read_block_from_device()
161 android::base::unique_fd fd(open(device_path, O_WRONLY | O_DIRECT)); in write_block_to_device()
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/
DRenderSurface.h57 sp<GraphicBuffer> dequeueBuffer(base::unique_fd* bufferFence) override;
58 void queueBuffer(base::unique_fd readyFence) override;
70 base::unique_fd& mutableBufferReadyForTest();
/frameworks/base/tools/aapt2/io/
DFileStream.h54 android::base::unique_fd fd_;
72 explicit FileOutputStream(android::base::unique_fd fd,
95 android::base::unique_fd owned_fd_;
/frameworks/native/libs/adbd_auth/
Dadbd_auth.cpp44 using android::base::unique_fd;
157 void ReplaceFrameworkFd(unique_fd new_fd) REQUIRES(mutex_) { in ReplaceFrameworkFd()
188 ReplaceFrameworkFd(unique_fd()); in HandlePacket()
202 ReplaceFrameworkFd(unique_fd()); in HandlePacket()
290 ReplaceFrameworkFd(unique_fd()); in SendPacket()
332 unique_fd new_framework_fd(accept4(sock_fd_.get(), nullptr, nullptr, in Run()
371 ReplaceFrameworkFd(unique_fd()); in Run()
497 unique_fd epoll_fd_;
498 unique_fd event_fd_;
499 unique_fd sock_fd_;
[all …]
/frameworks/av/media/codec2/sfplugin/
DC2OMXNode.cpp62 android::base::unique_fd &&fd0, in queue()
63 android::base::unique_fd &&fd1) { in queue()
94 std::vector<android::base::unique_fd> uniqueFds; in threadLoop()
110 for (android::base::unique_fd &ufd : uniqueFds) { in threadLoop()
135 android::base::unique_fd &&uniqueFd0, in WorkFence()
136 android::base::unique_fd &&uniqueFd1) in WorkFence()
144 android::base::unique_fd fd0;
145 android::base::unique_fd fd1;
343 android::base::unique_fd fd0, fd1; in emptyBuffer()
/frameworks/native/cmds/dumpstate/
DDumpstateService.h42 android::base::unique_fd bugreport_fd,
43 android::base::unique_fd screenshot_fd, int bugreport_mode,
/frameworks/native/cmds/dumpstate/tests/
Ddumpstate_smoke_test.cpp42 using android::base::unique_fd;
454 unique_fd bugreport_fd(OpenForWrite("/bugreports/tmp.zip")); in TEST_F()
455 unique_fd screenshot_fd(OpenForWrite("/bugreports/tmp.png")); in TEST_F()
489 unique_fd bugreport_fd(OpenForWrite("/data/local/tmp/tmp.zip")); in TEST_F()
490 unique_fd screenshot_fd(OpenForWrite("/data/local/tmp/tmp.png")); in TEST_F()
518 unique_fd bugreport_fd(OpenForWrite("/data/local/tmp/tmp.zip")); in TEST_F()
519 unique_fd bugreport_fd2(dup(bugreport_fd.get())); in TEST_F()
520 unique_fd screenshot_fd(OpenForWrite("/data/local/tmp/tmp.png")); in TEST_F()
521 unique_fd screenshot_fd2(dup(screenshot_fd.get())); in TEST_F()

123456