Home
last modified time | relevance | path

Searched refs:supportedPrimitives (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/services/tests/vibrator/utils/android/os/test/
DFakeVibrator.java35 public FakeVibrator(Context context, int[] supportedPrimitives) { in FakeVibrator() argument
37 mVibratorInfo = buildInfoSupportingPrimitives(supportedPrimitives); in FakeVibrator()
/frameworks/native/services/vibratorservice/test/
DVibratorHalWrapperAidlTest.cpp309 std::vector<CompositePrimitive> supportedPrimitives = {CompositePrimitive::CLICK}; in TEST_F() local
334 .WillRepeatedly(DoAll(SetArgPointee<0>(supportedPrimitives), Return(Status()))); in TEST_F()
379 ASSERT_TRUE(failed.supportedPrimitives.isFailed()); in TEST_F()
395 ASSERT_EQ(supportedPrimitives, successful.supportedPrimitives.value()); in TEST_F()
472 ASSERT_TRUE(info.supportedPrimitives.isUnsupported()); in TEST_F()
564 std::vector<CompositePrimitive> supportedPrimitives = {CompositePrimitive::CLICK, in TEST_F() local
579 .WillRepeatedly(DoAll(SetArgPointee<0>(supportedPrimitives), Return(Status()))); in TEST_F()
621 std::vector<CompositePrimitive> supportedPrimitives = {CompositePrimitive::SPIN, in TEST_F() local
633 .WillRepeatedly(DoAll(SetArgPointee<0>(supportedPrimitives), Return(Status()))); in TEST_F()
DVibratorHalWrapperHidlV1_0Test.cpp207 ASSERT_TRUE(info.supportedPrimitives.isUnsupported()); in TEST_F()
244 ASSERT_TRUE(info.supportedPrimitives.isUnsupported()); in TEST_F()
/frameworks/native/services/vibratorservice/
DVibratorHalWrapper.cpp321 std::vector<CompositePrimitive> supportedPrimitives; in getSupportedPrimitivesInternal() local
322 auto result = getHal()->getSupportedPrimitives(&supportedPrimitives); in getSupportedPrimitivesInternal()
324 supportedPrimitives); in getSupportedPrimitivesInternal()
328 const std::vector<CompositePrimitive>& supportedPrimitives) { in getPrimitiveDurationsInternal() argument
334 for (auto primitive : supportedPrimitives) { in getPrimitiveDurationsInternal()
/frameworks/native/services/vibratorservice/include/vibratorservice/
DVibratorHalWrapper.h236 const HalResult<std::vector<hardware::vibrator::CompositePrimitive>> supportedPrimitives; variable
254 logFailure<std::vector<hardware::vibrator::CompositePrimitive>>(supportedPrimitives, in logFailures()
272 supportedBraking.shouldRetry() || supportedPrimitives.shouldRetry() || in shouldRetry()
389 const std::vector<hardware::vibrator::CompositePrimitive>& supportedPrimitives);
454 const std::vector<hardware::vibrator::CompositePrimitive>& supportedPrimitives)
/frameworks/base/core/java/android/os/
DVibratorInfo.java112 @NonNull SparseIntArray supportedPrimitives, int primitiveDelayMax, in VibratorInfo() argument
115 Preconditions.checkNotNull(supportedPrimitives); in VibratorInfo()
121 mSupportedPrimitives = supportedPrimitives.clone(); in VibratorInfo()
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DHapticFeedbackVibrationProviderTest.java458 private void mockVibratorPrimitiveSupport(int... supportedPrimitives) { in mockVibratorPrimitiveSupport() argument
461 for (int primitive : supportedPrimitives) { in mockVibratorPrimitiveSupport()
/frameworks/base/services/core/jni/
Dcom_android_server_vibrator_VibratorController.cpp418 if (info.supportedPrimitives.isOk()) { in vibratorGetInfo()
420 for (auto& primitive : info.supportedPrimitives.value()) { in vibratorGetInfo()
/frameworks/native/services/vibratorservice/benchmarks/
DVibratorHalControllerBenchmarks.cpp523 auto primitivesResult = controller.getInfo().supportedPrimitives; in DefaultArgs()