Lines Matching refs:Success

277 enum class Success : uint32_t {  enum
330 bool hasBit(Success mask, Success bit) { in hasBit()
337 Success clearBit(Success mask, Success bit) { in clearBit()
341 return static_cast<Success>(static_cast<uint32_t>(mask) & ~bitAsInt); in clearBit()
344 std::ostream& operator<<(std::ostream& os, Success success) { in operator <<()
346 case Success::FAIL_LAUNCH: in operator <<()
348 case Success::FAIL_WAIT: in operator <<()
350 case Success::PASS_CPU: in operator <<()
356 static const std::vector<std::pair<Success, const char*>> bits = { in operator <<()
357 {Success::PASS_BIT, "PASS"}, in operator <<()
358 {Success::PASS_UNFENCED_DEVICE_BIT, "UNFENCED_DEVICE"}, in operator <<()
359 {Success::PASS_UNFENCED_DRIVER_BIT, "UNFENCED_DRIVER"}, in operator <<()
360 {Success::PASS_FENCED_DEVICE_BIT, "FENCED_DEVICE"}, in operator <<()
361 {Success::PASS_FENCED_DRIVER_BIT, "FENCED_DRIVER"}, in operator <<()
386 std::pair<Timing, Timing> getExpectedTiming(Success s, bool fencedExecution) { in getExpectedTiming()
387 CHECK_NE(s, Success::PASS_CPU); in getExpectedTiming()
389 if (!hasBit(s, Success::PASS_BIT)) { in getExpectedTiming()
394 result.first.timeOnDevice = hasBit(s, Success::PASS_UNFENCED_DEVICE_BIT) in getExpectedTiming()
397 result.first.timeInDriver = hasBit(s, Success::PASS_UNFENCED_DRIVER_BIT) in getExpectedTiming()
401 result.second.timeOnDevice = hasBit(s, Success::PASS_FENCED_DEVICE_BIT) in getExpectedTiming()
404 result.second.timeInDriver = hasBit(s, Success::PASS_FENCED_DRIVER_BIT) in getExpectedTiming()
418 TestPreparedModelLatest(const HidlModel& model, const SampleDriver* driver, Success success) in TestPreparedModelLatest()
426 case Success::PASS_NEITHER: in execute()
432 case Success::FAIL_LAUNCH: in execute()
436 case Success::FAIL_WAIT: in execute()
452 case Success::PASS_NEITHER: in execute_1_2()
453 case Success::PASS_DEVICE: in execute_1_2()
454 case Success::PASS_DRIVER: in execute_1_2()
455 case Success::PASS_BOTH: in execute_1_2()
462 case Success::FAIL_LAUNCH: in execute_1_2()
466 case Success::FAIL_WAIT: in execute_1_2()
490 case Success::PASS_NEITHER: in executeSynchronously()
491 case Success::PASS_DEVICE: in executeSynchronously()
492 case Success::PASS_DRIVER: in executeSynchronously()
493 case Success::PASS_BOTH: in executeSynchronously()
497 case Success::FAIL_WAIT: in executeSynchronously()
503 case Success::FAIL_LAUNCH: in executeSynchronously()
544 if (hasBit(mSuccess, Success::PASS_BIT)) { in executeFenced()
554 case Success::FAIL_WAIT: in executeFenced()
560 case Success::FAIL_LAUNCH: in executeFenced()
587 Success mSuccess;
607 TestPreparedModel12(const HidlModel& model, const SampleDriver* driver, Success success) in TestPreparedModel12()
641 TestPreparedModel10(const HidlModel& model, const SampleDriver* driver, Success success) in TestPreparedModel10()
656 TestDriver13(const std::string& name, Success success) in TestDriver13()
727 Success mSuccess;
733 TestDriver11(const std::string& name, Success success) in TestDriver11()
798 public ::testing::WithParamInterface<std::tuple<DriverKind, Success, Compute>> {
807 const Success kSuccess;
813 ASSERT_EQ(kDriverKind == DriverKind::CPU, kSuccess == Success::PASS_CPU); in TEST_P()
817 kSuccess != Success::FAIL_WAIT); in TEST_P()
873 const bool isPass = hasBit(kSuccess, Success::PASS_BIT); in TEST_P()
1040 std::make_tuple(DriverKind::CPU, Success::PASS_CPU, Compute::ASYNC),
1041 std::make_tuple(DriverKind::CPU, Success::PASS_CPU, Compute::SYNC),
1042 std::make_tuple(DriverKind::CPU, Success::PASS_CPU, Compute::BURST),
1045 std::make_tuple(DriverKind::OLD, Success::PASS_NEITHER, Compute::ASYNC),
1046 std::make_tuple(DriverKind::OLD, Success::PASS_NEITHER, Compute::SYNC),
1047 std::make_tuple(DriverKind::OLD, Success::PASS_NEITHER, Compute::BURST),
1049 std::make_tuple(DriverKind::OLD, Success::FAIL_LAUNCH, Compute::ASYNC),
1050 std::make_tuple(DriverKind::OLD, Success::FAIL_LAUNCH, Compute::SYNC),
1051 std::make_tuple(DriverKind::OLD, Success::FAIL_LAUNCH, Compute::BURST),
1054 std::make_tuple(DriverKind::OLD, Success::FAIL_WAIT, Compute::ASYNC),
1056 std::make_tuple(DriverKind::NEW, Success::PASS_NEITHER, Compute::ASYNC),
1057 std::make_tuple(DriverKind::NEW, Success::PASS_NEITHER, Compute::SYNC),
1058 std::make_tuple(DriverKind::NEW, Success::PASS_NEITHER, Compute::BURST),
1060 std::make_tuple(DriverKind::NEW, Success::PASS_DEVICE, Compute::ASYNC),
1061 std::make_tuple(DriverKind::NEW, Success::PASS_DEVICE, Compute::SYNC),
1062 std::make_tuple(DriverKind::NEW, Success::PASS_DEVICE, Compute::BURST),
1064 std::make_tuple(DriverKind::NEW, Success::PASS_DRIVER, Compute::ASYNC),
1065 std::make_tuple(DriverKind::NEW, Success::PASS_DRIVER, Compute::SYNC),
1066 std::make_tuple(DriverKind::NEW, Success::PASS_DRIVER, Compute::BURST),
1068 std::make_tuple(DriverKind::NEW, Success::PASS_BOTH, Compute::ASYNC),
1069 std::make_tuple(DriverKind::NEW, Success::PASS_BOTH, Compute::SYNC),
1070 std::make_tuple(DriverKind::NEW, Success::PASS_BOTH, Compute::BURST),
1072 std::make_tuple(DriverKind::NEW, Success::FAIL_LAUNCH, Compute::ASYNC),
1073 std::make_tuple(DriverKind::NEW, Success::FAIL_LAUNCH, Compute::SYNC),
1074 std::make_tuple(DriverKind::NEW, Success::FAIL_LAUNCH, Compute::BURST),
1077 std::make_tuple(DriverKind::NEW, Success::FAIL_WAIT, Compute::ASYNC));
1081 std::make_tuple(DriverKind::CPU, Success::PASS_CPU, Compute::FENCED),
1084 std::make_tuple(DriverKind::OLD, Success::PASS_NEITHER, Compute::FENCED),
1086 std::make_tuple(DriverKind::OLD, Success::FAIL_LAUNCH, Compute::FENCED),
1088 std::make_tuple(DriverKind::NEW, Success::PASS_NEITHER, Compute::FENCED),
1089 std::make_tuple(DriverKind::NEW, Success::PASS_DEVICE, Compute::FENCED),
1090 std::make_tuple(DriverKind::NEW, Success::PASS_DRIVER, Compute::FENCED),
1091 std::make_tuple(DriverKind::NEW, Success::PASS_BOTH, Compute::FENCED),
1092 std::make_tuple(DriverKind::NEW, Success::PASS_NEITHER_DEVICE, Compute::FENCED),
1093 std::make_tuple(DriverKind::NEW, Success::PASS_NEITHER_DRIVER, Compute::FENCED),
1094 std::make_tuple(DriverKind::NEW, Success::PASS_NEITHER_BOTH, Compute::FENCED),
1095 std::make_tuple(DriverKind::NEW, Success::PASS_DEVICE_DEVICE, Compute::FENCED),
1096 std::make_tuple(DriverKind::NEW, Success::PASS_DEVICE_DRIVER, Compute::FENCED),
1097 std::make_tuple(DriverKind::NEW, Success::PASS_DEVICE_BOTH, Compute::FENCED),
1098 std::make_tuple(DriverKind::NEW, Success::PASS_DRIVER_DEVICE, Compute::FENCED),
1099 std::make_tuple(DriverKind::NEW, Success::PASS_DRIVER_DRIVER, Compute::FENCED),
1100 std::make_tuple(DriverKind::NEW, Success::PASS_DRIVER_BOTH, Compute::FENCED),
1101 std::make_tuple(DriverKind::NEW, Success::PASS_BOTH_DEVICE, Compute::FENCED),
1102 std::make_tuple(DriverKind::NEW, Success::PASS_BOTH_DRIVER, Compute::FENCED),
1103 std::make_tuple(DriverKind::NEW, Success::PASS_BOTH_BOTH, Compute::FENCED),
1105 std::make_tuple(DriverKind::NEW, Success::FAIL_LAUNCH, Compute::FENCED));
1154 DeviceManager::get()->forTest_registerDevice(name, new TestDriver11(name, Success::PASS_BOTH)); in TEST_F()
1170 DeviceManager::get()->forTest_registerDevice(name, new TestDriver11(name, Success::PASS_BOTH)); in TEST_F()