packages/services/Car/tests/EmbeddedKitchenSinkApp/res/layout/car_telemetry_test.xml

427 lines
20 KiB
XML

<!--
~ Copyright (C) 2021 The Android Open Source Project
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fadeScrollbars="false">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:id="@+id/toggle_metrics_configs_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Configs ▶"/>
<Button
android:id="@+id/print_mem_info_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/print_mem_info"/>
<Button
android:id="@+id/enable_report_notification_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>
<LinearLayout
android:id="@+id/metrics_config_buttons_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/gear_change_config"/>
<Button
android:id="@+id/send_on_gear_change_config"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/add_metrics_config"/>
<Button
android:id="@+id/remove_on_gear_change_config"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/remove_metrics_config"/>
<Button
android:id="@+id/get_on_gear_change_report"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/get_report"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/process_memory_config"/>
<Button
android:id="@+id/send_on_process_memory_config"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/add_metrics_config"/>
<Button
android:id="@+id/remove_on_process_memory_config"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/remove_metrics_config"/>
<Button
android:id="@+id/get_on_process_memory_report"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/get_report"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/app_start_memory_state_captured_config"/>
<Button
android:id="@+id/send_on_app_start_memory_state_captured_config"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/add_metrics_config"/>
<Button
android:id="@+id/remove_on_app_start_memory_state_captured_config"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/remove_metrics_config"/>
<Button
android:id="@+id/get_on_app_start_memory_state_captured_report"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/get_report"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/activity_foreground_state_changed_config"/>
<Button
android:id="@+id/send_on_activity_foreground_state_changed_config"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/add_metrics_config"/>
<Button
android:id="@+id/remove_on_activity_foreground_state_changed_config"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/remove_metrics_config"/>
<Button
android:id="@+id/get_on_activity_foreground_state_changed_report"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/get_report"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/process_cpu_time_config"/>
<Button
android:id="@+id/send_on_process_cpu_time_config"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/add_metrics_config"/>
<Button
android:id="@+id/remove_on_process_cpu_time_config"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/remove_metrics_config"/>
<Button
android:id="@+id/get_on_process_cpu_time_report"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/get_report"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/app_crash_occurred_config"/>
<Button
android:id="@+id/send_on_app_crash_occurred_config"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/add_metrics_config"/>
<Button
android:id="@+id/remove_on_app_crash_occurred_config"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/remove_metrics_config"/>
<Button
android:id="@+id/get_on_app_crash_occurred_report"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/get_report"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/anr_occurred_config"/>
<Button
android:id="@+id/send_on_anr_occurred_config"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/add_metrics_config"/>
<Button
android:id="@+id/remove_on_anr_occurred_config"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/remove_metrics_config"/>
<Button
android:id="@+id/get_on_anr_occurred_report"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/get_report"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/wtf_occurred_config"/>
<Button
android:id="@+id/send_on_wtf_occurred_config"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/add_metrics_config"/>
<Button
android:id="@+id/remove_on_wtf_occurred_config"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/remove_metrics_config"/>
<Button
android:id="@+id/get_on_wtf_occurred_report"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/get_report"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/wifi_netstats_config"/>
<Button
android:id="@+id/send_on_wifi_netstats_config"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/add_metrics_config"/>
<Button
android:id="@+id/remove_on_wifi_netstats_config"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/remove_metrics_config"/>
<Button
android:id="@+id/get_on_wifi_netstats_report"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/get_report"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/stats_and_connectivity_config"/>
<Button
android:id="@+id/send_stats_and_connectivity_config"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/add_metrics_config"/>
<Button
android:id="@+id/remove_stats_and_connectivity_config"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/remove_metrics_config"/>
<Button
android:id="@+id/get_stats_and_connectivity_report"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/get_report"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/driving_sessions_config"/>
<Button
android:id="@+id/send_driving_sessions_config"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/add_metrics_config"/>
<Button
android:id="@+id/download_data"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/download_data"/>
<Button
android:id="@+id/emulate_suspend_to_RAM"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/emulate_suspend_to_RAM"/>
<Button
android:id="@+id/emulate_reboot"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/emulate_reboot"/>
<Button
android:id="@+id/remove_driving_sessions_config"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/remove_metrics_config"/>
<Button
android:id="@+id/get_driving_sessions_report"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/get_report"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/memory_config"/>
<Button
android:id="@+id/send_memory_config"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/add_metrics_config"/>
<Button
android:id="@+id/remove_memory_config"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/remove_metrics_config"/>
<Button
android:id="@+id/get_memory_report"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/get_report"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/process_memory_snapshot_config"/>
<Button
android:id="@+id/send_on_process_memory_snapshot_config"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/add_metrics_config"/>
<Button
android:id="@+id/remove_on_process_memory_snapshot_config"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/remove_metrics_config"/>
<Button
android:id="@+id/get_on_process_memory_snapshot_report"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/get_report"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/process_start_time_config"/>
<Button
android:id="@+id/send_on_process_start_time_config"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/add_metrics_config"/>
<Button
android:id="@+id/remove_on_process_start_time_config"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/remove_metrics_config"/>
<Button
android:id="@+id/get_on_process_start_time_report"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/get_report"/>
</LinearLayout>
</LinearLayout> <!-- @+id/metrics_config_buttons -->
<TextView
android:id="@+id/output_textview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"/>
</LinearLayout>
</ScrollView>