Lines Matching refs:driver
366 void compileModel(const sp<CachingDriver>& driver, bool withToken) { in compileModel() argument
367 DeviceManager::get()->forTest_registerDevice(kDeviceName.data(), driver); in compileModel()
393 sp<CachingDriver> driver = new CachingDriver(kDeviceName, ErrorStatus::NONE, kNumModelCache, in createCache() local
395 compileModel(driver, /*withToken=*/true); in createCache()
412 sp<CachingDriver> driver = new CachingDriver(kDeviceName, ErrorStatus::NONE, kNumModelCache, in TEST_P() local
414 compileModel(driver, /*withToken=*/true); in TEST_P()
417 EXPECT_FALSE(driver->hasCalledPrepareModelFromCache()); in TEST_P()
420 EXPECT_EQ(driver->hasCalledPrepareModel(), kIsCachingSupported in TEST_P()
430 sp<CachingDriver> driver = new CachingDriver(kDeviceName, ErrorStatus::NONE, kNumModelCache, in TEST_P() local
432 compileModel(driver, /*withToken=*/true); in TEST_P()
436 EXPECT_EQ(driver->hasCalledPrepareModelFromCache(), kIsCachingSupported); in TEST_P()
453 EXPECT_EQ(driver->hasCalledPrepareModel(), expectHasCalledPrepareModel); in TEST_P()
460 sp<CachingDriver> driver = new CachingDriver(kDeviceName, ErrorStatus::NONE, kNumModelCache, in TEST_P() local
462 compileModel(driver, /*withToken=*/false); in TEST_P()
466 EXPECT_FALSE(driver->hasCalledPrepareModelFromCache()); in TEST_P()
467 EXPECT_EQ(driver->hasCalledPrepareModel(), HasCalledPrepareModel::WITHOUT_CACHING); in TEST_P()