Home
last modified time | relevance | path

Searched refs:borrowed_fd (Results 1 – 25 of 53) sorted by relevance

123

/frameworks/native/include/binder/
Dunique_fd.h26 using android::base::borrowed_fd;
104 struct LIBBINDER_EXPORTED borrowed_fd { struct
105 /* implicit */ borrowed_fd(int fd) : fd_(fd) {} // NOLINT in borrowed_fd() function
106 /* implicit */ borrowed_fd(const unique_fd& ufd) : fd_(ufd.get()) {} // NOLINT in borrowed_fd() function
/frameworks/native/libs/binder/include/binder/
Dunique_fd.h26 using android::base::borrowed_fd;
104 struct LIBBINDER_EXPORTED borrowed_fd { struct
105 /* implicit */ borrowed_fd(int fd) : fd_(fd) {} // NOLINT in borrowed_fd() function
106 /* implicit */ borrowed_fd(const unique_fd& ufd) : fd_(ufd.get()) {} // NOLINT in borrowed_fd() function
DRpcTransport.h91 const std::vector<std::variant<binder::unique_fd, binder::borrowed_fd>>*
96 std::vector<std::variant<binder::unique_fd, binder::borrowed_fd>>* ancillaryFds) = 0;
DRpcServer.h201 std::function<void(binder::borrowed_fd)>&& modifier);
287 std::function<void(binder::borrowed_fd)> mServerSocketModifier;
/frameworks/native/libs/binder/trusty/
DOS.cpp34 using android::binder::borrowed_fd;
53 status_t setNonBlocking(borrowed_fd /*fd*/) { in setNonBlocking() argument
84 const std::vector<std::variant<unique_fd, borrowed_fd>>* /* ancillaryFds */) { in sendMessageOnSocket() argument
91 std::vector<std::variant<unique_fd, borrowed_fd>>* /* ancillaryFds */) { in receiveMessageFromSocket() argument
DRpcTransportTipcTrusty.cpp33 using android::binder::borrowed_fd;
53 const std::vector<std::variant<unique_fd, borrowed_fd>>* ancillaryFds) override { in interruptableWriteFully()
122 std::vector<std::variant<unique_fd, borrowed_fd>>* ancillaryFds) override { in interruptableReadFully()
/frameworks/native/libs/binder/
DOS.h31 status_t setNonBlocking(borrowed_fd fd);
41 const std::vector<std::variant<unique_fd, borrowed_fd>>* ancillaryFds);
45 std::vector<std::variant<unique_fd, borrowed_fd>>* ancillaryFds);
Dfile.h36 bool ReadFully(borrowed_fd fd, void* data, size_t byte_count);
37 bool WriteFully(borrowed_fd fd, const void* data, size_t byte_count);
DRpcState.h195 const std::vector<std::variant<binder::unique_fd, binder::borrowed_fd>>* ancillaryFds =
200 std::vector<std::variant<binder::unique_fd, binder::borrowed_fd>>*
208 std::vector<std::variant<binder::unique_fd, binder::borrowed_fd>>&& ancillaryFds);
212 std::vector<std::variant<binder::unique_fd, binder::borrowed_fd>>&& ancillaryFds);
216 std::vector<std::variant<binder::unique_fd, binder::borrowed_fd>>&& ancillaryFds);
258 std::vector<std::variant<binder::unique_fd, binder::borrowed_fd>> ancillaryFds;
Dfile.cpp29 bool ReadFully(borrowed_fd fd, void* data, size_t byte_count) { in ReadFully()
45 bool WriteFully(borrowed_fd fd, const void* data, size_t byte_count) { in WriteFully()
DRpcTransportRaw.cpp34 using android::binder::borrowed_fd;
63 const std::vector<std::variant<unique_fd, borrowed_fd>>* ancillaryFds) override { in interruptableWriteFully()
78 std::vector<std::variant<unique_fd, borrowed_fd>>* ancillaryFds) override { in interruptableReadFully()
DRpcTransportTls.cpp46 using android::binder::borrowed_fd;
62 borrowed_fd fd(static_cast<int>(reinterpret_cast<intptr_t>(BIO_get_data(bio)))); in socketRead()
72 borrowed_fd fd(static_cast<int>(reinterpret_cast<intptr_t>(BIO_get_data(bio)))); in socketWrite()
82 borrowed_fd fd(static_cast<int>(reinterpret_cast<intptr_t>(BIO_get_data(bio)))); in socketCtrl()
88 bssl::UniquePtr<BIO> newSocketBio(borrowed_fd fd) { in newSocketBio()
295 const std::vector<std::variant<unique_fd, borrowed_fd>>* ancillaryFds) override;
299 std::vector<std::variant<unique_fd, borrowed_fd>>* ancillaryFds) override;
330 const std::vector<std::variant<unique_fd, borrowed_fd>>* ancillaryFds) { in interruptableWriteFully()
376 std::vector<std::variant<unique_fd, borrowed_fd>>* ancillaryFds) { in interruptableReadFully()
DOS_unix_base.cpp33 status_t setNonBlocking(borrowed_fd fd) { in setNonBlocking()
73 const std::vector<std::variant<unique_fd, borrowed_fd>>* ancillaryFds) { in sendMessageOnSocket()
117 std::vector<std::variant<unique_fd, borrowed_fd>>* ancillaryFds) { in receiveMessageFromSocket()
DRpcTransportTipcAndroid.cpp30 using android::binder::borrowed_fd;
80 const std::vector<std::variant<unique_fd, borrowed_fd>>* ancillaryFds) override { in interruptableWriteFully()
97 std::vector<std::variant<unique_fd, borrowed_fd>>* /*ancillaryFds*/) override { in interruptableReadFully() argument
/frameworks/native/libs/binder/tests/
DFileUtils.h42 bool ReadFdToString(borrowed_fd fd, std::string* content);
43 bool WriteStringToFd(std::string_view content, borrowed_fd fd);
DFileUtils.cpp34 bool ReadFdToString(borrowed_fd fd, std::string* content) { in ReadFdToString()
53 bool WriteStringToFd(std::string_view content, borrowed_fd fd) { in WriteStringToFd()
DbinderRpcTestCommon.h179 static inline void writeString(binder::borrowed_fd fd, std::string_view str) { in writeString()
185 static inline std::string readString(binder::borrowed_fd fd) { in readString()
193 static inline void writeToFd(binder::borrowed_fd fd, const Parcelable& parcelable) { in writeToFd()
200 static inline T readFromFd(binder::borrowed_fd fd) { in readFromFd()
/frameworks/native/libs/binder/tests/parcel_fuzzer/
Drandom_parcel_seeds.cpp30 using android::binder::borrowed_fd;
90 void writeRandomBinder(borrowed_fd fd, vector<uint8_t>& fillParcelBuffer, in writeRandomBinder()
145 void writeParcelData(borrowed_fd fd, vector<uint8_t>& fillParcelBuffer, in writeParcelData()
169 size_t regenerateParcel(borrowed_fd fd, vector<uint8_t>& fillParcelBuffer, const Parcel& p, in regenerateParcel()
235 void generateSeedsFromRecording(borrowed_fd fd, in generateSeedsFromRecording()
/frameworks/native/libs/renderengine/skia/
DSkiaGLRenderEngine.h65 void waitFence(SkiaGpuContext* context, base::borrowed_fd fenceFd) override;
73 bool waitGpuFence(base::borrowed_fd fenceFd);
DGaneshVkRenderEngine.h29 void waitFence(SkiaGpuContext* context, base::borrowed_fd fenceFd) override;
DGraphiteVkRenderEngine.h31 void waitFence(SkiaGpuContext* context, base::borrowed_fd fenceFd) override;
/frameworks/native/libs/binder/tests/parcel_fuzzer/include_random_parcel_seeds/fuzzseeds/
Drandom_parcel_seeds.h44 void generateSeedsFromRecording(binder::borrowed_fd fd,
/frameworks/base/cmds/idmap2/include/idmap2/
DFabricatedOverlay.h53 std::optional<android::base::borrowed_fd>&& binary_value,
72 std::optional<android::base::borrowed_fd> data_binary_value;
DResourceUtils.h45 std::optional<android::base::borrowed_fd> data_binary_value;
/frameworks/native/cmds/lshal/
DPipeRelay.h44 android::base::borrowed_fd fd() const { return mWrite; } in fd()

123