Home
last modified time | relevance | path

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

/packages/modules/Virtualization/demo_native/
Dmain.cpp50 using ndk::ScopedFileDescriptor;
137 Result<ScopedFileDescriptor> open_file(const std::string& path, int flags) { in open_file()
142 return ScopedFileDescriptor(fd); in open_file()
147 Result<ScopedFileDescriptor> create_or_update_idsig_file(IVirtualizationService& service, in create_or_update_idsig_file()
149 ScopedFileDescriptor& main_apk) { in create_or_update_idsig_file()
151 ScopedFileDescriptor idsig = OR_RETURN(open_file(path, O_CREAT | O_RDWR)); in create_or_update_idsig_file()
161 Result<ScopedFileDescriptor> create_instance_image_file_if_needed(IVirtualizationService& service, in create_instance_image_file_if_needed()
171 ScopedFileDescriptor instance = OR_RETURN(open_file(path, O_CREAT | O_RDWR)); in create_instance_image_file_if_needed()
187 ScopedFileDescriptor main_apk = OR_RETURN(open_file(main_apk_path, O_RDONLY)); in create_vm_config()
188 ScopedFileDescriptor idsig = in create_vm_config()
[all …]
/packages/services/Car/cpp/car_binder_lib/largeParcelable/include/
DLargeParcelableBase.h97 static ::android::base::Result<std::unique_ptr<::ndk::ScopedFileDescriptor>>
99 std::unique_ptr<::ndk::ScopedFileDescriptor> sharedMemoryFd = in parcelableToStableLargeParcelable()
100 std::make_unique<::ndk::ScopedFileDescriptor>(); in parcelableToStableLargeParcelable()
128 const ::ndk::ScopedFileDescriptor& sharedMemoryFd = in.sharedMemoryFd; in stableLargeParcelableToParcelable()
176 static binder_status_t getParcelFromMemoryFile(const ::ndk::ScopedFileDescriptor& fd,
180 ::ndk::ScopedFileDescriptor* sharedMemoryFd);
200 static ::android::base::borrowed_fd scopedFdToBorrowedFd(const ::ndk::ScopedFileDescriptor& fd);
204 static ::android::base::unique_fd scopeFdToUniqueFd(::ndk::ScopedFileDescriptor&& fd);
/packages/modules/NeuralNetworks/shim_and_sl/include/
DShimDevice.h57 int64_t deadlineNs, const std::vector<::ndk::ScopedFileDescriptor>& modelCache,
58 const std::vector<::ndk::ScopedFileDescriptor>& dataCache,
65 int64_t deadlineNs, const std::vector<::ndk::ScopedFileDescriptor>& modelCache,
66 const std::vector<::ndk::ScopedFileDescriptor>& dataCache,
73 int64_t deadlineNs, const std::vector<::ndk::ScopedFileDescriptor>& modelCache,
74 const std::vector<::ndk::ScopedFileDescriptor>& dataCache,
DShimPreparedModel.h53 const std::vector<::ndk::ScopedFileDescriptor>& waitFor,
62 const Request& request, const std::vector<ndk::ScopedFileDescriptor>& waitFor,
90 const Request& request, const std::vector<::ndk::ScopedFileDescriptor>& waitFor,
/packages/modules/NeuralNetworks/driver/sample_aidl/
DSampleDriverAidl.h82 const std::vector<ndk::ScopedFileDescriptor>& modelCache,
83 const std::vector<ndk::ScopedFileDescriptor>& dataCache,
90 int64_t deadlineNs, const std::vector<ndk::ScopedFileDescriptor>& modelCache,
91 const std::vector<ndk::ScopedFileDescriptor>& dataCache,
122 const std::vector<ndk::ScopedFileDescriptor>& waitFor,
130 const aidl_hal::Request& request, const std::vector<ndk::ScopedFileDescriptor>& waitFor,
205 ndk::ScopedAStatus executeFenced(const std::vector<ndk::ScopedFileDescriptor>& waitFor,
DSampleDriverAidlPartial.h46 const std::vector<ndk::ScopedFileDescriptor>& modelCache,
47 const std::vector<ndk::ScopedFileDescriptor>& dataCache,
DSampleDriverAidlPartial.cpp52 const std::vector<ndk::ScopedFileDescriptor>&, in prepareModel() argument
53 const std::vector<ndk::ScopedFileDescriptor>&, const std::vector<uint8_t>&, in prepareModel()
DSampleDriverAidl.cpp107 const std::vector<ndk::ScopedFileDescriptor>& /*modelCache*/, in prepareModel() argument
108 const std::vector<ndk::ScopedFileDescriptor>& /*dataCache*/, in prepareModel()
133 int64_t /*deadlineNs*/, const std::vector<ndk::ScopedFileDescriptor>& /*modelCache*/, in prepareModelFromCache() argument
134 const std::vector<ndk::ScopedFileDescriptor>& /*dataCache*/, in prepareModelFromCache()
485 const aidl_hal::Request& halRequest, const std::vector<ndk::ScopedFileDescriptor>& waitFor, in executeFenced()
600 executionResult->syncFence = ndk::ScopedFileDescriptor(); in executeFenced()
611 const aidl_hal::Request& request, const std::vector<ndk::ScopedFileDescriptor>& waitFor, in executeFencedWithConfig()
709 const std::vector<ndk::ScopedFileDescriptor>& waitFor, int64_t deadlineNs, in executeFenced()
/packages/services/Car/cpp/car_binder_lib/largeParcelable/
DLargeParcelableBase.cpp48 using ::ndk::ScopedFileDescriptor;
50 borrowed_fd LargeParcelableBase::scopedFdToBorrowedFd(const ScopedFileDescriptor& fd) { in scopedFdToBorrowedFd()
55 unique_fd LargeParcelableBase::scopeFdToUniqueFd(ScopedFileDescriptor&& fd) { in scopeFdToUniqueFd()
79 ScopedFileDescriptor descriptor; in readFromParcel()
234 ScopedFileDescriptor descriptor; in writeSharedMemoryCompatibleToParcel()
307 binder_status_t LargeParcelableBase::getParcelFromMemoryFile(const ScopedFileDescriptor& fd, in getParcelFromMemoryFile()
323 ScopedFileDescriptor* sharedMemoryFd) { in parcelToMemoryFile()
/packages/modules/Virtualization/libs/android_display_backend/
Dcrosvm_android_display_client.cpp74 ndk::ScopedFileDescriptor& getCursorStream() { return mCursorStream; } in getCursorStream()
75 ndk::ScopedAStatus setCursorStream(const ndk::ScopedFileDescriptor& in_stream) { in setCursorStream()
76 mCursorStream = ndk::ScopedFileDescriptor(dup(in_stream.get())); in setCursorStream()
85 ndk::ScopedFileDescriptor mCursorStream;
/packages/modules/NeuralNetworks/shim_and_sl/
DShimDevice.cpp519 static std::vector<int> getIntFds(const std::vector<::ndk::ScopedFileDescriptor>& scopedFds) { in getIntFds()
530 const std::vector<::ndk::ScopedFileDescriptor>& modelCache, in prepareModelCommon()
531 const std::vector<::ndk::ScopedFileDescriptor>& dataCache, in prepareModelCommon()
629 const std::vector<::ndk::ScopedFileDescriptor>& modelCache, in prepareModel()
630 const std::vector<::ndk::ScopedFileDescriptor>& dataCache, in prepareModel()
646 int64_t /*deadlineNs*/, const std::vector<::ndk::ScopedFileDescriptor>& /*modelCache*/, in prepareModelFromCache() argument
647 const std::vector<::ndk::ScopedFileDescriptor>& /*dataCache*/, in prepareModelFromCache()
DShimPreparedModel.cpp260 const std::vector<ndk::ScopedFileDescriptor>& waitFor, int64_t durationNs, in executeFencedInternal()
268 [&](const ::ndk::ScopedFileDescriptor& e) { in executeFencedInternal()
293 fencedExecutionResult->syncFence = ndk::ScopedFileDescriptor( in executeFencedInternal()
302 const Request& request, const std::vector<::ndk::ScopedFileDescriptor>& waitFor, in executeFencedCommon()
329 const std::vector<::ndk::ScopedFileDescriptor>& waitFor, bool measureTiming, in executeFenced()
442 const Request& request, const std::vector<ndk::ScopedFileDescriptor>& waitFor, in executeFencedWithConfig()
549 ndk::ScopedAStatus executeFenced(const std::vector<ndk::ScopedFileDescriptor>& waitFor,
616 const std::vector<ndk::ScopedFileDescriptor>& waitFor, int64_t deadlineNs, in executeFenced()
/packages/modules/Virtualization/java/jni/
Dandroid_system_virtualmachine_VirtualMachine.cpp54 using ndk::ScopedFileDescriptor; in Java_android_system_virtualmachine_VirtualMachine_nativeConnectToVsockServer()
65 ScopedFileDescriptor fd; in Java_android_system_virtualmachine_VirtualMachine_nativeConnectToVsockServer()
/packages/modules/StatsD/statsd/src/
DStatsService.h53 using ::ndk::ScopedFileDescriptor;
79 virtual Status informAllUidData(const ScopedFileDescriptor& fd);
109 const ScopedFileDescriptor& fd) override;
DStatsService.cpp983 Status StatsService::informAllUidData(const ScopedFileDescriptor& fd) { in informAllUidData()
1191 const ScopedFileDescriptor& fd) { in getDataFd()
/packages/services/Car/cpp/evs/apps/default/src/
DUtils.cpp32 dup.fds = std::vector<::ndk::ScopedFileDescriptor>(handle.fds.size()); in dupNativeHandle()
/packages/services/Car/cpp/computepipe/runner/client_interface/
DDebuggerImpl.cpp251 ndk::ScopedFileDescriptor(open(profilingDataFilePath.c_str(), O_CREAT, O_RDWR))); in deliverGraphDebugInfo()
DAidlClientImpl.cpp133 desc.handle.handle.fds.push_back(ndk::ScopedFileDescriptor(nativeHandle->data[i])); in DispatchPixelData()
/packages/services/Car/service/jni/evs/
DStreamHandler.cpp42 dup.fds = std::vector<::ndk::ScopedFileDescriptor>(handle.fds.size()); in dupNativeHandle()
/packages/services/Car/cpp/evs/manager/aidl/utils/src/
DUtils.cpp517 [](const ::ndk::ScopedFileDescriptor& fd) { return fd.get() > 0; }); in validateNativeHandle()
523 dup.fds = std::vector<::ndk::ScopedFileDescriptor>(handle.fds.size()); in dupNativeHandle()
/packages/services/Car/cpp/car_binder_lib/largeParcelable/tests/
DLargeParcelableTest.cpp40 using ::ndk::ScopedFileDescriptor;
/packages/modules/StatsD/statsd/tests/
DUidMap_test.cpp83 ScopedFileDescriptor scopedFd(memfd_create("doesn't matter", MFD_CLOEXEC)); in sendPackagesToStatsd()
/packages/services/Car/cpp/evs/manager/aidl/tests/unit/src/
DMockEvsHal.cpp74 dup.fds = std::vector<ndk::ScopedFileDescriptor>(handle.fds.size()); in copyNativeHandle()