Files
MoGoAiCloudSdk/libraries/countly/app-benchmark/src/main/res/layout/activity_main.xml
donghongyu 55500cb376 「Countly」
1、引入countly源码,高度为09d7817a38074cae8a6c34f94c04356b29f6a80f,引入原因是因为gradle、kotlin版本太高了,无法直接使用。需要自己定制化
2024-10-29 19:09:53 +08:00

152 lines
4.7 KiB
XML

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
tools:context=".MainActivity"
>
<Switch
android:id="@+id/eventQ"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/wait"
android:layout_marginBottom="-46dp"
android:checked="true"
android:minHeight="48dp"
android:text="Generate Events in place of requests"
/>
<Switch
android:id="@+id/wait"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="true"
android:minHeight="48dp"
android:text="Wait"
/>
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true"
tools:ignore="UselessParent"
>
<TextView
android:id="@+id/textView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Segmentation Values Per Event:"
/>
<EditText
android:id="@+id/segmentSize"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:autofillHints=""
android:ems="10"
android:inputType="number"
android:minHeight="48dp"
android:text="6"
/>
<TextView
android:id="@+id/textView2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Generated Request Count:"
/>
<EditText
android:id="@+id/loop"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:autofillHints=""
android:ems="10"
android:inputType="number"
android:minHeight="48dp"
android:text="1"
/>
<TextView
android:id="@+id/textView3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Event Count:"
/>
<EditText
android:id="@+id/eventSize"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:importantForAutofill="no"
android:inputType="number"
android:minHeight="48dp"
android:text="24000"
/>
<Button
android:id="@+id/button2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="onGenerateBenchmarkData"
android:text="Generate benchmark Data"
android:visibility="visible"
tools:visibility="visible"
/>
<Button
android:id="@+id/button9"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="onClickFillRequestQueue"
android:text="@string/fill_rq"
android:visibility="visible"
tools:visibility="visible"
/>
<Button
android:id="@+id/tests_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="onClickBenchmark"
android:text="@string/send_requests"
/>
<Button
android:id="@+id/button20"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="onHardKillPressed"
android:text="Exit"
/>
<Button
android:id="@+id/button23"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="onSchedulerPressed"
android:text="Schedule"
/>
<Button
android:id="@+id/button24"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="onClearCounters"
android:text="Clear Counter"
/>
<Button
android:id="@+id/button25"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="onPrintCounters"
android:text="Print Counter"
/>
<Button
android:id="@+id/button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="onClearStorage"
android:text="Clear Storage"
/>
</LinearLayout>
</RelativeLayout>