Skip to Content.
Sympa Menu

ndt-dev - [ndt-dev] [ndt] r526 committed - Clean unused files.

Subject: NDT-DEV email list created

List archive

[ndt-dev] [ndt] r526 committed - Clean unused files.


Chronological Thread 
  • From:
  • To:
  • Subject: [ndt-dev] [ndt] r526 committed - Clean unused files.
  • Date: Wed, 24 Aug 2011 16:07:17 +0000

Revision: 526
Author:

Date: Wed Aug 24 09:03:06 2011
Log: Clean unused files.
http://code.google.com/p/ndt/source/detail?r=526

Deleted:
/branches/android/Android/res/layout/main.xml
/branches/android/Android/res/layout/servers.xml
/branches/android/Android/res/layout/stats.xml
/branches/android/Android/src/net/measurementlab/ndt/AndroidUiServices.java
/branches/android/Android/src/net/measurementlab/ndt/SelectServer.java

=======================================
--- /branches/android/Android/res/layout/main.xml Wed Jun 9 15:23:05
2010
+++ /dev/null
@@ -1,39 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android";
- android:orientation="vertical" android:layout_width="fill_parent"
- android:layout_height="wrap_content">
-
- <ProgressBar android:id="@+id/ProgressBar" android:layout_width="fill_parent"
- android:layout_height="wrap_content" style="?android:attr/progressBarStyleHorizontal"
- android:layout_alignParentTop="true">
- </ProgressBar>
-
- <LinearLayout android:id="@+id/LowerFrame" android:layout_width="fill_parent"
- android:layout_height="wrap_content" android:layout_alignParentBottom="true"
- android:orientation="horizontal">
- <Button android:text="@string/start" android:id="@+id/ButtonStart"
- android:layout_width="wrap_content" android:layout_weight="1"
- android:layout_height="wrap_content">
- </Button>
- <Button android:text="@string/statistics" android:id="@+id/ButtonStatistics"
- android:layout_width="wrap_content" android:layout_weight="1"
- android:layout_height="wrap_content">
- </Button>
- <Button android:text="@string/about" android:id="@+id/ButtonAbout"
- android:layout_width="wrap_content" android:layout_weight="1"
- android:layout_height="wrap_content">
- </Button>
- <Button android:text="@string/options" android:id="@+id/ButtonOption"
- android:layout_width="wrap_content" android:layout_weight="1"
- android:layout_height="wrap_content">
- </Button>
- </LinearLayout>
-
- <LinearLayout android:id="@+id/UpperFrame" android:layout_width="fill_parent"
- android:layout_height="wrap_content" android:layout_weight="1"
- android:layout_above="@+id/LowerFrame" android:layout_below="@+id/ProgressBar">
- <TextView android:layout_width="fill_parent" android:layout_height="fill_parent"
- android:id="@+id/TextViewMain" android:text="@string/hello"
- android:gravity="bottom" android:scrollbars="vertical" />
- </LinearLayout>
-</RelativeLayout>
=======================================
--- /branches/android/Android/res/layout/servers.xml Wed Jun 9 15:23:05 2010
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<ScrollView xmlns:android="http://schemas.android.com/apk/res/android";
- android:orientation="vertical" android:layout_width="fill_parent"
- android:layout_height="wrap_content">
- <LinearLayout android:orientation="vertical"
- android:layout_width="fill_parent" android:layout_height="fill_parent">
- <RadioGroup android:layout_width="fill_parent"
- android:layout_height="wrap_content" android:orientation="vertical"
- android:id="@+id/servergroup">
- <!-- Add RadioButtons here by program dynamically -->
- </RadioGroup>
- <LinearLayout android:orientation="horizontal"
- android:layout_width="fill_parent" android:layout_height="wrap_content">
- <Button android:layout_weight="1" android:layout_height="wrap_content"
- android:layout_width="wrap_content" android:text="@string/save"
- android:id="@+id/ButtonServerSave" />
- </LinearLayout>
- </LinearLayout>
-</ScrollView>
=======================================
--- /branches/android/Android/res/layout/stats.xml Wed Jun 9 15:23:05
2010
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<ScrollView xmlns:android="http://schemas.android.com/apk/res/android";
- android:orientation="vertical" android:layout_width="fill_parent"
- android:layout_height="wrap_content">
- <LinearLayout android:orientation="vertical"
- android:layout_width="fill_parent" android:layout_height="fill_parent">
- <TextView android:layout_width="fill_parent" android:layout_height="wrap_content"
- android:id="@+id/TextViewStatistics" android:text=""
- android:scrollbars="vertical" android:gravity="top" />
- <LinearLayout android:orientation="horizontal"
- android:layout_width="fill_parent" android:layout_height="wrap_content">
- <Button android:layout_weight="1" android:layout_height="wrap_content"
- android:layout_width="wrap_content" android:text="@string/email"
- android:id="@+id/ButtonEmail" />
- </LinearLayout>
- </LinearLayout>
-</ScrollView>
=======================================
--- /branches/android/Android/src/net/measurementlab/ndt/AndroidUiServices.java Wed Jun 9 15:23:05 2010
+++ /dev/null
@@ -1,148 +0,0 @@
-// Copyright 2009 Google Inc. All Rights Reserved.
-
-package net.measurementlab.ndt;
-
-import android.content.Context;
-import android.os.Handler;
-import android.os.Message;
-import android.util.Log;
-import net.measurementlab.ndt.UiServices;
-
-/**
- * Implementation of UiServices for Android.
- */
-public class AndroidUiServices implements UiServices {
- private Message message;
- private Handler handler;
- private Context context;
-
- /**
- * Constructor to get the handler from Android's UI Thread.
- *
- * @param handler handler from main activity for dispatching messages
- */
- public AndroidUiServices(Context context, Handler handler) {
- this.handler = handler;
- this.context = context;
- }
-
- /**
- *
{@inheritDoc}
- */
- @Override
- public void appendString(String str, int objectId) {
- switch (objectId) {
- case MAIN_VIEW:
- message = handler.obtainMessage(Constants.THREAD_MAIN_APPEND, str);
- handler.sendMessage(message);
- break;
- case STAT_VIEW:
- message = handler.obtainMessage(Constants.THREAD_STAT_APPEND, str);
- handler.sendMessage(message);
- break;
- case DIAG_VIEW:
- // Diagnosis view is redirected to Statistics view on Android.
- message = handler.obtainMessage(Constants.THREAD_STAT_APPEND, str);
- handler.sendMessage(message);
- break;
- case DEBUG_VIEW:
- // We don't have diagnosis view here, just ignore this action.
- default:
- break;
- }
- }
-
- /**
- *
{@inheritDoc}
- */
- @Override
- public void incrementProgress() {
- message = handler.obtainMessage(Constants.THREAD_ADD_PROGRESS);
- handler.sendMessage(message);
- }
-
- /**
- *
{@inheritDoc}
- */
- @Override
- public void onBeginTest() {
- message = handler.obtainMessage(Constants.THREAD_BEGIN_TEST);
- handler.sendMessage(message);
- }
-
- /**
- *
{@inheritDoc}
- */
- @Override
- public void onEndTest() {
- message = handler.obtainMessage(Constants.THREAD_END_TEST);
- handler.sendMessage(message);
- }
-
- /**
- *
{@inheritDoc}
- */
- @Override
- public void onFailure(String errorMessage) {
- String str = "\n" + context.getString(R.string.fail_tip) + "\n";
- appendString(str, UiServices.MAIN_VIEW);
- appendString(str, STAT_VIEW);
- }
-
- /**
- *
{@inheritDoc}
- */
- @Override
- public void logError(String str) {
- Log.e(Constants.LOG_TAG, str);
- }
-
- // Unimplemented (and unnecessary Applet-specific) methods below
- /**
- *
{@inheritDoc}
- */
- @Override
- public void updateStatus(String status) {
- }
-
- /**
- *
{@inheritDoc}
- */
- @Override
- public void updateStatusPanel(String status) {
- }
-
- /**
- *
{@inheritDoc}
- */
- @Override
- public void onLoginSent() {
- }
-
- /**
- *
{@inheritDoc}
- */
- @Override
- public void onPacketQueuingDetected() {
- }
-
- /**
- *
{@inheritDoc}
- */
- @Override
- public boolean wantToStop() {
- return false;
- }
-
- @Override
- public void setVariable(String name, int value) {
- }
-
- @Override
- public void setVariable(String name, double value) {
- }
-
- @Override
- public void setVariable(String name, Object value) {
- }
-}
=======================================
--- /branches/android/Android/src/net/measurementlab/ndt/SelectServer.java Wed Jun 9 15:23:05 2010
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright 2009 Google Inc. All Rights Reserved.
-
-package net.measurementlab.ndt;
-
-import android.app.Activity;
-import android.content.Intent;
-import android.os.Bundle;
-import android.util.Log;
-import android.view.View;
-import android.widget.Button;
-import android.widget.RadioButton;
-import android.widget.RadioGroup;
-
-/**
- * User select the testing server here and pass the related value back to the main activity.
- */
-public class SelectServer extends Activity implements RadioGroup.OnCheckedChangeListener {
- private int serverNo = 0;
- private RadioButton server[] = new RadioButton[Constants.NUMBER_OF_SERVERS];
- private Button buttonOptionSave;
- private RadioGroup radioGroup;
-
- /**
- * Reads the server list from Constants class. Records the user's choice and
- * send it back to the main activity.
- */
- @Override
- public void onCreate(Bundle icicle) {
- super.onCreate(icicle);
- setContentView(R.layout.servers);
- Bundle serverInfo = getIntent().getExtras();
- if (serverInfo != null) {
- serverNo = serverInfo.getInt(Constants.INTENT_SERVER_NO);
- Log.v("NDT", "Passed Into Option: " + serverNo);
- }
- radioGroup = (RadioGroup) findViewById(R.id.servergroup);
- buttonOptionSave = (Button) findViewById(R.id.ButtonServerSave);
- for (int i = 0; i < Constants.NUMBER_OF_SERVERS; i++) {
- server[i] = new RadioButton(this);
- server[i].setText(Constants.SERVER_NAME[i]);
- radioGroup.addView(server[i]);
- }
- server[serverNo].setChecked(true);
- radioGroup.setOnCheckedChangeListener(this);
- buttonOptionSave.setOnClickListener(new View.OnClickListener() {
- @Override
- public void onClick(View v) {
- Intent intentReturn = new Intent();
- intentReturn.putExtra(Constants.INTENT_SERVER_NO, serverNo);
- setResult(RESULT_OK, intentReturn);
- finish();
- }
- });
- }
-
- /**
- * Responds to the change in selection.
- */
- @Override
- public void onCheckedChanged(RadioGroup radioGroup, int checkedId) {
- for (int i = 0; i < Constants.NUMBER_OF_SERVERS; i++) {
- if (server[i].getId() == checkedId) {
- serverNo = i;
- }
- }
- }
-}


  • [ndt-dev] [ndt] r526 committed - Clean unused files., ndt, 08/24/2011

Archive powered by MHonArc 2.6.16.

Top of Page