blob: 1951e157c94b53e71a0c5e17f088d58e98f43796 [file] [log] [blame]
<!--
~ 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.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
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">
<Button
android:id="@+id/show_mem_info_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/show_mem_info"/>
</LinearLayout>
<TextView
android:id="@+id/output_textview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"/>
</LinearLayout>