• Home
  • Raw
  • Download

Lines Matching refs:modelCache

319                           const std::vector<ndk::ScopedFileDescriptor>& modelCache,  in saveModelToCache()  argument
330 modelCache, dataCache, cacheToken, preparedModelCallback); in saveModelToCache()
371 void prepareModelFromCache(const std::vector<ndk::ScopedFileDescriptor>& modelCache, in prepareModelFromCache() argument
380 kNoDeadline, modelCache, dataCache, cacheToken, preparedModelCallback); in prepareModelFromCache()
396 kNoDeadline, modelCache, dataCache, cacheToken, preparedModelCallback); in prepareModelFromCache()
419 void verifyModelPreparationBehaviour(const std::vector<ndk::ScopedFileDescriptor>& modelCache, in verifyModelPreparationBehaviour() argument
427 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status, in verifyModelPreparationBehaviour()
437 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status, in verifyModelPreparationBehaviour()
493 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P() local
494 createCacheFds(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
496 saveModelToCache(model, modelCache, dataCache); in TEST_P()
503 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P() local
504 createCacheFds(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
506 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status, in TEST_P()
534 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P() local
535 createCacheFds(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
540 for (uint32_t i = 0; i < modelCache.size(); i++) { in TEST_P()
541 ASSERT_EQ(write(modelCache[i].get(), &placeholderBytes, sizeof(placeholderBytes)), in TEST_P()
548 saveModelToCache(model, modelCache, dataCache); in TEST_P()
555 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P() local
556 createCacheFds(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
561 for (uint32_t i = 0; i < modelCache.size(); i++) { in TEST_P()
562 ASSERT_GE(read(modelCache[i].get(), &placeholderByte, 1), 0); in TEST_P()
567 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status, in TEST_P()
594 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P() local
597 createCacheFds(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
601 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
606 verifyModelPreparationBehaviour(modelCache, dataCache, &model, testModel); in TEST_P()
611 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P() local
615 createCacheFds(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
619 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
624 verifyModelPreparationBehaviour(modelCache, dataCache, &model, testModel); in TEST_P()
629 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P() local
632 createCacheFds(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
636 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
641 verifyModelPreparationBehaviour(modelCache, dataCache, &model, testModel); in TEST_P()
646 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P() local
650 createCacheFds(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
654 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
659 verifyModelPreparationBehaviour(modelCache, dataCache, &model, testModel); in TEST_P()
671 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P() local
672 createCacheFds(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
674 saveModelToCache(model, modelCache, dataCache); in TEST_P()
679 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P() local
681 createCacheFds(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
685 verifyModelPreparationBehaviour(modelCache, dataCache, &model, testModel); in TEST_P()
690 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P() local
693 createCacheFds(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
697 verifyModelPreparationBehaviour(modelCache, dataCache, &model, testModel); in TEST_P()
702 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P() local
704 createCacheFds(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
708 verifyModelPreparationBehaviour(modelCache, dataCache, &model, testModel); in TEST_P()
713 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P() local
716 createCacheFds(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
720 verifyModelPreparationBehaviour(modelCache, dataCache, &model, testModel); in TEST_P()
734 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P() local
736 createCacheFds(mModelCache, modelCacheMode, &modelCache); in TEST_P()
740 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
745 verifyModelPreparationBehaviour(modelCache, dataCache, &model, testModel); in TEST_P()
750 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P() local
752 createCacheFds(mModelCache, modelCacheMode, &modelCache); in TEST_P()
756 saveModelToCache(model, modelCache, dataCache, &preparedModel); in TEST_P()
761 verifyModelPreparationBehaviour(modelCache, dataCache, &model, testModel); in TEST_P()
775 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P() local
776 createCacheFds(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
778 saveModelToCache(model, modelCache, dataCache); in TEST_P()
783 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P() local
785 createCacheFds(mModelCache, modelCacheMode, &modelCache); in TEST_P()
789 verifyModelPreparationBehaviour(modelCache, dataCache, &model, testModel); in TEST_P()
794 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P() local
796 createCacheFds(mModelCache, modelCacheMode, &modelCache); in TEST_P()
799 verifyModelPreparationBehaviour(modelCache, dataCache, &model, testModel); in TEST_P()
849 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P() local
850 createCacheFds(modelCacheMul, AccessMode::READ_WRITE, &modelCache); in TEST_P()
852 saveModelToCache(modelMul, modelCache, dataCache); in TEST_P()
862 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P() local
863 createCacheFds(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
868 saveModelToCache(modelAdd, modelCache, dataCache); in TEST_P()
876 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P() local
877 createCacheFds(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
879 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status, in TEST_P()
912 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P() local
913 createCacheFds(modelCacheMul, AccessMode::READ_WRITE, &modelCache); in TEST_P()
915 saveModelToCache(modelMul, modelCache, dataCache); in TEST_P()
925 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P() local
926 createCacheFds(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
928 saveModelToCache(modelAdd, modelCache, dataCache); in TEST_P()
935 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P() local
936 createCacheFds(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
941 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status, in TEST_P()
975 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P() local
976 createCacheFds(modelCacheMul, AccessMode::READ_WRITE, &modelCache); in TEST_P()
978 saveModelToCache(modelMul, modelCache, dataCache); in TEST_P()
986 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P() local
987 createCacheFds(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
989 saveModelToCache(modelAdd, modelCache, dataCache); in TEST_P()
999 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in TEST_P() local
1000 createCacheFds(mModelCache, AccessMode::READ_WRITE, &modelCache); in TEST_P()
1002 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P()
1090 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in testCorruptedCache() local
1091 createCacheFds(mModelCache, AccessMode::READ_WRITE, &modelCache); in testCorruptedCache()
1093 saveModelToCache(model, modelCache, dataCache); in testCorruptedCache()
1104 std::vector<ndk::ScopedFileDescriptor> modelCache, dataCache; in testCorruptedCache() local
1105 createCacheFds(mModelCache, AccessMode::READ_WRITE, &modelCache); in testCorruptedCache()
1107 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in testCorruptedCache()