summaryrefslogtreecommitdiffstats
path: root/tools/layoutlib/bridge/tests
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2010-10-29 16:01:40 -0700
committerXavier Ducrohet <xav@android.com>2010-10-29 16:01:40 -0700
commit5de11a18e9151e6bc9b3e81cf31fc43dc63dffbf (patch)
tree3d956f7bfa6cc38ed3dd4a4a2e48c62c30fe7afe /tools/layoutlib/bridge/tests
parent5164246d7e47b9c995ca1e1587f3056eb777f60b (diff)
downloadframeworks_base-5de11a18e9151e6bc9b3e81cf31fc43dc63dffbf.zip
frameworks_base-5de11a18e9151e6bc9b3e81cf31fc43dc63dffbf.tar.gz
frameworks_base-5de11a18e9151e6bc9b3e81cf31fc43dc63dffbf.tar.bz2
Implement the layoutlib Bitmap through a native delegate.
This does not implement all the native methods of the android.graphics.Bitmap class, only what's needed to draw an ImageView object. The rest will be implemented after Canvas and Paint have been moved to the native delegate. Change-Id: Ia0c3b2cafa03871c298deaef5817a25ac1c35521
Diffstat (limited to 'tools/layoutlib/bridge/tests')
-rw-r--r--tools/layoutlib/bridge/tests/com/android/layoutlib/bridge/TestNativeDelegate.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/layoutlib/bridge/tests/com/android/layoutlib/bridge/TestNativeDelegate.java b/tools/layoutlib/bridge/tests/com/android/layoutlib/bridge/TestNativeDelegate.java
index 6eed8ba..7c1eecd 100644
--- a/tools/layoutlib/bridge/tests/com/android/layoutlib/bridge/TestNativeDelegate.java
+++ b/tools/layoutlib/bridge/tests/com/android/layoutlib/bridge/TestNativeDelegate.java
@@ -87,7 +87,7 @@ public class TestNativeDelegate extends TestCase {
try {
// try to load the method with the given parameter types.
- delegateClass.getMethod(originalMethod.getName(), parameters);
+ delegateClass.getDeclaredMethod(originalMethod.getName(), parameters);
} catch (NoSuchMethodException e) {
// compute a full class name that's long but not too long.
StringBuilder sb = new StringBuilder(originalMethod.getName() + "(");