/hardware/interfaces/neuralnetworks/1.3/utils/src/ |
D | PreparedModel.cpp | 58 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() 219 auto [syncFence, callback] = NN_TRY(cb.take()); in executeFencedInternal() 224 const auto state = syncFence.syncWait({}); in executeFencedInternal() 231 return std::make_pair(std::move(syncFence), std::move(callback)); in executeFencedInternal()
|
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/current/android/hardware/neuralnetworks/ |
D | FencedExecutionResult.aidl | 38 @nullable ParcelFileDescriptor syncFence;
|
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/1/android/hardware/neuralnetworks/ |
D | FencedExecutionResult.aidl | 38 @nullable ParcelFileDescriptor syncFence;
|
/hardware/interfaces/neuralnetworks/aidl/android/hardware/neuralnetworks/ |
D | FencedExecutionResult.aidl | 36 @nullable ParcelFileDescriptor syncFence;
|
/hardware/interfaces/neuralnetworks/aidl/utils/test/ |
D | PreparedModelTest.cpp | 64 .syncFence = ndk::ScopedFileDescriptor(-1)}; in makeFencedExecutionResult() 169 const auto& [syncFence, callback] = result.value(); in TEST() 170 EXPECT_EQ(syncFence.syncWait({}), nn::SyncFence::FenceState::SIGNALED); in TEST() 199 const auto& [syncFence, callback] = result.value(); in TEST() 200 EXPECT_NE(syncFence.syncWait({}), nn::SyncFence::FenceState::ACTIVE); in TEST() 371 const auto& [syncFence, callback] = computeResult.value(); in TEST() 372 EXPECT_EQ(syncFence.syncWait({}), nn::SyncFence::FenceState::SIGNALED); in TEST() 406 const auto& [syncFence, callback] = computeResult.value(); in TEST() 407 EXPECT_NE(syncFence.syncWait({}), nn::SyncFence::FenceState::ACTIVE); in TEST()
|
/hardware/interfaces/neuralnetworks/1.3/utils/test/ |
D | PreparedModelTest.cpp | 80 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/utils/adapter/src/ |
D | PreparedModel.cpp | 262 auto syncFence = NN_TRY(utils::makeGeneralFailure( in convertSyncFences() local 264 syncFences.push_back(std::move(syncFence)); in convertSyncFences() 282 auto [syncFence, executeFencedCallback] = NN_TRY(preparedModel->executeFenced( in executeFenced() 285 auto hidlSyncFence = NN_TRY(V1_3::utils::convert(syncFence.getSharedHandle())); in executeFenced() 412 auto [syncFence, executeFencedCallback] = std::move(result).value(); in executeFenced() 413 callback(V1_3::ErrorStatus::NONE, syncFence, executeFencedCallback); in executeFenced()
|
/hardware/interfaces/neuralnetworks/1.3/ |
D | IFencedExecutionCallback.hal | 46 * executeFenced signals the returned syncFence. 53 * and ends when executeFenced signals the returned syncFence.
|
/hardware/interfaces/neuralnetworks/aidl/utils/include/nnapi/hal/aidl/ |
D | Conversions.h | 100 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);
|
/hardware/interfaces/neuralnetworks/aidl/utils/src/ |
D | PreparedModel.cpp | 162 if (result.syncFence.get() != -1) { in executeFencedInternal() 163 resultSyncFence = NN_TRY(nn::convert(result.syncFence)); in executeFencedInternal()
|
D | Conversions.cpp | 510 GeneralResult<SyncFence> unvalidatedConvert(const ndk::ScopedFileDescriptor& syncFence) { in unvalidatedConvert() argument 511 auto duplicatedFd = NN_TRY(dupFd(syncFence.get())); in unvalidatedConvert() 556 GeneralResult<SyncFence> convert(const ndk::ScopedFileDescriptor& syncFence) { in convert() argument 557 return validatedConvert(syncFence); in convert() 995 nn::GeneralResult<ndk::ScopedFileDescriptor> unvalidatedConvert(const nn::SyncFence& syncFence) { in unvalidatedConvert() argument 996 auto duplicatedFd = NN_TRY(nn::dupFd(syncFence.getFd())); in unvalidatedConvert()
|
/hardware/interfaces/neuralnetworks/aidl/vts/functional/ |
D | GeneratedTestHarness.cpp | 645 } else if (executionResult.syncFence.get() != -1) { in EvaluatePreparedModel() 647 auto dupFd = dup(executionResult.syncFence.get()); in EvaluatePreparedModel() 655 waitForSyncFence(executionResult.syncFence.get()); in EvaluatePreparedModel()
|
D | MemoryDomainTests.cpp | 931 if (executionResult.syncFence.get() != -1) { in executeFenced() 932 waitForSyncFence(executionResult.syncFence.get()); in executeFenced()
|