Files
packages_apps_GameBar/res/layout/dialog_log_analytics.xml
kenway214 aca1b4d4ed Initial Import
Signed-off-by: kenway214 <kenway214@outlook.com>
2025-10-24 20:18:59 +05:30

604 lines
23 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2025 kenway214
SPDX-License-Identifier: Apache-2.0
-->
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fillViewport="true"
android:background="#121212">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp">
<!-- Session Info Card -->
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:backgroundTint="#121212"
android:elevation="4dp">
<TextView
android:id="@+id/tv_session_info"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Session Information"
android:textColor="@android:color/white"
android:textSize="13sp"
android:padding="12dp"
android:fontFamily="monospace"
android:lineSpacingExtra="2dp" />
</androidx.cardview.widget.CardView>
<!-- FPS Graph Card -->
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:backgroundTint="#121212"
android:elevation="4dp">
<com.android.gamebar.FpsGraphView
android:id="@+id/fps_graph_view"
android:layout_width="match_parent"
android:layout_height="400dp"
android:padding="8dp" />
</androidx.cardview.widget.CardView>
<!-- Frame Time Graph Card -->
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:backgroundTint="#121212"
android:elevation="4dp">
<com.android.gamebar.FrameTimeGraphView
android:id="@+id/frame_time_graph_view"
android:layout_width="match_parent"
android:layout_height="400dp"
android:padding="8dp" />
</androidx.cardview.widget.CardView>
<!-- Divider -->
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#333333"
android:layout_marginVertical="8dp" />
<!-- FPS Statistics -->
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="FPS STATISTICS"
android:textColor="@android:color/white"
android:textSize="16sp"
android:textStyle="bold"
android:paddingVertical="8dp"
android:gravity="center" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="2">
<!-- Left Column -->
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical"
android:paddingEnd="8dp">
<TextView
android:id="@+id/tv_max_fps"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Max FPS: 0.0"
android:textColor="#4CAF50"
android:textSize="14sp"
android:fontFamily="monospace"
android:paddingVertical="4dp" />
<TextView
android:id="@+id/tv_min_fps"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Min FPS: 0.0"
android:textColor="#F44336"
android:textSize="14sp"
android:fontFamily="monospace"
android:paddingVertical="4dp" />
<TextView
android:id="@+id/tv_avg_fps"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Avg FPS: 0.0"
android:textColor="#FF9800"
android:textSize="14sp"
android:fontFamily="monospace"
android:paddingVertical="4dp" />
</LinearLayout>
<!-- Right Column -->
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical"
android:paddingStart="8dp">
<TextView
android:id="@+id/tv_variance"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Variance: 0.00"
android:textColor="@android:color/white"
android:textSize="14sp"
android:fontFamily="monospace"
android:paddingVertical="4dp" />
<TextView
android:id="@+id/tv_std_dev"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Std Dev: 0.00"
android:textColor="@android:color/white"
android:textSize="14sp"
android:fontFamily="monospace"
android:paddingVertical="4dp" />
<TextView
android:id="@+id/tv_smoothness"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Smoothness: 0.0%"
android:textColor="#4CAF50"
android:textSize="14sp"
android:fontFamily="monospace"
android:paddingVertical="4dp" />
</LinearLayout>
</LinearLayout>
<!-- Frame Time Lows (under FPS Statistics) -->
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#333333"
android:layout_marginVertical="8dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="2">
<TextView
android:id="@+id/tv_1percent_low"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="1% Low: 0.0 FPS"
android:textColor="#F44336"
android:textSize="14sp"
android:fontFamily="monospace"
android:paddingVertical="4dp"
android:paddingEnd="8dp" />
<TextView
android:id="@+id/tv_01percent_low"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="0.1% Low: 0.0 FPS"
android:textColor="#FF5252"
android:textSize="14sp"
android:fontFamily="monospace"
android:paddingVertical="4dp"
android:paddingStart="8dp" />
</LinearLayout>
<!-- Divider -->
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#333333"
android:layout_marginVertical="16dp" />
<!-- CPU Statistics Section -->
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="CPU STATISTICS"
android:textColor="@android:color/white"
android:textSize="16sp"
android:textStyle="bold"
android:paddingVertical="8dp"
android:gravity="center" />
<!-- CPU Usage Graph Card -->
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:backgroundTint="#121212"
android:elevation="4dp">
<com.android.gamebar.CpuGraphView
android:id="@+id/cpu_usage_graph_view"
android:layout_width="match_parent"
android:layout_height="250dp"
android:padding="8dp" />
</androidx.cardview.widget.CardView>
<!-- CPU Temperature Graph Card -->
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:backgroundTint="#121212"
android:elevation="4dp">
<com.android.gamebar.CpuTempGraphView
android:id="@+id/cpu_temp_graph_view"
android:layout_width="match_parent"
android:layout_height="250dp"
android:padding="8dp" />
</androidx.cardview.widget.CardView>
<!-- CPU Clock Graph Card -->
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:backgroundTint="#121212"
android:elevation="4dp">
<com.android.gamebar.CpuClockGraphView
android:id="@+id/cpu_clock_graph_view"
android:layout_width="match_parent"
android:layout_height="300dp"
android:padding="8dp" />
</androidx.cardview.widget.CardView>
<!-- Divider -->
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#333333"
android:layout_marginVertical="8dp" />
<!-- CPU Stats Summary -->
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="CPU SUMMARY"
android:textColor="@android:color/white"
android:textSize="16sp"
android:textStyle="bold"
android:paddingVertical="8dp"
android:gravity="center" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="2">
<!-- Left Column -->
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical"
android:paddingEnd="8dp">
<TextView
android:id="@+id/tv_max_cpu_usage"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Max Usage: 0%"
android:textColor="#4CAF50"
android:textSize="14sp"
android:fontFamily="monospace"
android:paddingVertical="4dp" />
<TextView
android:id="@+id/tv_min_cpu_usage"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Min Usage: 0%"
android:textColor="#F44336"
android:textSize="14sp"
android:fontFamily="monospace"
android:paddingVertical="4dp" />
<TextView
android:id="@+id/tv_avg_cpu_usage"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Avg Usage: 0%"
android:textColor="#FF9800"
android:textSize="14sp"
android:fontFamily="monospace"
android:paddingVertical="4dp" />
</LinearLayout>
<!-- Right Column -->
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical"
android:paddingStart="8dp">
<TextView
android:id="@+id/tv_max_cpu_temp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Max Temp: 0.0°C"
android:textColor="#FF5722"
android:textSize="14sp"
android:fontFamily="monospace"
android:paddingVertical="4dp" />
<TextView
android:id="@+id/tv_min_cpu_temp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Min Temp: 0.0°C"
android:textColor="#4CAF50"
android:textSize="14sp"
android:fontFamily="monospace"
android:paddingVertical="4dp" />
<TextView
android:id="@+id/tv_avg_cpu_temp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Avg Temp: 0.0°C"
android:textColor="#FF9800"
android:textSize="14sp"
android:fontFamily="monospace"
android:paddingVertical="4dp" />
</LinearLayout>
</LinearLayout>
<!-- Divider -->
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#333333"
android:layout_marginVertical="16dp" />
<!-- GPU Statistics Section -->
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="GPU STATISTICS"
android:textColor="@android:color/white"
android:textSize="16sp"
android:textStyle="bold"
android:paddingVertical="8dp"
android:gravity="center" />
<!-- GPU Usage Graph Card -->
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:backgroundTint="#121212"
android:elevation="4dp">
<com.android.gamebar.GpuUsageGraphView
android:id="@+id/gpu_usage_graph_view"
android:layout_width="match_parent"
android:layout_height="250dp"
android:padding="8dp" />
</androidx.cardview.widget.CardView>
<!-- GPU Temperature Graph Card -->
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:backgroundTint="#121212"
android:elevation="4dp">
<com.android.gamebar.GpuTempGraphView
android:id="@+id/gpu_temp_graph_view"
android:layout_width="match_parent"
android:layout_height="250dp"
android:padding="8dp" />
</androidx.cardview.widget.CardView>
<!-- GPU Clock Graph Card -->
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:backgroundTint="#121212"
android:elevation="4dp">
<com.android.gamebar.GpuClockGraphView
android:id="@+id/gpu_clock_graph_view"
android:layout_width="match_parent"
android:layout_height="250dp"
android:padding="8dp" />
</androidx.cardview.widget.CardView>
<!-- Divider -->
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#333333"
android:layout_marginVertical="8dp" />
<!-- GPU Stats Summary -->
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="GPU SUMMARY"
android:textColor="@android:color/white"
android:textSize="16sp"
android:textStyle="bold"
android:paddingVertical="8dp"
android:gravity="center" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="2">
<!-- Left Column -->
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical"
android:paddingEnd="8dp">
<TextView
android:id="@+id/tv_max_gpu_usage"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Max Usage: 0%"
android:textColor="#4CAF50"
android:textSize="14sp"
android:fontFamily="monospace"
android:paddingVertical="4dp" />
<TextView
android:id="@+id/tv_min_gpu_usage"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Min Usage: 0%"
android:textColor="#F44336"
android:textSize="14sp"
android:fontFamily="monospace"
android:paddingVertical="4dp" />
<TextView
android:id="@+id/tv_avg_gpu_usage"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Avg Usage: 0%"
android:textColor="#FF9800"
android:textSize="14sp"
android:fontFamily="monospace"
android:paddingVertical="4dp" />
</LinearLayout>
<!-- Right Column -->
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical"
android:paddingStart="8dp">
<TextView
android:id="@+id/tv_max_gpu_clock"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Max Clock: 0 MHz"
android:textColor="#4CAF50"
android:textSize="14sp"
android:fontFamily="monospace"
android:paddingVertical="4dp" />
<TextView
android:id="@+id/tv_min_gpu_clock"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Min Clock: 0 MHz"
android:textColor="#F44336"
android:textSize="14sp"
android:fontFamily="monospace"
android:paddingVertical="4dp" />
<TextView
android:id="@+id/tv_avg_gpu_clock"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Avg Clock: 0 MHz"
android:textColor="#FF9800"
android:textSize="14sp"
android:fontFamily="monospace"
android:paddingVertical="4dp" />
</LinearLayout>
</LinearLayout>
<!-- GPU Temperature Stats -->
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#333333"
android:layout_marginVertical="8dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="3">
<TextView
android:id="@+id/tv_max_gpu_temp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Max Temp: 0.0°C"
android:textColor="#FF5722"
android:textSize="14sp"
android:fontFamily="monospace"
android:paddingVertical="4dp"
android:paddingEnd="8dp" />
<TextView
android:id="@+id/tv_min_gpu_temp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Min Temp: 0.0°C"
android:textColor="#4CAF50"
android:textSize="14sp"
android:fontFamily="monospace"
android:paddingVertical="4dp" />
<TextView
android:id="@+id/tv_avg_gpu_temp"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Avg Temp: 0.0°C"
android:textColor="#FF9800"
android:textSize="14sp"
android:fontFamily="monospace"
android:paddingVertical="4dp"
android:paddingStart="8dp" />
</LinearLayout>
</LinearLayout>
</ScrollView>