Home
last modified time | relevance | path

Searched refs:braking (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/tests/vibrator/utils/com/android/server/vibrator/
DFakeVibratorControllerProvider.java77 void recordBraking(long vibrationId, int braking) { in recordBraking() argument
78 mBraking.computeIfAbsent(vibrationId, k -> new ArrayList<>()).add(braking); in recordBraking()
153 public long composePwle(RampSegment[] primitives, int braking, long vibrationId) { in composePwle() argument
159 recordBraking(vibrationId, braking); in composePwle()
279 public void setSupportedBraking(int... braking) { in setSupportedBraking() argument
280 if (braking != null) { in setSupportedBraking()
281 braking = Arrays.copyOf(braking, braking.length); in setSupportedBraking()
282 Arrays.sort(braking); in setSupportedBraking()
284 mSupportedBraking = braking; in setSupportedBraking()
/frameworks/native/cmds/idlcli/vibrator/
DCommandGetSupportedBraking.cpp48 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()
DCommandComposePwle.cpp150 BrakingPwle braking = {brakingMeth, dur}; in doArgs() local
151 pwle = braking; in doArgs()
/frameworks/base/services/core/jni/
Dcom_android_server_vibrator_VibratorController.cpp158 static aidl::BrakingPwle brakingPwle(aidl::Braking braking, int32_t duration) { in brakingPwle() argument
160 pwle.braking = braking; in brakingPwle()
178 static bool shouldBeReplacedWithBraking(aidl::ActivePwle activePwle, aidl::Braking braking) { in shouldBeReplacedWithBraking() argument
179 return (braking != aidl::Braking::NONE) && (activePwle.startAmplitude == 0) && in shouldBeReplacedWithBraking()
184 static bool shouldAddLastBraking(aidl::ActivePwle lastActivePwle, aidl::Braking braking) { in shouldAddLastBraking() argument
185 return (braking != aidl::Braking::NONE) && (lastActivePwle.startAmplitude > 0) && in shouldAddLastBraking()
324 aidl::Braking braking = static_cast<aidl::Braking>(brakingId); in vibratorPerformPwleEffect() local
331 if ((i > 0) && shouldBeReplacedWithBraking(activePwle, braking)) { in vibratorPerformPwleEffect()
332 primitives.push_back(brakingPwle(braking, activePwle.duration)); in vibratorPerformPwleEffect()
338 if ((i == (size - 1)) && shouldAddLastBraking(activePwle, braking)) { in vibratorPerformPwleEffect()
[all …]
/frameworks/native/services/vibratorservice/test/
Dtest_utils.h72 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/
DVibratorController.java321 int braking = mVibratorInfo.getDefaultBraking(); in on() local
322 long duration = mNativeWrapper.composePwle(primitives, braking, vibrationId); in on()
434 int braking, long vibrationId); in performPwleEffect() argument
491 public long composePwle(RampSegment[] primitives, int braking, long vibrationId) { in composePwle() argument
492 return performPwleEffect(mNativePtr, primitives, braking, vibrationId); in composePwle()
/frameworks/base/core/java/android/os/
DVibratorInfo.java298 public boolean hasBrakingSupport(@Braking int braking) { in hasBrakingSupport() argument
299 return (mSupportedBraking != null) && mSupportedBraking.get(braking); in hasBrakingSupport()