From 16a56e56a73aed90e3fe8f3488876941c31ad952 Mon Sep 17 00:00:00 2001 From: Robert Wu <85952307+robertwu1@users.noreply.github.com> Date: Tue, 5 May 2026 14:52:56 -0700 Subject: [PATCH] OboeTester: Add watch support --- apps/OboeTester/app/build.gradle | 9 +++ .../app/src/main/AndroidManifest.xml | 70 +++++++------------ .../activity_audio_workload_test_runner.xml | 20 ++++-- .../layout/activity_cold_start_latency.xml | 33 +++++---- .../main/res/layout/activity_data_paths.xml | 7 ++ .../res/layout/activity_error_callback.xml | 17 ++++- .../layout/activity_external_tap_to_tone.xml | 7 ++ .../main/res/layout/activity_extra_tests.xml | 20 +++++- .../app/src/main/res/layout/activity_main.xml | 9 ++- .../main/res/layout/activity_rapid_cycle.xml | 23 ++++-- .../main/res/layout/activity_reverse_jni.xml | 7 ++ .../res/layout/activity_routing_crash.xml | 23 ++++-- .../main/res/layout/activity_rt_latency.xml | 3 +- .../res/layout/activity_test_disconnect.xml | 20 ++++-- .../main/res/layout/activity_test_input.xml | 3 +- .../main/res/layout/activity_test_output.xml | 3 +- .../main/res/layout/merge_audio_common.xml | 20 +++--- .../app/src/main/res/values-watch/dimens.xml | 5 ++ .../src/main/res/values-watch/integers.xml | 6 ++ .../app/src/main/res/values/integers.xml | 6 ++ .../app/src/main/res/values/strings.xml | 4 +- .../app/src/watch/AndroidManifest.xml | 12 ++++ 22 files changed, 223 insertions(+), 104 deletions(-) create mode 100644 apps/OboeTester/app/src/main/res/values-watch/dimens.xml create mode 100644 apps/OboeTester/app/src/main/res/values-watch/integers.xml create mode 100644 apps/OboeTester/app/src/main/res/values/integers.xml create mode 100644 apps/OboeTester/app/src/watch/AndroidManifest.xml diff --git a/apps/OboeTester/app/build.gradle b/apps/OboeTester/app/build.gradle index 10f20bdf3..22020961f 100644 --- a/apps/OboeTester/app/build.gradle +++ b/apps/OboeTester/app/build.gradle @@ -25,6 +25,15 @@ android { jniDebuggable true } } + flavorDimensions = ["device"] + productFlavors { + mobile { + dimension "device" + } + watch { + dimension "device" + } + } externalNativeBuild { cmake { path "CMakeLists.txt" diff --git a/apps/OboeTester/app/src/main/AndroidManifest.xml b/apps/OboeTester/app/src/main/AndroidManifest.xml index ba91a8a3d..bcf73af0c 100644 --- a/apps/OboeTester/app/src/main/AndroidManifest.xml +++ b/apps/OboeTester/app/src/main/AndroidManifest.xml @@ -20,6 +20,9 @@ + @@ -41,7 +44,6 @@ @@ -52,104 +54,82 @@ + android:label="@string/title_activity_test_output" /> + android:label="@string/title_activity_test_input" /> + android:label="@string/title_activity_output_latency" /> + android:label="@string/title_activity_recorder" /> + android:label="@string/title_activity_echo" /> + android:label="@string/title_activity_rt_latency" /> + android:label="@string/title_activity_glitches" /> + android:label="@string/title_activity_auto_glitches" /> + android:label="@string/title_test_disconnect" /> + android:label="@string/title_report_devices" /> + android:label="@string/title_data_paths" /> + android:label="@string/title_extra_tests" /> + android:exported="true" /> + android:exported="true" /> + android:exported="true" /> + android:exported="true" /> + android:exported="true" /> + android:exported="true" /> + android:exported="true" /> + android:exported="true" /> + android:exported="true" /> + android:exported="true" /> + + - + android:columnCount="@integer/action_buttons_columns">