Home
last modified time | relevance | path

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

123

/aosp12/frameworks/native/libs/binder/ndk/include_cpp/android/
H A Dbinder_auto_utils.h362 ScopedFileDescriptor() : ScopedFileDescriptor(-1) {} in ScopedFileDescriptor() function
363 explicit ScopedFileDescriptor(int a) : ScopedAResource(a) {} in ScopedFileDescriptor() function
364 ~ScopedFileDescriptor() {} in ~ScopedFileDescriptor()
365 ScopedFileDescriptor(ScopedFileDescriptor&&) = default;
366 ScopedFileDescriptor& operator=(ScopedFileDescriptor&&) = default;
368 bool operator!=(const ScopedFileDescriptor& rhs) const { return get() != rhs.get(); }
369 bool operator<(const ScopedFileDescriptor& rhs) const { return get() < rhs.get(); }
370 bool operator<=(const ScopedFileDescriptor& rhs) const { return get() <= rhs.get(); }
371 bool operator==(const ScopedFileDescriptor& rhs) const { return get() == rhs.get(); }
372 bool operator>(const ScopedFileDescriptor& rhs) const { return get() > rhs.get(); }
[all …]
H A Dbinder_parcel_utils.h210 AParcel* parcel, const ScopedFileDescriptor& fd) { in AParcel_writeNullableParcelFileDescriptor()
218 ScopedFileDescriptor* fd) { in AParcel_readNullableParcelFileDescriptor()
231 AParcel* parcel, const ScopedFileDescriptor& fd) { in AParcel_writeRequiredParcelFileDescriptor()
243 ScopedFileDescriptor* fd) { in AParcel_readRequiredParcelFileDescriptor()
515 inline binder_status_t AParcel_writeStdVectorParcelableElement<ScopedFileDescriptor>(
517 const std::vector<ScopedFileDescriptor>* vector =
518 static_cast<const std::vector<ScopedFileDescriptor>*>(vectorData);
531 inline binder_status_t AParcel_readStdVectorParcelableElement<ScopedFileDescriptor>(
533 std::vector<ScopedFileDescriptor>* vector =
534 static_cast<std::vector<ScopedFileDescriptor>*>(vectorData);
/aosp12/hardware/interfaces/neuralnetworks/aidl/vts/functional/
H A DCompilationCachingTests.cpp76 std::vector<ndk::ScopedFileDescriptor>* fds) { in createCacheFds()
97 std::vector<ndk::ScopedFileDescriptor>* fds) { in createCacheFds()
491 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P()
501 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P()
532 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P()
553 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P()
592 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P()
609 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P()
627 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P()
644 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P()
[all …]
/aosp12/hardware/interfaces/neuralnetworks/aidl/utils/include/nnapi/hal/aidl/
H A DInvalidDevice.h52 const std::vector<ndk::ScopedFileDescriptor>& modelCache,
53 const std::vector<ndk::ScopedFileDescriptor>& dataCache,
57 int64_t deadline, const std::vector<ndk::ScopedFileDescriptor>& modelCache,
58 const std::vector<ndk::ScopedFileDescriptor>& dataCache,
H A DConversions.h100 GeneralResult<SyncFence> unvalidatedConvert(const ndk::ScopedFileDescriptor& syncFence);
116 GeneralResult<SyncFence> convert(const ndk::ScopedFileDescriptor& syncFence);
162 nn::GeneralResult<ndk::ScopedFileDescriptor> unvalidatedConvert(const nn::SyncFence& syncFence);
164 nn::GeneralResult<ndk::ScopedFileDescriptor> unvalidatedConvertCache(
183 nn::GeneralResult<std::vector<ndk::ScopedFileDescriptor>> convert(
185 nn::GeneralResult<std::vector<ndk::ScopedFileDescriptor>> convert(
/aosp12/hardware/interfaces/neuralnetworks/aidl/utils/test/
H A DMockDevice.h48 int64_t deadline, const std::vector<ndk::ScopedFileDescriptor>& modelCache,
49 const std::vector<ndk::ScopedFileDescriptor>& dataCache,
54 (int64_t deadline, const std::vector<ndk::ScopedFileDescriptor>& modelCache,
55 const std::vector<ndk::ScopedFileDescriptor>& dataCache,
/aosp12/packages/modules/NeuralNetworks/shim_and_sl/include/
H A DShimDevice.h57 int64_t deadlineNs, const std::vector<::ndk::ScopedFileDescriptor>& modelCache,
58 const std::vector<::ndk::ScopedFileDescriptor>& dataCache,
62 int64_t deadlineNs, const std::vector<::ndk::ScopedFileDescriptor>& modelCache,
63 const std::vector<::ndk::ScopedFileDescriptor>& dataCache,
/aosp12/hardware/interfaces/neuralnetworks/aidl/utils/src/
H A 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()
H A 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()
171 int64_t /*deadline*/, const std::vector<ndk::ScopedFileDescriptor>& /*modelCache*/, in prepareModelFromCache() argument
172 const std::vector<ndk::ScopedFileDescriptor>& /*dataCache*/, in prepareModelFromCache()
H A DConversions.cpp510 GeneralResult<SyncFence> unvalidatedConvert(const ndk::ScopedFileDescriptor& syncFence) { in unvalidatedConvert()
556 GeneralResult<SyncFence> convert(const ndk::ScopedFileDescriptor& syncFence) { in convert()
645 [](const ndk::ScopedFileDescriptor& fd) { return fd.get() >= 0; })) { in aidlHandleFromNativeHandle()
664 .fd = ndk::ScopedFileDescriptor(fd.release()), in unvalidatedConvert()
690 .fd = ndk::ScopedFileDescriptor(fd.release()), in unvalidatedConvert()
997 return ndk::ScopedFileDescriptor(duplicatedFd.release()); in unvalidatedConvert()
1000 nn::GeneralResult<ndk::ScopedFileDescriptor> unvalidatedConvertCache( in unvalidatedConvertCache()
1010 return ndk::ScopedFileDescriptor(duplicatedFd.release()); in unvalidatedConvertCache()
1070 nn::GeneralResult<std::vector<ndk::ScopedFileDescriptor>> convert( in convert()
1076 std::vector<ndk::ScopedFileDescriptor> cacheFds; in convert()
[all …]
/aosp12/system/tools/aidl/tests/golden_output/aidl_test_loggable_interface-ndk-source/gen/include/aidl/android/aidl/loggable/
H A DILoggableInterface.h35 …dk::SpAIBinder& in_binderValue, ::ndk::ScopedFileDescriptor* in_pfdValue, std::vector<::ndk::Scope…
41 …dk::SpAIBinder& in_binderValue, ::ndk::ScopedFileDescriptor* in_pfdValue, std::vector<::ndk::Scope…
H A DBpLoggableInterface.h20 …dk::SpAIBinder& in_binderValue, ::ndk::ScopedFileDescriptor* in_pfdValue, std::vector<::ndk::Scope…
/aosp12/system/tools/aidl/tests/golden_output/aidl_test_loggable_interface-ndk_platform-source/gen/include/aidl/android/aidl/loggable/
H A DILoggableInterface.h35 …dk::SpAIBinder& in_binderValue, ::ndk::ScopedFileDescriptor* in_pfdValue, std::vector<::ndk::Scope…
41 …dk::SpAIBinder& in_binderValue, ::ndk::ScopedFileDescriptor* in_pfdValue, std::vector<::ndk::Scope…
H A DBpLoggableInterface.h20 …dk::SpAIBinder& in_binderValue, ::ndk::ScopedFileDescriptor* in_pfdValue, std::vector<::ndk::Scope…
/aosp12/packages/modules/NeuralNetworks/driver/sample_aidl/
H A DSampleDriver.h82 const std::vector<ndk::ScopedFileDescriptor>& modelCache,
83 const std::vector<ndk::ScopedFileDescriptor>& dataCache,
87 int64_t deadlineNs, const std::vector<ndk::ScopedFileDescriptor>& modelCache,
88 const std::vector<ndk::ScopedFileDescriptor>& dataCache,
123 const std::vector<ndk::ScopedFileDescriptor>& waitFor,
H A DSampleDriverPartial.h46 const std::vector<ndk::ScopedFileDescriptor>& modelCache,
47 const std::vector<ndk::ScopedFileDescriptor>& dataCache,
H A DSampleDriverPartial.cpp52 const std::vector<ndk::ScopedFileDescriptor>&, in prepareModel() argument
53 const std::vector<ndk::ScopedFileDescriptor>&, const std::vector<uint8_t>&, in prepareModel()
/aosp12/system/tools/aidl/tests/golden_output/aidl-test-interface-ndk_platform-source/gen/android/aidl/tests/
H A DUnionWithFd.cpp27 ::ndk::ScopedFileDescriptor _aidl_value; in readFromParcel()
29 if constexpr (std::is_trivially_copyable_v<::ndk::ScopedFileDescriptor>) { in readFromParcel()
/aosp12/frameworks/av/media/libmediatranscoding/include/media/
H A DTranscodingRequest.h48 sourceFd = ndk::ScopedFileDescriptor(dup(parcel.sourceFd.get())); in setTo()
50 destinationFd = ndk::ScopedFileDescriptor(dup(parcel.destinationFd.get())); in setTo()
/aosp12/system/tools/aidl/tests/golden_output/aidl-test-interface-ndk_platform-source/gen/include/aidl/android/aidl/tests/
H A DBpTestService.h44 …Status RepeatParcelFileDescriptor(const ::ndk::ScopedFileDescriptor& in_read, ::ndk::ScopedFileDes…
45 …ctor<::ndk::ScopedFileDescriptor>& in_input, std::vector<::ndk::ScopedFileDescriptor>* out_repeate…
H A DITestService.h193 …Status RepeatParcelFileDescriptor(const ::ndk::ScopedFileDescriptor& in_read, ::ndk::ScopedFileDes…
194 …ctor<::ndk::ScopedFileDescriptor>& in_input, std::vector<::ndk::ScopedFileDescriptor>* out_repeate…
249 …Status RepeatParcelFileDescriptor(const ::ndk::ScopedFileDescriptor& in_read, ::ndk::ScopedFileDes…
250 …ctor<::ndk::ScopedFileDescriptor>& in_input, std::vector<::ndk::ScopedFileDescriptor>* out_repeate…
/aosp12/frameworks/native/libs/binder/tests/parcel_fuzzer/
H A Dbinder_ndk.cpp90 PARCEL_READ(ndk::ScopedFileDescriptor, ndk::AParcel_readNullableParcelFileDescriptor),
91 PARCEL_READ(ndk::ScopedFileDescriptor, ndk::AParcel_readRequiredParcelFileDescriptor),
/aosp12/system/libfmq/include/fmq/
H A DConvertMQDescriptors.h92 std::vector<ndk::ScopedFileDescriptor> fds; in unsafeHidlToAidlMQDescriptor()
96 fds.push_back(ndk::ScopedFileDescriptor(dup(hidlDesc.handle()->data[data_index]))); in unsafeHidlToAidlMQDescriptor()
/aosp12/system/tools/aidl/tests/
H A Daidl_test_client_ndk_loggable_interface.cpp87 ndk::ScopedFileDescriptor pfdValue; in TEST_F()
88 vector<ndk::ScopedFileDescriptor> pfdArray; in TEST_F()
/aosp12/hardware/interfaces/common/support/
H A Dtest.cpp23 using ndk::ScopedFileDescriptor;
55 .fds = std::vector<ScopedFileDescriptor>(2), in makeTestAidlHandle()

123