Home
last modified time | relevance | path

Searched refs:syncFence (Results 1 – 20 of 20) sorted by relevance

/hardware/interfaces/neuralnetworks/aidl/utils/test/
DExecutionTest.cpp61 .syncFence = ndk::ScopedFileDescriptor(-1)}; in makeFencedExecutionResult()
166 const auto& [syncFence, callback] = result.value(); in TEST()
167 EXPECT_EQ(syncFence.syncWait({}), nn::SyncFence::FenceState::SIGNALED); in TEST()
196 const auto& [syncFence, callback] = result.value(); in TEST()
197 EXPECT_NE(syncFence.syncWait({}), nn::SyncFence::FenceState::ACTIVE); in TEST()
DPreparedModelTest.cpp66 .syncFence = ndk::ScopedFileDescriptor(-1)}; in makeFencedExecutionResult()
83 .syncFence = ndk::ScopedFileDescriptor(-1)}; in makeFencedExecutionWithConfigResult()
198 const auto& [syncFence, callback] = result.value(); in TEST_P()
199 EXPECT_EQ(syncFence.syncWait({}), nn::SyncFence::FenceState::SIGNALED); in TEST_P()
230 const auto& [syncFence, callback] = result.value(); in TEST_P()
231 EXPECT_NE(syncFence.syncWait({}), nn::SyncFence::FenceState::ACTIVE); in TEST_P()
418 const auto& [syncFence, callback] = computeResult.value(); in TEST_P()
419 EXPECT_EQ(syncFence.syncWait({}), nn::SyncFence::FenceState::SIGNALED); in TEST_P()
455 const auto& [syncFence, callback] = computeResult.value(); in TEST_P()
456 EXPECT_NE(syncFence.syncWait({}), nn::SyncFence::FenceState::ACTIVE); in TEST_P()
[all …]
/hardware/interfaces/neuralnetworks/1.3/utils/src/
DPreparedModel.cpp58 ErrorStatus status, const hidl_handle& syncFence, in fencedExecutionCallback() argument
63 if (syncFence.getNativeHandle() != nullptr) { in fencedExecutionCallback()
64 auto sharedHandle = NN_TRY(nn::convert(syncFence)); in fencedExecutionCallback()
220 auto [syncFence, callback] = NN_TRY(cb.take()); in executeFencedInternal()
225 const auto state = syncFence.syncWait({}); in executeFencedInternal()
232 return std::make_pair(std::move(syncFence), std::move(callback)); in executeFencedInternal()
DConversions.cpp775 [](const nn::SyncFence& syncFence) { return syncFence.getSharedHandle(); }); in convertSyncFences() argument
/hardware/interfaces/neuralnetworks/utils/adapter/aidl/src/
DPreparedModel.cpp165 auto [syncFence, executeFencedInfoCallback] = NN_TRY(preparedModel.executeFenced( in executeFenced()
170 if (syncFence.hasFd()) { in executeFenced()
171 auto uniqueFd = NN_TRY(nn::dupFd(syncFence.getFd())); in executeFenced()
177 .syncFence = std::move(fileDescriptor)}; in executeFenced()
221 auto [syncFence, executeFencedInfoCallback] = in executeFenced()
225 if (syncFence.hasFd()) { in executeFenced()
226 auto uniqueFd = NN_TRY(nn::dupFd(syncFence.getFd())); in executeFenced()
232 .syncFence = std::move(fileDescriptor)}; in executeFenced()
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/current/android/hardware/neuralnetworks/
DFencedExecutionResult.aidl38 @nullable ParcelFileDescriptor syncFence;
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/2/android/hardware/neuralnetworks/
DFencedExecutionResult.aidl38 @nullable ParcelFileDescriptor syncFence;
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/1/android/hardware/neuralnetworks/
DFencedExecutionResult.aidl38 @nullable ParcelFileDescriptor syncFence;
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/4/android/hardware/neuralnetworks/
DFencedExecutionResult.aidl38 @nullable ParcelFileDescriptor syncFence;
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/3/android/hardware/neuralnetworks/
DFencedExecutionResult.aidl38 @nullable ParcelFileDescriptor syncFence;
/hardware/interfaces/neuralnetworks/aidl/android/hardware/neuralnetworks/
DFencedExecutionResult.aidl36 @nullable ParcelFileDescriptor syncFence;
/hardware/interfaces/neuralnetworks/utils/adapter/hidl/src/
DPreparedModel.cpp241 if (auto syncFence = nn::SyncFence::create(std::move(handle)); !syncFence.ok()) { in convertSyncFences() local
242 return nn::error(nn::ErrorStatus::INVALID_ARGUMENT) << std::move(syncFence).error(); in convertSyncFences()
244 syncFences.push_back(std::move(syncFence).value()); in convertSyncFences()
272 auto [syncFence, executeFencedCallback] = in executeFenced()
276 auto hidlSyncFence = NN_TRY(V1_3::utils::convert(syncFence.getSharedHandle())); in executeFenced()
404 auto [syncFence, executeFencedCallback] = std::move(result).value(); in executeFenced()
405 callback(V1_3::ErrorStatus::NONE, syncFence, executeFencedCallback); in executeFenced()
/hardware/interfaces/neuralnetworks/1.3/utils/test/
DPreparedModelTest.cpp80 auto makeExecuteFencedReturn(V1_3::ErrorStatus status, const hardware::hidl_handle& syncFence, in makeExecuteFencedReturn() argument
82 return [status, syncFence, dispatchCallback]( in makeExecuteFencedReturn()
89 cb(status, syncFence, dispatchCallback); in makeExecuteFencedReturn()
374 const auto& [syncFence, callback] = result.value(); in TEST()
375 EXPECT_EQ(syncFence.syncWait({}), nn::SyncFence::FenceState::SIGNALED); in TEST()
404 const auto& [syncFence, callback] = result.value(); in TEST()
405 EXPECT_NE(syncFence.syncWait({}), nn::SyncFence::FenceState::ACTIVE); in TEST()
715 const auto& [syncFence, callback] = computeResult.value(); in TEST()
716 EXPECT_EQ(syncFence.syncWait({}), nn::SyncFence::FenceState::SIGNALED); in TEST()
750 const auto& [syncFence, callback] = computeResult.value(); in TEST()
[all …]
/hardware/interfaces/neuralnetworks/1.3/
DIFencedExecutionCallback.hal46 * executeFenced signals the returned syncFence.
53 * and ends when executeFenced signals the returned syncFence.
DIPreparedModel.hal228 * handle for syncFence, and nullptr for callback. If the inputs to the function
234 * for syncFence. The execution must wait for all the sync fences (if any) in waitFor
238 * immediately signal the syncFence returned from the executeFenced call. After
239 * the syncFence is signaled, the task must not modify the content of
262 * syncFence to error status.
300 * @return syncFence The sync fence that will be signaled when the task is completed.
309 generates (ErrorStatus status, handle syncFence, IFencedExecutionCallback callback);
/hardware/interfaces/neuralnetworks/aidl/utils/src/
DPreparedModel.cpp78 if (result.syncFence.get() != -1) { in handleFencedExecutionResult()
79 resultSyncFence = nn::SyncFence::create(NN_TRY(nn::convert(result.syncFence))).value(); in handleFencedExecutionResult()
DConversions.cpp1115 nn::GeneralResult<ndk::ScopedFileDescriptor> unvalidatedConvert(const nn::SyncFence& syncFence) { in unvalidatedConvert() argument
1116 auto duplicatedFd = NN_TRY(nn::dupFd(syncFence.getFd())); in unvalidatedConvert()
/hardware/interfaces/neuralnetworks/aidl/vts/functional/
DGeneratedTestHarness.cpp731 } else if (executionResult.syncFence.get() != -1) { in EvaluatePreparedModel()
733 auto dupFd = dup(executionResult.syncFence.get()); in EvaluatePreparedModel()
752 waitForSyncFence(executionResult.syncFence.get()); in EvaluatePreparedModel()
DMemoryDomainTests.cpp958 if (executionResult.syncFence.get() != -1) { in executeFenced()
959 waitForSyncFence(executionResult.syncFence.get()); in executeFenced()
/hardware/interfaces/neuralnetworks/aidl/utils/include/nnapi/hal/aidl/
DConversions.h181 nn::GeneralResult<ndk::ScopedFileDescriptor> unvalidatedConvert(const nn::SyncFence& syncFence);