~/talk

UI Automator deep diving

Talkat Mobius 2019 Moscow · 2019-12-07..12-08· [android, testing]
links:none on file
slides:none on file

Deep dive into UI Automator explains how it actually works: it hooks Android AccessibilityService to get accessibility node info trees, uses UIAutomatorViewer for inspection, and UIAutomation to inject shell commands and input events; it exposes limits (cannot see OpenGL/bitmap controls unless accessibility is implemented) and tradeoffs — 21 seconds vs 3.5 seconds (UI Automator vs Espresso) and default idle timeout 10s cause flakiness; shows v1 vs v2 caching difference, how accessibility node info root null can stall searches and a crude fix (clearing accessibility cache) that improved stability.

AI-written summary · about

  1. 0:00Introduction
  2. 2:30What is UI Automator
  3. 5:19UI Automator vs Espresso
  4. 8:12Writing UI Automator tests
  5. 12:06Accessibility Service magic
  6. 23:39Handling custom controls
  7. 27:52API differences v1 vs v2
  8. 33:50Configuring idle timeout
  9. 35:58Advanced UI Automator features
  10. 37:47Testing notifications
  11. 38:51Summary and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.