Yao Chen | 1ff4f43 | 2017-11-16 17:01:40 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | /* |
| 4 | ** Copyright 2007, The Android Open Source Project |
| 5 | ** |
| 6 | ** Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | ** you may not use this file except in compliance with the License. |
| 8 | ** You may obtain a copy of the License at |
| 9 | ** |
| 10 | ** http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | ** |
| 12 | ** Unless required by applicable law or agreed to in writing, software |
| 13 | ** distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | ** See the License for the specific language governing permissions and |
| 16 | ** limitations under the License. |
| 17 | */ |
| 18 | --> |
| 19 | <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" |
| 20 | android:layout_width="match_parent" |
| 21 | android:layout_height="match_parent" > |
| 22 | |
| 23 | <LinearLayout |
| 24 | android:layout_width="match_parent" |
| 25 | android:layout_height="match_parent" |
| 26 | android:orientation="vertical"> |
| 27 | |
| 28 | <Button |
| 29 | android:id="@+id/push_config" |
| 30 | android:layout_width="wrap_content" |
| 31 | android:layout_height="wrap_content" |
| 32 | android:background="@android:color/holo_green_light" |
| 33 | android:text="@string/push_config"/> |
David Chen | 661f791 | 2018-01-22 17:46:24 -0800 | [diff] [blame^] | 34 | <Button |
| 35 | android:id="@+id/set_receiver" |
| 36 | android:layout_width="wrap_content" |
| 37 | android:layout_height="wrap_content" |
| 38 | android:background="@android:color/holo_green_light" |
| 39 | android:text="@string/set_receiver"/> |
| 40 | <Button |
| 41 | android:id="@+id/remove_receiver" |
| 42 | android:layout_width="wrap_content" |
| 43 | android:layout_height="wrap_content" |
| 44 | android:background="@android:color/holo_green_light" |
| 45 | android:text="@string/remove_receiver"/> |
Yao Chen | 1ff4f43 | 2017-11-16 17:01:40 -0800 | [diff] [blame] | 46 | |
| 47 | <LinearLayout android:layout_width="wrap_content" |
| 48 | android:layout_height="wrap_content" |
| 49 | android:orientation="horizontal"> |
| 50 | <Button android:id="@+id/app_a_wake_lock_acquire1" |
| 51 | android:layout_width="wrap_content" |
| 52 | android:layout_height="wrap_content" |
| 53 | android:text="@string/app_a_get_wl1"/> |
| 54 | <Button android:id="@+id/app_a_wake_lock_release1" |
| 55 | android:layout_width="wrap_content" |
| 56 | android:layout_height="wrap_content" |
| 57 | android:text="@string/app_a_release_wl1"/> |
| 58 | </LinearLayout> |
| 59 | |
| 60 | <LinearLayout android:layout_width="wrap_content" |
| 61 | android:layout_height="wrap_content" |
| 62 | android:orientation="horizontal"> |
| 63 | <Button android:id="@+id/app_a_wake_lock_acquire2" |
| 64 | android:layout_width="wrap_content" |
| 65 | android:layout_height="wrap_content" |
| 66 | android:text="@string/app_a_get_wl2"/> |
| 67 | <Button android:id="@+id/app_a_wake_lock_release2" |
| 68 | android:layout_width="wrap_content" |
| 69 | android:layout_height="wrap_content" |
| 70 | android:text="@string/app_a_release_wl2"/> |
| 71 | </LinearLayout> |
| 72 | |
| 73 | <LinearLayout android:layout_width="wrap_content" |
| 74 | android:layout_height="wrap_content" |
| 75 | android:orientation="horizontal"> |
| 76 | <Button android:id="@+id/app_b_wake_lock_acquire1" |
| 77 | android:layout_width="wrap_content" |
| 78 | android:layout_height="wrap_content" |
| 79 | android:text="@string/app_b_get_wl1"/> |
| 80 | <Button android:id="@+id/app_b_wake_lock_release1" |
| 81 | android:layout_width="wrap_content" |
| 82 | android:layout_height="wrap_content" |
| 83 | android:text="@string/app_b_release_wl1"/> |
| 84 | </LinearLayout> |
| 85 | <LinearLayout android:layout_width="wrap_content" |
| 86 | android:layout_height="wrap_content" |
| 87 | android:orientation="horizontal"> |
| 88 | <Button android:id="@+id/app_b_wake_lock_acquire2" |
| 89 | android:layout_width="wrap_content" |
| 90 | android:layout_height="wrap_content" |
| 91 | android:text="@string/app_b_get_wl2"/> |
| 92 | <Button android:id="@+id/app_b_wake_lock_release2" |
| 93 | android:layout_width="wrap_content" |
| 94 | android:layout_height="wrap_content" |
| 95 | android:text="@string/app_b_release_wl2"/> |
| 96 | </LinearLayout> |
| 97 | |
| 98 | <LinearLayout android:layout_width="wrap_content" |
| 99 | android:layout_height="wrap_content" |
| 100 | android:orientation="horizontal"> |
| 101 | <Button android:id="@+id/plug" |
| 102 | android:layout_width="wrap_content" |
| 103 | android:layout_height="wrap_content" |
| 104 | android:text="@string/plug"/> |
| 105 | |
| 106 | <Button android:id="@+id/unplug" |
| 107 | android:layout_width="wrap_content" |
| 108 | android:layout_height="wrap_content" |
| 109 | android:text="@string/unplug"/> |
| 110 | </LinearLayout> |
| 111 | |
| 112 | <LinearLayout android:layout_width="wrap_content" |
| 113 | android:layout_height="wrap_content" |
| 114 | android:orientation="horizontal"> |
| 115 | <Button android:id="@+id/screen_on" |
| 116 | android:layout_width="wrap_content" |
| 117 | android:layout_height="wrap_content" |
| 118 | android:text="@string/screen_on"/> |
| 119 | |
| 120 | <Button android:id="@+id/screen_off" |
| 121 | android:layout_width="wrap_content" |
| 122 | android:layout_height="wrap_content" |
| 123 | android:text="@string/screen_off"/> |
| 124 | </LinearLayout> |
| 125 | |
David Chen | 0a368b2 | 2017-12-06 16:28:16 -0800 | [diff] [blame] | 126 | <LinearLayout android:layout_width="wrap_content" |
| 127 | android:layout_height="wrap_content" |
| 128 | android:orientation="horizontal"> |
| 129 | |
| 130 | <Button |
| 131 | android:id="@+id/custom_start" |
| 132 | android:layout_width="wrap_content" |
| 133 | android:layout_height="wrap_content" |
| 134 | android:text="@string/custom_start" /> |
| 135 | |
| 136 | <Button |
| 137 | android:id="@+id/custom_stop" |
| 138 | android:layout_width="wrap_content" |
| 139 | android:layout_height="wrap_content" |
| 140 | android:text="@string/custom_stop" /> |
| 141 | </LinearLayout> |
| 142 | |
Yao Chen | 1ff4f43 | 2017-11-16 17:01:40 -0800 | [diff] [blame] | 143 | <Button android:id="@+id/dump" |
| 144 | android:layout_width="wrap_content" |
| 145 | android:layout_height="wrap_content" |
| 146 | android:background="@android:color/holo_purple" |
| 147 | android:text="@string/dump"/> |
| 148 | |
| 149 | <TextView |
| 150 | android:id="@+id/header" |
| 151 | android:layout_width="match_parent" |
| 152 | android:layout_height="wrap_content" |
| 153 | android:text="@string/report_header"/> |
| 154 | |
| 155 | <TextView |
| 156 | android:id="@+id/report_text" |
| 157 | android:layout_width="match_parent" |
| 158 | android:layout_height="wrap_content" /> |
| 159 | |
| 160 | </LinearLayout> |
| 161 | |
| 162 | </ScrollView> |