Minor code maintenance for base classes BaseUiAutomation and
UxPerfUiAutomation. Changes include:
- Prefer static calls for UiDevice methods where possible
- Rename inconsistently named variables
- Avoid long wrapped lines where possible
- Remove unused imports
- Fix whitespace around operators