Lines Matching refs:layer
84 static void submitBuffer(const sp<SurfaceControl>& layer, sp<GraphicBuffer> buffer, in submitBuffer() argument
88 t.setBuffer(layer, buffer, fence, id.framenumber, 0 /* producerId */, in submitBuffer()
126 sp<SurfaceControl> layer = createBufferStateLayer(); in TEST_F() local
133 submitBuffer(layer, firstBuffer, Fence::NO_FENCE, transactionCallback, firstBufferCallbackId, in TEST_F()
136 expected.addSurface(ExpectedResult::Transaction::PRESENTED, layer, in TEST_F()
153 submitBuffer(layer, secondBuffer, Fence::NO_FENCE, transactionCallback, secondBufferCallbackId, in TEST_F()
156 expected.addSurface(ExpectedResult::Transaction::PRESENTED, layer, in TEST_F()
164 sp<SurfaceControl> layer = createBufferStateLayer(); in TEST_F() local
172 submitBuffer(layer, firstBuffer, Fence::NO_FENCE, transactionCallback, firstBufferCallbackId, in TEST_F()
175 expected.addSurface(ExpectedResult::Transaction::PRESENTED, layer, in TEST_F()
183 t.reparent(layer, nullptr); in TEST_F()
188 expected.addSurface(ExpectedResult::Transaction::NOT_PRESENTED, layer, in TEST_F()
198 submitBuffer(layer, secondBuffer, Fence::NO_FENCE, transactionCallback, secondBufferCallbackId, in TEST_F()
201 expected.addSurface(ExpectedResult::Transaction::PRESENTED, layer, in TEST_F()
210 submitBuffer(layer, thirdBuffer, Fence::NO_FENCE, transactionCallback, thirdBufferCallbackId, in TEST_F()
213 expected.addSurface(ExpectedResult::Transaction::PRESENTED, layer, in TEST_F()
221 sp<SurfaceControl> layer = createBufferStateLayer(); in TEST_F() local
228 submitBuffer(layer, firstBuffer, Fence::NO_FENCE, *transactionCallback, firstBufferCallbackId, in TEST_F()
232 expected.addSurface(ExpectedResult::Transaction::PRESENTED, layer, in TEST_F()
240 t.reparent(layer, nullptr); in TEST_F()
242 layer = nullptr; in TEST_F()
249 sp<SurfaceControl> layer = createBufferStateLayer(); in TEST_F() local
253 t.reparent(layer, nullptr); in TEST_F()
262 submitBuffer(layer, firstBuffer, Fence::NO_FENCE, *transactionCallback, firstBufferCallbackId, in TEST_F()
266 expected.addSurface(ExpectedResult::Transaction::PRESENTED, layer, in TEST_F()
275 submitBuffer(layer, secondBuffer, Fence::NO_FENCE, *transactionCallback, secondBufferCallbackId, in TEST_F()
279 expected.addSurface(ExpectedResult::Transaction::PRESENTED, layer, in TEST_F()
287 layer = nullptr; in TEST_F()
292 sp<SurfaceControl> layer = createBufferStateLayer(); in TEST_F() local
304 t.setBuffer(layer, firstBuffer, std::nullopt, firstBufferCallbackId.framenumber, in TEST_F()
312 expected.addSurface(ExpectedResult::Transaction::PRESENTED, layer, in TEST_F()
320 t.setBuffer(layer, secondBuffer, std::nullopt, secondBufferCallbackId.framenumber, in TEST_F()
328 expected.addSurface(ExpectedResult::Transaction::PRESENTED, layer, in TEST_F()
345 sp<SurfaceControl> layer = createBufferStateLayer(); in TEST_F() local
352 submitBuffer(layer, firstBuffer, Fence::NO_FENCE, callback1, firstBufferCallbackId, in TEST_F()
356 expected.addSurface(ExpectedResult::Transaction::PRESENTED, layer, in TEST_F()
365 transaction1.setBuffer(layer, secondBuffer, std::nullopt, secondBufferCallbackId.framenumber, in TEST_F()
384 expected.addSurface(ExpectedResult::Transaction::PRESENTED, layer, in TEST_F()
392 sp<SurfaceControl> layer = createBufferStateLayer(); in TEST_F() local
400 transaction.setBuffer(layer, firstBuffer, std::nullopt, firstBufferCallbackId.framenumber, in TEST_F()
407 transaction.setBuffer(layer, secondBuffer, std::nullopt, secondBufferCallbackId.framenumber, in TEST_F()
414 sp<SurfaceControl> layer = createBufferStateLayer(); in TEST_F() local
422 transaction1.setBuffer(layer, firstBuffer, std::nullopt, firstBufferCallbackId.framenumber, in TEST_F()
430 transaction2.setBuffer(layer, secondBuffer, std::nullopt, secondBufferCallbackId.framenumber, in TEST_F()
446 sp<SurfaceControl> layer = createBufferStateLayer(); in TEST_F() local
453 transaction1.setBuffer(layer, firstBuffer, std::nullopt, firstBufferCallbackId.framenumber, in TEST_F()
461 transaction2.setBuffer(layer, secondBuffer, std::nullopt, secondBufferCallbackId.framenumber, in TEST_F()
474 sp<SurfaceControl> layer = createBufferStateLayer(); in TEST_F() local
482 transaction.setBuffer(layer, firstBuffer, std::nullopt, firstBufferCallbackId.framenumber, in TEST_F()
486 transaction.setBuffer(layer, nullptr, std::nullopt, 0, 0 /* producerId */, in TEST_F()