Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/os/
DVibratorInfo.java110 public VibratorInfo(int id, long capabilities, @Nullable SparseBooleanArray supportedEffects, in VibratorInfo() argument
119 mSupportedEffects = supportedEffects == null ? null : supportedEffects.clone(); in VibratorInfo()
763 public Builder setSupportedEffects(int... supportedEffects) { in setSupportedEffects() argument
764 mSupportedEffects = toSparseBooleanArray(supportedEffects); in setSupportedEffects()
/frameworks/native/services/vibratorservice/test/
DVibratorHalWrapperAidlTest.cpp308 std::vector<Effect> supportedEffects = {Effect::CLICK, Effect::TICK}; in TEST_F() local
326 .WillRepeatedly(DoAll(SetArgPointee<0>(supportedEffects), Return(Status()))); in TEST_F()
377 ASSERT_TRUE(failed.supportedEffects.isFailed()); in TEST_F()
393 ASSERT_EQ(supportedEffects, successful.supportedEffects.value()); in TEST_F()
416 std::vector<Effect> supportedEffects = {Effect::CLICK, Effect::TICK}; in TEST_F() local
423 .WillRepeatedly(DoAll(SetArgPointee<0>(supportedEffects), Return(Status()))); in TEST_F()
470 ASSERT_EQ(supportedEffects, info.supportedEffects.value()); in TEST_F()
DVibratorHalWrapperHidlV1_0Test.cpp205 ASSERT_TRUE(info.supportedEffects.isUnsupported()); in TEST_F()
242 ASSERT_TRUE(info.supportedEffects.isUnsupported()); in TEST_F()
/frameworks/base/services/core/jni/
Dcom_android_server_vibrator_VibratorController.cpp391 if (info.supportedEffects.isOk()) { in vibratorGetInfo()
392 std::vector<aidl::Effect> effects = info.supportedEffects.value(); in vibratorGetInfo()
393 jintArray supportedEffects = env->NewIntArray(effects.size()); in vibratorGetInfo() local
394 env->SetIntArrayRegion(supportedEffects, 0, effects.size(), in vibratorGetInfo()
397 sVibratorInfoBuilderClassInfo.setSupportedEffects, supportedEffects); in vibratorGetInfo()
/frameworks/base/core/tests/vibrator/src/android/os/vibrator/
DPrebakedSegmentTest.java289 private static VibratorInfo createVibratorInfoWithSupportedEffects(int... supportedEffects) { in createVibratorInfoWithSupportedEffects() argument
291 .setSupportedEffects(supportedEffects) in createVibratorInfoWithSupportedEffects()
/frameworks/av/services/camera/libcameraservice/api1/client2/
DParameters.cpp482 String8 supportedEffects; in initialize() local
485 if (addComma) supportedEffects += ","; in initialize()
489 supportedEffects += in initialize()
493 supportedEffects += in initialize()
497 supportedEffects += in initialize()
501 supportedEffects += in initialize()
505 supportedEffects += in initialize()
509 supportedEffects += in initialize()
513 supportedEffects += in initialize()
517 supportedEffects += in initialize()
[all …]
/frameworks/native/services/vibratorservice/
DVibratorHalWrapper.cpp309 std::vector<Effect> supportedEffects; in getSupportedEffectsInternal() local
310 auto result = getHal()->getSupportedEffects(&supportedEffects); in getSupportedEffectsInternal()
311 return HalResultFactory::fromStatus<std::vector<Effect>>(result, supportedEffects); in getSupportedEffectsInternal()
/frameworks/native/services/vibratorservice/include/vibratorservice/
DVibratorHalWrapper.h234 const HalResult<std::vector<hardware::vibrator::Effect>> supportedEffects; variable
250 logFailure<std::vector<hardware::vibrator::Effect>>(supportedEffects, in logFailures()
271 return capabilities.shouldRetry() || supportedEffects.shouldRetry() || in shouldRetry()
/frameworks/native/services/vibratorservice/benchmarks/
DVibratorHalControllerBenchmarks.cpp378 auto effectsResult = controller.getInfo().supportedEffects; in DefaultArgs()