tests: Improve logging for objects that are causing errors
In b/374973152, we're seeing error logs surrounding a generic "Virtual
disp consumer", which is used in several places. This makes it harder to
understand what's broken. This change clarifies the names.
Bug: 374973152
Flag: EXEMPT tests
Test: atest
Change-Id: Ib1974f304f6c64c1d7ae02e0b77ec829d14ba0f1
diff --git a/libs/gui/tests/EndToEndNativeInputTest.cpp b/libs/gui/tests/EndToEndNativeInputTest.cpp
index 0e84d68..a1c7cbf 100644
--- a/libs/gui/tests/EndToEndNativeInputTest.cpp
+++ b/libs/gui/tests/EndToEndNativeInputTest.cpp
@@ -1212,7 +1212,7 @@
sp<IGraphicBufferConsumer> consumer;
sp<IGraphicBufferProducer> producer;
BufferQueue::createBufferQueue(&producer, &consumer);
- consumer->setConsumerName(String8("Virtual disp consumer"));
+ consumer->setConsumerName(String8("Virtual disp consumer (MultiDisplayTests)"));
consumer->setDefaultBufferSize(width, height);
mProducers.push_back(producer);