怎么测试android与redred hat7无法连接外网上了

这样如何检测同步后的android源码是否完整_其它学科_天下第一科教网
这样如何检测同步后的android源码是否完整
编辑: 天下第一科教网 &&&来源:用户发布&&&发布时间:&&&查看次数:24
能帮我下?这样如何检测同步后的android源码是否完整
【探讨解答】
已有android代码,如何测试
android的开发环境已经搭好,可以看到android的虚拟机:手机界面,又有a...可以使用SDK自带的自动化测试工具Monkey 。 Monkey 就是SDK中附带的一个工具,该工具用于进行压力测试。 然后开发人员结合monkey 打印的日志 和系统打印的日志,结局测试中出现的问题。 Monkey 测试,所有的事件都是随机产生的,不带任何人的主观...
如何查看androidaosp同步完成
一、修改Android Studio(以下简称AS)的内存配置 因为在导入源码时需要消耗大量内存,所以先修改IDEA_HOME/bin/studio64.vmoptions(x86的机器修改studio.vmoptions)中-Xms和-Xmx的值。文档中使用的是748m, 可自行修改。 二、配置AS的JDK、SDK 在I...
怎样查看AndroidAPP源代码
如果是上了市场的大型应用,比如QQ等,被反编译破解的几率比较低,但是也不是没有机会,比如一些小型的App是可以尝试去反编译查看源代码的,你只需要学习一下ApkTool的使用方法就可以了,/article/75ab0bcbd5f62ed6874d...
其它学科相关
更多相关内容
本站内容来自网友发布,本站无法保证其部分内容的正确性,请用户一定仔细辨别。
沪ICP备号&Android 进行单元测试难在哪-part2
在 进行单元测试难在哪-part1中,我用干货告诉大家:即使是 Google 大牛写出来的代码也无法进行测试。确切地说,我真正告诉大家的是:根本没办法在 SessionDetailActivity 的 onStop() 方法里进行单元测试,而且详细地解释了个中因果:由于无法改变预测试状态,我们无法在 onStop() 方法里完成断言;在 onStop() 方法中进行测试时,获得测试后状态也是无法完成的。在上篇博文的结尾处,我跟大家说:正是 Android SDK 的某些特性,以及 Google 官方推荐的代码模板使得单元测试处于如此尴尬的境地,而且我承诺会在这篇博文中详尽地解释各种因由,那现在就让我来兑现我的诺言吧。
在我开始论述之前,我再说一次:正是标准的 Android 应用架构使测试 Android 应用变得如此困难,这句话是本系列博文的核心论点。这篇博文的意义在于:我们尝试提出理由证明重构 Android 应用的必要性,使得这些 Android 应用不需要明确地依赖于 Android SDK,与此同时,我们也尝试着提出一种健壮的应用架构,以增强 Android 应用的测试性,你会在这篇博文里了解到相关的概述。因此,我接下来将尝试去证明这篇博文的核心论点。
众所周知,开发 Android 应用有一种标准的架构,在示例代码和开源代码里很常见到应用的业务逻辑被放在 Android 应用的类,Activity,Service,Fragment 里执行。而我接下来就要遵循这种架构进行开发。而这篇博文要论述的就是:如果我们遵循这种标准架构进行开发,极有可能写下无法测试的代码,我在上一篇博文里也论证了这样的问题并不是偶然,正是标准的 Android 应用架构让测试变得支离破碎,单元测试几乎不能进行。
传统的 Android 应用架构让单元测试变得不可能
为了开始论证为什么标准开发架构让应用组件变得无法测试,大家不妨和我一起简要地复习下上篇博文的一些结论。单元测试包含三个步骤:准备,测试,断言。为了完成准备步骤,需要改变测试代码的预测试状态,此外,为了完成单元测试的断言步骤,我们需要获得程序的测试后状态。
复习了这些知识点后,可以开始进入正题了哈。在某些情况下,依赖注入是实现能够改变预测试状态代码的唯一办法,而且这些代码的测试后状态也是可访问的。我写了一个与 Android 完全无关的示例:
public class MathNerd {
private final mCalcC
private final mC
public MathNerd(CalculationCache calcCache, Calculator calculator) {
mCalcCache = calcC
mCalculator =
public void doIntenseCalculation(Calculation calculation, IntenseCalculationCompletedListener listener) {
if (!mCalcCache.contains(calculation)) {
mCalculator.doIntenseCalculationInBackground(listener);
Answer answer = mCalcCache.getAnswerFor(calculation);
listener.onCalculationCompleted(answer);
如上所示,依赖注入确实是对 doIntenseCalculation() 进行单元测试的唯一办法,因为 doIntenseCalculation() 方法根本没有返回值。除此以外,MathNerd 类里也没有判断测试后状态有效性的属性。但通过依赖注入,我们可以通过 mCalcCache 获得单元测试中的测试后状态。
public void testCacheUpdate() {
CalculationCache calcCache = new CalculationCache();
Calculator calculator = new Calculator();
MathNerd mathNerd = new MathNerd(calcCache, calculator);
Calculation calcualation = new Calculation(e^2000);
mathNerd.doIntenseCalculationInBackground(calculation, null);
//some smelly Thread.sleep() code...
calcCache.contains(calculation);
如果我们这样做,很遗憾,恐怕是没办法为 MathNerd 类实现一个测试单元了。我们将会实现一个整合测试,用于检查 MathNerd 实际行为以及类是否根据 doIntenseCalculationInBackground() 方法处理后的值更新 CalcCache。
此外,依赖注入实际上也是验证测试单元测试后状态的唯一办法。我们通过注入验证方法在正确的位置被调用:
public void testCacheUpdate() {
CalculationCache calcCache = mock(CalculationCache.class);
when(calcCache.contains()).thenReturn(false);
Calculator calculator = mock(Calculator.class);
MathNerd mathNerd = new MathNerd(calcCache, calculator);
Calculation calculation = new Calculation(e^2000);
mathNerd.doIntenseCalculationInBackground(calculation, null);
//Assert should use calculator to perform calcluation because cache was empty
verify(calculator).doIntenseCalculationInBackground(any());
在 Android 应用的相关类中进行单元测试涉及的许多测试实例都需要一个东西:依赖注入。但问题来了:核心 Android 类持有我们无法注入的依赖。例如我上次提到的通过 SessionDetailActivity 启动的 SessionCalendarService 就是一个很好的例子:
protected void onHandleIntent(Intent intent) {
final String action = intent.getAction();
Log.d(TAG, Received intent:
+ action);
final ContentResolver resolver = getContentResolver();
boolean isAddEvent =
if (ACTION_ADD_SESSION_CALENDAR.equals(action)) {
isAddEvent =
} else if (ACTION_REMOVE_SESSION_CALENDAR.equals(action)) {
isAddEvent =
} else if (ACTION_UPDATE_ALL_SESSIONS_CALENDAR.equals(action) &&
PrefUtils.shouldSyncCalendar(this)) {
getContentResolver().applyBatch(CalendarContract.AUTHORITY,
processAllSessionsCalendar(resolver, getCalendarId(intent)));
sendBroadcast(new Intent(
SessionCalendarService.ACTION_UPDATE_ALL_SESSIONS_CALENDAR_COMPLETED));
} catch (RemoteException e) {
LOGE(TAG, Error adding all sessions to Google Calendar, e);
} catch (OperationApplicationException e) {
LOGE(TAG, Error adding all sessions to Google Calendar, e);
} else if (ACTION_CLEAR_ALL_SESSIONS_CALENDAR.equals(action)) {
getContentResolver().applyBatch(CalendarContract.AUTHORITY,
processClearAllSessions(resolver, getCalendarId(intent)));
} catch (RemoteException e) {
LOGE(TAG, Error clearing all sessions from Google Calendar, e);
} catch (OperationApplicationException e) {
LOGE(TAG, Error clearing all sessions from Google Calendar, e);
SessionCalendarService 的依赖是 ContentResolver,而且 ContentResolver 就是一个无法注入的依赖,所以如果我们并没有办法在 onHandleIntent() 方法里进行注入。而 onHandleIntent() 方法没有返回值,SessionCalendarService 类里也没有能让我们检查测试后状态的可访问的属性。为了验证测试后状态,我们可以通过查询 ContentProvider 检查请求数据是否被插入,但我们不会这样的方式为 SessionCalendarService 实现测试单元。相反,我们用的方法是实现一个整合测试,同时测试 SessionCalendarService 以及受 ContentProvider 操控的日历会议数据。
所以如果你把业务逻辑放在 Android 类里,而这个类的依赖又无法被注入,那这部分代码铁定没办法进行单元测试了。类似的无法被注入的依赖还有呢,例如:Activity 和 Fragment 的 FragmentManager。因此,至今为止 Google 官方一直鼓励我们使用的标准 Android 应用架构模式,教导我们在开发应用的时候要把业务逻辑放在应用的组件类里,信誓旦旦地说这是为我们好,而我们今天才知道真相竟然是:正是这样的架构让我们写下无法测试的代码。
标准开发模式让单元测试变得困难重重
某些情况下,标准的开发模式使代码的单元测试变得十分困难。如果我们回到上一篇博文提到的 SessionDetailActivity 里的 onStop() 方法,可以看到:
public void onStop() {
super.onStop();
if (mInitStarred != mStarred) {
if (UIUtils.getCurrentTime(this) & mSessionStart) {
// Update Calendar event through the Calendar API on Android 4.0 or new versions.
Intent intent =
if (mStarred) {
// Set up intent to add session to Calendar, if it doesn't exist already.
intent = new Intent(SessionCalendarService.ACTION_ADD_SESSION_CALENDAR,
mSessionUri);
intent.putExtra(SessionCalendarService.EXTRA_SESSION_START,
mSessionStart);
intent.putExtra(SessionCalendarService.EXTRA_SESSION_END,
mSessionEnd);
intent.putExtra(SessionCalendarService.EXTRA_SESSION_ROOM, mRoomName);
intent.putExtra(SessionCalendarService.EXTRA_SESSION_TITLE, mTitleString);
// Set up intent to remove session from Calendar, if exists.
intent = new Intent(SessionCalendarService.ACTION_REMOVE_SESSION_CALENDAR,
mSessionUri);
intent.putExtra(SessionCalendarService.EXTRA_SESSION_START,
mSessionStart);
intent.putExtra(SessionCalendarService.EXTRA_SESSION_END,
mSessionEnd);
intent.putExtra(SessionCalendarService.EXTRA_SESSION_TITLE, mTitleString);
intent.setClass(this, SessionCalendarService.class);
startService(intent);
if (mStarred) {
setupNotification();
就像你看到的那样,onStop() 方法里压根没有能让我们知道 SessionCalendarService 是否通过正确的参数启动的可访问属性,此外,onStop() 方法是一个受保护的方法,使其返回值是无法修改的。因此,我们访问测试后状态的唯一办法就是检查注入到 onStop() 方法内的注入的状态。
这样一来,我们就会注意到 onStop() 方法中用于启动 SessionCalendarService 的代码并不属于某一个类。换句话说,onStop() 方法中注入的依赖根本不存在用于检查 SessionCalendarService 是否在正确的情况下通过正确的参数启动的测试单元测试后状态的属性。为了提出能让 onStop() 方法变为可测试的的第三种办法,那我们需要一些这样的东西:
public void onStop() {
super.onStop();
if (mInitStarred != mStarred) {
if (UIUtils.getCurrentTime(this) & mSessionStart) {
// Update Calendar event through the Calendar API on Android 4.0 or new versions.
Intent intent =
if (mStarred) {
// Service launcher sets up intent to add session to Calendar
mServiceLauncher.launchSessionCalendarService(SessionCalendarService.ACTION_ADD_SESSION_CALENDAR, mSessionUri,
mSessionStart, mSessionEnd, mRoomName, mTitleString);
// Set up intent to remove session from Calendar, if exists.
mServiceLauncher.launchSessionCalendarService(SessionCalendarService.ACTION_REMOVE_SESSION_CALENDAR, mSessionUri,
mSessionStart, mSessionEnd, mTitleString);
if (mStarred) {
setupNotification();
虽然这不是重构 onStop() 方法最简洁的方式,但如果我们按照标准开发方法把业务逻辑写在 Activity 里,并让写下的代码可以进行单元测试,类似的处理就变得必要了。现在不妨想想这种重构方式有多么违反常理:我们没有简单地调用 startService() 方法(startService() 是 Context 的一个方法,我们甚至可以说调用的是 SessionDetailActivity 的方法),而是通过依赖于 Context 的 ServiceLauncher 对象去启动该服务。SesionDetailActivity 作为 Context 的子类也将使用一个持有 Context 的对象去启动 SessionCalendarService。
不幸的是,即使我们像上面说的那样重构了 onStop() 方法,我们仍然不能保证能为 onStop() 方法实现测试单元。问题在于:ServiceLauncher 没有被注入,使得我们不能对 ServiceLauncher 进行注入,使我们能验证在测试过程中调用了正确的方法。
要对 ServiceLauncher进行注入,除了刚刚提到的以外,还会因为 ServiceLauncher 自身依赖于 Context 变得复杂,因为 Context 是一个非打包对象。因此,你并不能简单地通过将其传入用于启动 SessionDetailActivity 的 Intent 注入 ServiceLauncher。所以为了注入 ServiceLauncher,你需要开动你的小脑筋,或者使用类似于 Dagger¹ 的注入库。现在你应该也会发现,为了让我们的代码可以进行单元测试,我们确实需要完成许多复杂、繁琐的工作,而且,正如我即将在下篇博文中的论述,就算我们为了进行依赖注入而使用 Dagger 这样的库,在 Activity 内进行单元测试仍然是令人备受煎熬的。
为了让 onStop() 方法能进行单元测试,标准开发方式强迫我们使用反常理的重构方法,并要求我们在&根据以 Intent 为基础的依赖注入机制想出更好的重构方法&或&使用第三方的依赖注入库&。而标准开发方式为写下可测试代码带来的困难,就像在鼓励我们写下无法进行测试的代码,正是这种困难让我认为:标准开发方式阻碍我们写下可测试代码。
在整个系列博文中,我一直在提出这样的观点:通过反思为什么在 Android 中进行单元测试如此困难,将帮助我们发现重构应用架构的各种好处,使我们的应用不必明确地依赖于 Android SDK。这篇博文论述到这里,我相信大家有足够理由相信完全摆脱 Android SDK 或许是个好提议了。
我刚刚把业务逻辑放在应用的组件类中,并向大家证明了对其进行单元测试有多么困难,甚至我们可以说对其进行单元测试这是不可能的。在下一篇博文中,我将建议大家将业务逻辑委托给使用了正确的依赖注入姿势的类。如果我们觉得定义这些类很麻烦的话,退而求其次,也能让这些类的依赖成为与 Android 无关的接口。与增强程序测试性的第一步相比,这一步是至关重要的,而完成第二步使我们无需 Android 特有的测试工具(例如:Roboletric,Instrumented Tests)就能写下更高效的测试单元。
毫无疑问,你在传入 ServiceLauncher 时应该使他变为一个序列化对象。但这并不是一个特别健壮的解决办法,因为只有在你不在乎序列化带来的性能影响时才能使用这个办法。开发第一个Android应用前你必须知道的5件事 | 程序师* Copyright (c)
NetEase, Inc. and other
contributors
&*& Licensed under the Apache License, Version 2.0 (the
"License");
&*& you may not use this file except in compliance with the
&*& 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 com.netease.qa.emmagee.service;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Properties;
import android.app.Activity;
import android.app.PendingIntent;
import android.app.Service;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.SharedPreferences;
import android.net.wifi.WifiManager;
import android.os.BatteryManager;
import android.os.Build;
import android.os.Handler;
import android.os.IBinder;
import android.support.v4.app.NotificationCompat;
import android.util.Log;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.View.OnTouchListener;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
import com.netease.qa.emmagee.R;
import com.netease.qa.emmagee.activity.MainPageActivity;
import com.netease.qa.emmagee.config.Const;
import com.netease.qa.emmagee.utils.CpuInfo;
import com.netease.qa.emmagee.utils.CurrentInfo;
import com.netease.qa.emmagee.utils.EncryptData;
import com.netease.qa.emmagee.utils.FileUpload;
import com.netease.qa.emmagee.utils.MailSender;
import com.netease.qa.emmagee.utils.MemoryInfo;
import com.netease.qa.emmagee.utils.MyApplication;
* Service running in background
* @author andrewleo
public class EmmageeService extends Service {
static String LOG_TAG = "Emmagee-"
+ EmmageeService.class.getSimpleName();
WindowManager windowManager = null;
WindowManager.LayoutParams wmParams = null;
View viFloatingWindow;
float mTouchStartX;
float mTouchStartY;
float startX;
float startY;
TextView txtTotalMem;
TextView txtUnusedMem;
TextView txtTraffic;
Button btnStop;
Button btnWifi;
int delaytime;
DecimalFormat fomart;
MemoryInfo memoryInfo;
WifiManager wifiManager;
Handler handler = new Handler();
CpuInfo cpuInfo;
String time;
boolean isFloating;
String processName, packageName, settingTempFile, startActivity;
int pid, uid;
boolean isServiceStop = false;
String sender, password, recipients, smtp;
String[] receivers;
EncryptData des;
static BufferedWriter bw;
static FileOutputStream out;
static OutputStreamWriter osw;
static String resultFilePath;
static boolean isStop = false;
String totalBatt;
String temperature;
String voltage;
CurrentInfo currentInfo;
BatteryInfoBroadcastReceiver batteryBroadcast = null;
// get start time
static final int MAX_START_TIME_COUNT = 5;
static final String START_TIME = "#startTime";
int getStartTimeCount = 0;
boolean isGetStartTime = true;
String startTime = "";
void onCreate() {
Log.i(LOG_TAG, "onCreate");
super.onCreate();
isServiceStop = false;
isStop = false;
memoryInfo = new MemoryInfo();
fomart = new DecimalFormat();
fomart.setMaximumFractionDigits(2);
fomart.setMinimumFractionDigits(0);
des = new EncryptData("emmagee");
currentInfo = new CurrentInfo();
batteryBroadcast = new BatteryInfoBroadcastReceiver();
registerReceiver(batteryBroadcast, new IntentFilter(
"android.intent.action.BATTERY_CHANGED"));
&&&& * 电池信息监控监听器
&&&& * @author andrewleo
BatteryInfoBroadcastReceiver extends BroadcastReceiver {
public void onReceive(Context context, Intent intent) {
if (Intent.ACTION_BATTERY_CHANGED.equals(intent.getAction())) {
int level = intent.getIntExtra(BatteryManager.EXTRA_LEVEL, 0);
int scale = intent.getIntExtra(BatteryManager.EXTRA_SCALE, -1);
totalBatt = String.valueOf(level * 100 / scale) + "%";
voltage = String.valueOf(intent.getIntExtra(
BatteryManager.EXTRA_VOLTAGE, -1) * 1.0 / 1000);
temperature = String.valueOf(intent.getIntExtra(
BatteryManager.EXTRA_TEMPERATURE, -1) * 1.0 / 10);
void onStart(Intent intent, int startId) {
Log.i(LOG_TAG, "onStart");
PendingIntent contentIntent = PendingIntent.getActivity(
getBaseContext(), 0, new Intent(this, MainPageActivity.class),
NotificationCompat.Builder builder = new NotificationCompat.Builder(
builder.setContentIntent(contentIntent).setSmallIcon(R.drawable.icon)
.setWhen(System.currentTimeMillis()).setAutoCancel(true)
.setContentTitle("Emmagee");
startForeground(startId, builder.build());
pid = intent.getExtras().getInt("pid");
uid = intent.getExtras().getInt("uid");
processName = intent.getExtras().getString("processName");
packageName = intent.getExtras().getString("packageName");
settingTempFile = intent.getExtras().getString("settingTempFile");
startActivity = intent.getExtras().getString("startActivity");
cpuInfo = new CpuInfo(getBaseContext(), pid, Integer.toString(uid));
readSettingInfo(intent);
delaytime = Integer.parseInt(time) * 1000;
if (isFloating) {
viFloatingWindow = LayoutInflater.from(this).inflate(
R.layout.floating, null);
txtUnusedMem = (TextView) viFloatingWindow
.findViewById(R.id.memunused);
txtTotalMem = (TextView) viFloatingWindow
.findViewById(R.id.memtotal);
txtTraffic = (TextView) viFloatingWindow.findViewById(R.id.traffic);
btnWifi = (Button) viFloatingWindow.findViewById(R.id.wifi);
wifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE);
if (wifiManager.isWifiEnabled()) {
btnWifi.setText(R.string.closewifi);
btnWifi.setText(R.string.openwifi);
txtUnusedMem.setText("计算中,请稍后...");
txtUnusedMem.setTextColor(android.graphics.Color.RED);
txtTotalMem.setTextColor(android.graphics.Color.RED);
txtTraffic.setTextColor(android.graphics.Color.RED);
btnStop = (Button) viFloatingWindow.findViewById(R.id.stop);
btnStop.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
Intent intent = new Intent();
intent.putExtra("isServiceStop", true);
intent.setAction("com.netease.action.emmageeService");
sendBroadcast(intent);
// isServiceStop =
Toast.makeText(EmmageeService.this,
"测试结果文件:" + resultFilePath, Toast.LENGTH_LONG)
stopSelf();
createFloatingWindow();
createResultCsv();
handler.postDelayed(task, 1000);
&&&& * read configuration file.
&&&& * @throws IOException
void readSettingInfo(Intent intent) {
Properties properties = new Properties();
properties.load(new FileInputStream(settingTempFile));
String interval = properties.getProperty("interval").trim();
isFloating = "true"
.equals(properties.getProperty("isfloat").trim()) ? true
sender = properties.getProperty("sender").trim();
password = properties.getProperty("password").trim();
recipients = properties.getProperty("recipients").trim();
time = "".equals(interval) ? "5" : interval;
recipients = properties.getProperty("recipients");
receivers = recipients.split("\\s+");
smtp = properties.getProperty("smtp");
} catch (IOException e) {
time = "5";
isFloating = true;
Log.e(LOG_TAG, e.getMessage());
&&&& * write the test result to csv format
void createResultCsv() {
Calendar cal = Calendar.getInstance();
SimpleDateFormat formatter = new SimpleDateFormat("yyyyMMddHHmmss");
String mDateTime;
if ((Build.MODEL.equals("sdk")) || (Build.MODEL.equals("google_sdk")))
mDateTime = formatter.format(cal.getTime().getTime() + 8
mDateTime = formatter.format(cal.getTime().getTime());
if (android.os.Environment.getExternalStorageState().equals(
android.os.Environment.MEDIA_MOUNTED)) {
resultFilePath = android.os.Environment
.getExternalStorageDirectory()
+ File.separator
+ "Emmagee_TestResult_" + mDateTime + ".csv";
resultFilePath = getBaseContext().getFilesDir().getPath()
+ File.separator + "Emmagee_TestResult_" + mDateTime
File resultFile = new File(resultFilePath);
resultFile.createNewFile();
out = new FileOutputStream(resultFile);
osw = new OutputStreamWriter(out, "UTF-8");
bw = new BufferedWriter(osw);
long totalMemorySize = memoryInfo.getTotalMemory();
String totalMemory = fomart.format((double) totalMemorySize / 1024);
bw.write("应用包名:," + packageName + "\r\n" + "应用名称: ," + processName
+ "\r\n" + "应用PID: ,"
+ "内存大小(MB):,"
+ totalMemory.replaceAll(",", "")// 1,980MB--&1980MB
+ "MB\r\n" + "CPU型号:," + cpuInfo.getCpuName() + "\r\n"
+ "系统版本:," + memoryInfo.getSDKVersion() + "\r\n" + "手机型号:,"
+ memoryInfo.getPhoneType() + "\r\n" + "UID:," + uid
+ "\r\n" + "启动时间:," + START_TIME + "\r\n");
bw.write("时间" + "," + "应用占用内存PSS(MB)" + "," + "应用占用内存比(%)" + ","
+ " 机器剩余内存(MB)" + "," + "应用占用CPU率(%)" + "," + "CPU总使用率(%)"
+ "," + "流量(KB)" + "," + "电量(%)" + "," + "电流(mA)" + ","
+ "温度(C)" + "," + "电压(V)" + "\r\n");
} catch (IOException e) {
Log.e(LOG_TAG, e.getMessage());
&&&& * create a floating window to show real-time
void createFloatingWindow() {
SharedPreferences shared = getSharedPreferences("float_flag",
Activity.MODE_PRIVATE);
SharedPreferences.Editor editor = shared.edit();
editor.putInt("float", 1);
editor.commit();
windowManager = (WindowManager) getApplicationContext()
.getSystemService("window");
wmParams = ((MyApplication) getApplication()).getMywmParams();
wmParams.type = 2002;
wmParams.flags |= 8;
wmParams.gravity = Gravity.LEFT | Gravity.TOP;
wmParams.x = 0;
wmParams.y = 0;
wmParams.width = WindowManager.LayoutParams.WRAP_CONTENT;
wmParams.height = WindowManager.LayoutParams.WRAP_CONTENT;
wmParams.format = 1;
windowManager.addView(viFloatingWindow, wmParams);
viFloatingWindow.setOnTouchListener(new OnTouchListener() {
public boolean onTouch(View v, MotionEvent event) {
x = event.getRawX();
y = event.getRawY() - 25;
switch (event.getAction()) {
case MotionEvent.ACTION_DOWN:
startX = x;
startY = y;
mTouchStartX = event.getX();
mTouchStartY = event.getY();
Log.d("startP", "startX" + mTouchStartX + "====startY"
+ mTouchStartY);
case MotionEvent.ACTION_MOVE:
updateViewPosition();
case MotionEvent.ACTION_UP:
updateViewPosition();
// showImg();
mTouchStartX = mTouchStartY = 0;
return true;
btnWifi.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
btnWifi = (Button) viFloatingWindow.findViewById(R.id.wifi);
String buttonText = (String) btnWifi.getText();
String wifiText = getResources().getString(
R.string.openwifi);
if (buttonText.equals(wifiText)) {
wifiManager.setWifiEnabled(true);
btnWifi.setText(R.string.closewifi);
wifiManager.setWifiEnabled(false);
btnWifi.setText(R.string.openwifi);
} catch (Exception e) {
Toast.makeText(viFloatingWindow.getContext(), "操作wifi失败",
Toast.LENGTH_LONG).show();
Log.e(LOG_TAG, e.toString());
// * show the image.
// private void showImg() {
// if (Math.abs(x - startX) & 1.5 && Math.abs(y - startY)
// !btnStop.isShown()) {
// btnStop.setVisibility(View.VISIBLE);
// } else if (btnStop.isShown()) {
// btnStop.setVisibility(View.GONE);
Runnable task = new Runnable() {
public void run() {
if (!isServiceStop) {
dataRefresh();
handler.postDelayed(this, delaytime);
if (isFloating) {
windowManager.updateViewLayout(viFloatingWindow, wmParams);
// get app start time from logcat on every task running
getStartTimeFromLogcat();
Intent intent = new Intent();
intent.putExtra("isServiceStop", true);
intent.setAction("com.netease.action.emmageeService");
sendBroadcast(intent);
stopSelf();
&&&& * Try to get start time from
void getStartTimeFromLogcat() {
if (!isGetStartTime || getStartTimeCount &= MAX_START_TIME_COUNT) {
// filter logcat by Tag:ActivityManager and Level:Info
String logcatCommand = "logcat -v time -d ActivityManager:I *:S";
Process process = Runtime.getRuntime().exec(logcatCommand);
BufferedReader bufferedReader = new BufferedReader(
new InputStreamReader(process.getInputStream()));
StringBuilder strBuilder = new StringBuilder();
String line = "";
while ((line = bufferedReader.readLine()) != null) {
strBuilder.append(line);
strBuilder.append("\r\n");
String regex = ".*Displayed.*" + startActivity
+ ".*\\+(.*)ms.*";
Log.d("my logs", regex);
if (line.matches(regex)) {
Log.w("my logs", line);
if (line.contains("total")) {
line = line.substring(0, line.indexOf("total"));
startTime = line.substring(line.lastIndexOf("+") + 1,
line.lastIndexOf("ms") + 2);
Toast.makeText(EmmageeService.this, "启动时间:" + startTime,
Toast.LENGTH_LONG).show();
isGetStartTime = false;
getStartTimeCount++;
// Log.w("my logs", "Start Time Log:" +
strBuilder.toString());
Log.w(LOG_TAG, "getStartCount:" + getStartTimeCount);
} catch (IOException e) {
Log.d(LOG_TAG, e.getMessage());
&&&& * refresh the performance data showing in
floating window.
&&&& * @throws FileNotFoundException
&&&& * @throws IOException
void dataRefresh() {
int pidMemory = memoryInfo.getPidMemorySize(pid, getBaseContext());
long freeMemory = memoryInfo.getFreeMemorySize(getBaseContext());
String freeMemoryKb = fomart.format((double) freeMemory / 1024);
String processMemory = fomart.format((double) pidMemory / 1024);
String currentBatt = String.valueOf(currentInfo.getCurrentValue());
// 异常数据过滤
Log.d("my logs-before", currentBatt);
if (Math.abs(Double.parseDouble(currentBatt)) &= 500) {
currentBatt = "N/A";
currentBatt = currentBatt + "mA";
} catch (Exception e) {
currentBatt = "N/A";
Log.d("my logs-after", currentBatt);
ArrayList&String& processInfo = cpuInfo.getCpuRatioInfo(totalBatt,
currentBatt, temperature, voltage);
if (isFloating) {
String processCpuRatio = "0";
String totalCpuRatio = "0";
String trafficSize = "0";
int tempTraffic = 0;
double trafficMb = 0;
boolean isMb = false;
if (!processInfo.isEmpty()) {
processCpuRatio = processInfo.get(0);
totalCpuRatio = processInfo.get(1);
trafficSize = processInfo.get(2);
if (!("".equals(trafficSize)) && !("-1".equals(trafficSize))) {
tempTraffic = Integer.parseInt(trafficSize);
if (tempTraffic & 1024) {
isMb = true;
trafficMb = (double) tempTraffic / 1024;
// 如果cpu使用率存在且都不小于0,则输出
if (processCpuRatio != null && totalCpuRatio != null) {
txtUnusedMem.setText("应用/剩余内存:" + processMemory + "/"
+ freeMemoryKb + "MB");
txtTotalMem.setText("应用/总体CPU:" + processCpuRatio + "%/"
+ totalCpuRatio + "%");
String batt = "电流:" + currentBatt;
if ("-1".equals(trafficSize)) {
txtTraffic.setText(batt + ",流量:N/A");
} else if (isMb)
txtTraffic.setText(batt + ",流量:"
+ fomart.format(trafficMb) + "MB");
txtTraffic.setText(batt + ",流量:" + trafficSize + "KB");
// 当内存为0,and cpu使用率为0时则是被测应用退出
if ("0".equals(processMemory) && "0.00".equals(processCpuRatio)) {
closeOpenedStream();
isServiceStop = true;
&&&& * update the position of floating
void updateViewPosition() {
wmParams.x = (int) (x - mTouchStartX);
wmParams.y = (int) (y - mTouchStartY);
windowManager.updateViewLayout(viFloatingWindow, wmParams);
&&&& * close all opened stream.
static void closeOpenedStream() {
if (bw != null) {
bw.write("注释:已知部分不支持的机型可在此查阅:/NetEase/Emmagee/wiki/Some-devices-are-not-supported
bw.write("N/A:表示不支持或者数据异常\r\n");
bw.write("电流:小于0是放电大于0是充电\r\n启动时间:为空是应用已启动或者未搜集到启动时间\r\n");
bw.close();
if (osw != null)
osw.close();
if (out != null)
out.close();
} catch (Exception e) {
Log.d(LOG_TAG, e.getMessage());
void onDestroy() {
Log.i(LOG_TAG, "onDestroy");
if (windowManager != null)
windowManager.removeView(viFloatingWindow);
handler.removeCallbacks(task);
closeOpenedStream();
// replace the start time in file
if (!"".equals(startTime)) {
// START_TIME = "#startTime"
replaceFileString(resultFilePath, START_TIME, "启动时间:" + startTime
+ "\r\n");
replaceFileString(resultFilePath, START_TIME, "N/A");
isStop = true;
unregisterReceiver(batteryBroadcast);
boolean isSendMailSuccessfully = false;
boolean isUploadServerSuccessfully = false;
http://10.125.1.58:88/perf.html?run_stamp=31
http://10.125.1.58:88/img/Emmagee_TestResult_13.csv
String attach_url = Const.serverUrl
+ resultFilePath.substring(resultFilePath.lastIndexOf("_") + 1,
resultFilePath.indexOf(".csv"));
FileUpload up = new FileUpload();
isUploadServerSuccessfully = up.send(Const.uploadServerUrl,
resultFilePath);
isSendMailSuccessfully = MailSender.sendTextMail(sender,
des.decrypt(password), smtp,
"Emmagee Performance Test Report", "Performance Report: "
+ attach_url + "\nCSV Data See attachment:",
resultFilePath, receivers);
} catch (Exception e) {
isSendMailSuccessfully = false;
if (isUploadServerSuccessfully) {
Toast.makeText(this, "测试结果报表上传服务器:" + Const.uploadServerUrl,
Toast.LENGTH_LONG).show();
Toast.makeText(this,
"测试结果未成功上传服务器,结果保存在:" + EmmageeService.resultFilePath,
Toast.LENGTH_LONG).show();
if (isSendMailSuccessfully) {
Toast.makeText(this, "测试结果报表已发送至邮箱:" + recipients,
Toast.LENGTH_LONG).show();
Toast.makeText(this,
"测试结果未成功发送至邮箱,结果保存在:" + EmmageeService.resultFilePath,
Toast.LENGTH_LONG).show();
super.onDestroy();
stopForeground(true);
&&&& * Replaces all matches for replaceType
within this replaceString in file on
&&&& * the filePath
&&&& * @param filePath
&&&& * @param replaceType
&&&& * @param replaceString
void replaceFileString(String filePath, String replaceType,
String replaceString) {
File file = new File(filePath);
BufferedReader reader = new BufferedReader(new FileReader(file));
String line = "", oldtext = "";
while ((line = reader.readLine()) != null) {
oldtext += line + "\r\n";
reader.close();
// replace a word in a file
String newtext = oldtext.replaceAll(replaceType, replaceString);
BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(
new FileOutputStream(filePath), "UTF-8"));
writer.write(newtext);
writer.close();
} catch (IOException e) {
Log.d(LOG_TAG, e.getMessage());
IBinder onBind(Intent intent) {
return null;
&*&CSVFileIO.java
&*&universsky.ct.result
&*&ReportServlet
package&universsky.ct.
import&java.io.FileNotFoundException;
import&java.io.IOE
import&java.nio.charset.C
import&java.util.ArrayL
import&java.util.HashM
import&java.util.L
import&com.csvreader.CsvR
import&com.csvreader.CsvW
&*&@author&东海陈光剑&日&下午2:41:20
public&class&CSVFileIO&{
&&&&&*&@param&args
&&&&public&static&void&main(String[]&args)&{
&&&&&&&&String&run_stamp&=&"31";
&&&&&&&&CSVFileIO&csv&=&new&CSVFileIO();
&&&&&&&&List&HashMap&String,&ArrayList&String&&&&result&=&csv.query(run_stamp);
&&&&&&&&System.out.println(result);
&&&&public&List&HashMap&String,&ArrayList&String&&&&query(String&run_stamp)&{
&&&&&&&&List&HashMap&String,&ArrayList&String&&&&result&=&new&ArrayList&HashMap&String,&ArrayList&String&&&();
&&&&&&&&String&csvFilePath&=&"C:\\autoTest\\httpd\\htdocs\\img\\Emmagee_TestResult_"
&&&&&&&&&&&&&&&&+&run_stamp&+&".csv";
&&&&&&&&ArrayList&String[]&&csvList&=&new&ArrayList&String[]&();&//&用来保存数据
&&&&&&&&try&{
&&&&&&&&&&&&CsvReader&reader&=&new&CsvReader(csvFilePath,&‘,‘,
&&&&&&&&&&&&&&&&&&&&Charset.forName("UTF-8"));&//&编码读
&&&&&&&&&&&&//&reader.readHeaders();&//&跳过表头&如果需要表头的话,不要写这句。
&&&&&&&&&&&&while&(reader.readRecord())&{&//&逐行读入除表头的数据
&&&&&&&&&&&&&&&&csvList.add(reader.getValues());
&&&&&&&&&&&&}
&&&&&&&&&&&&reader.close();
&&&&&&&&}&catch&(Exception&e)&{
&&&&&&&&&&&&e.printStackTrace();
&&&&&&&&HashMap&String,&ArrayList&String&&&DCMap&=&new&HashMap&String,&ArrayList&String&&();
&&&&&&&&ArrayList&String&&package_name&=&new&ArrayList&String&();
&&&&&&&&package_name.add(csvList.get(0)[1]);
&&&&&&&&DCMap.put("package_name",&package_name);
&&&&&&&&ArrayList&String&&app_name&=&new&ArrayList&String&();
&&&&&&&&app_name.add(csvList.get(1)[1]);
&&&&&&&&DCMap.put("app_name",&app_name);
&&&&&&&&ArrayList&String&&pid&=&new&ArrayList&String&();
&&&&&&&&pid.add(csvList.get(2)[1]);
&&&&&&&&DCMap.put("pid",&pid);
&&&&&&&&ArrayList&String&&mem&=&new&ArrayList&String&();
&&&&&&&&mem.add(csvList.get(3)[1]);
&&&&&&&&DCMap.put("mem",&mem);
&&&&&&&&ArrayList&String&&cpu_type&=&new&ArrayList&String&();
&&&&&&&&cpu_type.add(csvList.get(4)[1]);
&&&&&&&&DCMap.put("cpu_type",&cpu_type);
&&&&&&&&ArrayList&String&&sys_version&=&new&ArrayList&String&();
&&&&&&&&sys_version.add(csvList.get(5)[1]);
&&&&&&&&DCMap.put("sys_version",&sys_version);
&&&&&&&&ArrayList&String&&mobile_type&=&new&ArrayList&String&();
&&&&&&&&mobile_type.add(csvList.get(6)[1]);
&&&&&&&&DCMap.put("mobile_type",&mobile_type);
&&&&&&&&ArrayList&String&&uid&=&new&ArrayList&String&();
&&&&&&&&uid.add(csvList.get(7)[1]);
&&&&&&&&DCMap.put("uid",&uid);
&&&&&&&&ArrayList&String&&start_time&=&new&ArrayList&String&();
&&&&&&&&start_time.add(csvList.get(8)[1]);
&&&&&&&&DCMap.put("start_time",&start_time);
&&&&&&&&//&//////////////////////////////////////////////////////
&&&&&&&&int&L&=&csvList.size();
&&&&&&&&ArrayList&String&&time&=&new&ArrayList&String&();
&&&&&&&&for&(int&i&=&10;&i&&&L&-&3;&i++)&{
&&&&&&&&&&&&time.add(csvList.get(i)[0]);
&&&&&&&&DCMap.put("time",&time);
&&&&&&&&ArrayList&String&&pss&=&new&ArrayList&String&();
&&&&&&&&for&(int&i&=&10;&i&&&L&-&3;&i++)&{
&&&&&&&&&&&&pss.add(csvList.get(i)[1]);
&&&&&&&&DCMap.put("pss",&pss);
&&&&&&&&ArrayList&String&&mem_ratio&=&new&ArrayList&String&();
&&&&&&&&for&(int&i&=&10;&i&&&L&-&3;&i++)&{
&&&&&&&&&&&&mem_ratio.add(csvList.get(i)[2]);
&&&&&&&&DCMap.put("mem_ratio",&mem_ratio);
&&&&&&&&ArrayList&String&&mem_free&=&new&ArrayList&String&();
&&&&&&&&for&(int&i&=&10;&i&&&L&-&3;&i++)&{
&&&&&&&&&&&&mem_free.add(csvList.get(i)[3]);
&&&&&&&&DCMap.put("mem_free",&mem_free);
&&&&&&&&ArrayList&String&&cpu_ratio&=&new&ArrayList&String&();
&&&&&&&&for&(int&i&=&10;&i&&&L&-&3;&i++)&{
&&&&&&&&&&&&cpu_ratio.add(csvList.get(i)[4]);
&&&&&&&&DCMap.put("cpu_ratio",&cpu_ratio);
&&&&&&&&ArrayList&String&&ttl_cpu_ratio&=&new&ArrayList&String&();
&&&&&&&&for&(int&i&=&10;&i&&&L&-&3;&i++)&{
&&&&&&&&&&&&ttl_cpu_ratio.add(csvList.get(i)[5]);
&&&&&&&&DCMap.put("ttl_cpu_ratio",&ttl_cpu_ratio);
&&&&&&&&ArrayList&String&&traffic&=&new&ArrayList&String&();
&&&&&&&&for&(int&i&=&10;&i&&&L&-&3;&i++)&{
&&&&&&&&&&&&traffic.add(csvList.get(i)[6]);
&&&&&&&&DCMap.put("traffic",&traffic);
&&&&&&&&ArrayList&String&&battery&=&new&ArrayList&String&();
&&&&&&&&for&(int&i&=&10;&i&&&L&-&3;&i++)&{
&&&&&&&&&&&&battery.add(csvList.get(i)[7]);
&&&&&&&&DCMap.put("battery",&battery);
&&&&&&&&ArrayList&String&&current&=&new&ArrayList&String&();
&&&&&&&&for&(int&i&=&10;&i&&&L&-&3;&i++)&{
&&&&&&&&&&&&current.add(csvList.get(i)[8]);
&&&&&&&&DCMap.put("current",&current);
&&&&&&&&ArrayList&String&&temperature&=&new&ArrayList&String&();
&&&&&&&&for&(int&i&=&10;&i&&&L&-&3;&i++)&{
&&&&&&&&&&&&temperature.add(csvList.get(i)[9]);
&&&&&&&&DCMap.put("temperature",&temperature);
&&&&&&&&ArrayList&String&&voltage&=&new&ArrayList&String&();
&&&&&&&&for&(int&i&=&10;&i&&&L&-&3;&i++)&{
&&&&&&&&&&&&voltage.add(csvList.get(i)[10]);
&&&&&&&&DCMap.put("voltage",&voltage);
&&&&&&&&result.add(DCMap);
&&&&&&&&return&
&&&&&*&读取CSV文件
&&&&public&static&void&readCsv(String&csvFilePath)&{
&&&&&&&&try&{
&&&&&&&&&&&&ArrayList&String[]&&csvList&=&new&ArrayList&String[]&();&//&用来保存数据
&&&&&&&&&&&&CsvReader&reader&=&new&CsvReader(csvFilePath,&‘,‘,
&&&&&&&&&&&&&&&&&&&&Charset.forName("UTF8"));&//&一般用这编码读就可以了
&&&&&&&&&&&&//&reader.readHeaders();&//&跳过表头&如果需要表头的话,不要写这句。
&&&&&&&&&&&&while&(reader.readRecord())&{&//&逐行读入除表头的数据
&&&&&&&&&&&&&&&&csvList.add(reader.getValues());
&&&&&&&&&&&&}
&&&&&&&&&&&&reader.close();
&&&&&&&&&&&&for&(int&row&=&0;&row&&&csvList.size();&row++)&{
&&&&&&&&&&&&&&&&String[]&cell&=&csvList.get(row);
&&&&&&&&&&&&&&&&if&(cell.length&==&2)&{
&&&&&&&&&&&&&&&&&&&&System.out.print(cell[0]&+&"\t");
&&&&&&&&&&&&&&&&&&&&System.out.print(cell[1]&+&"\t");
&&&&&&&&&&&&&&&&&&&&//&for&(int&i&=&0;&i&&&cell.&i++)&{
&&&&&&&&&&&&&&&&&&&&//&System.out.print(cell[i]&+&"\t");
&&&&&&&&&&&&&&&&&&&&//&}
&&&&&&&&&&&&&&&&}
&&&&&&&&&&&&&&&&if&(cell.length&==&11)&{
&&&&&&&&&&&&&&&&&&&&for&(int&i&=&0;&i&&&cell.length;&i++)&{
&&&&&&&&&&&&&&&&&&&&&&&&System.out.print(cell[i]&+&"\t");
&&&&&&&&&&&&&&&&&&&&}
&&&&&&&&&&&&&&&&}
&&&&&&&&&&&&&&&&System.out.println();
&&&&&&&&&&&&}
&&&&&&&&}&catch&(Exception&ex)&{
&&&&&&&&&&&&System.out.println(ex);
&&&&&*&写入CSV文件
&&&&public&static&void&WriteCsv()&{
&&&&&&&&try&{
&&&&&&&&&&&&String&csvFilePath&=&"D:/log/Alarm.csv";
&&&&&&&&&&&&CsvWriter&wr&=&new&CsvWriter(csvFilePath,&‘,‘,
&&&&&&&&&&&&&&&&&&&&Charset.forName("SJIS"));
&&&&&&&&&&&&String[]&contents&=&{&"告警信息",&"非法操作",&"没有权限",&"操作失败"&};
&&&&&&&&&&&&wr.writeRecord(contents);
&&&&&&&&&&&&wr.close();
&&&&&&&&}&catch&(IOException&e)&{
&&&&&&&&&&&&e.printStackTrace();
&!doctype html&&html&&head&&&& &meta
charset="UTF-8"&&&& &title&性能测试报告&/title&&&& &script
src="/kissy/k/1.4.0/seed-min.js"&&/script&&style type="text/css"&&&&body {&background-color:
#EEEEEE;&}&&&&&&&&&&&&&&&&&&&&&&&&&&&&&p.serif{font-family:"Times New
Roman",Georgia,Serif}p.sansserif{font-family:Arial,Verdana,Sans-serif}&&/style&&&&&&&&&&&&&&&&&&&&&&&&script type="text/javascript" src="/ajax/libs/jquery/1.8.2/jquery.min.js"&&/script&&&&&&&&
&script type="text/javascript"&&&&&&&&&
var run_stamp0 = <FONT
color="#ff;&&&&&&&&&&&&&&
= location.href;&&&&&&&
run_&&&&&&&& m = href.match(/stamp=(\d+)/);&&&&&&&
if(!m) run_stamp = run_stamp0;&&&&&&&
else run_stamp = m[1];&&&&&&&&
$.ajax({&&&&&&& url : ‘http://10.<FONT color="#ff.1.58:<FONT
color="#ff/ReportServlet/csv?run_stamp=‘+run_stamp,
//请求地址&&&&&&& type : ‘GET‘,
//POST或GET请求&&&&&&& data :
{&&&&&&&&&&&&&&&
siteName : "http://10.125.1.58:8888" //参数 JSON格式
如果是GET请求可以直接在URL里写&&&&&&&
},&&&&&&& dataType : ‘jsonp‘,//json 或者
jsonp 默认是html&&&&&&&
timeout : <FONT
color="#ff,&&&&&&&
error : function()
{&&&&&&&&&&&&&&&
alert(‘Time out loading : http://10.<FONT color="#ff.1.58:<FONT
color="#ff/ReportServlet/csv?run_stamp=‘+run_stamp);&&&&&&&
},&&&&&&& success : function(JSON)
{&&&&&&& /* basic_info
*/&&&&&&&&&& var
content="";&&&&&&& content += "应用程序名:&strong&"+JSON.result[0].app_name[0]+"&/strong&&br&";&&&&&&&
content += "应用包名:&strong&"+JSON.result[0].package_name[0]+"&/strong&&br&";&&&&&&&
content += "应用PID:&strong&"+JSON.result[0].pid[0]+"&/strong&&br&";&&&&&&&
content += "应用UID:&strong&"+JSON.result[0].uid[0]+"&/strong&&br&";&&&&&&&
content += "内存大小(MB):&strong&"+JSON.result[0].mem[0]+"&/strong&&br&";&&&&&&&
content += "CPU型号:&strong&"+JSON.result[0].cpu_type[0]+"&/strong&&br&";&&&&&&&
content += "系统版本:&strong&"+JSON.result[0].sys_version[0]+"&/strong&&br&";&&&&&&&
content += "手机型号:&strong&"+JSON.result[0].mobile_type[0]+"&/strong&&br&";&&&&&&&&
content += "启动时间:&strong&"+JSON.result[0].start_time[0]+"&/strong&&br&";&&&&&&&&
$("#basic_info").each(function(){&&&&&&&&&&&
$(this).html(content);&&&&&&&
});&&&&&&&&&&&
/* charts */&&&&&&&
///////////////////////////////////////////////////////////////////////////////////////////////////////&&&&&&&
pss=[];&&&&&&&
/*&&&&&&& series:
[{&&&&&&&&&&&&&&&
‘Tokyo‘,&&&&&&&&&&&&&&&
data: [7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6]&&&&&&&&&&&
{&&&&&&&&&&&&&&&
name: ‘New
York‘,&&&&&&&&&&&&&&&
data: [-0.2, 0.8, 5.7, 11.3, 17.0, 22.0, 24.8, 24.1, 20.1, 14.1, 8.6, 2.5]&&&&&&&&&&&
{&&&&&&&&&&&&&&&
‘Berlin‘,&&&&&&&&&&&&&&&
data: [-0.9, 0.6, 3.5, 8.4, 13.5, 17.0, 18.6, 17.9, 14.3, 9.0, 3.9, 1.0]&&&&&&&&&&&
{&&&&&&&&&&&&&&&
‘London‘,&&&&&&&&&&&&&&&
data: [3.9, 4.2, 5.7, 8.5, 11.9, 15.2, 17.0, 16.6, 14.2, 10.3, 6.6, 4.8]&&&&&&&&&&&
*/&&&&&&&&&&& var SIZE =
JSON.result[0].pss.&&&&&&&&&&&
var y = new Array(SIZE);&&&&&&&&&&&
for(j=0; j&SIZE;
j++){&&&&&&&&&&&&&&
y[j]=parseInt(JSON.result[0].pss[j]);&&&&&&&&&&&
}&&&&&&&&&&& var
item={};&&&&&&&&&&&
item.name =
‘pss‘;&&&&&&&&&&&
item.data =
y&&&&&&&&&&&
pss.push(item);&&&&&&&&&&&&
$(‘#container_pss‘).highcharts({&&&&&&&&&&&
{&&&&&&&&&&&&&&&
‘应用占用内存PSS(MB)‘,&&&&&&&&&&&&&
},&&&&&&&&&&& xAxis:
{&&&&&&&&&&&&&&&
{&&&&&&&&&&&&&&&&&&&
false&&&&&&&&&&&&&&&
}&&&&&&&&&&&
},&&&&&&&&&&&&&&&&&&&&&&&&&&
{&&&&&&&&&&&&&&&
min: 0,&&&&&&&&&&&&&&&
{&&&&&&&&&&&&&&&&&&&
‘PSS(MB)‘&&&&&&&&&&&&&&&
},&&&&&&&&&&&&&&&
plotLines:
[{&&&&&&&&&&&&&&&&&&&
value: 0,&&&&&&&&&&&&&&&&&&&
width: 1,&&&&&&&&&&&&&&&&&&&
color: ‘#<FONT
color="#ff‘&&&&&&&&&&&&&&&
}]&&&&&&&&&&&
},&&&&&&&&&&& tooltip:
{&&&&&&&&&&&&&&&
valueSuffix:
‘应用占用内存PSS(MB)‘&&&&&&&&&&&
},&&&&&&&&&&& legend:
{&&&&&&&&&&&&&&&
‘vertical‘,&&&&&&&&&&&&&&&
‘right‘,&&&&&&&&&&&&&&&
verticalAlign:
‘middle‘,&&&&&&&&&&&&&&&
borderWidth: 0&&&&&&&&&&&
},&&&&&&&&&&& series:
pss&&&&&&&
});&&&&&&&
///////////////////////////////////////////////////////////////////////////////////////////////////////&&&&&&&
mem_ratio=[];&&&&&&&&&&&&
= JSON.result[0].mem_ratio.&&&&&&&&&&&
var y = new Array(SIZE);&&&&&&&&&&&
for(j=0; j&SIZE;
j++){&&&&&&&&&&&&&&
y[j]=parseInt(JSON.result[0].mem_ratio[j]);&&&&&&&&&&&
}&&&&&&&&&&& var
item={};&&&&&&&&&&&
item.name =
‘mem_ratio‘;&&&&&&&&&&&
item.data =
y&&&&&&&&&&&
mem_ratio.push(item);&&&&&&&&&&&&
$(‘#container_mem_ratio‘).highcharts({&&&&&&&&&&&
{&&&&&&&&&&&&&&&
‘应用占用内存比(%)‘,&&&&&&&&&&&&&
},&&&&&&&&&&& xAxis:
{&&&&&&&&&&&&&&&
{&&&&&&&&&&&&&&&&&&&
false&&&&&&&&&&&&&&&
}&&&&&&&&&&&
},&&&&&&&&&&&&&&&&&&&&&&&&&&
{&&&&&&&&&&&&&&&
min: 0,&&&&&&&&&&&&&&&
{&&&&&&&&&&&&&&&&&&&
‘应用占用内存比(%)‘&&&&&&&&&&&&&&&
},&&&&&&&&&&&&&&&
plotLines:
[{&&&&&&&&&&&&&&&&&&&
value: 0,&&&&&&&&&&&&&&&&&&&
width: 1,&&&&&&&&&&&&&&&&&&&
color: ‘#<FONT
color="#ff‘&&&&&&&&&&&&&&&
}]&&&&&&&&&&&
},&&&&&&&&&&& tooltip:
{&&&&&&&&&&&&&&&
valueSuffix:
‘应用占用内存比(%)‘&&&&&&&&&&&
},&&&&&&&&&&& legend:
{&&&&&&&&&&&&&&&
‘vertical‘,&&&&&&&&&&&&&&&
‘right‘,&&&&&&&&&&&&&&&
verticalAlign:
‘middle‘,&&&&&&&&&&&&&&&
borderWidth: 0&&&&&&&&&&&
},&&&&&&&&&&& series:
mem_ratio&&&&&&&
});&&&&&&&&
///////////////////////////////////////////////////////////////////////////////////////////////////////&&&&&&&
cpu_ratio=[];&&&&&&&&&&&&
= JSON.result[0].cpu_ratio.&&&&&&&&&&&
var y = new Array(SIZE);&&&&&&&&&&&
for(j=0; j&SIZE;
j++){&&&&&&&&&&&&&&
y[j]=parseInt(JSON.result[0].cpu_ratio[j]);&&&&&&&&&&&
}&&&&&&&&&&& var
item={};&&&&&&&&&&&
item.name =
‘cpu_ratio‘;&&&&&&&&&&&
item.data =
y&&&&&&&&&&&
cpu_ratio.push(item);&&&&&&&&&&&&
$(‘#container_cpu_ratio‘).highcharts({&&&&&&&&&&&
{&&&&&&&&&&&&&&&
‘应用占用CPU率(%)‘,&&&&&&&&&&&&&
},&&&&&&&&&&& xAxis:
{&&&&&&&&&&&&&&&
{&&&&&&&&&&&&&&&&&&&
false&&&&&&&&&&&&&&&
}&&&&&&&&&&&
},&&&&&&&&&&&&&&&&&&&&&&&&&&
{&&&&&&&&&&&&&&&
min: 0,&&&&&&&&&&&&&&&
{&&&&&&&&&&&&&&&&&&&
‘应用占用CPU率(%)‘&&&&&&&&&&&&&&&
},&&&&&&&&&&&&&&&
plotLines:
[{&&&&&&&&&&&&&&&&&&&
value: 0,&&&&&&&&&&&&&&&&&&&
width: 1,&&&&&&&&&&&&&&&&&&&
color: ‘#<FONT
color="#ff‘&&&&&&&&&&&&&&&
}]&&&&&&&&&&&
},&&&&&&&&&&& tooltip:
{&&&&&&&&&&&&&&&
valueSuffix:
‘应用占用CPU率%‘&&&&&&&&&&&
},&&&&&&&&&&& legend:
{&&&&&&&&&&&&&&&
‘vertical‘,&&&&&&&&&&&&&&&
‘right‘,&&&&&&&&&&&&&&&
verticalAlign:
‘middle‘,&&&&&&&&&&&&&&&
borderWidth: 0&&&&&&&&&&&
},&&&&&&&&&&& series:
cpu_ratio&&&&&&&
});&&&&&&&
///////////////////////////////////////////////////////////////////////////////////////////////////////&&&&&&&
ttl_cpu_ratio=[];&&&&&&&&&&&&
= JSON.result[0].ttl_cpu_ratio.&&&&&&&&&&&
var y = new Array(SIZE);&&&&&&&&&&&
for(j=0; j&SIZE;
j++){&&&&&&&&&&&&&&
y[j]=parseInt(JSON.result[0].ttl_cpu_ratio[j]);&&&&&&&&&&&
}&&&&&&&&&&& var
item={};&&&&&&&&&&&
item.name =
‘ttl_cpu_ratio‘;&&&&&&&&&&&
item.data =
y&&&&&&&&&&&
ttl_cpu_ratio.push(item);&&&&&&&&&&&&
$(‘#container_ttl_cpu_ratio‘).highcharts({&&&&&&&&&&&
{&&&&&&&&&&&&&&&
‘CPU总使用率(%)‘,&&&&&&&&&&&&&
},&&&&&&&&&&& xAxis:
{&&&&&&&&&&&&&&&
{&&&&&&&&&&&&&&&&&&&
false&&&&&&&&&&&&&&&
}&&&&&&&&&&&
},&&&&&&&&&&&&&&&&&&&&&&&&&&
{&&&&&&&&&&&&&&&
min: 0,&&&&&&&&&&&&&&&
{&&&&&&&&&&&&&&&&&&&
‘CPU总使用率(%)‘&&&&&&&&&&&&&&&
},&&&&&&&&&&&&&&&
plotLines:
[{&&&&&&&&&&&&&&&&&&&
value: 0,&&&&&&&&&&&&&&&&&&&
width: 1,&&&&&&&&&&&&&&&&&&&
color: ‘#<FONT
color="#ff‘&&&&&&&&&&&&&&&
}]&&&&&&&&&&&
},&&&&&&&&&&& tooltip:
{&&&&&&&&&&&&&&&
valueSuffix:
‘CPU总使用率%‘&&&&&&&&&&&
},&&&&&&&&&&& legend:
{&&&&&&&&&&&&&&&
‘vertical‘,&&&&&&&&&&&&&&&
‘right‘,&&&&&&&&&&&&&&&
verticalAlign:
‘middle‘,&&&&&&&&&&&&&&&
borderWidth: 0&&&&&&&&&&&
},&&&&&&&&&&& series:
ttl_cpu_ratio&&&&&&&
});&&&&&&&&
///////////////////////////////////////////////////////////////////////////////////////////////////////&&&&&&&
mem_free=[];&&&&&&&&&&&&
= JSON.result[0].mem_free.&&&&&&&&&&&
var y = new Array(SIZE);&&&&&&&&&&&
for(j=0; j&SIZE;
j++){&&&&&&&&&&&&&&
y[j]=parseInt(JSON.result[0].mem_free[j]);&&&&&&&&&&&
}&&&&&&&&&&& var
item={};&&&&&&&&&&&
item.name =
‘mem_free‘;&&&&&&&&&&&
item.data =
y&&&&&&&&&&&
mem_free.push(item);&&&&&&&&&&&&
$(‘#container_mem_free‘).highcharts({&&&&&&&&&&&
{&&&&&&&&&&&&&&&
‘剩余内存(MB)‘,&&&&&&&&&&&&&
},&&&&&&&&&&& xAxis:
{&&&&&&&&&&&&&&&
{&&&&&&&&&&&&&&&&&&&
false&&&&&&&&&&&&&&&
}&&&&&&&&&&&
},&&&&&&&&&&&&&&&&&&&&&&&&&&
{&&&&&&&&&&&&&&&
min: 0,&&&&&&&&&&&&&&&
{&&&&&&&&&&&&&&&&&&&
‘剩余内存(MB)‘&&&&&&&&&&&&&&&
},&&&&&&&&&&&&&&&
plotLines:
[{&&&&&&&&&&&&&&&&&&&
value: 0,&&&&&&&&&&&&&&&&&&&
width: 1,&&&&&&&&&&&&&&&&&&&
color: ‘#<FONT
color="#ff‘&&&&&&&&&&&&&&&
}]&&&&&&&&&&&
},&&&&&&&&&&& tooltip:
{&&&&&&&&&&&&&&&
valueSuffix:
‘MB‘&&&&&&&&&&&
},&&&&&&&&&&& legend:
{&&&&&&&&&&&&&&&
‘vertical‘,&&&&&&&&&&&&&&&
‘right‘,&&&&&&&&&&&&&&&
verticalAlign:
‘middle‘,&&&&&&&&&&&&&&&
borderWidth: 0&&&&&&&&&&&
},&&&&&&&&&&& series:
mem_free&&&&&&&
});&&&&&&&&
///////////////////////////////////////////////////////////////////////////////////////////////////////&&&&&&&
traffic=[];&&&&&&&&&&&&
= JSON.result[0].traffic.&&&&&&&&&&&
var y = new Array(SIZE);&&&&&&&&&&&
for(j=0; j&SIZE;
j++){&&&&&&&&&&&&&&
y[j]=parseInt(JSON.result[0].traffic[j]);&&&&&&&&&&&
}&&&&&&&&&&& var
item={};&&&&&&&&&&&
item.name =
‘traffic‘;&&&&&&&&&&&
item.data =
y&&&&&&&&&&&
traffic.push(item);&&&&&&&&&&&&
$(‘#container_traffic‘).highcharts({&&&&&&&&&&&
{&&&&&&&&&&&&&&&
‘流量(KB)‘,&&&&&&&&&&&&&
},&&&&&&&&&&& xAxis:
{&&&&&&&&&&&&&&&
{&&&&&&&&&&&&&&&&&&&
false&&&&&&&&&&&&&&&
}&&&&&&&&&&&
},&&&&&&&&&&&&&&&&&&&&&&&&&&
{&&&&&&&&&&&&&&&
min: 0,&&&&&&&&&&&&&&&
{&&&&&&&&&&&&&&&&&&&
‘流量(KB)‘&&&&&&&&&&&&&&&
},&&&&&&&&&&&&&&&
plotLines:
[{&&&&&&&&&&&&&&&&&&&
value: 0,&&&&&&&&&&&&&&&&&&&
width: 1,&&&&&&&&&&&&&&&&&&&
color: ‘#<FONT
color="#ff‘&&&&&&&&&&&&&&&
}]&&&&&&&&&&&
},&&&&&&&&&&& tooltip:
{&&&&&&&&&&&&&&&
valueSuffix:
‘流量(KB)‘&&&&&&&&&&&
},&&&&&&&&&&& legend:
{&&&&&&&&&&&&&&&
‘vertical‘,&&&&&&&&&&&&&&&
‘right‘,&&&&&&&&&&&&&&&
verticalAlign:
‘middle‘,&&&&&&&&&&&&&&&
borderWidth: 0&&&&&&&&&&&
},&&&&&&&&&&& series:
traffic&&&&&&&
});&&&&&&&&
///////////////////////////////////////////////////////////////////////////////////////////////////////&&&&&&&
battery=[];&&&&&&&&&&&&
= JSON.result[0].battery.&&&&&&&&&&&
var y = new Array(SIZE);&&&&&&&&&&&
for(j=0; j&SIZE;
j++){&&&&&&&&&&&&&&
y[j]=parseInt(JSON.result[0].battery[j]);&&&&&&&&&&&
}&&&&&&&&&&& var
item={};&&&&&&&&&&&
item.name =
‘battery‘;&&&&&&&&&&&
item.data =
y&&&&&&&&&&&
battery.push(item);&&&&&&&&&&&&
$(‘#container_battery‘).highcharts({&&&&&&&&&&&
{&&&&&&&&&&&&&&&
‘电量(%)‘,&&&&&&&&&&&&&
},&&&&&&&&&&& xAxis:
{&&&&&&&&&&&&&&&
{&&&&&&&&&&&&&&&&&&&
false&&&&&&&&&&&&&&&
}&&&&&&&&&&&
},&&&&&&&&&&&&&&&&&&&&&&&&&&
{&&&&&&&&&&&&&&&
min: 0,&&&&&&&&&&&&&&&
{&&&&&&&&&&&&&&&&&&&
‘电量(%)‘&&&&&&&&&&&&&&&
},&&&&&&&&&&&&&&&
plotLines:
[{&&&&&&&&&&&&&&&&&&&
value: 0,&&&&&&&&&&&&&&&&&&&
width: 1,&&&&&&&&&&&&&&&&&&&
color: ‘#<FONT
color="#ff‘&&&&&&&&&&&&&&&
}]&&&&&&&&&&&
},&&&&&&&&&&& tooltip:
{&&&&&&&&&&&&&&&
valueSuffix:
‘电量(%)‘&&&&&&&&&&&
},&&&&&&&&&&& legend:
{&&&&&&&&&&&&&&&
‘vertical‘,&&&&&&&&&&&&&&&
‘right‘,&&&&&&&&&&&&&&&
verticalAlign:
‘middle‘,&&&&&&&&&&&&&&&
borderWidth: 0&&&&&&&&&&&
},&&&&&&&&&&& series:
battery&&&&&&&
});&&&&&&&&
///////////////////////////////////////////////////////////////////////////////////////////////////////&&&&&&&
current=[];&&&&&&&&&&&&
= JSON.result[0].current.&&&&&&&&&&&
var y = new Array(SIZE);&&&&&&&&&&&
for(j=0; j&SIZE;
j++){&&&&&&&&&&&&&&
y[j]=parseInt(JSON.result[0].current[j]);&&&&&&&&&&&
}&&&&&&&&&&& var
item={};&&&&&&&&&&&
item.name =
‘current‘;&&&&&&&&&&&
item.data =
y&&&&&&&&&&&
current.push(item);&&&&&&&&&&&&
$(‘#container_current‘).highcharts({&&&&&&&&&&&
{&&&&&&&&&&&&&&&
‘电流(mA)‘,&&&&&&&&&&&&&
},&&&&&&&&&&& xAxis:
{&&&&&&&&&&&&&&&
{&&&&&&&&&&&&&&&&&&&
false&&&&&&&&&&&&&&&
}&&&&&&&&&&&
},&&&&&&&&&&&&&&&&&&&&&&&&&&
{&&&&&&&&&&&&&&&
min: 0,&&&&&&&&&&&&&&&
{&&&&&&&&&&&&&&&&&&&
‘电流(mA)‘&&&&&&&&&&&&&&&
},&&&&&&&&&&&&&&&
plotLines:
[{&&&&&&&&&&&&&&&&&&&
value: 0,&&&&&&&&&&&&&&&&&&&
width: 1,&&&&&&&&&&&&&&&&&&&
color: ‘#<FONT
color="#ff‘&&&&&&&&&&&&&&&
}]&&&&&&&&&&&
},&&&&&&&&&&& tooltip:
{&&&&&&&&&&&&&&&
valueSuffix:
‘电流(mA)‘&&&&&&&&&&&
},&&&&&&&&&&& legend:
{&&&&&&&&&&&&&&&
‘vertical‘,&&&&&&&&&&&&&&&
‘right‘,&&&&&&&&&&&&&&&
verticalAlign:
‘middle‘,&&&&&&&&&&&&&&&
borderWidth: 0&&&&&&&&&&&
},&&&&&&&&&&& series:
current&&&&&&&
});&&&&&&&
///////////////////////////////////////////////////////////////////////////////////////////////////////&&&&&&&
voltage=[];&&&&&&&&&&&&
= JSON.result[0].voltage.&&&&&&&&&&&
var y = new Array(SIZE);&&&&&&&&&&&
for(j=0; j&SIZE;
j++){&&&&&&&&&&&&&&
y[j]=parseInt(JSON.result[0].voltage[j]);&&&&&&&&&&&
}&&&&&&&&&&& var
item={};&&&&&&&&&&&
item.name =
‘voltage‘;&&&&&&&&&&&
item.data =
y&&&&&&&&&&&
voltage.push(item);&&&&&&&&&&&&
$(‘#container_voltage‘).highcharts({&&&&&&&&&&&
{&&&&&&&&&&&&&&&
‘电压(V)‘,&&&&&&&&&&&&&
},&&&&&&&&&&& xAxis:
{&&&&&&&&&&&&&&&
{&&&&&&&&&&&&&&&&&&&
false&&&&&&&&&&&&&&&
}&&&&&&&&&&&
},&&&&&&&&&&&&&&&&&&&&&&&&&&
{&&&&&&&&&&&&&&&
min: 0,&&&&&&&&&&&&&&&
{&&&&&&&&&&&&&&&&&&&
‘电压(V)‘&&&&&&&&&&&&&&&
},&&&&&&&&&&&&&&&
plotLines:
[{&&&&&&&&&&&&&&&&&&&
value: 0,&&&&&&&&&&&&&&&&&&&
width: 1,&&&&&&&&&&&&&&&&&&&
color: ‘#<FONT
color="#ff‘&&&&&&&&&&&&&&&
}]&&&&&&&&&&&
},&&&&&&&&&&& tooltip:
{&&&&&&&&&&&&&&&
valueSuffix:
‘电压(V)‘&&&&&&&&&&&
},&&&&&&&&&&& legend:
{&&&&&&&&&&&&&&&
‘vertical‘,&&&&&&&&&&&&&&&
‘right‘,&&&&&&&&&&&&&&&
verticalAlign:
‘middle‘,&&&&&&&&&&&&&&&
borderWidth: 0&&&&&&&&&&&
},&&&&&&&&&&& series:
voltage&&&&&&&
});&&&&&&&&
///////////////////////////////////////////////////////////////////////////////////////////////////////&&&&&&&
temperature=[];&&&&&&&&&&&&
= JSON.result[0].temperature.&&&&&&&&&&&
var y = new Array(SIZE);&&&&&&&&&&&
for(j=0; j&SIZE;
j++){&&&&&&&&&&&&&&
y[j]=parseInt(JSON.result[0].temperature[j]);&&&&&&&&&&&
}&&&&&&&&&&& var
item={};&&&&&&&&&&&
item.name =
‘temperature‘;&&&&&&&&&&&
item.data =
y&&&&&&&&&&&
temperature.push(item);&&&&&&&&&&&&
$(‘#container_temperature‘).highcharts({&&&&&&&&&&&
{&&&&&&&&&&&&&&&
‘温度(C)‘,&&&&&&&&&&&&&
},&&&&&&&&&&& xAxis:
{&&&&&&&&&&&&&&&
{&&&&&&&&&&&&&&&&&&&
false&&&&&&&&&&&&&&&
}&&&&&&&&&&&
},&&&&&&&&&&&&&&&&&&&&&&&&&&
{&&&&&&&&&&&&&&&
min: 0,&&&&&&&&&&&&&&&
{&&&&&&&&&&&&&&&&&&&
‘温度(C)‘&&&&&&&&&&&&&&&
},&&&&&&&&&&&&&&&
plotLines:
[{&&&&&&&&&&&&&&&&&&&
value: 0,&&&&&&&&&&&&&&&&&&&
width: 1,&&&&&&&&&&&&&&&&&&&
color: ‘#<FONT
color="#ff‘&&&&&&&&&&&&&&&
}]&&&&&&&&&&&
},&&&&&&&&&&& tooltip:
{&&&&&&&&&&&&&&&
valueSuffix:
‘温度(C)‘&&&&&&&&&&&
},&&&&&&&&&&& legend:
{&&&&&&&&&&&&&&&
‘vertical‘,&&&&&&&&&&&&&&&
‘right‘,&&&&&&&&&&&&&&&
verticalAlign:
‘middle‘,&&&&&&&&&&&&&&&
borderWidth: 0&&&&&&&&&&&
},&&&&&&&&&&& series:
temperature&&&&&&&
/*********************************************************************************************/&&&
}});&&&&&&&
//////////////////////////////////////////////////////////////////////////////////////////////&&&&&&&&&
&/script&&&&&&&&&
&script src="js/highcharts.js"&&/script&&&&&&&&
&script src="js/modules/data.js"&&/script&&&&&&&&
&script src="js/modules/exporting.js"&&/script&&&&&&/head&&&body class="serif"&&&& &br&&br&&br&&&& &h2
align="center"style=font-family:微软雅黑&Android应用性能测试报告&/h2&&&&&&&&&&&&&&&
&p align="right"&&&&&&&&&&&&&&&&
&label for="issue_issue_author_id"&联系人:陈光剑&/label&&&&&&&&&&&&&&&&&
&a href="/webww/ww.php?ver=3&touid=universsky1&siteid=cntaobao&status=2&charset=utf-8"
class="inline-item" target="_blank" title="universsky1"&&img alt="universsky1" border="0" src="/realonline.aw?v=2&uid=universsky1&site=cntaobao&s=2&charset=utf-8"
/&&/a&&a href="/msg.aw?v=2&uid=universsky1&site=cnalichn&s=11&charset=UTF-8"
class="inline-item" target="_blank" title="universsky1"&&/a&&&&&&&&&&&&&&
&div id=time align="right" style=font-family:Verdana&&/div&&&& &script&setInterval("time.innerHTML=‘今天是‘+new Date().toLocaleString()+‘
星期‘+‘日一二三四五六‘.charAt(new Date().getDay())+‘ ‘;",<FONT
color="#ff);&/script&&&&&
&div id="basic_info"&&/div&&&&& &div id="container_pss" style="min-width: 100
height: 200 margin: 0 auto"&&/div&&&& &br&&&&
&div id="container_mem_ratio" style="min-width: 100
height: 200 margin: 0 auto"&&/div&&&& &br&&&&
&div id="container_cpu_ratio" style="min-width: 100
height: 200 margin: 0 auto"&&/div&&&& &br&&&&
&div id="container_ttl_cpu_ratio" style="min-width: 100
height: 200 margin: 0 auto"&&/div&&&& &br&&&&
&div id="container_mem_free" style="min-width: 100
height: 200 margin: 0 auto"&&/div&&&& &br&&&&
&div id="container_traffic" style="min-width: 100
height: 200 margin: 0 auto"&&/div&&&& &br&&&&
&div id="container_battery" style="min-width: 100
height: 200 margin: 0 auto"&&/div&&&& &br&&&&
&div id="container_current" style="min-width: 100
height: 200 margin: 0 auto"&&/div&&&& &br&&&&
&div id="container_voltage" style="min-width: 100
height: 200 margin: 0 auto"&&/div&&&& &br&&&&
&div id="container_temperature" style="min-width: 100
height: 200 margin: 0 auto"&&/div&&&& &br&&&&&&
&div id="download_img"
align="center"
&&a href="http://10.125.1.58:88/apk/Emmagee.apk"&&img src="http://10.125.1.58:88/apk/qrcode.png"&&/img&&/a&&/div&&&& &div
id="download"
align="center"
&&a href="http://10.125.1.58:88/apk/Emmagee.apk"&性能测试工具Emmagee下载&/a&&/div&&&/body&&/html&
标签:&&&&&&&&&&&&&&&&&&
&&国之画&&&& &&&&chrome插件&&
版权所有 京ICP备号-2
迷上了代码!}

我要回帖

更多关于 redtube android 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信