Lines Matching refs:kMockDevice

538     const sp<MockDevice> kMockDevice = MockDevice::create();  member in android::nn::__anonc4f555280111::VersionedIDeviceTest
554 makeVersionedIDeviceSuccessfulInitializationFrom(kMockDevice, kMockMakeDevice.get(),
580 EXPECT_CALL(*kMockDevice, linkToDeathRet()) in TEST_F()
583 EXPECT_CALL(*kMockMakeDevice, Call(_)).Times(1).WillOnce(testing::Return(kMockDevice)); in TEST_F()
596 EXPECT_CALL(*kMockMakeDevice, Call(_)).Times(1).WillOnce(testing::Return(kMockDevice)); in TEST_F()
597 EXPECT_CALL(*kMockDevice, linkToDeathRet()).Times(1).WillOnce(InvokeWithoutArgs(ret)); in TEST_F()
610 EXPECT_CALL(*kMockDevice, getCapabilities(_)).Times(1).WillOnce(Invoke(ret)); in TEST_F()
613 const auto device = makeVersionedIDeviceFrom(kMockDevice, kMockMakeDevice.get(), Version::V1_0); in TEST_F()
622 EXPECT_CALL(*kMockDevice, getCapabilities_1_1(_)).Times(1).WillOnce(Invoke(ret)); in TEST_F()
625 const auto device = makeVersionedIDeviceFrom(kMockDevice, kMockMakeDevice.get(), Version::V1_1); in TEST_F()
634 EXPECT_CALL(*kMockDevice, getCapabilities_1_2(_)).Times(1).WillOnce(Invoke(ret)); in TEST_F()
637 const auto device = makeVersionedIDeviceFrom(kMockDevice, kMockMakeDevice.get(), Version::V1_2); in TEST_F()
646 EXPECT_CALL(*kMockDevice, getCapabilities_1_3(_)).Times(1).WillOnce(Invoke(ret)); in TEST_F()
649 const auto device = makeVersionedIDeviceFrom(kMockDevice, kMockMakeDevice.get(), Version::V1_3); in TEST_F()
658 EXPECT_CALL(*kMockDevice, getVersionString(_)).Times(1).WillOnce(Invoke(ret)); in TEST_F()
661 const auto device = makeVersionedIDeviceFrom(kMockDevice, kMockMakeDevice.get(), Version::V1_2); in TEST_F()
670 EXPECT_CALL(*kMockDevice, getType(_)).Times(1).WillOnce(Invoke(ret)); in TEST_F()
673 const auto device = makeVersionedIDeviceFrom(kMockDevice, kMockMakeDevice.get(), Version::V1_2); in TEST_F()
682 EXPECT_CALL(*kMockDevice, getSupportedExtensions(_)).Times(1).WillOnce(Invoke(ret)); in TEST_F()
685 const auto device = makeVersionedIDeviceFrom(kMockDevice, kMockMakeDevice.get(), Version::V1_2); in TEST_F()
695 EXPECT_CALL(*kMockDevice, getNumberOfCacheFilesNeeded(_)).Times(1).WillOnce(Invoke(ret)); in TEST_F()
698 const auto device = makeVersionedIDeviceFrom(kMockDevice, kMockMakeDevice.get(), Version::V1_2); in TEST_F()
708 EXPECT_CALL(*kMockDevice, getNumberOfCacheFilesNeeded(_)).Times(1).WillOnce(Invoke(ret)); in TEST_F()
711 const auto device = makeVersionedIDeviceFrom(kMockDevice, kMockMakeDevice.get(), Version::V1_2); in TEST_F()
721 EXPECT_CALL(*kMockDevice, getNumberOfCacheFilesNeeded(_)).Times(1).WillOnce(Invoke(ret)); in TEST_F()
724 const auto device = makeVersionedIDeviceFrom(kMockDevice, kMockMakeDevice.get(), Version::V1_2); in TEST_F()
732 EXPECT_CALL(*kMockDevice, getCapabilities(_)) in TEST_F()
737 const auto device = makeVersionedIDeviceFrom(kMockDevice, kMockMakeDevice.get(), Version::V1_0); in TEST_F()
745 EXPECT_CALL(*kMockDevice, getCapabilities_1_1(_)) in TEST_F()
750 const auto device = makeVersionedIDeviceFrom(kMockDevice, kMockMakeDevice.get(), Version::V1_1); in TEST_F()
758 EXPECT_CALL(*kMockDevice, getCapabilities_1_2(_)) in TEST_F()
763 const auto device = makeVersionedIDeviceFrom(kMockDevice, kMockMakeDevice.get(), Version::V1_2); in TEST_F()
771 EXPECT_CALL(*kMockDevice, getCapabilities_1_3(_)) in TEST_F()
776 const auto device = makeVersionedIDeviceFrom(kMockDevice, kMockMakeDevice.get(), Version::V1_3); in TEST_F()
784 EXPECT_CALL(*kMockDevice, getVersionString(_)) in TEST_F()
789 const auto device = makeVersionedIDeviceFrom(kMockDevice, kMockMakeDevice.get(), Version::V1_2); in TEST_F()
797 EXPECT_CALL(*kMockDevice, getType(_)) in TEST_F()
802 const auto device = makeVersionedIDeviceFrom(kMockDevice, kMockMakeDevice.get(), Version::V1_2); in TEST_F()
810 EXPECT_CALL(*kMockDevice, getSupportedExtensions(_)) in TEST_F()
815 const auto device = makeVersionedIDeviceFrom(kMockDevice, kMockMakeDevice.get(), Version::V1_2); in TEST_F()
823 EXPECT_CALL(*kMockDevice, getNumberOfCacheFilesNeeded(_)) in TEST_F()
828 const auto device = makeVersionedIDeviceFrom(kMockDevice, kMockMakeDevice.get(), Version::V1_2); in TEST_F()
1112 EXPECT_CALL(*kMockDevice, getSupportedOperations(_, _)).Times(1).WillOnce(Invoke(ret)); in TEST_F()
1129 EXPECT_CALL(*kMockDevice, getSupportedOperations_1_1(_, _)).Times(1).WillOnce(Invoke(ret)); in TEST_F()
1146 EXPECT_CALL(*kMockDevice, getSupportedOperations_1_2(_, _)).Times(1).WillOnce(Invoke(ret)); in TEST_F()
1163 EXPECT_CALL(*kMockDevice, getSupportedOperations_1_3(_, _)).Times(1).WillOnce(Invoke(ret)); in TEST_F()
1179 EXPECT_CALL(*kMockDevice, prepareModel(_, _)).Times(1).WillOnce(Invoke(ret)); in TEST_F()
1195 EXPECT_CALL(*kMockDevice, prepareModel_1_1(_, _, _)).Times(1).WillOnce(Invoke(ret)); in TEST_F()
1211 EXPECT_CALL(*kMockDevice, prepareModel_1_2(_, _, _, _, _, _)).Times(1).WillOnce(Invoke(ret)); in TEST_F()
1227 EXPECT_CALL(*kMockDevice, prepareModel_1_3(_, _, _, _, _, _, _, _)) in TEST_F()
1282 EXPECT_CALL(*kMockDevice, allocate(_, _, _, _, _)).Times(1).WillOnce(Invoke(ret)); in TEST_F()
1296 EXPECT_CALL(*kMockDevice, ping()).Times(1).WillOnce(Invoke(ret)); in TEST_F()
1313 EXPECT_CALL(*kMockDevice, getSupportedOperations(_, _)).Times(1).WillOnce(Invoke(ret)); in TEST_F()
1330 EXPECT_CALL(*kMockDevice, getSupportedOperations_1_1(_, _)).Times(1).WillOnce(Invoke(ret)); in TEST_F()
1347 EXPECT_CALL(*kMockDevice, getSupportedOperations_1_2(_, _)).Times(1).WillOnce(Invoke(ret)); in TEST_F()
1364 EXPECT_CALL(*kMockDevice, getSupportedOperations_1_3(_, _)).Times(1).WillOnce(Invoke(ret)); in TEST_F()
1380 EXPECT_CALL(*kMockDevice, prepareModel(_, _)).Times(1).WillOnce(Invoke(ret)); in TEST_F()
1396 EXPECT_CALL(*kMockDevice, prepareModel_1_1(_, _, _)).Times(1).WillOnce(Invoke(ret)); in TEST_F()
1412 EXPECT_CALL(*kMockDevice, prepareModel_1_2(_, _, _, _, _, _)).Times(1).WillOnce(Invoke(ret)); in TEST_F()
1428 EXPECT_CALL(*kMockDevice, prepareModel_1_3(_, _, _, _, _, _, _, _)) in TEST_F()
1446 EXPECT_CALL(*kMockDevice, prepareModel(_, _)).Times(1).WillOnce(Invoke(ret)); in TEST_F()
1462 EXPECT_CALL(*kMockDevice, prepareModel_1_1(_, _, _)).Times(1).WillOnce(Invoke(ret)); in TEST_F()
1478 EXPECT_CALL(*kMockDevice, prepareModel_1_2(_, _, _, _, _, _)).Times(1).WillOnce(Invoke(ret)); in TEST_F()
1494 EXPECT_CALL(*kMockDevice, prepareModel_1_3(_, _, _, _, _, _, _, _)) in TEST_F()
1512 EXPECT_CALL(*kMockDevice, prepareModel(_, _)).Times(1).WillOnce(Invoke(ret)); in TEST_F()
1528 EXPECT_CALL(*kMockDevice, prepareModel_1_1(_, _, _)).Times(1).WillOnce(Invoke(ret)); in TEST_F()
1544 EXPECT_CALL(*kMockDevice, prepareModel_1_2(_, _, _, _, _, _)).Times(1).WillOnce(Invoke(ret)); in TEST_F()
1560 EXPECT_CALL(*kMockDevice, prepareModel_1_3(_, _, _, _, _, _, _, _)) in TEST_F()
1583 EXPECT_CALL(*kMockDevice, allocate(_, _, _, _, _)).Times(1).WillOnce(Invoke(ret)); in TEST_F()
1598 EXPECT_CALL(*kMockDevice, getSupportedOperations(_, _)) in TEST_F()
1613 EXPECT_CALL(*kMockDevice, getSupportedOperations_1_1(_, _)) in TEST_F()
1628 EXPECT_CALL(*kMockDevice, getSupportedOperations_1_2(_, _)) in TEST_F()
1643 EXPECT_CALL(*kMockDevice, getSupportedOperations_1_3(_, _)) in TEST_F()
1658 EXPECT_CALL(*kMockDevice, prepareModel(_, _)) in TEST_F()
1673 EXPECT_CALL(*kMockDevice, prepareModel_1_1(_, _, _)) in TEST_F()
1688 EXPECT_CALL(*kMockDevice, prepareModel_1_2(_, _, _, _, _, _)) in TEST_F()
1703 EXPECT_CALL(*kMockDevice, prepareModel_1_3(_, _, _, _, _, _, _, _)) in TEST_F()
1718 EXPECT_CALL(*kMockDevice, allocate(_, _, _, _, _)) in TEST_F()
1733 EXPECT_CALL(*kMockDevice, ping()) in TEST_F()
1749 EXPECT_CALL(*kMockDevice, prepareModel_1_3(_, _, _, _, _, _, _, _)) in TEST_F()
1752 EXPECT_CALL(*kMockDevice, ping()).Times(1).WillOnce(InvokeWithoutArgs(makeDeadObjectFailure)); in TEST_F()
1780 EXPECT_CALL(*kMockDevice, prepareModel_1_3(_, _, _, _, _, _, _, _)) in TEST_F()
1783 EXPECT_CALL(*kMockDevice, ping()) in TEST_F()
1802 kMockDevice->simulateCrash(); in TEST_F()
1805 EXPECT_CALL(*kMockDevice, prepareModel_1_3(_, _, _, _, _, _, _, _)) in TEST_F()
1820 EXPECT_CALL(*kMockDevice, ping()) in TEST_F()
1836 EXPECT_CALL(*kMockDevice, ping()).Times(1).WillOnce(InvokeWithoutArgs(makeDeadObjectFailure)); in TEST_F()
1857 EXPECT_CALL(*kMockDevice, ping()).Times(1).WillOnce(InvokeWithoutArgs(makeDeadObjectFailure)); in TEST_F()
1928 Base::kMockDevice, kMockPreparedModel, *Base::kDevice);
1946 EXPECT_CALL(*kMockDevice, prepareModel_1_3(_, _, _, _, _, _, _, _)) in TEST_F()
1966 EXPECT_CALL(*kMockDevice, prepareModel_1_3(_, _, _, _, _, _, _, _)) in TEST_F()
1986 EXPECT_CALL(*kMockDevice, prepareModel_1_3(_, _, _, _, _, _, _, _)) in TEST_F()