Home
last modified time | relevance | path

Searched refs:ScopedFileDescriptor (Results 1 – 25 of 52) sorted by relevance

123

/hardware/interfaces/neuralnetworks/aidl/vts/functional/
DCompilationCachingTests.cpp74 std::vector<ndk::ScopedFileDescriptor>* fds) { in createCacheFds()
95 std::vector<ndk::ScopedFileDescriptor>* fds) { in createCacheFds()
259 std::vector<ndk::ScopedFileDescriptor> modelHandle, dataHandle, tmpHandle; in SetUp()
319 const std::vector<ndk::ScopedFileDescriptor>& modelCache, in saveModelToCache()
320 const std::vector<ndk::ScopedFileDescriptor>& dataCache, in saveModelToCache()
371 void prepareModelFromCache(const std::vector<ndk::ScopedFileDescriptor>& modelCache, in prepareModelFromCache()
372 const std::vector<ndk::ScopedFileDescriptor>& dataCache, in prepareModelFromCache()
419 void verifyModelPreparationBehaviour(const std::vector<ndk::ScopedFileDescriptor>& modelCache, in verifyModelPreparationBehaviour()
420 const std::vector<ndk::ScopedFileDescriptor>& dataCache, in verifyModelPreparationBehaviour()
493 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P()
[all …]
/hardware/interfaces/tetheroffload/aidl/default/
DOffload.h38 const ndk::ScopedFileDescriptor& in_fd1, const ndk::ScopedFileDescriptor& in_fd2,
65 ndk::ScopedFileDescriptor mFd1;
66 ndk::ScopedFileDescriptor mFd2;
DOffload.cpp58 ndk::ScopedAStatus Offload::initOffload(const ndk::ScopedFileDescriptor& in_fd1, in initOffload()
59 const ndk::ScopedFileDescriptor& in_fd2, in initOffload()
74 mFd1 = ndk::ScopedFileDescriptor(dup(fd1)); in initOffload()
75 mFd2 = ndk::ScopedFileDescriptor(dup(fd2)); in initOffload()
/hardware/interfaces/neuralnetworks/aidl/utils/test/
DMockDevice.h48 int64_t deadline, const std::vector<ndk::ScopedFileDescriptor>& modelCache,
49 const std::vector<ndk::ScopedFileDescriptor>& dataCache,
58 (int64_t deadline, const std::vector<ndk::ScopedFileDescriptor>& modelCache,
59 const std::vector<ndk::ScopedFileDescriptor>& dataCache,
DMockPreparedModel.h37 (const Request& request, const std::vector<ndk::ScopedFileDescriptor>& waitFor,
46 (const Request& request, const std::vector<ndk::ScopedFileDescriptor>& waitFor,
DMockExecution.h34 (const std::vector<ndk::ScopedFileDescriptor>& waitFor, int64_t deadline,
/hardware/interfaces/neuralnetworks/utils/adapter/aidl/include/nnapi/hal/aidl/
DDevice.h67 int64_t deadlineNs, const std::vector<ndk::ScopedFileDescriptor>& modelCache,
68 const std::vector<ndk::ScopedFileDescriptor>& dataCache,
72 int64_t deadlineNs, const std::vector<ndk::ScopedFileDescriptor>& modelCache,
73 const std::vector<ndk::ScopedFileDescriptor>& dataCache,
DPreparedModel.h49 const std::vector<ndk::ScopedFileDescriptor>& waitFor,
62 const Request& request, const std::vector<ndk::ScopedFileDescriptor>& waitFor,
DExecution.h46 ndk::ScopedAStatus executeFenced(const std::vector<ndk::ScopedFileDescriptor>& waitFor,
/hardware/interfaces/neuralnetworks/aidl/utils/include/nnapi/hal/aidl/
DInvalidDevice.h52 const std::vector<ndk::ScopedFileDescriptor>& modelCache,
53 const std::vector<ndk::ScopedFileDescriptor>& dataCache,
60 int64_t deadline, const std::vector<ndk::ScopedFileDescriptor>& modelCache,
61 const std::vector<ndk::ScopedFileDescriptor>& dataCache,
DConversions.h103 GeneralResult<SharedHandle> unvalidatedConvert(const ndk::ScopedFileDescriptor& handle);
123 GeneralResult<SharedHandle> convert(const ndk::ScopedFileDescriptor& handle);
139 const std::vector<ndk::ScopedFileDescriptor>& handles);
181 nn::GeneralResult<ndk::ScopedFileDescriptor> unvalidatedConvert(const nn::SyncFence& syncFence);
182 nn::GeneralResult<ndk::ScopedFileDescriptor> unvalidatedConvert(const nn::SharedHandle& handle);
209 nn::GeneralResult<std::vector<ndk::ScopedFileDescriptor>> convert(
211 nn::GeneralResult<std::vector<ndk::ScopedFileDescriptor>> convert(
/hardware/interfaces/neuralnetworks/aidl/utils/src/
DUtils.cpp30 nn::GeneralResult<ndk::ScopedFileDescriptor> clone(const ndk::ScopedFileDescriptor& fd);
48 nn::GeneralResult<ndk::ScopedFileDescriptor> clone(const ndk::ScopedFileDescriptor& fd) { in clone()
50 return ndk::ScopedFileDescriptor(duplicatedFd.release()); in clone()
DInvalidDevice.cpp126 const std::vector<ndk::ScopedFileDescriptor>& modelCache, in prepareModel()
127 const std::vector<ndk::ScopedFileDescriptor>& dataCache, const std::vector<uint8_t>& token, in prepareModel()
197 int64_t /*deadline*/, const std::vector<ndk::ScopedFileDescriptor>& /*modelCache*/, in prepareModelFromCache() argument
198 const std::vector<ndk::ScopedFileDescriptor>& /*dataCache*/, in prepareModelFromCache()
DConversions.cpp533 GeneralResult<SharedHandle> unvalidatedConvert(const ndk::ScopedFileDescriptor& handle) { in unvalidatedConvert()
585 GeneralResult<SharedHandle> convert(const ndk::ScopedFileDescriptor& handle) { in convert()
618 const std::vector<ndk::ScopedFileDescriptor>& handles) { in convert()
653 [](const ndk::ScopedFileDescriptor& fd) { return fd.get() >= 0; })) { in aidlHandleFromNativeHandle()
673 .fd = ndk::ScopedFileDescriptor(fd.release()), in unvalidatedConvert()
699 .fd = ndk::ScopedFileDescriptor(fd.release()), in unvalidatedConvert()
1115 nn::GeneralResult<ndk::ScopedFileDescriptor> unvalidatedConvert(const nn::SyncFence& syncFence) { in unvalidatedConvert()
1117 return ndk::ScopedFileDescriptor(duplicatedFd.release()); in unvalidatedConvert()
1120 nn::GeneralResult<ndk::ScopedFileDescriptor> unvalidatedConvert(const nn::SharedHandle& handle) { in unvalidatedConvert()
1122 return ndk::ScopedFileDescriptor(duplicatedFd.release()); in unvalidatedConvert()
[all …]
/hardware/interfaces/tetheroffload/aidl/vts/functional/
DVtsHalTetheroffloadTargetTest.cpp157 ndk::ScopedFileDescriptor fd1 = ndk::ScopedFileDescriptor(ufd1.release()); in initOffload()
163 ndk::ScopedFileDescriptor fd2 = ndk::ScopedFileDescriptor(ufd2.release()); in initOffload()
201 ndk::ScopedFileDescriptor fd1 = ndk::ScopedFileDescriptor(-1); in TEST_P()
202 ndk::ScopedFileDescriptor fd2 = ndk::ScopedFileDescriptor(-1); in TEST_P()
212 ndk::ScopedFileDescriptor fd1 = ndk::ScopedFileDescriptor(-1); in TEST_P()
217 ndk::ScopedFileDescriptor fd2 = ndk::ScopedFileDescriptor(ufd2.release()); in TEST_P()
231 ndk::ScopedFileDescriptor fd1 = ndk::ScopedFileDescriptor(ufd1.release()); in TEST_P()
232 ndk::ScopedFileDescriptor fd2 = ndk::ScopedFileDescriptor(-1); in TEST_P()
/hardware/interfaces/dumpstate/aidl/vts/functional/
DVtsHalDumpstateTargetTest.cpp128 std::vector<::ndk::ScopedFileDescriptor> dumpstateFds; // empty file descriptor vector in TEST_P()
142 std::vector<::ndk::ScopedFileDescriptor> dumpstateFds; in TEST_P()
166 std::vector<::ndk::ScopedFileDescriptor> dumpstateFds; in TEST_P()
194 std::vector<::ndk::ScopedFileDescriptor> dumpstateFds; in TEST_P()
212 std::vector<::ndk::ScopedFileDescriptor> dumpstateFds; in TEST_P()
233 std::vector<::ndk::ScopedFileDescriptor> dumpstateFds; in TEST_P()
/hardware/interfaces/neuralnetworks/utils/adapter/aidl/src/
DPreparedModel.cpp85 const std::vector<ndk::ScopedFileDescriptor>& waitFor) { in convertSyncFences()
152 const std::vector<ndk::ScopedFileDescriptor>& waitFor, bool measureTiming, in executeFenced()
169 ndk::ScopedFileDescriptor fileDescriptor; in executeFenced()
172 fileDescriptor = ndk::ScopedFileDescriptor(uniqueFd.release()); in executeFenced()
215 const nn::IExecution& execution, const std::vector<ndk::ScopedFileDescriptor>& waitFor, in executeFenced()
224 ndk::ScopedFileDescriptor fileDescriptor; in executeFenced()
227 fileDescriptor = ndk::ScopedFileDescriptor(uniqueFd.release()); in executeFenced()
259 const Request& request, const std::vector<ndk::ScopedFileDescriptor>& waitFor, in executeFenced()
292 const Request& request, const std::vector<ndk::ScopedFileDescriptor>& waitFor, in executeFencedWithConfig()
357 ndk::ScopedAStatus Execution::executeFenced(const std::vector<ndk::ScopedFileDescriptor>& waitFor, in executeFenced()
DDevice.cpp164 const std::vector<ndk::ScopedFileDescriptor>& modelCache, in prepareModel()
165 const std::vector<ndk::ScopedFileDescriptor>& dataCache, const std::vector<uint8_t>& token, in prepareModel()
199 const std::vector<ndk::ScopedFileDescriptor>& modelCache, in prepareModelFromCache()
200 const std::vector<ndk::ScopedFileDescriptor>& dataCache, const std::vector<uint8_t>& token, in prepareModelFromCache()
287 const std::vector<ndk::ScopedFileDescriptor>& modelCache, in prepareModel()
288 const std::vector<ndk::ScopedFileDescriptor>& dataCache, in prepareModel()
305 int64_t deadlineNs, const std::vector<ndk::ScopedFileDescriptor>& modelCache, in prepareModelFromCache()
306 const std::vector<ndk::ScopedFileDescriptor>& dataCache, const std::vector<uint8_t>& token, in prepareModelFromCache()
/hardware/google/graphics/common/hwc3/impl/
DTranslateHwcAidl.h65 inline void translate(const int32_t& fd, ndk::ScopedFileDescriptor& sfd) { in translate()
67 sfd = ndk::ScopedFileDescriptor(fd); in translate()
158 inline void translate(const ndk::ScopedFileDescriptor& in, int32_t& out) { in translate()
160 auto& sfd = const_cast<ndk::ScopedFileDescriptor&>(in); in translate()
DHalImpl.h94 ndk::ScopedFileDescriptor* acquireFence) override;
98 int32_t presentDisplay(int64_t display, ndk::ScopedFileDescriptor& fence,
100 std::vector<ndk::ScopedFileDescriptor>* outReleaseFences) override;
113 const ndk::ScopedFileDescriptor& fence, common::Dataspace dataspace,
125 const ndk::ScopedFileDescriptor& acquireFence) override;
160 const ndk::ScopedFileDescriptor& releaseFence) override;
164 const ndk::ScopedFileDescriptor& releaseFence) override;
/hardware/google/graphics/common/hwc3/include/
DIComposerHal.h166 ndk::ScopedFileDescriptor* aqcuireFence) = 0;
170 virtual int32_t presentDisplay(int64_t display, ndk::ScopedFileDescriptor& fence,
172 std::vector<ndk::ScopedFileDescriptor>* outReleaseFences) = 0;
186 const ndk::ScopedFileDescriptor& fence,
199 const ndk::ScopedFileDescriptor& acquireFence) = 0;
231 const ndk::ScopedFileDescriptor& releaseFence) = 0;
235 const ndk::ScopedFileDescriptor& releaseFence) = 0;
/hardware/interfaces/dumpstate/aidl/default/
DDumpstate.h34 ::ndk::ScopedAStatus dumpstateBoard(const std::vector<::ndk::ScopedFileDescriptor>& in_fds,
/hardware/interfaces/graphics/composer/aidl/include/android/hardware/graphics/composer3/
DComposerServiceWriter.h81 void setPresentFence(int64_t display, ::ndk::ScopedFileDescriptor presentFence) { in setPresentFence()
93 std::vector<::ndk::ScopedFileDescriptor> releaseFences) { in setReleaseFences()
/hardware/interfaces/common/support/
Dtest.cpp23 using ndk::ScopedFileDescriptor;
55 .fds = std::vector<ScopedFileDescriptor>(2), in makeTestAidlHandle()
/hardware/interfaces/automotive/vehicle/aidl/impl/vhal/test/
DMockVehicleCallback.cpp35 using ::ndk::ScopedFileDescriptor;
44 resultsCopy.sharedMemoryFd = ScopedFileDescriptor(dup(fd)); in storeResults()

123