summaryrefslogtreecommitdiffstats
path: root/tests/BrowserPowerTest/AndroidManifest.xml
diff options
context:
space:
mode:
authorXia Wang <xiaw@google.com>2009-09-02 17:52:24 -0700
committerXia Wang <xiaw@google.com>2009-09-02 20:59:37 -0700
commit7c6efa13f129dbae5319f0981a430d4662f43354 (patch)
treec0353eedab622c39251cb2b29d6195fb09cf9771 /tests/BrowserPowerTest/AndroidManifest.xml
parent04e1faf0f030ddb360180289fb798adbb3348dd4 (diff)
downloadframeworks_base-7c6efa13f129dbae5319f0981a430d4662f43354.zip
frameworks_base-7c6efa13f129dbae5319f0981a430d4662f43354.tar.gz
frameworks_base-7c6efa13f129dbae5319f0981a430d4662f43354.tar.bz2
Add a test case to measure the power usage of loading a web page
Diffstat (limited to 'tests/BrowserPowerTest/AndroidManifest.xml')
-rw-r--r--tests/BrowserPowerTest/AndroidManifest.xml46
1 files changed, 46 insertions, 0 deletions
diff --git a/tests/BrowserPowerTest/AndroidManifest.xml b/tests/BrowserPowerTest/AndroidManifest.xml
new file mode 100644
index 0000000..43eeaad
--- /dev/null
+++ b/tests/BrowserPowerTest/AndroidManifest.xml
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2008 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<!-- package name must be unique so suffix with "tests" so package loader doesn't ignore us -->
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.android.browserpowertest">
+
+ <!-- We add an application tag here just so that we can indicate that
+ this package needs to link against the android.test library,
+ which is needed when building test cases. -->
+ <application>
+ <uses-library android:name="android.test.runner" />
+ <activity android:name="PowerTestActivity" android:label="Power">
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.TEST" />
+ </intent-filter>
+ </activity>
+ </application>
+ <!--
+ This declares that this app uses the instrumentation test runner targeting
+ the package of browserpowertest. To run the tests use the command:
+ "adb shell am instrument -w com.android.browserpowertest/.PowerTestRunner"
+ -->
+ <instrumentation android:name=".PowerTestRunner"
+ android:targetPackage="com.android.browserpowertest"
+ android:label="Test runner for Browser Power Tests."
+ />
+
+ <uses-permission android:name="android.permission.INTERNET" />
+ <uses-permission android:name="android.permission.WRITE_SDCARD" />
+ <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
+</manifest>