Lines Matching refs:driver
376 void compileModel(const sp<CachingDriver>& driver, bool withToken) { in compileModel() argument
377 DeviceManager::get()->forTest_registerDevice(makeSharedDevice(kDeviceName.data(), driver)); in compileModel()
403 sp<CachingDriver> driver = in createCache() local
406 compileModel(driver, /*withToken=*/true); in createCache()
423 sp<CachingDriver> driver = in TEST_P() local
426 compileModel(driver, /*withToken=*/true); in TEST_P()
429 EXPECT_FALSE(driver->hasCalledPrepareModelFromCache()); in TEST_P()
432 EXPECT_EQ(driver->hasCalledPrepareModel(), kIsCachingSupported in TEST_P()
442 sp<CachingDriver> driver = in TEST_P() local
445 compileModel(driver, /*withToken=*/true); in TEST_P()
449 EXPECT_EQ(driver->hasCalledPrepareModelFromCache(), kIsCachingSupported); in TEST_P()
466 EXPECT_EQ(driver->hasCalledPrepareModel(), expectHasCalledPrepareModel); in TEST_P()
473 sp<CachingDriver> driver = in TEST_P() local
476 compileModel(driver, /*withToken=*/false); in TEST_P()
480 EXPECT_FALSE(driver->hasCalledPrepareModelFromCache()); in TEST_P()
481 EXPECT_EQ(driver->hasCalledPrepareModel(), HasCalledPrepareModel::WITHOUT_CACHING); in TEST_P()