Skip to content

Commit

Permalink
init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinkong committed Jan 18, 2013
0 parents commit 30217d8
Show file tree
Hide file tree
Showing 35 changed files with 1,771 additions and 0 deletions.
Empty file added AUTHORS
Empty file.
42 changes: 42 additions & 0 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.netease.qa.emmagee"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk android:minSdkVersion="7" />
<application android:name=".utils.MyApplication"
android:icon="@drawable/icon"
android:label="@string/app_name" >
<activity
android:name=".activity.MainPageActivity"
android:label="@string/app_name"
android:configChanges="orientation|keyboardHidden"> <!-- 防止程序横屏以后重新启动 -->
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<!-- <category android:name="android.intent.category.DEFAULT" /> -->
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".activity.SystemActivity"
android:label="@string/app_name2" >
</activity>

<activity
android:name=".activity.SettingsActivity"
android:label="@string/app_name4" >
</activity>

<service
android:name="com.netease.qa.emmagee.service.EmmageeService">
</service>
</application>
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_LOGS"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
</manifest>
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Emmagee - a pratical,convenient perfomance test tools in android
============================================
Homepage: http://netease.github.com/projectname (项目相关链接,紧接详细介绍之后,没有的项可以不写)
Mailing list: https://groups.google.com/group/projectname
Documentation: http://projectname.readthedocs.org
Wiki: https://github.com/netease/projectname/wiki/
Issues: https://github.com/netease/projectname/issues/
Tags: Android,Java
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.1.0
51 changes: 51 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="utf-8"?>
<project
name="execute Orange on Jenkins"
basedir="."
default="doxygen" >

<path id="cpath" >

<fileset dir="libs" >

<include name="*.jar" />

<include name="**/*.jar" />
</fileset>
</path>


<!-- doxygen in Linux -->
<taskdef name="doxygen" classname="org.doxygen.tools.DoxygenTask" classpath="libs/ant_doxygen.jar"/>
<target name="doxygen">
<delete dir="doxygen" />
<mkdir dir="doxygen" />
<doxygen>
<property name="PROJECT_NAME" value="Emmagee" />
<property name="PROJECT_NUMBER" value="0.1.0" />
<property name="OUTPUT_DIRECTORY" value="doxygen" />
<property name="JAVADOC_AUTOBRIEF" value="YES" />
<property name="TAB_SIZE" value="4" />
<property name="OPTIMIZE_OUTPUT_JAVA" value="YES" />
<property name="INPUT" value="src" />
<property name="RECURSIVE" value="YES" />
<property name="HAVE_DOT" value="YES" />
<property name="UML_LOOK" value="YES" />
<property name="CLASS_GRAPH" value="NO" />
<property name="COLLABORATION_GRAPH" value="NO" />
<property name="GROUP_GRAPHS" value="YES" />
<property name="DIRECTORY_GRAPH" value="YES" />
<property name="SHOW_DIRECTORIES" value="YES" />
<property name="SOURCE_BROWSER" value="YES" />
<property name="STRIP_CODE_COMMENTS" value="NO" />
<property name="GENERATE_LATEX" value="NO" />
<property name="GENERATE_TREEVIEW" value="YES" />
<property name="INPUT_ENCODING" value="utf-8" />
<property name="DOXYFILE" value="utf-8" />
<property name="OUTPUT_LANGUAGE" value="CHINESE" />
<property name="SEARCHENGINE" value="YES" />
<property name="SHOW_NAMESPACES" value="NO" />
</doxygen>
</target>

</project>
11 changes: 11 additions & 0 deletions project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system use,
# "ant.properties", and override values to adapt the script to your
# project structure.

# Project target.
target=android-10
Binary file added res/drawable-hdpi/button_bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/close.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/meminfo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-ldpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-ldpi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-ldpi/meminfo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/button_bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/meminfo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions res/layout/cpu.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >

<TextView
android:id="@+id/cpu_info"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<Button
android:id="@+id/b"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/bg"/>

</LinearLayout>
67 changes: 67 additions & 0 deletions res/layout/floating.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal" >

<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content" >

<ImageView
android:id="@+id/img1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="11dp"
android:layout_marginTop="4dp"
android:src="@drawable/meminfo" />

<ImageView
android:id="@+id/img2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/close" />

<LinearLayout
android:id="@+id/Lin"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="42dp"
android:gravity="center_vertical"
android:orientation="vertical" >

<TextView
android:id="@+id/memunused"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0.4"
android:gravity="right"
android:textColor="#FFFFFF" />

<TextView
android:id="@+id/memtotal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="3dp"
android:layout_weight="0.4"
android:gravity="right"
android:paddingRight="10.0dip"
android:textColor="#FFFFFF" />
<TextView
android:id="@+id/traffic"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="3dp"
android:layout_weight="0.4"
android:gravity="right"
android:paddingRight="10.0dip"
android:textColor="#FFFFFF" />
<Button
android:id="@+id/wifi"
android:layout_width="80dp"
android:layout_height="40dp" />

</LinearLayout>
</RelativeLayout>

</LinearLayout>
Expand Down
23 changes: 23 additions & 0 deletions res/layout/list_item.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal" >

<RadioButton
android:id="@+id/rb"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />

<ImageView
android:id="@+id/image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="10dip" />

<TextView
android:id="@+id/text"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />

</LinearLayout>
30 changes: 30 additions & 0 deletions res/layout/mainpage.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="bottom|center_horizontal|center_vertical"
android:orientation="vertical" >

<ListView
android:id="@+id/processList"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1" />

<LinearLayout
android:layout_width="fill_parent"
android:layout_height="78dp"
android:layout_marginBottom="10dp"
android:gravity="center_horizontal|center_vertical"
android:orientation="horizontal" >

<Button
android:id="@+id/test"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_marginBottom="6dp"
android:gravity="center_horizontal"
android:text="@string/bg" />
</LinearLayout>

</LinearLayout>
12 changes: 12 additions & 0 deletions res/layout/memory.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView
android:id="@+id/memoryinfo"
android:layout_width="254dp"
android:layout_height="106dp"
android:text="@string/memoryinfo" />

</LinearLayout>
Expand Down
71 changes: 71 additions & 0 deletions res/layout/settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >

<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/collect" />

<!-- 允许输入数据为正整数 -->
<!-- android:numeric="integer" -->

<!--采集频率 -->
<EditText
android:id="@+id/time"
android:layout_width="120dp"
android:maxLength="5"
android:layout_height="wrap_content" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/seconds" />
</LinearLayout>

<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal" >

<TextView
android:id="@+id/floating_Window"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/window" />

<CheckBox
android:id="@+id/floating"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true" />
</RelativeLayout>

<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent" >

<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scrollbars="vertical" >
</ScrollView>

<Button
android:id="@+id/save"
android:layout_width="200dp"
android:gravity="center_horizontal"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_alignParentBottom="true"
android:text="@string/ok" />
</RelativeLayout>

</LinearLayout>
16 changes: 16 additions & 0 deletions res/layout/systemstat.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >

<TextView
android:id="@+id/cpu1"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/cpu2"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />

</LinearLayout>
23 changes: 23 additions & 0 deletions res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>

<string name="hello">Hello World, RunningTaskActivity!</string>
<string name="app_name">Emmagee</string>
<string name="app_name1">Main</string>
<string name="app_name2">系统信息</string>
<string name="app_name3">测试</string>
<string name="app_name4">设置</string>
<string name="system">检测系统信息</string>
<string name="start">启动程序</string>
<string name="cpu">开始测试</string>
<string name="bg">开始测试</string>
<string name="testmemory">测试内存</string>
<string name="memoryinfo">memoryInfo</string>
<string name="collect">采集频率:</string>
<string name="seconds"> 秒</string>
<string name="window"> 是否显示浮窗</string>
<string name="ok">保存</string>
<string name="openwifi">开启wifi</string>
<string name="closewifi">关闭wifi</string>

</resources>
Loading

0 comments on commit 30217d8

Please sign in to comment.