aboutsummaryrefslogtreecommitdiffstats
path: root/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2011-11-21 16:12:31 -0800
committerTor Norbye <tnorbye@google.com>2011-11-23 08:56:14 -0800
commitbb54cce6ded6e5f95388b3352797bfc85e1eb838 (patch)
treefc436a4419dfafdd9a4402ca1c7b0bebfbf7bdb9 /eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout
parentd1804c6668a9b8eb878b7247b9e55ddfb056128b (diff)
downloadsdk-bb54cce6ded6e5f95388b3352797bfc85e1eb838.zip
sdk-bb54cce6ded6e5f95388b3352797bfc85e1eb838.tar.gz
sdk-bb54cce6ded6e5f95388b3352797bfc85e1eb838.tar.bz2
Add package support for Rules API and Detector API
When writing custom view rules, and custom detectors, you may need access to the package name of the application (in order to produce the right namespace to look up custom attributes for). This changeset adds new methods to the two APIs such that clients can look up the application package. For lint, it also changes things such that the manifest file is always processed and information stashed in the Project object. This meant I could also remove the icon detector code to look up the manifest info directly. Change-Id: Id8eec96e2788f6d27481d7dcab0c544ea6e0a06d
Diffstat (limited to 'eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout')
-rw-r--r--eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/LayoutTestBase.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/LayoutTestBase.java b/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/LayoutTestBase.java
index 4454e1b..279e918 100644
--- a/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/LayoutTestBase.java
+++ b/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/LayoutTestBase.java
@@ -42,6 +42,7 @@ import junit.framework.TestCase;
/**
* Common layout helpers from LayoutRule tests
*/
+@SuppressWarnings("javadoc")
public class LayoutTestBase extends TestCase {
/**
* Helper function used by tests to drag a button into a canvas containing
@@ -309,6 +310,11 @@ public class LayoutTestBase extends TestCase {
fail("Not supported in tests yet");
return 0;
}
+
+ public String getAppNameSpace() {
+ fail("Not supported in tests yet");
+ return null;
+ }
}
public void testDummy() {