# jigintern/sabera-test-app-itoshi architecture

> Architecture diagram of the GitHub repository jigintern/sabera-test-app-itoshi, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jigintern/sabera-test-app-itoshi
- Repository: https://github.com/jigintern/sabera-test-app-itoshi

## Overview

SABERA Test App is an Android field-testing app for exercising the SABERA smart-glasses SDK on real hardware. Users select a test screen, send content or commands to the glasses, and inspect returned events or measurements; the image, motion, and transport screens also compare delivery paths and performance. The graph preserves the README’s major test areas. Several screen implementations were not excerpted, so those capabilities and links are based on the README and source-index references rather than inspected screen code.

Main entry points: [`app/src/main/kotlin/jp/jig/sabera/hello/ui/AppRoot.kt`](https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/ui/AppRoot.kt) (App root), [`app/src/main/kotlin/jp/jig/sabera/hello/glass/GlassSession.kt`](https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/glass/GlassSession.kt) (Glass session), [`app/src/main/kotlin/jp/jig/sabera/hello/ui/ImageRouteScreen.kt`](https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/ui/ImageRouteScreen.kt) (Image routes), [`app/src/main/kotlin/jp/jig/sabera/hello/ui/SettingsProbeScreen.kt`](https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/ui/SettingsProbeScreen.kt) (Settings probe)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["App and screens"]
  node_app["App root<br/>[AppRoot.kt]"]
  node_hello["Hello / World"]
  node_settings["Settings probe"]
  node_gestures["Gesture log<br/>[GestureLog.kt]"]
end

subgraph group_device["Glasses session"]
  node_session["Glass session<br/>[GlassSession.kt]"]
  node_text["Text surface<br/>[TextSurface.kt]"]
end

subgraph group_visual["Visual experiments"]
  node_image["Image routes"]
  node_image_route["Route limits<br/>[ImageRoute.kt]"]
  node_image_data["Grayscale images<br/>[GrayscaleImage.kt]"]
  node_image_budget["Image budget"]
  node_rle["Three-bit RLE<br/>[ThreeBitRle.kt]"]
  node_flipbook["Flipbook<br/>[FlipbookScreen.kt]"]
  node_multi_image["Multi-image canvas"]
  node_arrow3d["3D arrow<br/>[ArrowRaster.kt]"]
end

subgraph group_sensing["Sensing and navigation"]
  node_imu["6DoF tests<br/>[ImuScreen.kt]"]
  node_imu_stats["IMU statistics<br/>[ImuStats.kt]"]
  node_north["North arrow"]
  node_heading["Phone heading<br/>[PhoneHeading.kt]"]
  node_navigation["Navigation test<br/>[NaviScreen.kt]"]
end

subgraph group_measurement["Transport and diagnostics"]
  node_mic["Microphone test<br/>[MicScreen.kt]"]
  node_mic_stats["Mic statistics<br/>[MicStats.kt]"]
  node_contention["Contention test"]
  node_latency["Link latency<br/>[LinkLatency.kt]"]
  node_pacing["Frame pacing<br/>[PacingStats.kt]"]
end

node_user(("Tester"))
node_sdk["SABERA SDK"]
node_device_actor(("SABERA glasses"))

node_user -->|"selects tests"| node_app
node_app -->|"uses session"| node_session
node_app -->|"routes to"| node_hello
node_app -->|"routes to"| node_image
node_app -->|"routes to"| node_imu
node_app -->|"routes to"| node_navigation
node_app -->|"routes to"| node_north
node_app -->|"routes to"| node_flipbook
node_app -->|"routes to"| node_mic
node_app -->|"routes to"| node_settings
node_app -->|"routes to"| node_multi_image
node_app -->|"routes to"| node_contention
node_app -->|"shows events"| node_gestures
node_hello -->|"sends text"| node_session
node_session -->|"delegates text"| node_text
node_session -->|"calls commands"| node_sdk
node_sdk -->|"communicates"| node_device_actor
node_image -->|"checks routes"| node_image_route
node_image -->|"prepares images"| node_image_data
node_image -->|"sends images"| node_session
node_image_route -->|"checks budget"| node_image_budget
node_image_budget -->|"estimates packets"| node_rle
node_flipbook -->|"sends frames"| node_session
node_flipbook -->|"tracks pacing"| node_pacing
node_multi_image -->|"sends images"| node_session
node_imu -->|"starts sampling"| node_session
node_imu -->|"summarizes samples"| node_imu_stats
node_north -->|"reads heading"| node_heading
node_north -->|"sends course"| node_session
node_navigation -->|"sends guidance"| node_session
node_mic -->|"starts streaming"| node_session
node_mic -->|"summarizes chunks"| node_mic_stats
node_contention -->|"runs concurrent tests"| node_session
node_contention -->|"measures delay"| node_latency
node_settings -->|"probes commands"| node_session
node_settings -->|"requests diagnostics"| node_sdk
node_arrow3d -->|"renders grayscale"| node_image_data
node_arrow3d -.->|"sends render paths"| node_session

click node_app "https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/ui/AppRoot.kt"
click node_hello "https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/ui/HelloWorldScreen.kt"
click node_settings "https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/ui/SettingsProbeScreen.kt"
click node_gestures "https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/ui/GestureLog.kt"
click node_session "https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/glass/GlassSession.kt"
click node_text "https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/glass/TextSurface.kt"
click node_image "https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/ui/ImageRouteScreen.kt"
click node_image_route "https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/image/ImageRoute.kt"
click node_image_data "https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/image/GrayscaleImage.kt"
click node_image_budget "https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/image/CanvasImageBudget.kt"
click node_rle "https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/image/ThreeBitRle.kt"
click node_flipbook "https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/ui/FlipbookScreen.kt"
click node_multi_image "https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/ui/CanvasMultiImageScreen.kt"
click node_arrow3d "https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/arrow3d/ArrowRaster.kt"
click node_imu "https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/ui/ImuScreen.kt"
click node_imu_stats "https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/imu/ImuStats.kt"
click node_north "https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/ui/NorthArrowScreen.kt"
click node_heading "https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/compass/PhoneHeading.kt"
click node_navigation "https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/ui/NaviScreen.kt"
click node_mic "https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/ui/MicScreen.kt"
click node_mic_stats "https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/audio/MicStats.kt"
click node_contention "https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/ui/ContentionScreen.kt"
click node_latency "https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/transport/LinkLatency.kt"
click node_pacing "https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/flipbook/PacingStats.kt"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_hello,node_settings,node_gestures toneBlue
class node_session,node_text toneAmber
class node_image,node_image_route,node_image_data,node_image_budget,node_rle,node_flipbook,node_multi_image,node_arrow3d toneMint
class node_imu,node_imu_stats,node_north,node_heading,node_navigation toneRose
class node_mic,node_mic_stats,node_contention,node_latency,node_pacing,node_user,node_sdk,node_device_actor toneIndigo
```

## Components

### App and screens

- [App root](https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/ui/AppRoot.kt): `app/src/main/kotlin/jp/jig/sabera/hello/ui/AppRoot.kt`
- [Hello / World](https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/ui/HelloWorldScreen.kt): `app/src/main/kotlin/jp/jig/sabera/hello/ui/HelloWorldScreen.kt`
- [Settings probe](https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/ui/SettingsProbeScreen.kt): `app/src/main/kotlin/jp/jig/sabera/hello/ui/SettingsProbeScreen.kt`
- [Gesture log](https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/ui/GestureLog.kt): `app/src/main/kotlin/jp/jig/sabera/hello/ui/GestureLog.kt`

### Glasses session

- [Glass session](https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/glass/GlassSession.kt): `app/src/main/kotlin/jp/jig/sabera/hello/glass/GlassSession.kt`
- [Text surface](https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/glass/TextSurface.kt): `app/src/main/kotlin/jp/jig/sabera/hello/glass/TextSurface.kt`

### Visual experiments

- [Image routes](https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/ui/ImageRouteScreen.kt): `app/src/main/kotlin/jp/jig/sabera/hello/ui/ImageRouteScreen.kt`
- [Route limits](https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/image/ImageRoute.kt): `app/src/main/kotlin/jp/jig/sabera/hello/image/ImageRoute.kt`
- [Grayscale images](https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/image/GrayscaleImage.kt): `app/src/main/kotlin/jp/jig/sabera/hello/image/GrayscaleImage.kt`
- [Image budget](https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/image/CanvasImageBudget.kt): `app/src/main/kotlin/jp/jig/sabera/hello/image/CanvasImageBudget.kt`
- [Three-bit RLE](https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/image/ThreeBitRle.kt): `app/src/main/kotlin/jp/jig/sabera/hello/image/ThreeBitRle.kt`
- [Flipbook](https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/ui/FlipbookScreen.kt): `app/src/main/kotlin/jp/jig/sabera/hello/ui/FlipbookScreen.kt`
- [Multi-image canvas](https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/ui/CanvasMultiImageScreen.kt): `app/src/main/kotlin/jp/jig/sabera/hello/ui/CanvasMultiImageScreen.kt`
- [3D arrow](https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/arrow3d/ArrowRaster.kt): `app/src/main/kotlin/jp/jig/sabera/hello/arrow3d/ArrowRaster.kt`

### Sensing and navigation

- [6DoF tests](https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/ui/ImuScreen.kt): `app/src/main/kotlin/jp/jig/sabera/hello/ui/ImuScreen.kt`
- [IMU statistics](https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/imu/ImuStats.kt): `app/src/main/kotlin/jp/jig/sabera/hello/imu/ImuStats.kt`
- [North arrow](https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/ui/NorthArrowScreen.kt): `app/src/main/kotlin/jp/jig/sabera/hello/ui/NorthArrowScreen.kt`
- [Phone heading](https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/compass/PhoneHeading.kt): `app/src/main/kotlin/jp/jig/sabera/hello/compass/PhoneHeading.kt`
- [Navigation test](https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/ui/NaviScreen.kt): `app/src/main/kotlin/jp/jig/sabera/hello/ui/NaviScreen.kt`

### Transport and diagnostics

- [Microphone test](https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/ui/MicScreen.kt): `app/src/main/kotlin/jp/jig/sabera/hello/ui/MicScreen.kt`
- [Mic statistics](https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/audio/MicStats.kt): `app/src/main/kotlin/jp/jig/sabera/hello/audio/MicStats.kt`
- [Contention test](https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/ui/ContentionScreen.kt): `app/src/main/kotlin/jp/jig/sabera/hello/ui/ContentionScreen.kt`
- [Link latency](https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/transport/LinkLatency.kt): `app/src/main/kotlin/jp/jig/sabera/hello/transport/LinkLatency.kt`
- [Frame pacing](https://github.com/jigintern/sabera-test-app-itoshi/blob/main/app/src/main/kotlin/jp/jig/sabera/hello/flipbook/PacingStats.kt): `app/src/main/kotlin/jp/jig/sabera/hello/flipbook/PacingStats.kt`

### Other components

- **Tester**
- **SABERA SDK**
- **SABERA glasses**

## Connections

- Tester → App root: selects tests
- App root → Glass session: uses session (evidence: `app/src/main/kotlin/jp/jig/sabera/hello/ui/AppRoot.kt`)
- App root → Hello / World: routes to (evidence: `app/src/main/kotlin/jp/jig/sabera/hello/ui/AppRoot.kt`)
- App root → Image routes: routes to (evidence: `app/src/main/kotlin/jp/jig/sabera/hello/ui/AppRoot.kt`)
- App root → 6DoF tests: routes to (evidence: `app/src/main/kotlin/jp/jig/sabera/hello/ui/AppRoot.kt`)
- App root → Navigation test: routes to (evidence: `app/src/main/kotlin/jp/jig/sabera/hello/ui/AppRoot.kt`)
- App root → North arrow: routes to (evidence: `app/src/main/kotlin/jp/jig/sabera/hello/ui/AppRoot.kt`)
- App root → Flipbook: routes to (evidence: `app/src/main/kotlin/jp/jig/sabera/hello/ui/AppRoot.kt`)
- App root → Microphone test: routes to (evidence: `app/src/main/kotlin/jp/jig/sabera/hello/ui/AppRoot.kt`)
- App root → Settings probe: routes to (evidence: `app/src/main/kotlin/jp/jig/sabera/hello/ui/AppRoot.kt`)
- App root → Multi-image canvas: routes to (evidence: `app/src/main/kotlin/jp/jig/sabera/hello/ui/AppRoot.kt`)
- App root → Contention test: routes to (evidence: `app/src/main/kotlin/jp/jig/sabera/hello/ui/AppRoot.kt`)
- App root → Gesture log: shows events
- Hello / World → Glass session: sends text
- Glass session → Text surface: delegates text (evidence: `app/src/main/kotlin/jp/jig/sabera/hello/glass/GlassSession.kt`)
- Glass session → SABERA SDK: calls commands (evidence: `app/src/main/kotlin/jp/jig/sabera/hello/glass/GlassSession.kt`)
- SABERA SDK → SABERA glasses: communicates
- Image routes → Route limits: checks routes (evidence: `app/src/main/kotlin/jp/jig/sabera/hello/ui/ImageRouteScreen.kt`)
- Image routes → Grayscale images: prepares images (evidence: `app/src/main/kotlin/jp/jig/sabera/hello/ui/ImageRouteScreen.kt`)
- Image routes → Glass session: sends images (evidence: `app/src/main/kotlin/jp/jig/sabera/hello/ui/ImageRouteScreen.kt`)
- Route limits → Image budget: checks budget (evidence: `app/src/main/kotlin/jp/jig/sabera/hello/image/ImageRoute.kt`)
- Image budget → Three-bit RLE: estimates packets (evidence: `app/src/main/kotlin/jp/jig/sabera/hello/image/CanvasImageBudget.kt`)
- Flipbook → Glass session: sends frames (evidence: `app/src/main/kotlin/jp/jig/sabera/hello/ui/FlipbookScreen.kt`)
- Flipbook → Frame pacing: tracks pacing (evidence: `app/src/main/kotlin/jp/jig/sabera/hello/ui/FlipbookScreen.kt`)
- Multi-image canvas → Glass session: sends images
- 6DoF tests → Glass session: starts sampling
- 6DoF tests → IMU statistics: summarizes samples
- North arrow → Phone heading: reads heading
- North arrow → Glass session: sends course
- Navigation test → Glass session: sends guidance
- Microphone test → Glass session: starts streaming
- Microphone test → Mic statistics: summarizes chunks
- Contention test → Glass session: runs concurrent tests
- Contention test → Link latency: measures delay
- Settings probe → Glass session: probes commands (evidence: `app/src/main/kotlin/jp/jig/sabera/hello/ui/SettingsProbeScreen.kt`)
- Settings probe → SABERA SDK: requests diagnostics
- 3D arrow → Grayscale images: renders grayscale (evidence: `app/src/main/kotlin/jp/jig/sabera/hello/arrow3d/ArrowRaster.kt`)
- 3D arrow → Glass session: sends render paths
