aboutsummaryrefslogtreecommitdiff
path: root/testapps/libsTest/lib1/src/com
diff options
context:
space:
mode:
Diffstat (limited to 'testapps/libsTest/lib1/src/com')
-rw-r--r--testapps/libsTest/lib1/src/com/android/tests/libstest/lib1/Lib1.java43
-rw-r--r--testapps/libsTest/lib1/src/com/android/tests/libstest/lib1/Lib1.txt1
-rw-r--r--testapps/libsTest/lib1/src/com/android/tests/libstest/lib1/MainActivity.java18
3 files changed, 0 insertions, 62 deletions
diff --git a/testapps/libsTest/lib1/src/com/android/tests/libstest/lib1/Lib1.java b/testapps/libsTest/lib1/src/com/android/tests/libstest/lib1/Lib1.java
deleted file mode 100644
index c62bec228..000000000
--- a/testapps/libsTest/lib1/src/com/android/tests/libstest/lib1/Lib1.java
+++ /dev/null
@@ -1,43 +0,0 @@
-package com.android.tests.libstest.lib1;
-
-import android.app.Activity;
-import android.widget.TextView;
-
-import java.io.BufferedReader;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-
-public class Lib1 {
-
- public static void handleTextView(Activity a) {
- TextView tv = (TextView) a.findViewById(R.id.lib1_text2);
- if (tv != null) {
- tv.setText(Lib1.getContent());
- }
- }
-
- public static String getContent() {
- InputStream input = Lib1.class.getResourceAsStream("Lib1.txt");
- if (input == null) {
- return "FAILED TO FIND Lib1.txt";
- }
-
- BufferedReader reader = null;
- try {
- reader = new BufferedReader(new InputStreamReader(input, "UTF-8"));
-
- return reader.readLine();
- } catch (IOException e) {
- } finally {
- if (reader != null) {
- try {
- reader.close();
- } catch (IOException e) {
- }
- }
- }
-
- return "FAILED TO READ CONTENT";
- }
-}
diff --git a/testapps/libsTest/lib1/src/com/android/tests/libstest/lib1/Lib1.txt b/testapps/libsTest/lib1/src/com/android/tests/libstest/lib1/Lib1.txt
deleted file mode 100644
index 452e39773..000000000
--- a/testapps/libsTest/lib1/src/com/android/tests/libstest/lib1/Lib1.txt
+++ /dev/null
@@ -1 +0,0 @@
-SUCCESS-LIB1 \ No newline at end of file
diff --git a/testapps/libsTest/lib1/src/com/android/tests/libstest/lib1/MainActivity.java b/testapps/libsTest/lib1/src/com/android/tests/libstest/lib1/MainActivity.java
deleted file mode 100644
index 078bf64cf..000000000
--- a/testapps/libsTest/lib1/src/com/android/tests/libstest/lib1/MainActivity.java
+++ /dev/null
@@ -1,18 +0,0 @@
-package com.android.tests.libstest.lib1;
-
-import android.app.Activity;
-import android.os.Bundle;
-
-import com.android.tests.libstest.lib2.Lib2;
-
-public class MainActivity extends Activity {
- /** Called when the activity is first created. */
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.lib1_main);
-
- Lib1.handleTextView(this);
- Lib2.handleTextView(this);
- }
-}