Skip to content

Commit d4c4b76

Browse files
author
Dianne Hackborn
committed
New framework performance tests.
Change-Id: Ib8cc6704f508b7516ba0a30aa71bb88ef028691d
1 parent e49cf10 commit d4c4b76

File tree

15 files changed

+1099
-0
lines changed

15 files changed

+1099
-0
lines changed

tests/FrameworkPerf/Android.mk

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
LOCAL_PATH:= $(call my-dir)
2+
include $(CLEAR_VARS)
3+
4+
LOCAL_MODULE_TAGS := tests
5+
6+
LOCAL_SRC_FILES := $(call all-subdir-java-files)
7+
8+
LOCAL_PACKAGE_NAME := FrameworkPerf
9+
10+
LOCAL_AAPT_FLAGS = -c 120dpi,240dpi,160dpi,161dpi,320dpi,nodpi
11+
12+
include $(BUILD_PACKAGE)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="com.android.frameworkperf">
3+
<uses-permission android:name="android.permission.WAKE_LOCK" />
4+
<uses-sdk android:minSdkVersion="5" />
5+
6+
<application>
7+
<activity android:name="FrameworkPerfActivity" android:label="Framework Perf">
8+
<intent-filter>
9+
<action android:name="android.intent.action.MAIN" />
10+
<category android:name="android.intent.category.DEFAULT" />
11+
<category android:name="android.intent.category.LAUNCHER" />
12+
</intent-filter>
13+
</activity>
14+
<service android:name="SchedulerService">
15+
</service>
16+
</application>
17+
</manifest>
364 Bytes
Loading
420 KB
Loading
634 Bytes
Loading
1.13 KB
Loading
364 Bytes
Loading
420 KB
Loading
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Copyright (C) 2009 The Android Open Source Project
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
-->
16+
17+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18+
android:layout_width="match_parent"
19+
android:layout_height="match_parent"
20+
android:orientation="vertical"
21+
>
22+
23+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
24+
android:layout_width="match_parent"
25+
android:layout_height="wrap_content"
26+
android:orientation="horizontal"
27+
>
28+
<Button android:id="@+id/start"
29+
android:layout_width="wrap_content"
30+
android:layout_height="wrap_content"
31+
android:text="@string/start"
32+
/>
33+
<Button android:id="@+id/stop"
34+
android:layout_width="wrap_content"
35+
android:layout_height="wrap_content"
36+
android:text="@string/stop"
37+
/>
38+
</LinearLayout>
39+
40+
<ScrollView android:id="@+id/scroll"
41+
android:layout_width="match_parent"
42+
android:layout_height="0px"
43+
android:layout_weight="1"
44+
>
45+
<TextView android:id="@+id/log"
46+
android:layout_width="match_parent"
47+
android:layout_height="wrap_content"
48+
android:layout_marginTop="25dp"
49+
android:textSize="12sp"
50+
android:textColor="#ffffffff"
51+
/>
52+
</ScrollView>
53+
54+
</LinearLayout>
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Copyright (C) 2011 The Android Open Source Project
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
-->
16+
17+
<resources>
18+
<!-- Base attributes that are available to all Item objects. -->
19+
<declare-styleable name="MenuItem">
20+
21+
<!-- The ID of the item. -->
22+
<attr name="android:id" />
23+
24+
<!-- The category applied to the item.
25+
(This will be or'ed with the orderInCategory attribute.) -->
26+
<attr name="android:menuCategory" />
27+
28+
<!-- The order within the category applied to the item.
29+
(This will be or'ed with the category attribute.) -->
30+
<attr name="android:orderInCategory" />
31+
32+
<!-- The title associated with the item. -->
33+
<attr name="android:title" />
34+
35+
<!-- The condensed title associated with the item. This is used in situations where the
36+
normal title may be too long to be displayed. -->
37+
<attr name="android:titleCondensed" />
38+
39+
<!-- The icon associated with this item. This icon will not always be shown, so
40+
the title should be sufficient in describing this item. -->
41+
<attr name="android:icon" />
42+
43+
<!-- The alphabetic shortcut key. This is the shortcut when using a keyboard
44+
with alphabetic keys. -->
45+
<attr name="android:alphabeticShortcut" />
46+
47+
<!-- The numeric shortcut key. This is the shortcut when using a numeric (e.g., 12-key)
48+
keyboard. -->
49+
<attr name="android:numericShortcut" />
50+
51+
<!-- Whether the item is capable of displaying a check mark. -->
52+
<attr name="android:checkable" />
53+
54+
<!-- Whether the item is checked. Note that you must first have enabled checking with
55+
the checkable attribute or else the check mark will not appear. -->
56+
<attr name="android:checked" />
57+
58+
<!-- Whether the item is shown/visible. -->
59+
<attr name="android:visible" />
60+
61+
<!-- Whether the item is enabled. -->
62+
<attr name="android:enabled" />
63+
</declare-styleable>
64+
</resources>

0 commit comments

Comments
 (0)