Lines Matching refs:modelCache
318 void saveModelToCache(const Model& model, const hidl_vec<hidl_handle>& modelCache, in saveModelToCache() argument
328 modelCache, dataCache, cacheToken, preparedModelCallback); in saveModelToCache()
365 void prepareModelFromCache(const hidl_vec<hidl_handle>& modelCache, in prepareModelFromCache() argument
372 modelCache, dataCache, cacheToken, preparedModelCallback); in prepareModelFromCache()
430 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
431 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
433 saveModelToCache(model, modelCache, dataCache); in TEST_P()
440 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
441 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
443 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
471 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
472 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
477 for (uint32_t i = 0; i < modelCache.size(); i++) { in TEST_P()
478 ASSERT_EQ(write(modelCache[i].getNativeHandle()->data[0], &sampleBytes, in TEST_P()
487 saveModelToCache(model, modelCache, dataCache); in TEST_P()
494 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
495 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
500 for (uint32_t i = 0; i < modelCache.size(); i++) { in TEST_P()
501 ASSERT_GE(read(modelCache[i].getNativeHandle()->data[0], &sampleByte, 1), 0); in TEST_P()
506 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
533 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
536 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
540 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
548 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
557 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
561 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
565 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
573 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
582 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
585 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
589 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
597 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
606 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
610 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
614 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
622 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
638 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
639 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
641 saveModelToCache(model, modelCache, dataCache); in TEST_P()
648 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
650 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
653 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
664 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
667 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
670 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
681 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
683 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
686 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
697 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
700 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
703 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
719 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
722 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
726 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
734 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
743 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
747 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
751 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
759 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
768 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
771 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
775 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
783 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
792 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
796 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
800 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
808 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
824 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
825 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
827 saveModelToCache(model, modelCache, dataCache); in TEST_P()
834 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
836 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
839 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
850 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
853 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
856 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
867 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
869 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
872 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
883 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
886 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
889 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
907 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
909 createCacheHandles(mModelCache, modelCacheMode, &modelCache); in TEST_P()
913 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
921 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
930 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
932 createCacheHandles(mModelCache, modelCacheMode, &modelCache); in TEST_P()
936 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
944 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
962 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
963 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
965 saveModelToCache(model, modelCache, dataCache); in TEST_P()
972 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
974 createCacheHandles(mModelCache, modelCacheMode, &modelCache); in TEST_P()
977 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
986 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
988 createCacheHandles(mModelCache, modelCacheMode, &modelCache); in TEST_P()
991 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
1046 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
1047 createCacheHandles(modelCacheMul, AccessMode::READ_WRITE, &modelCache); in TEST_P()
1049 saveModelToCache(modelMul, modelCache, dataCache); in TEST_P()
1059 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
1060 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
1065 saveModelToCache(modelAdd, modelCache, dataCache); in TEST_P()
1073 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
1074 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
1076 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
1108 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
1109 createCacheHandles(modelCacheMul, AccessMode::READ_WRITE, &modelCache); in TEST_P()
1111 saveModelToCache(modelMul, modelCache, dataCache); in TEST_P()
1121 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
1122 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
1124 saveModelToCache(modelAdd, modelCache, dataCache); in TEST_P()
1131 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
1132 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
1137 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
1170 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
1171 createCacheHandles(modelCacheMul, AccessMode::READ_WRITE, &modelCache); in TEST_P()
1173 saveModelToCache(modelMul, modelCache, dataCache); in TEST_P()
1181 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
1182 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
1184 saveModelToCache(modelAdd, modelCache, dataCache); in TEST_P()
1194 hidl_vec<hidl_handle> modelCache, dataCache; in TEST_P() local
1195 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
1197 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
1284 hidl_vec<hidl_handle> modelCache, dataCache; in testCorruptedCache() local
1285 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in testCorruptedCache()
1287 saveModelToCache(model, modelCache, dataCache); in testCorruptedCache()
1298 hidl_vec<hidl_handle> modelCache, dataCache; in testCorruptedCache() local
1299 createCacheHandles(mModelCache, AccessMode::READ_WRITE, &modelCache); in testCorruptedCache()
1301 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in testCorruptedCache()