How google/device-infra works
Android Test Station Utilities supports a UI for Android test engineers to run standard suites such as CTS. The visible repository spans frontend workflows, device/lab APIs, session and messaging contracts, Android device/emulator support, and monitoring utilities; the README also names server and runner artifacts. The principal workflow is represented at a subsystem level because the tree and excerpts do not expose the complete request-to-execution implementation. Arrows are limited to relationships documented in the README or visible in sampled source/index references.
Main entry points: app Station interface · BatchPipelineService.java Batch monitoring · device_detail Device workflows · search_page Search workflows
Components 22
Station UI
- Station interface
src/devtools/mobileharness/fe/v6/angular/app - Device workflows
src/devtools/mobileharness/fe/v6/angular/app/features/device_detail - Search workflows
src/devtools/mobileharness/fe/v6/angular/app/features/search_page
Harness APIs
- Device information
src/devtools/deviceinfra/api/deviceinfo/proto - Device configuration
src/devtools/mobileharness/api/deviceconfig/proto - Device and lab queries
src/devtools/mobileharness/api/query/proto - Harness models
src/devtools/mobileharness/api/model/proto - Session service contract
src/devtools/mobileharness/fe/v6/service/proto/session - Search service contract
src/devtools/mobileharness/fe/v6/service/proto/search
Test execution
- ATS runners
src/java/com/google/devtools/mobileharness/infra/ats - Session service
src/java/com/google/devtools/mobileharness/infra/client/longrunningservice/rpc/service/SessionService.java - Job synchronization
src/java/com/google/devtools/mobileharness/infra/client/api/mode/ats/JobSyncService.java
Device infrastructure
- Device actions
src/devtools/deviceaction/schemas/proto/actions - Android device control
src/java/com/google/wireless/qa/mobileharness/shared/api/device/AndroidRealDevice.java - Cloud emulator
src/java/com/google/devtools/mobileharness/platform/android/shared/emulator/CloudOrchestratorClient.java - Lab information
src/java/com/google/devtools/mobileharness/shared/labinfo/LabInfoService.java
Operations
- Batch monitoring
src/java/com/google/devtools/mobileharness/infra/monitoring/BatchPipelineService.java - Data puller
src/java/com/google/devtools/mobileharness/infra/monitoring - Data pusher
src/java/com/google/devtools/mobileharness/infra/monitoring
Other components
- Test engineers
- Cloud orchestrator
- Android test suites
Connections 10
- Test engineers → Station interface: use
- Station interface → Android test suites: run suites
- Device workflows → Device information: uses contracts
- Search workflows → Search service contract: queries through
- Station interface → Session service contract: uses contract
- Session service → ATS runners: starts runners
- Job synchronization → Android device control: schedules against
- Cloud emulator → Cloud orchestrator: calls API
- Batch monitoring → Data puller: pulls data
src/java/com/google/devtools/mobileharness/infra/monitoring/BatchPipelineService.java - Batch monitoring → Data pusher: pushes data
src/java/com/google/devtools/mobileharness/infra/monitoring/BatchPipelineService.java