Optmize getting layer and window names of transitions

Speed up by only fetching entry in the middle of the transition to find the layer and window names for the ids provided in the transition.

Bug: 296182907
Test: npm run test:presubmit
Change-Id: I00c7bee9a23c6d6817b1783edc5b60fd97f4f128
1 file changed