Home
last modified time | relevance | path

Searched refs:maxAmplitudes (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/java/android/os/
DVibratorInfo.java527 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/
Dcom_android_server_vibrator_VibratorController.cpp433 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/
DFakeVibratorControllerProvider.java284 public void setMaxAmplitudes(float... maxAmplitudes) { in setMaxAmplitudes() argument
285 mMaxAmplitudes = maxAmplitudes; in setMaxAmplitudes()
/frameworks/native/services/vibratorservice/test/
DVibratorHalWrapperHidlV1_0Test.cpp217 ASSERT_TRUE(info.maxAmplitudes.isUnsupported()); in TEST_F()
250 ASSERT_TRUE(info.maxAmplitudes.isUnsupported()); in TEST_F()
DVibratorHalWrapperAidlTest.cpp389 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/
DVibratorHalWrapper.h193 const HalResult<std::vector<float>> maxAmplitudes; variable
209 maxAmplitudes.checkAndLogFailure("getMaxAmplitudes"); in checkAndLogFailure()