Home
last modified time | relevance | path

Searched refs:resonantFrequencyHz (Results 1 – 2 of 2) sorted by relevance

/frameworks/native/cmds/idlcli/vibrator/
DCommandGetResonantFrequency.cpp48 float resonantFrequencyHz; in doMain() local
52 auto status = hal->call(&aidl::IVibrator::getResonantFrequency, &resonantFrequencyHz); in doMain()
60 std::cout << "Resonant Frequency: " << resonantFrequencyHz << " Hz" << std::endl; in doMain()
/frameworks/base/core/java/android/os/
DVibratorInfo.java526 public FrequencyMapping(float minFrequencyHz, float resonantFrequencyHz, in FrequencyMapping() argument
529 mResonantFrequencyHz = resonantFrequencyHz; in FrequencyMapping()
539 if (Float.isNaN(resonantFrequencyHz) || Float.isNaN(minFrequencyHz) in FrequencyMapping()
541 || resonantFrequencyHz < minFrequencyHz in FrequencyMapping()
542 || resonantFrequencyHz > maxFrequencyHz) { in FrequencyMapping()
552 resonantFrequencyHz - minFrequencyHz, in FrequencyMapping()
553 maxFrequencyHz - resonantFrequencyHz); in FrequencyMapping()
555 (minFrequencyHz - resonantFrequencyHz) / safeDelta, in FrequencyMapping()
556 (maxFrequencyHz - resonantFrequencyHz) / safeDelta); in FrequencyMapping()