Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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");
......
......@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment