summaryrefslogtreecommitdiffstats
path: root/tests/FrameworkPerf/res/layout/main.xml
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2011-11-01 15:28:43 -0700
committerDianne Hackborn <hackbod@google.com>2011-11-01 18:01:33 -0700
commit0500b3cfda5192efc09d6d4344b0c6c785c0a815 (patch)
treed850844c43e6dacd62f9818f39a8becfd5ac5cbb /tests/FrameworkPerf/res/layout/main.xml
parentf136aa341abaaf7fd6f7632d41a30b2989d93985 (diff)
downloadframeworks_base-0500b3cfda5192efc09d6d4344b0c6c785c0a815.zip
frameworks_base-0500b3cfda5192efc09d6d4344b0c6c785c0a815.tar.gz
frameworks_base-0500b3cfda5192efc09d6d4344b0c6c785c0a815.tar.bz2
Some optimizations.
- Don't try to create a thumbnail bitmap on the client side. This wastes 64k, and isn't needed since we are doing screenshots. - Optimize View to put all of the callback pointers out of line. Added a couple new APIs so these don't need to be protected/public. - Lazily create ViewGroup's cache paint. - Change FrameworkPerf app to not use HW accel drawing, to give better comparison with GB. Change-Id: Iec56d02459820d74a4cc9c7ec9c1856563c82c7b
Diffstat (limited to 'tests/FrameworkPerf/res/layout/main.xml')
-rw-r--r--tests/FrameworkPerf/res/layout/main.xml17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/FrameworkPerf/res/layout/main.xml b/tests/FrameworkPerf/res/layout/main.xml
index 8b54118..62b1a7a 100644
--- a/tests/FrameworkPerf/res/layout/main.xml
+++ b/tests/FrameworkPerf/res/layout/main.xml
@@ -64,6 +64,23 @@
android:orientation="horizontal"
android:layout_marginTop="10dp"
>
+ <TextView android:layout_width="wrap_content" android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:text="Test time (ms): "
+ />
+ <EditText android:id="@+id/testtime"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:inputType="number"
+ android:text="5000"
+ />
+ </LinearLayout>
+
+ <LinearLayout android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ android:layout_marginTop="10dp"
+ >
<Button android:id="@+id/start"
android:layout_width="wrap_content"
android:layout_height="wrap_content"