Merge "VibratorService: Fix Typo in AIDL Perform Effect" am: 1a0e1bae27
am: fb0e76110d
Change-Id: I8ed3f257509c721661299ce6047b73e983ceee87
This commit is contained in:
committed by
android-build-merger
commit
533db782b9
@@ -338,7 +338,7 @@ static jlong vibratorPerformEffect(JNIEnv* env, jclass, jlong effect, jlong stre
|
|||||||
if (auto hal = getHal<aidl::IVibrator>()) {
|
if (auto hal = getHal<aidl::IVibrator>()) {
|
||||||
int32_t lengthMs;
|
int32_t lengthMs;
|
||||||
sp<AidlVibratorCallback> effectCallback = new AidlVibratorCallback(env, vibration);
|
sp<AidlVibratorCallback> effectCallback = new AidlVibratorCallback(env, vibration);
|
||||||
aidl::Effect effectType(static_cast<aidl::Effect>(strength));
|
aidl::Effect effectType(static_cast<aidl::Effect>(effect));
|
||||||
aidl::EffectStrength effectStrength(static_cast<aidl::EffectStrength>(strength));
|
aidl::EffectStrength effectStrength(static_cast<aidl::EffectStrength>(strength));
|
||||||
|
|
||||||
auto status = hal->call(&aidl::IVibrator::perform, effectType, effectStrength, effectCallback, &lengthMs);
|
auto status = hal->call(&aidl::IVibrator::perform, effectType, effectStrength, effectCallback, &lengthMs);
|
||||||
|
|||||||
Reference in New Issue
Block a user