Searched refs:supportedPrimitives (Results 1 – 9 of 9) sorted by relevance
/frameworks/base/services/tests/vibrator/utils/android/os/test/ |
D | FakeVibrator.java | 35 public FakeVibrator(Context context, int[] supportedPrimitives) { in FakeVibrator() argument 37 mVibratorInfo = buildInfoSupportingPrimitives(supportedPrimitives); in FakeVibrator()
|
/frameworks/native/services/vibratorservice/test/ |
D | VibratorHalWrapperAidlTest.cpp | 309 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()
|
D | VibratorHalWrapperHidlV1_0Test.cpp | 207 ASSERT_TRUE(info.supportedPrimitives.isUnsupported()); in TEST_F() 244 ASSERT_TRUE(info.supportedPrimitives.isUnsupported()); in TEST_F()
|
/frameworks/native/services/vibratorservice/ |
D | VibratorHalWrapper.cpp | 321 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/ |
D | VibratorHalWrapper.h | 236 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/ |
D | VibratorInfo.java | 112 @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/ |
D | HapticFeedbackVibrationProviderTest.java | 458 private void mockVibratorPrimitiveSupport(int... supportedPrimitives) { in mockVibratorPrimitiveSupport() argument 461 for (int primitive : supportedPrimitives) { in mockVibratorPrimitiveSupport()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_vibrator_VibratorController.cpp | 418 if (info.supportedPrimitives.isOk()) { in vibratorGetInfo() 420 for (auto& primitive : info.supportedPrimitives.value()) { in vibratorGetInfo()
|
/frameworks/native/services/vibratorservice/benchmarks/ |
D | VibratorHalControllerBenchmarks.cpp | 523 auto primitivesResult = controller.getInfo().supportedPrimitives; in DefaultArgs()
|