Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 130599d1 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix for run cts-on-gsi -m CtsOsTestCases -t...

Merge "Fix for run cts-on-gsi -m CtsOsTestCases -t android.os.cts.VibratorTest" am: c9ed425d am: 1b148ed1

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1918645

Change-Id: I0260a0c7e994d4186dda7553fe5fa44b39c7de2e
parents c0d7db20 1b148ed1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -389,7 +389,7 @@ public class SystemVibrator extends Vibrator {
            mExecutor.execute(() -> {
                boolean anyVibrating;
                synchronized (mLock) {
                    int allInitializedMask = 1 << mVibratorListeners.size() - 1;
                    int allInitializedMask = (1 << mVibratorListeners.size()) - 1;
                    int vibratorMask = 1 << vibratorIdx;
                    if ((mInitializedMask & vibratorMask) == 0) {
                        // First state report for this vibrator, set vibrating initial value.