Searched refs:maxAmplitudes (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/core/java/android/os/ |
D | VibratorInfo.java | 527 float frequencyResolutionHz, float suggestedSafeRangeHz, float[] maxAmplitudes) { in FrequencyMapping() argument 532 mMaxAmplitudes = new float[maxAmplitudes == null ? 0 : maxAmplitudes.length]; in FrequencyMapping() 533 if (maxAmplitudes != null) { in FrequencyMapping() 534 System.arraycopy(maxAmplitudes, 0, mMaxAmplitudes, 0, maxAmplitudes.length); in FrequencyMapping()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_vibrator_VibratorController.cpp | 433 jfloatArray maxAmplitudes = nullptr; in vibratorGetInfo() local 434 if (info.maxAmplitudes.isOk()) { in vibratorGetInfo() 435 std::vector<float> amplitudes = info.maxAmplitudes.value(); in vibratorGetInfo() 436 maxAmplitudes = env->NewFloatArray(amplitudes.size()); in vibratorGetInfo() 437 env->SetFloatArrayRegion(maxAmplitudes, 0, amplitudes.size(), in vibratorGetInfo() 442 suggestedSafeRange, maxAmplitudes); in vibratorGetInfo()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/ |
D | FakeVibratorControllerProvider.java | 284 public void setMaxAmplitudes(float... maxAmplitudes) { in setMaxAmplitudes() argument 285 mMaxAmplitudes = maxAmplitudes; in setMaxAmplitudes()
|
/frameworks/native/services/vibratorservice/test/ |
D | VibratorHalWrapperHidlV1_0Test.cpp | 217 ASSERT_TRUE(info.maxAmplitudes.isUnsupported()); in TEST_F() 250 ASSERT_TRUE(info.maxAmplitudes.isUnsupported()); in TEST_F()
|
D | VibratorHalWrapperAidlTest.cpp | 389 ASSERT_TRUE(failed.maxAmplitudes.isFailed()); in TEST_F() 406 ASSERT_EQ(amplitudes, successful.maxAmplitudes.value()); in TEST_F() 482 ASSERT_TRUE(info.maxAmplitudes.isUnsupported()); in TEST_F()
|
/frameworks/native/services/vibratorservice/include/vibratorservice/ |
D | VibratorHalWrapper.h | 193 const HalResult<std::vector<float>> maxAmplitudes; variable 209 maxAmplitudes.checkAndLogFailure("getMaxAmplitudes"); in checkAndLogFailure()
|