I'm trying to list all UI elements being displayed on an Android device. I'm doing this by running "dumpsys window windows | grep "Window #" in an adb shell. This gives me a list of windows from window n to 0.
I'd like to know how the output order is determined. Is window n on top and window 0 at the bottom of the stack? Also, what do the fields mean? For example, the first line shown as as follows
Window #64 Window{793212d u0 NavigationBar}:
What do the values 793212d and u0 indicate?