Dump the transition type in always on transition trace

Required by FaaS to better detect custom transitions

Bug: 270951098
Test: atest FlickerLibTest
Change-Id: I9e7a4a4c6cd44d2fb7aa0014ded8ab38dc694d03
This commit is contained in:
Pablo Gamito
2023-02-22 12:05:51 +00:00
parent 61aaf12cea
commit 78ece1c634
2 changed files with 4 additions and 1 deletions

View File

@@ -53,7 +53,8 @@ message Transition {
required int64 create_time_ns = 4;
required int64 send_time_ns = 5;
optional int64 finish_time_ns = 6; // consider aborted if not provided
repeated Target targets = 7;
required int32 type = 7;
repeated Target targets = 8;
}
message Target {

View File

@@ -146,6 +146,8 @@ public class TransitionTracer {
transition.getSyncId());
}
outputStream.write(com.android.server.wm.shell.Transition.TYPE, transition.mType);
for (int i = 0; i < targets.size(); ++i) {
final long changeToken = outputStream
.start(com.android.server.wm.shell.Transition.TARGETS);