Lines Matching refs:hal

155 std::optional<Deadline> makeDeadline(const hal::OptionalTimePoint& timePoint);
163 hal::OptionalTimePoint makeTimePoint(const std::optional<Deadline>& deadline);
196 using OperandPerformance = hal::V1_2::Capabilities::OperandPerformance;
197 using OperandType = hal::V1_2::OperandType;
202 using OperandPerformance = hal::V1_3::Capabilities::OperandPerformance;
203 using OperandType = hal::V1_3::OperandType;
221 hal::hidl_vec<VersionedOperandPerformance<version>> nonExtensionOperandPerformance(
222 hal::PerformanceInfo perf);
227 void update(hal::hidl_vec<hal::V1_2::Capabilities::OperandPerformance>* operandPerformance,
228 hal::V1_2::OperandType type, hal::PerformanceInfo perf);
229 void update(hal::hidl_vec<hal::V1_3::Capabilities::OperandPerformance>* operandPerformance,
230 hal::V1_3::OperandType type, hal::PerformanceInfo perf);
235 hal::PerformanceInfo lookup(
236 const hal::hidl_vec<hal::V1_2::Capabilities::OperandPerformance>& operandPerformance,
237 hal::V1_2::OperandType type);
238 hal::PerformanceInfo lookup(
239 const hal::hidl_vec<hal::V1_3::Capabilities::OperandPerformance>& operandPerformance,
240 hal::V1_3::OperandType type);
243 bool isExtensionOperandType(hal::OperandType type);
246 bool isExtensionOperationType(hal::OperationType type);
256 uint32_t nonExtensionOperandSizeOfData(hal::OperandType type,
267 inline uint32_t nonExtensionOperandSizeOfData(const hal::Operand& operand) {
286 bool nonExtensionOperandSizeOfDataOverflowsUInt32(hal::OperandType type,
303 std::string getOperationName(hal::OperationType opCode);
306 std::string getOperandTypeName(hal::OperandType type);
312 bool tensorHasUnspecifiedDimensions(hal::OperandType type, const std::vector<uint32_t>& dimensions);
313 bool tensorHasUnspecifiedDimensions(const hal::Operand& operand);
326 void logModelToInfo(const hal::V1_0::Model& model);
327 void logModelToInfo(const hal::V1_1::Model& model);
328 void logModelToInfo(const hal::V1_2::Model& model);
329 void logModelToInfo(const hal::V1_3::Model& model);
371 const hal::Operand& halOperand,
381 const hal::Extension::OperandTypeInformation* const extensionOperandTypeInfo,
389 std::function<bool(const hal::Operand&)> isValidSubgraphReference;
391 std::function<uint32_t(const hal::Operand&)> getSubgraphInputCount;
393 std::function<uint32_t(const hal::Operand&)> getSubgraphOutputCount;
395 std::function<const hal::Operand*(const hal::Operand&, uint32_t)> getSubgraphInputOperand;
397 std::function<const hal::Operand*(const hal::Operand&, uint32_t)> getSubgraphOutputOperand;
408 const uint32_t* outputIndexes, const std::vector<hal::Operand>& operands,
417 hal::ErrorStatus convertResultCodeToErrorStatus(int resultCode);
421 int convertErrorStatusToResultCode(hal::ErrorStatus status);
426 std::tuple<int, std::vector<hal::OutputShape>, hal::Timing> getExecutionResult(
427 hal::ErrorStatus status, std::vector<hal::OutputShape> outputShapes, hal::Timing timing);
435 bool compliantWithV1_0(const hal::V1_0::Capabilities& capabilities);
436 bool compliantWithV1_0(const hal::V1_1::Capabilities& capabilities);
437 bool compliantWithV1_0(const hal::V1_2::Capabilities& capabilities);
438 bool compliantWithV1_0(const hal::V1_3::Capabilities& capabilities);
439 bool compliantWithV1_1(const hal::V1_0::Capabilities& capabilities);
440 bool compliantWithV1_1(const hal::V1_1::Capabilities& capabilities);
441 bool compliantWithV1_1(const hal::V1_2::Capabilities& capabilities);
442 bool compliantWithV1_1(const hal::V1_3::Capabilities& capabilities);
443 bool compliantWithV1_2(const hal::V1_0::Capabilities& capabilities);
444 bool compliantWithV1_2(const hal::V1_1::Capabilities& capabilities);
445 bool compliantWithV1_2(const hal::V1_2::Capabilities& capabilities);
446 bool compliantWithV1_2(const hal::V1_3::Capabilities& capabilities);
447 bool compliantWithV1_3(const hal::V1_0::Capabilities& capabilities);
448 bool compliantWithV1_3(const hal::V1_1::Capabilities& capabilities);
449 bool compliantWithV1_3(const hal::V1_2::Capabilities& capabilities);
450 bool compliantWithV1_3(const hal::V1_3::Capabilities& capabilities);
458 bool compliantWithV1_0(const hal::V1_0::Model& model);
459 bool compliantWithV1_0(const hal::V1_1::Model& model);
460 bool compliantWithV1_0(const hal::V1_2::Model& model,
462 bool compliantWithV1_0(const hal::V1_3::Model& model,
464 bool compliantWithV1_1(const hal::V1_0::Model& model);
465 bool compliantWithV1_1(const hal::V1_1::Model& model);
466 bool compliantWithV1_1(const hal::V1_2::Model& model,
468 bool compliantWithV1_1(const hal::V1_3::Model& model,
470 bool compliantWithV1_2(const hal::V1_0::Model& model);
471 bool compliantWithV1_2(const hal::V1_1::Model& model);
472 bool compliantWithV1_2(const hal::V1_2::Model& model,
474 bool compliantWithV1_2(const hal::V1_3::Model& model,
477 hal::V1_0::ErrorStatus convertToV1_0(hal::V1_0::ErrorStatus status);
478 hal::V1_0::ErrorStatus convertToV1_0(hal::V1_3::ErrorStatus status);
479 hal::V1_3::ErrorStatus convertToV1_3(hal::V1_0::ErrorStatus status);
480 hal::V1_3::ErrorStatus convertToV1_3(hal::V1_3::ErrorStatus status);
482 hal::V1_0::Capabilities convertToV1_0(const hal::V1_0::Capabilities& capabilities);
483 hal::V1_0::Capabilities convertToV1_0(const hal::V1_1::Capabilities& capabilities);
484 hal::V1_0::Capabilities convertToV1_0(const hal::V1_2::Capabilities& capabilities);
485 hal::V1_0::Capabilities convertToV1_0(const hal::V1_3::Capabilities& capabilities);
486 hal::V1_1::Capabilities convertToV1_1(const hal::V1_0::Capabilities& capabilities);
487 hal::V1_1::Capabilities convertToV1_1(const hal::V1_1::Capabilities& capabilities);
488 hal::V1_1::Capabilities convertToV1_1(const hal::V1_2::Capabilities& capabilities);
489 hal::V1_1::Capabilities convertToV1_1(const hal::V1_3::Capabilities& capabilities);
490 hal::V1_2::Capabilities convertToV1_2(const hal::V1_0::Capabilities& capabilities);
491 hal::V1_2::Capabilities convertToV1_2(const hal::V1_1::Capabilities& capabilities);
492 hal::V1_2::Capabilities convertToV1_2(const hal::V1_2::Capabilities& capabilities);
493 hal::V1_2::Capabilities convertToV1_2(const hal::V1_3::Capabilities& capabilities);
494 hal::V1_3::Capabilities convertToV1_3(const hal::V1_0::Capabilities& capabilities);
495 hal::V1_3::Capabilities convertToV1_3(const hal::V1_1::Capabilities& capabilities);
496 hal::V1_3::Capabilities convertToV1_3(const hal::V1_2::Capabilities& capabilities);
497 hal::V1_3::Capabilities convertToV1_3(const hal::V1_3::Capabilities& capabilities);
499 hal::V1_0::Model convertToV1_0(const hal::V1_0::Model& model);
500 hal::V1_0::Model convertToV1_0(const hal::V1_1::Model& model);
501 hal::V1_0::Model convertToV1_0(const hal::V1_2::Model& model);
502 hal::V1_0::Model convertToV1_0(const hal::V1_3::Model& model);
503 hal::V1_1::Model convertToV1_1(const hal::V1_0::Model& model);
504 hal::V1_1::Model convertToV1_1(const hal::V1_1::Model& model);
505 hal::V1_1::Model convertToV1_1(const hal::V1_2::Model& model);
506 hal::V1_1::Model convertToV1_1(const hal::V1_3::Model& model);
507 hal::V1_2::Model convertToV1_2(const hal::V1_0::Model& model);
508 hal::V1_2::Model convertToV1_2(const hal::V1_1::Model& model);
509 hal::V1_2::Model convertToV1_2(const hal::V1_2::Model& model);
510 hal::V1_2::Model convertToV1_2(const hal::V1_3::Model& model);
511 hal::V1_3::Model convertToV1_3(const hal::V1_0::Model& model);
512 hal::V1_3::Model convertToV1_3(const hal::V1_1::Model& model);
513 hal::V1_3::Model convertToV1_3(const hal::V1_2::Model& model);
514 hal::V1_3::Model convertToV1_3(const hal::V1_3::Model& model);
516 hal::V1_0::OperationType uncheckedConvertToV1_0(hal::V1_3::OperationType type);
517 hal::V1_1::OperationType uncheckedConvertToV1_1(hal::V1_3::OperationType type);
518 hal::V1_2::OperationType uncheckedConvertToV1_2(hal::V1_3::OperationType type);
520 hal::V1_0::Operand convertToV1_0(const hal::V1_2::Operand& operand);
521 hal::V1_0::Operand convertToV1_0(const hal::V1_3::Operand& operand);
522 hal::V1_2::Operand convertToV1_2(const hal::V1_0::Operand& operand);
523 hal::V1_2::Operand convertToV1_2(const hal::V1_3::Operand& operand);
524 hal::V1_3::Operand convertToV1_3(const hal::V1_0::Operand& operand);
525 hal::V1_3::Operand convertToV1_3(const hal::V1_2::Operand& operand);
526 hal::V1_3::Operand convertToV1_3(const hal::V1_3::Operand& operand);
528 hal::hidl_vec<hal::V1_0::Operand> convertToV1_0(const hal::hidl_vec<hal::V1_0::Operand>& operands);
529 hal::hidl_vec<hal::V1_0::Operand> convertToV1_0(const hal::hidl_vec<hal::V1_2::Operand>& operands);
530 hal::hidl_vec<hal::V1_0::Operand> convertToV1_0(const hal::hidl_vec<hal::V1_3::Operand>& operands);
531 hal::hidl_vec<hal::V1_2::Operand> convertToV1_2(const hal::hidl_vec<hal::V1_0::Operand>& operands);
532 hal::hidl_vec<hal::V1_2::Operand> convertToV1_2(const hal::hidl_vec<hal::V1_2::Operand>& operands);
533 hal::hidl_vec<hal::V1_2::Operand> convertToV1_2(const hal::hidl_vec<hal::V1_3::Operand>& operands);
534 hal::hidl_vec<hal::V1_3::Operand> convertToV1_3(const hal::hidl_vec<hal::V1_0::Operand>& operands);
535 hal::hidl_vec<hal::V1_3::Operand> convertToV1_3(const hal::hidl_vec<hal::V1_2::Operand>& operands);
536 hal::hidl_vec<hal::V1_3::Operand> convertToV1_3(const hal::hidl_vec<hal::V1_3::Operand>& operands);
538 bool compliantWithV1_0(const hal::V1_0::Request& request);
539 bool compliantWithV1_0(const hal::V1_3::Request& request);
540 bool compliantWithV1_2(const hal::V1_3::Request& request);
542 hal::V1_0::Request convertToV1_0(const hal::V1_0::Request& request);
543 hal::V1_0::Request convertToV1_0(const hal::V1_3::Request& request);
544 hal::V1_0::Request convertToV1_2(const hal::V1_3::Request& request);
545 hal::V1_3::Request convertToV1_3(const hal::V1_0::Request& request);
546 hal::V1_3::Request convertToV1_3(const hal::V1_3::Request& request);
548 bool compliantWithV1_0(hal::V1_0::OperandLifeTime lifetime);
549 bool compliantWithV1_0(hal::V1_3::OperandLifeTime lifetime);
550 bool compliantWithV1_3(hal::V1_0::OperandLifeTime lifetime);
551 bool compliantWithV1_3(hal::V1_3::OperandLifeTime lifetime);
553 hal::V1_0::OperandLifeTime convertToV1_0(hal::V1_0::OperandLifeTime lifetime);
554 hal::V1_0::OperandLifeTime convertToV1_0(hal::V1_3::OperandLifeTime lifetime);
555 hal::V1_3::OperandLifeTime convertToV1_3(hal::V1_0::OperandLifeTime lifetime);
556 hal::V1_3::OperandLifeTime convertToV1_3(hal::V1_3::OperandLifeTime lifetime);
558 constexpr hal::Priority convertToHalPriority(int32_t priority) {
561 return hal::Priority::LOW;
563 return hal::Priority::MEDIUM;
565 return hal::Priority::HIGH;