Skip to content

Commit a97fd94

Browse files
committed
EndToEndNativeInputTest: Apply all transactions synchronously
Bug: 376016199 Change-Id: Ied11c638f12434e4b1d33e07a24f8b03e6d9492e Test: Presubmit Flag: TEST_ONLY
1 parent ae65265 commit a97fd94

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

libs/gui/tests/EndToEndNativeInputTest.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ class InputSurface {
294294
transactionBody) {
295295
SurfaceComposerClient::Transaction t;
296296
transactionBody(t, mSurfaceControl);
297-
t.apply(true);
297+
t.apply(/*synchronously=*/true);
298298
}
299299

300300
virtual void showAt(int x, int y, Rect crop = Rect(0, 0, 100, 100)) {
@@ -307,7 +307,7 @@ class InputSurface {
307307
t.setAlpha(mSurfaceControl, 1);
308308
auto reportedListener = sp<SynchronousWindowInfosReportedListener>::make();
309309
t.addWindowInfosReportedListener(reportedListener);
310-
t.apply();
310+
t.apply(/*synchronously=*/true);
311311
reportedListener->wait();
312312
}
313313

@@ -319,7 +319,7 @@ class InputSurface {
319319
request.timestamp = systemTime(SYSTEM_TIME_MONOTONIC);
320320
request.displayId = displayId.val();
321321
t.setFocusedWindow(request);
322-
t.apply(true);
322+
t.apply(/*synchronously=*/true);
323323
}
324324

325325
public:
@@ -363,7 +363,7 @@ class BlastInputSurface : public InputSurface {
363363
transactionBody) override {
364364
SurfaceComposerClient::Transaction t;
365365
transactionBody(t, mParentSurfaceControl);
366-
t.apply(true);
366+
t.apply(/*synchronously=*/true);
367367
}
368368

369369
void showAt(int x, int y, Rect crop = Rect(0, 0, 100, 100)) override {
@@ -377,7 +377,7 @@ class BlastInputSurface : public InputSurface {
377377
t.setInputWindowInfo(mSurfaceControl, mInputInfo);
378378
t.setCrop(mSurfaceControl, crop);
379379
t.setAlpha(mSurfaceControl, 1);
380-
t.apply(true);
380+
t.apply(/*synchronously=*/true);
381381
}
382382

383383
private:
@@ -417,7 +417,7 @@ class InputSurfacesTest : public ::testing::Test {
417417
BufferUsage::COMPOSER_OVERLAY | BufferUsage::GPU_TEXTURE;
418418
sp<GraphicBuffer> buffer =
419419
new GraphicBuffer(w, h, PIXEL_FORMAT_RGBA_8888, 1, usageFlags, "test");
420-
Transaction().setBuffer(layer, buffer).apply(true);
420+
Transaction().setBuffer(layer, buffer).apply(/*synchronously=*/true);
421421
usleep(mBufferPostDelay);
422422
}
423423

@@ -1207,7 +1207,7 @@ class MultiDisplayTests : public InputSurfacesTest {
12071207
t.setDisplayLayerStack(token, layerStack);
12081208
t.setDisplayProjection(token, ui::ROTATION_0, {0, 0, width, height},
12091209
{offsetX, offsetY, offsetX + width, offsetY + height});
1210-
t.apply(true);
1210+
t.apply(/*synchronously=*/true);
12111211

12121212
mVirtualDisplays.push_back(token);
12131213
}

0 commit comments

Comments
 (0)