1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright 2024 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16 --> 17 18<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:app="http://schemas.android.com/apk/res-auto" 20 xmlns:tools="http://schemas.android.com/tools" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent" 23 tools:context=".JavaScriptEngineEvaluationActivity"> 24 <ScrollView 25 android:layout_width="match_parent" 26 android:layout_height="match_parent"> 27 <LinearLayout 28 android:layout_width="match_parent" 29 android:layout_height="wrap_content" 30 android:orientation="vertical"> 31 <EditText 32 android:id="@+id/jscode" 33 android:layout_width="match_parent" 34 android:layout_height="wrap_content" 35 android:text="'PASS'" /> 36 <LinearLayout 37 android:layout_width="match_parent" 38 android:layout_height="match_parent" 39 android:orientation="horizontal"> 40 <TextView 41 android:id="@+id/textView" 42 android:layout_width="wrap_content" 43 android:layout_height="wrap_content" 44 android:layout_weight="0" 45 android:text="Queued evaluations :" /> 46 <EditText 47 android:id="@+id/queuedEvalsNumber" 48 android:layout_width="wrap_content" 49 android:layout_height="wrap_content" 50 android:layout_weight="1" 51 android:ems="10" 52 android:inputType="number" 53 android:numeric="integer" 54 android:text="0" /> 55 </LinearLayout> 56 <LinearLayout 57 android:layout_width="match_parent" 58 android:layout_height="match_parent" 59 android:orientation="horizontal"> 60 <TextView 61 android:id="@id/textView" 62 android:layout_width="wrap_content" 63 android:layout_height="wrap_content" 64 android:layout_weight="0" 65 android:text="Sequential evaluations:" /> 66 67 <EditText 68 android:id="@+id/sequentialEvalsNumber" 69 android:layout_width="wrap_content" 70 android:layout_height="wrap_content" 71 android:layout_weight="1" 72 android:ems="10" 73 android:inputType="number" 74 android:text="0" /> 75 </LinearLayout> 76 <LinearLayout 77 android:layout_width="match_parent" 78 android:layout_height="wrap_content" 79 android:orientation="horizontal"> 80 <Button 81 android:id="@+id/evaluateButton" 82 android:layout_width="0dp" 83 android:layout_height="wrap_content" 84 android:layout_weight="0.2" 85 android:padding="0dp" 86 android:text="Evaluate" /> 87 </LinearLayout> 88 <TextView 89 android:id="@+id/result" 90 android:layout_width="match_parent" 91 android:layout_height="wrap_content" 92 android:text="Result" /> 93 <TextView 94 android:id="@+id/error" 95 android:layout_width="match_parent" 96 android:layout_height="wrap_content" 97 android:text="Error" /> 98 <TextView 99 android:id="@+id/time" 100 android:layout_width="match_parent" 101 android:layout_height="wrap_content" 102 android:text="Time" /> 103 <TextView 104 android:id="@+id/crash" 105 android:layout_width="match_parent" 106 android:layout_height="wrap_content" 107 android:text="Crash" /> 108 <LinearLayout 109 android:layout_width="match_parent" 110 android:layout_height="wrap_content" 111 android:orientation="horizontal"> 112 <Button 113 android:id="@+id/closeIsolate" 114 android:layout_width="0dp" 115 android:layout_height="wrap_content" 116 android:layout_weight="0.2" 117 android:padding="0dp" 118 android:text="Close Isolate" /> 119 </LinearLayout> 120 <LinearLayout 121 android:layout_width="match_parent" 122 android:layout_height="wrap_content" 123 android:orientation="horizontal"> 124 <Button 125 android:id="@+id/closeSandbox" 126 android:layout_width="0dp" 127 android:layout_height="wrap_content" 128 android:layout_weight="0.2" 129 android:padding="0dp" 130 android:text="Close Sandbox" /> 131 </LinearLayout> 132 <LinearLayout 133 android:layout_width="match_parent" 134 android:layout_height="wrap_content" 135 android:orientation="horizontal"> 136 <Button 137 android:id="@+id/createIsolate" 138 android:layout_width="0dp" 139 android:layout_height="wrap_content" 140 android:layout_weight="0.2" 141 android:padding="0dp" 142 android:text="Create Isolate" /> 143 </LinearLayout> 144 <View 145 android:id="@+id/divider2" 146 android:layout_width="match_parent" 147 android:layout_height="1dp" 148 android:background="?android:attr/listDivider" /> 149 <View 150 android:id="@+id/divider" 151 android:layout_width="match_parent" 152 android:layout_height="1dp" 153 android:background="?android:attr/listDivider" /> 154 </LinearLayout> 155 </ScrollView> 156 157</androidx.constraintlayout.widget.ConstraintLayout>