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

Commit d01036ee authored by Sorin Basca's avatar Sorin Basca Committed by Gerrit Code Review
Browse files

Merge "Make calls to yield() explicit"

parents 32ad6e6d a34c0861
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -304,13 +304,13 @@ public class BassBoostTest extends Activity implements OnCheckedChangeListener {
                for (int j = 0; j < NUM_EFFECTS; j++) {
                    effects[j] = new BassBoost(0, mSession);
                    effects[j].setControlStatusListener(mEffectListener);
                    yield();
                    this.yield();
                }
                for (int j = NUM_EFFECTS - 1; j >= 0; j--) {
                    Log.w(TAG, "HammerReleaseTest releasing effect " + (Object) effects[j]);
                    effects[j].release();
                    effects[j] = null;
                    yield();
                    this.yield();
                }
            }
            Log.w(TAG, "HammerReleaseTest ended");
+2 −2
Original line number Diff line number Diff line
@@ -251,13 +251,13 @@ public class VisualizerTest extends Activity implements OnCheckedChangeListener
            for (int i = 0; i < NUM_ITERATIONS; i++) {
                for (int j = 0; j < NUM_EFFECTS; j++) {
                    effects[j] = new Visualizer(mSession);
                    yield();
                    this.yield();
                }
                for (int j = NUM_EFFECTS - 1; j >= 0; j--) {
                    Log.w(TAG, "HammerReleaseTest releasing effect " + (Object) effects[j]);
                    effects[j].release();
                    effects[j] = null;
                    yield();
                    this.yield();
                }
            }
            Log.w(TAG, "HammerReleaseTest ended");