/packages/modules/Virtualization/demo_native/ |
D | main.cpp | 50 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/ |
D | LargeParcelableBase.h | 97 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/ |
D | ShimDevice.h | 57 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,
|
D | ShimPreparedModel.h | 53 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/ |
D | SampleDriverAidl.h | 82 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,
|
D | SampleDriverAidlPartial.h | 46 const std::vector<ndk::ScopedFileDescriptor>& modelCache, 47 const std::vector<ndk::ScopedFileDescriptor>& dataCache,
|
D | SampleDriverAidlPartial.cpp | 52 const std::vector<ndk::ScopedFileDescriptor>&, in prepareModel() argument 53 const std::vector<ndk::ScopedFileDescriptor>&, const std::vector<uint8_t>&, in prepareModel()
|
D | SampleDriverAidl.cpp | 107 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/ |
D | LargeParcelableBase.cpp | 48 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/ |
D | crosvm_android_display_client.cpp | 74 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/ |
D | ShimDevice.cpp | 519 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()
|
D | ShimPreparedModel.cpp | 260 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/ |
D | android_system_virtualmachine_VirtualMachine.cpp | 54 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/ |
D | StatsService.h | 53 using ::ndk::ScopedFileDescriptor; 79 virtual Status informAllUidData(const ScopedFileDescriptor& fd); 109 const ScopedFileDescriptor& fd) override;
|
D | StatsService.cpp | 983 Status StatsService::informAllUidData(const ScopedFileDescriptor& fd) { in informAllUidData() 1191 const ScopedFileDescriptor& fd) { in getDataFd()
|
/packages/services/Car/cpp/evs/apps/default/src/ |
D | Utils.cpp | 32 dup.fds = std::vector<::ndk::ScopedFileDescriptor>(handle.fds.size()); in dupNativeHandle()
|
/packages/services/Car/cpp/computepipe/runner/client_interface/ |
D | DebuggerImpl.cpp | 251 ndk::ScopedFileDescriptor(open(profilingDataFilePath.c_str(), O_CREAT, O_RDWR))); in deliverGraphDebugInfo()
|
D | AidlClientImpl.cpp | 133 desc.handle.handle.fds.push_back(ndk::ScopedFileDescriptor(nativeHandle->data[i])); in DispatchPixelData()
|
/packages/services/Car/service/jni/evs/ |
D | StreamHandler.cpp | 42 dup.fds = std::vector<::ndk::ScopedFileDescriptor>(handle.fds.size()); in dupNativeHandle()
|
/packages/services/Car/cpp/evs/manager/aidl/utils/src/ |
D | Utils.cpp | 517 [](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/ |
D | LargeParcelableTest.cpp | 40 using ::ndk::ScopedFileDescriptor;
|
/packages/modules/StatsD/statsd/tests/ |
D | UidMap_test.cpp | 83 ScopedFileDescriptor scopedFd(memfd_create("doesn't matter", MFD_CLOEXEC)); in sendPackagesToStatsd()
|
/packages/services/Car/cpp/evs/manager/aidl/tests/unit/src/ |
D | MockEvsHal.cpp | 74 dup.fds = std::vector<ndk::ScopedFileDescriptor>(handle.fds.size()); in copyNativeHandle()
|