Camera2: Add a blocking state listener

- Provides wait() methods for waiting on a desired state to be reached
- Only one waiter at a time

Bug: 10360518
Change-Id: Iab114584dfa4ab34c7a7b31ed243a3f6a3fc9c58
1 file changed