Searched refs:braking (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/ |
D | FakeVibratorControllerProvider.java | 129 public long composePwle(RampSegment[] primitives, int braking, long vibrationId) { in composePwle() argument 135 mBraking.add(braking); in composePwle() 236 public void setSupportedBraking(int... braking) { in setSupportedBraking() argument 237 if (braking != null) { in setSupportedBraking() 238 braking = Arrays.copyOf(braking, braking.length); in setSupportedBraking() 239 Arrays.sort(braking); in setSupportedBraking() 241 mSupportedBraking = braking; in setSupportedBraking()
|
/frameworks/native/cmds/idlcli/vibrator/ |
D | CommandGetSupportedBraking.cpp | 48 std::vector<Braking> braking; in doMain() local 52 auto status = hal->call(&aidl::IVibrator::getSupportedBraking, &braking); in doMain() 61 for (auto &e : braking) { in doMain()
|
D | CommandComposePwle.cpp | 150 BrakingPwle braking = {brakingMeth, dur}; in doArgs() local 151 pwle = braking; in doArgs()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_vibrator_VibratorController.cpp | 147 static aidl::BrakingPwle brakingPwle(aidl::Braking braking, int32_t duration) { in brakingPwle() argument 149 pwle.braking = braking; in brakingPwle() 167 static bool shouldBeReplacedWithBraking(aidl::ActivePwle activePwle, aidl::Braking braking) { in shouldBeReplacedWithBraking() argument 168 return (braking != aidl::Braking::NONE) && (activePwle.startAmplitude == 0) && in shouldBeReplacedWithBraking() 173 static bool shouldAddLastBraking(aidl::ActivePwle lastActivePwle, aidl::Braking braking) { in shouldAddLastBraking() argument 174 return (braking != aidl::Braking::NONE) && (lastActivePwle.startAmplitude > 0) && in shouldAddLastBraking() 312 aidl::Braking braking = static_cast<aidl::Braking>(brakingId); in vibratorPerformPwleEffect() local 319 if ((i > 0) && shouldBeReplacedWithBraking(activePwle, braking)) { in vibratorPerformPwleEffect() 320 primitives.push_back(brakingPwle(braking, activePwle.duration)); in vibratorPerformPwleEffect() 326 if ((i == (size - 1)) && shouldAddLastBraking(activePwle, braking)) { in vibratorPerformPwleEffect() [all …]
|
/frameworks/native/services/vibratorservice/test/ |
D | test_utils.h | 72 static PrimitivePwle createBrakingPwle(Braking braking, std::chrono::milliseconds duration) { in createBrakingPwle() argument 74 pwle.braking = braking; in createBrakingPwle()
|
/frameworks/base/services/core/java/com/android/server/vibrator/ |
D | VibratorController.java | 297 int braking = mVibratorInfo.getDefaultBraking(); in on() local 298 long duration = mNativeWrapper.composePwle(primitives, braking, vibrationId); in on() 398 int braking, long vibrationId); in performPwleEffect() argument 456 public long composePwle(RampSegment[] primitives, int braking, long vibrationId) { in composePwle() argument 457 return performPwleEffect(mNativePtr, primitives, braking, vibrationId); in composePwle()
|