What specifically is the mechanism by which Android detects and enforces that certain types of operations only occur in the UI thread?
Are there just lots of places in the framework where the current thread is checked?
I imagine there's some more central way this is done, and I'd like to know where it is, and what it is.
This question is for the sake of knowledge alone. I do not have a specific problem I'm trying to solve.