Lines Matching refs:Success

283 enum class Success : uint32_t {  enum
336 bool hasBit(Success mask, Success bit) { in hasBit()
343 Success clearBit(Success mask, Success bit) { in clearBit()
347 return static_cast<Success>(static_cast<uint32_t>(mask) & ~bitAsInt); in clearBit()
350 std::ostream& operator<<(std::ostream& os, Success success) { in operator <<()
352 case Success::FAIL_LAUNCH: in operator <<()
354 case Success::FAIL_WAIT: in operator <<()
356 case Success::PASS_CPU: in operator <<()
362 static const std::vector<std::pair<Success, const char*>> bits = { in operator <<()
363 {Success::PASS_BIT, "PASS"}, in operator <<()
364 {Success::PASS_UNFENCED_DEVICE_BIT, "UNFENCED_DEVICE"}, in operator <<()
365 {Success::PASS_UNFENCED_DRIVER_BIT, "UNFENCED_DRIVER"}, in operator <<()
366 {Success::PASS_FENCED_DEVICE_BIT, "FENCED_DEVICE"}, in operator <<()
367 {Success::PASS_FENCED_DRIVER_BIT, "FENCED_DRIVER"}, in operator <<()
392 std::pair<V1_2::Timing, V1_2::Timing> getExpectedTiming(Success s, bool fencedExecution) { in getExpectedTiming()
393 CHECK_NE(s, Success::PASS_CPU); in getExpectedTiming()
395 if (!hasBit(s, Success::PASS_BIT)) { in getExpectedTiming()
400 result.first.timeOnDevice = hasBit(s, Success::PASS_UNFENCED_DEVICE_BIT) in getExpectedTiming()
403 result.first.timeInDriver = hasBit(s, Success::PASS_UNFENCED_DRIVER_BIT) in getExpectedTiming()
407 result.second.timeOnDevice = hasBit(s, Success::PASS_FENCED_DEVICE_BIT) in getExpectedTiming()
410 result.second.timeInDriver = hasBit(s, Success::PASS_FENCED_DRIVER_BIT) in getExpectedTiming()
424 TestPreparedModelLatest(const HidlModel& model, const SampleDriver* driver, Success success) in TestPreparedModelLatest()
432 case Success::PASS_NEITHER: in execute()
438 case Success::FAIL_LAUNCH: in execute()
442 case Success::FAIL_WAIT: in execute()
459 case Success::PASS_NEITHER: in execute_1_2()
460 case Success::PASS_DEVICE: in execute_1_2()
461 case Success::PASS_DRIVER: in execute_1_2()
462 case Success::PASS_BOTH: in execute_1_2()
469 case Success::FAIL_LAUNCH: in execute_1_2()
473 case Success::FAIL_WAIT: in execute_1_2()
498 case Success::PASS_NEITHER: in executeSynchronously()
499 case Success::PASS_DEVICE: in executeSynchronously()
500 case Success::PASS_DRIVER: in executeSynchronously()
501 case Success::PASS_BOTH: in executeSynchronously()
505 case Success::FAIL_WAIT: in executeSynchronously()
511 case Success::FAIL_LAUNCH: in executeSynchronously()
559 if (hasBit(mSuccess, Success::PASS_BIT)) { in executeFenced()
570 case Success::FAIL_WAIT: in executeFenced()
576 case Success::FAIL_LAUNCH: in executeFenced()
611 Success mSuccess;
631 TestPreparedModel12(const HidlModel& model, const SampleDriver* driver, Success success) in TestPreparedModel12()
667 TestPreparedModel10(const HidlModel& model, const SampleDriver* driver, Success success) in TestPreparedModel10()
682 TestDriver13(const std::string& name, Success success) in TestDriver13()
750 Success mSuccess;
756 TestDriver11(const std::string& name, Success success) in TestDriver11()
821 public ::testing::WithParamInterface<std::tuple<DriverKind, Success, Compute>> {
830 const Success kSuccess;
836 ASSERT_EQ(kDriverKind == DriverKind::CPU, kSuccess == Success::PASS_CPU); in TEST_P()
840 kSuccess != Success::FAIL_WAIT); in TEST_P()
898 const bool isPass = hasBit(kSuccess, Success::PASS_BIT); in TEST_P()
1065 std::make_tuple(DriverKind::CPU, Success::PASS_CPU, Compute::ASYNC),
1066 std::make_tuple(DriverKind::CPU, Success::PASS_CPU, Compute::SYNC),
1067 std::make_tuple(DriverKind::CPU, Success::PASS_CPU, Compute::BURST),
1070 std::make_tuple(DriverKind::OLD, Success::PASS_NEITHER, Compute::ASYNC),
1071 std::make_tuple(DriverKind::OLD, Success::PASS_NEITHER, Compute::SYNC),
1072 std::make_tuple(DriverKind::OLD, Success::PASS_NEITHER, Compute::BURST),
1074 std::make_tuple(DriverKind::OLD, Success::FAIL_LAUNCH, Compute::ASYNC),
1075 std::make_tuple(DriverKind::OLD, Success::FAIL_LAUNCH, Compute::SYNC),
1076 std::make_tuple(DriverKind::OLD, Success::FAIL_LAUNCH, Compute::BURST),
1079 std::make_tuple(DriverKind::OLD, Success::FAIL_WAIT, Compute::ASYNC),
1081 std::make_tuple(DriverKind::NEW, Success::PASS_NEITHER, Compute::ASYNC),
1082 std::make_tuple(DriverKind::NEW, Success::PASS_NEITHER, Compute::SYNC),
1083 std::make_tuple(DriverKind::NEW, Success::PASS_NEITHER, Compute::BURST),
1085 std::make_tuple(DriverKind::NEW, Success::PASS_DEVICE, Compute::ASYNC),
1086 std::make_tuple(DriverKind::NEW, Success::PASS_DEVICE, Compute::SYNC),
1087 std::make_tuple(DriverKind::NEW, Success::PASS_DEVICE, Compute::BURST),
1089 std::make_tuple(DriverKind::NEW, Success::PASS_DRIVER, Compute::ASYNC),
1090 std::make_tuple(DriverKind::NEW, Success::PASS_DRIVER, Compute::SYNC),
1091 std::make_tuple(DriverKind::NEW, Success::PASS_DRIVER, Compute::BURST),
1093 std::make_tuple(DriverKind::NEW, Success::PASS_BOTH, Compute::ASYNC),
1094 std::make_tuple(DriverKind::NEW, Success::PASS_BOTH, Compute::SYNC),
1095 std::make_tuple(DriverKind::NEW, Success::PASS_BOTH, Compute::BURST),
1097 std::make_tuple(DriverKind::NEW, Success::FAIL_LAUNCH, Compute::ASYNC),
1098 std::make_tuple(DriverKind::NEW, Success::FAIL_LAUNCH, Compute::SYNC),
1099 std::make_tuple(DriverKind::NEW, Success::FAIL_LAUNCH, Compute::BURST),
1102 std::make_tuple(DriverKind::NEW, Success::FAIL_WAIT, Compute::ASYNC));
1106 std::make_tuple(DriverKind::CPU, Success::PASS_CPU, Compute::FENCED),
1109 std::make_tuple(DriverKind::OLD, Success::PASS_NEITHER, Compute::FENCED),
1111 std::make_tuple(DriverKind::OLD, Success::FAIL_LAUNCH, Compute::FENCED),
1113 std::make_tuple(DriverKind::NEW, Success::PASS_NEITHER, Compute::FENCED),
1114 std::make_tuple(DriverKind::NEW, Success::PASS_DEVICE, Compute::FENCED),
1115 std::make_tuple(DriverKind::NEW, Success::PASS_DRIVER, Compute::FENCED),
1116 std::make_tuple(DriverKind::NEW, Success::PASS_BOTH, Compute::FENCED),
1117 std::make_tuple(DriverKind::NEW, Success::PASS_NEITHER_DEVICE, Compute::FENCED),
1118 std::make_tuple(DriverKind::NEW, Success::PASS_NEITHER_DRIVER, Compute::FENCED),
1119 std::make_tuple(DriverKind::NEW, Success::PASS_NEITHER_BOTH, Compute::FENCED),
1120 std::make_tuple(DriverKind::NEW, Success::PASS_DEVICE_DEVICE, Compute::FENCED),
1121 std::make_tuple(DriverKind::NEW, Success::PASS_DEVICE_DRIVER, Compute::FENCED),
1122 std::make_tuple(DriverKind::NEW, Success::PASS_DEVICE_BOTH, Compute::FENCED),
1123 std::make_tuple(DriverKind::NEW, Success::PASS_DRIVER_DEVICE, Compute::FENCED),
1124 std::make_tuple(DriverKind::NEW, Success::PASS_DRIVER_DRIVER, Compute::FENCED),
1125 std::make_tuple(DriverKind::NEW, Success::PASS_DRIVER_BOTH, Compute::FENCED),
1126 std::make_tuple(DriverKind::NEW, Success::PASS_BOTH_DEVICE, Compute::FENCED),
1127 std::make_tuple(DriverKind::NEW, Success::PASS_BOTH_DRIVER, Compute::FENCED),
1128 std::make_tuple(DriverKind::NEW, Success::PASS_BOTH_BOTH, Compute::FENCED),
1130 std::make_tuple(DriverKind::NEW, Success::FAIL_LAUNCH, Compute::FENCED));
1180 nn::makeSharedDevice(name, new TestDriver11(name, Success::PASS_BOTH))); in TEST_F()
1197 nn::makeSharedDevice(name, new TestDriver11(name, Success::PASS_BOTH))); in TEST_F()
1245 nn::makeSharedDevice(name, new TestDriver11(name, Success::PASS_BOTH))); in TEST_F()
1341 nn::makeSharedDevice(name, new TestDriver11(name, Success::PASS_BOTH))); in TEST_F()
1362 nn::makeSharedDevice(name, new TestDriver13(name, Success::PASS_BOTH))); in TEST_F()
1399 nn::makeSharedDevice(name, new TestDriver13(name, Success::PASS_BOTH))); in TEST_F()
1540 return new TestDriver11(deviceName, Success::PASS_BOTH_BOTH); in trial()
1542 return new TestDriver13(deviceName, Success::PASS_BOTH_BOTH); in trial()