Lines Matching refs:preparedModel

320                           sp<IPreparedModel>* preparedModel = nullptr) {  in saveModelToCache()  argument
321 if (preparedModel != nullptr) *preparedModel = nullptr; in saveModelToCache()
335 if (preparedModel != nullptr) { in saveModelToCache()
336 *preparedModel = IPreparedModel::castFrom(preparedModelCallback->getPreparedModel()) in saveModelToCache()
367 sp<IPreparedModel>* preparedModel, ErrorStatus* status) { in prepareModelFromCache() argument
375 *preparedModel = nullptr; in prepareModelFromCache()
383 *preparedModel = IPreparedModel::castFrom(preparedModelCallback->getPreparedModel()) in prepareModelFromCache()
426 sp<IPreparedModel> preparedModel = nullptr; in TEST_P() local
438 preparedModel = nullptr; in TEST_P()
443 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
446 ASSERT_EQ(preparedModel, nullptr); in TEST_P()
449 ASSERT_EQ(preparedModel, nullptr); in TEST_P()
453 ASSERT_NE(preparedModel, nullptr); in TEST_P()
458 EvaluatePreparedModel(preparedModel, testModel, in TEST_P()
467 sp<IPreparedModel> preparedModel = nullptr; in TEST_P() local
492 preparedModel = nullptr; in TEST_P()
506 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
509 ASSERT_EQ(preparedModel, nullptr); in TEST_P()
512 ASSERT_EQ(preparedModel, nullptr); in TEST_P()
516 ASSERT_NE(preparedModel, nullptr); in TEST_P()
521 EvaluatePreparedModel(preparedModel, testModel, in TEST_P()
539 sp<IPreparedModel> preparedModel = nullptr; in TEST_P() local
540 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
541 ASSERT_NE(preparedModel, nullptr); in TEST_P()
543 EvaluatePreparedModel(preparedModel, testModel, in TEST_P()
546 preparedModel = nullptr; in TEST_P()
548 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
552 ASSERT_EQ(preparedModel, nullptr); in TEST_P()
564 sp<IPreparedModel> preparedModel = nullptr; in TEST_P() local
565 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
566 ASSERT_NE(preparedModel, nullptr); in TEST_P()
568 EvaluatePreparedModel(preparedModel, testModel, in TEST_P()
571 preparedModel = nullptr; in TEST_P()
573 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
577 ASSERT_EQ(preparedModel, nullptr); in TEST_P()
588 sp<IPreparedModel> preparedModel = nullptr; in TEST_P() local
589 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
590 ASSERT_NE(preparedModel, nullptr); in TEST_P()
592 EvaluatePreparedModel(preparedModel, testModel, in TEST_P()
595 preparedModel = nullptr; in TEST_P()
597 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
601 ASSERT_EQ(preparedModel, nullptr); in TEST_P()
613 sp<IPreparedModel> preparedModel = nullptr; in TEST_P() local
614 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
615 ASSERT_NE(preparedModel, nullptr); in TEST_P()
617 EvaluatePreparedModel(preparedModel, testModel, in TEST_P()
620 preparedModel = nullptr; in TEST_P()
622 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
626 ASSERT_EQ(preparedModel, nullptr); in TEST_P()
646 sp<IPreparedModel> preparedModel = nullptr; in TEST_P() local
653 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
657 ASSERT_EQ(preparedModel, nullptr); in TEST_P()
662 sp<IPreparedModel> preparedModel = nullptr; in TEST_P() local
670 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
674 ASSERT_EQ(preparedModel, nullptr); in TEST_P()
679 sp<IPreparedModel> preparedModel = nullptr; in TEST_P() local
686 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
690 ASSERT_EQ(preparedModel, nullptr); in TEST_P()
695 sp<IPreparedModel> preparedModel = nullptr; in TEST_P() local
703 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
707 ASSERT_EQ(preparedModel, nullptr); in TEST_P()
725 sp<IPreparedModel> preparedModel = nullptr; in TEST_P() local
726 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
727 ASSERT_NE(preparedModel, nullptr); in TEST_P()
729 EvaluatePreparedModel(preparedModel, testModel, in TEST_P()
732 preparedModel = nullptr; in TEST_P()
734 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
738 ASSERT_EQ(preparedModel, nullptr); in TEST_P()
750 sp<IPreparedModel> preparedModel = nullptr; in TEST_P() local
751 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
752 ASSERT_NE(preparedModel, nullptr); in TEST_P()
754 EvaluatePreparedModel(preparedModel, testModel, in TEST_P()
757 preparedModel = nullptr; in TEST_P()
759 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
763 ASSERT_EQ(preparedModel, nullptr); in TEST_P()
774 sp<IPreparedModel> preparedModel = nullptr; in TEST_P() local
775 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
776 ASSERT_NE(preparedModel, nullptr); in TEST_P()
778 EvaluatePreparedModel(preparedModel, testModel, in TEST_P()
781 preparedModel = nullptr; in TEST_P()
783 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
787 ASSERT_EQ(preparedModel, nullptr); in TEST_P()
799 sp<IPreparedModel> preparedModel = nullptr; in TEST_P() local
800 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
801 ASSERT_NE(preparedModel, nullptr); in TEST_P()
803 EvaluatePreparedModel(preparedModel, testModel, in TEST_P()
806 preparedModel = nullptr; in TEST_P()
808 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
812 ASSERT_EQ(preparedModel, nullptr); in TEST_P()
832 sp<IPreparedModel> preparedModel = nullptr; in TEST_P() local
839 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
843 ASSERT_EQ(preparedModel, nullptr); in TEST_P()
848 sp<IPreparedModel> preparedModel = nullptr; in TEST_P() local
856 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
860 ASSERT_EQ(preparedModel, nullptr); in TEST_P()
865 sp<IPreparedModel> preparedModel = nullptr; in TEST_P() local
872 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
876 ASSERT_EQ(preparedModel, nullptr); in TEST_P()
881 sp<IPreparedModel> preparedModel = nullptr; in TEST_P() local
889 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
893 ASSERT_EQ(preparedModel, nullptr); in TEST_P()
912 sp<IPreparedModel> preparedModel = nullptr; in TEST_P() local
913 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
914 ASSERT_NE(preparedModel, nullptr); in TEST_P()
916 EvaluatePreparedModel(preparedModel, testModel, in TEST_P()
919 preparedModel = nullptr; in TEST_P()
921 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
925 ASSERT_EQ(preparedModel, nullptr); in TEST_P()
935 sp<IPreparedModel> preparedModel = nullptr; in TEST_P() local
936 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
937 ASSERT_NE(preparedModel, nullptr); in TEST_P()
939 EvaluatePreparedModel(preparedModel, testModel, in TEST_P()
942 preparedModel = nullptr; in TEST_P()
944 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
948 ASSERT_EQ(preparedModel, nullptr); in TEST_P()
970 sp<IPreparedModel> preparedModel = nullptr; in TEST_P() local
977 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
979 ASSERT_EQ(preparedModel, nullptr); in TEST_P()
984 sp<IPreparedModel> preparedModel = nullptr; in TEST_P() local
991 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
993 ASSERT_EQ(preparedModel, nullptr); in TEST_P()
1071 sp<IPreparedModel> preparedModel = nullptr; in TEST_P() local
1076 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
1081 ASSERT_EQ(preparedModel, nullptr); in TEST_P()
1083 ASSERT_NE(preparedModel, nullptr); in TEST_P()
1084 EvaluatePreparedModel(preparedModel, testModelAdd, in TEST_P()
1129 sp<IPreparedModel> preparedModel = nullptr; in TEST_P() local
1137 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
1143 ASSERT_EQ(preparedModel, nullptr); in TEST_P()
1145 ASSERT_NE(preparedModel, nullptr); in TEST_P()
1146 EvaluatePreparedModel(preparedModel, testModelAdd, in TEST_P()
1192 sp<IPreparedModel> preparedModel = nullptr; in TEST_P() local
1197 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
1199 ASSERT_EQ(preparedModel, nullptr); in TEST_P()
1296 sp<IPreparedModel> preparedModel = nullptr; in testCorruptedCache() local
1301 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in testCorruptedCache()
1306 ASSERT_EQ(preparedModel, nullptr); in testCorruptedCache()
1309 ASSERT_EQ(preparedModel == nullptr, status != ErrorStatus::NONE); in testCorruptedCache()