summaryrefslogtreecommitdiffstats
path: root/test/MyClassNatives
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2014-08-13 03:40:45 +0100
committerNicolas Geoffray <ngeoffray@google.com>2014-08-14 17:18:53 +0100
commit54accbca0b549b1b1ad3ef09655dad438bc1e104 (patch)
tree6354bddae9e09476380b9351b6c1a84636ac8154 /test/MyClassNatives
parente39a5e1ced3d2b87974c646678dd719c02a9a010 (diff)
downloadart-54accbca0b549b1b1ad3ef09655dad438bc1e104.tar.gz
art-54accbca0b549b1b1ad3ef09655dad438bc1e104.tar.bz2
art-54accbca0b549b1b1ad3ef09655dad438bc1e104.zip
Fix bugs in the x86 and arm versions of generic JNI.
Also fix the run script of 116-nodex2oat to use the non-prebuild script for target. Bug: 17000769 Change-Id: I439fcd710fb8bb408f3288ff8fb34fef23890adb
Diffstat (limited to 'test/MyClassNatives')
-rw-r--r--test/MyClassNatives/MyClassNatives.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/test/MyClassNatives/MyClassNatives.java b/test/MyClassNatives/MyClassNatives.java
index b5e0204ab8..fab153b624 100644
--- a/test/MyClassNatives/MyClassNatives.java
+++ b/test/MyClassNatives/MyClassNatives.java
@@ -80,16 +80,22 @@ class MyClassNatives {
Object o248, Object o249, Object o250, Object o251, Object o252, Object o253);
native void withoutImplementation();
-
+
native static void stackArgsIntsFirst(int i1, int i2, int i3, int i4, int i5, int i6, int i7,
int i8, int i9, int i10, float f1, float f2, float f3, float f4, float f5, float f6,
float f7, float f8, float f9, float f10);
-
+
native static void stackArgsFloatsFirst(float f1, float f2, float f3, float f4, float f5,
float f6, float f7, float f8, float f9, float f10, int i1, int i2, int i3, int i4, int i5,
int i6, int i7, int i8, int i9, int i10);
-
+
native static void stackArgsMixed(int i1, float f1, int i2, float f2, int i3, float f3, int i4,
float f4, int i5, float f5, int i6, float f6, int i7, float f7, int i8, float f8, int i9,
float f9, int i10, float f10);
+
+ static native double logD(double d);
+ static native float logF(float f);
+ static native boolean returnTrue();
+ static native boolean returnFalse();
+ static native int returnInt();
}