/hardware/interfaces/neuralnetworks/aidl/utils/test/ |
D | ExecutionTest.cpp | 61 .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()
|
D | PreparedModelTest.cpp | 66 .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/ |
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() 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()
|
D | Conversions.cpp | 775 [](const nn::SyncFence& syncFence) { return syncFence.getSharedHandle(); }); in convertSyncFences() argument
|
/hardware/interfaces/neuralnetworks/utils/adapter/aidl/src/ |
D | PreparedModel.cpp | 165 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/ |
D | FencedExecutionResult.aidl | 38 @nullable ParcelFileDescriptor syncFence;
|
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/2/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/aidl_api/android.hardware.neuralnetworks/4/android/hardware/neuralnetworks/ |
D | FencedExecutionResult.aidl | 38 @nullable ParcelFileDescriptor syncFence;
|
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/3/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/utils/adapter/hidl/src/ |
D | PreparedModel.cpp | 241 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/ |
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/1.3/ |
D | IFencedExecutionCallback.hal | 46 * executeFenced signals the returned syncFence. 53 * and ends when executeFenced signals the returned syncFence.
|
D | IPreparedModel.hal | 228 * 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/ |
D | PreparedModel.cpp | 78 if (result.syncFence.get() != -1) { in handleFencedExecutionResult() 79 resultSyncFence = nn::SyncFence::create(NN_TRY(nn::convert(result.syncFence))).value(); in handleFencedExecutionResult()
|
D | Conversions.cpp | 1115 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/ |
D | GeneratedTestHarness.cpp | 731 } else if (executionResult.syncFence.get() != -1) { in EvaluatePreparedModel() 733 auto dupFd = dup(executionResult.syncFence.get()); in EvaluatePreparedModel() 752 waitForSyncFence(executionResult.syncFence.get()); in EvaluatePreparedModel()
|
D | MemoryDomainTests.cpp | 958 if (executionResult.syncFence.get() != -1) { in executeFenced() 959 waitForSyncFence(executionResult.syncFence.get()); in executeFenced()
|
/hardware/interfaces/neuralnetworks/aidl/utils/include/nnapi/hal/aidl/ |
D | Conversions.h | 181 nn::GeneralResult<ndk::ScopedFileDescriptor> unvalidatedConvert(const nn::SyncFence& syncFence);
|