Lines Matching refs:primitive
405 for (auto primitive : kCompositePrimitives) { in TEST_P() local
407 std::find(supported.begin(), supported.end(), primitive) != supported.end(); in TEST_P()
409 std::find(kRequiredPrimitives.begin(), kRequiredPrimitives.end(), primitive) != in TEST_P()
412 EXPECT_TRUE(isPrimitiveSupported || !isPrimitiveRequired) << toString(primitive); in TEST_P()
422 for (auto primitive : kCompositePrimitives) { in TEST_P() local
424 std::find(supported.begin(), supported.end(), primitive) != supported.end(); in TEST_P()
427 Status status = vibrator->getPrimitiveDuration(primitive, &duration); in TEST_P()
431 if (primitive != CompositePrimitive::NOOP) { in TEST_P()
432 ASSERT_GT(duration, 0) << toString(primitive) << " " << duration; in TEST_P()
456 auto primitive = supported[i]; in TEST_P() local
461 effect.primitive = primitive; in TEST_P()
485 for (auto primitive : kCompositePrimitives) { in TEST_P() local
487 std::find(supported.begin(), supported.end(), primitive) != supported.end(); in TEST_P()
490 unsupported.push_back(primitive); in TEST_P()
494 for (auto primitive : unsupported) { in TEST_P() local
499 effect.primitive = primitive; in TEST_P()
516 effect.primitive = CompositePrimitive::CLICK; in TEST_P()
545 effect.primitive = CompositePrimitive::CLICK; in TEST_P()
577 effect.primitive = CompositePrimitive::CLICK; in TEST_P()
597 for (auto primitive : supported) { in TEST_P() local
598 if (primitive == CompositePrimitive::NOOP) { in TEST_P()
614 effect.primitive = primitive; in TEST_P()
619 vibrator->getPrimitiveDuration(primitive, &durationMs).exceptionCode()) in TEST_P()
620 << toString(primitive); in TEST_P()
625 << toString(primitive); in TEST_P()
629 << toString(primitive); in TEST_P()
633 EXPECT_GE(elapsed.count(), duration.count()) << toString(primitive); in TEST_P()