1 /* 2 * Copyright (C) 2011 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 import dalvik.annotation.optimization.CriticalNative; 18 import dalvik.annotation.optimization.FastNative; 19 20 /* 21 * AUTOMATICALLY GENERATED FROM art/tools/mako-source-generator/...../MyClassNatives.java.mako 22 * 23 * The tool is however not available, so the changes now need to be done by hand. 24 */ 25 class MyClassNatives { 26 27 // Normal native throwException()28 native void throwException(); 29 // Normal native synchronizedThrowException()30 synchronized native void synchronizedThrowException(); 31 // Normal native foo()32 native void foo(); 33 // Normal native bar(int count)34 native int bar(int count); 35 // Normal native sbar(int count)36 static native int sbar(int count); 37 // Normal native fooI(int x)38 native int fooI(int x); 39 // Normal native fooII(int x, int y)40 native int fooII(int x, int y); 41 // Normal native fooJJ(long x, long y)42 native long fooJJ(long x, long y); 43 // Normal native fooO(Object x)44 native Object fooO(Object x); 45 // Normal native fooDD(double x, double y)46 native double fooDD(double x, double y); 47 // Normal native fooJJ_synchronized(long x, long y)48 synchronized native long fooJJ_synchronized(long x, long y); 49 // Normal native fooIOO(int x, Object y, Object z)50 native Object fooIOO(int x, Object y, Object z); 51 // Normal native fooSIOO(int x, Object y, Object z)52 static native Object fooSIOO(int x, Object y, Object z); 53 // Normal native fooSII(int x, int y)54 static native int fooSII(int x, int y); 55 // Normal native fooSDD(double x, double y)56 static native double fooSDD(double x, double y); 57 // Normal native fooSSIOO(int x, Object y, Object z)58 static synchronized native Object fooSSIOO(int x, Object y, Object z); 59 // Normal native arraycopy(Object src, int src_pos, Object dst, int dst_pos, int length)60 static native void arraycopy(Object src, int src_pos, Object dst, int dst_pos, int length); 61 // Normal native compareAndSwapInt(Object obj, long offset, int expected, int newval)62 native boolean compareAndSwapInt(Object obj, long offset, int expected, int newval); 63 // Normal native getText(long val1, Object obj1, long val2, Object obj2)64 static native int getText(long val1, Object obj1, long val2, Object obj2); 65 // Normal native getSinkPropertiesNative(String path)66 synchronized native Object[] getSinkPropertiesNative(String path); 67 68 // Normal native instanceMethodThatShouldReturnClass()69 native Class<?> instanceMethodThatShouldReturnClass(); 70 // Normal native staticMethodThatShouldReturnClass()71 static native Class<?> staticMethodThatShouldReturnClass(); 72 73 // Normal native instanceMethodThatShouldTakeClass(int i, Class<?> c)74 native void instanceMethodThatShouldTakeClass(int i, Class<?> c); 75 // Normal native staticMethodThatShouldTakeClass(int i, Class<?> c)76 static native void staticMethodThatShouldTakeClass(int i, Class<?> c); 77 78 // TODO: These 3 seem like they could work for @CriticalNative as well if they were static. 79 // Normal native checkFloats(float f1, float f2)80 native float checkFloats(float f1, float f2); 81 // Normal native forceStackParameters(int i1, int i2, int i3, int i4, int i5, int i6, int i8, int i9, float f1, float f2, float f3, float f4, float f5, float f6, float f7, float f8, float f9)82 native void forceStackParameters(int i1, int i2, int i3, int i4, int i5, int i6, int i8, int i9, 83 float f1, float f2, float f3, float f4, float f5, float f6, 84 float f7, float f8, float f9); 85 // Normal native checkParameterAlign(int i1, long l1)86 native void checkParameterAlign(int i1, long l1); 87 88 // Normal native maxParamNumber(Object o0, Object o1, Object o2, Object o3, Object o4, Object o5, Object o6, Object o7, Object o8, Object o9, Object o10, Object o11, Object o12, Object o13, Object o14, Object o15, Object o16, Object o17, Object o18, Object o19, Object o20, Object o21, Object o22, Object o23, Object o24, Object o25, Object o26, Object o27, Object o28, Object o29, Object o30, Object o31, Object o32, Object o33, Object o34, Object o35, Object o36, Object o37, Object o38, Object o39, Object o40, Object o41, Object o42, Object o43, Object o44, Object o45, Object o46, Object o47, Object o48, Object o49, Object o50, Object o51, Object o52, Object o53, Object o54, Object o55, Object o56, Object o57, Object o58, Object o59, Object o60, Object o61, Object o62, Object o63, Object o64, Object o65, Object o66, Object o67, Object o68, Object o69, Object o70, Object o71, Object o72, Object o73, Object o74, Object o75, Object o76, Object o77, Object o78, Object o79, Object o80, Object o81, Object o82, Object o83, Object o84, Object o85, Object o86, Object o87, Object o88, Object o89, Object o90, Object o91, Object o92, Object o93, Object o94, Object o95, Object o96, Object o97, Object o98, Object o99, Object o100, Object o101, Object o102, Object o103, Object o104, Object o105, Object o106, Object o107, Object o108, Object o109, Object o110, Object o111, Object o112, Object o113, Object o114, Object o115, Object o116, Object o117, Object o118, Object o119, Object o120, Object o121, Object o122, Object o123, Object o124, Object o125, Object o126, Object o127, Object o128, Object o129, Object o130, Object o131, Object o132, Object o133, Object o134, Object o135, Object o136, Object o137, Object o138, Object o139, Object o140, Object o141, Object o142, Object o143, Object o144, Object o145, Object o146, Object o147, Object o148, Object o149, Object o150, Object o151, Object o152, Object o153, Object o154, Object o155, Object o156, Object o157, Object o158, Object o159, Object o160, Object o161, Object o162, Object o163, Object o164, Object o165, Object o166, Object o167, Object o168, Object o169, Object o170, Object o171, Object o172, Object o173, Object o174, Object o175, Object o176, Object o177, Object o178, Object o179, Object o180, Object o181, Object o182, Object o183, Object o184, Object o185, Object o186, Object o187, Object o188, Object o189, Object o190, Object o191, Object o192, Object o193, Object o194, Object o195, Object o196, Object o197, Object o198, Object o199, Object o200, Object o201, Object o202, Object o203, Object o204, Object o205, Object o206, Object o207, Object o208, Object o209, Object o210, Object o211, Object o212, Object o213, Object o214, Object o215, Object o216, Object o217, Object o218, Object o219, Object o220, Object o221, Object o222, Object o223, Object o224, Object o225, Object o226, Object o227, Object o228, Object o229, Object o230, Object o231, Object o232, Object o233, Object o234, Object o235, Object o236, Object o237, Object o238, Object o239, Object o240, Object o241, Object o242, Object o243, Object o244, Object o245, Object o246, Object o247, Object o248, Object o249, Object o250, Object o251, Object o252, Object o253)89 native void maxParamNumber(Object o0, Object o1, Object o2, Object o3, Object o4, Object o5, Object o6, Object o7, 90 Object o8, Object o9, Object o10, Object o11, Object o12, Object o13, Object o14, Object o15, 91 Object o16, Object o17, Object o18, Object o19, Object o20, Object o21, Object o22, Object o23, 92 Object o24, Object o25, Object o26, Object o27, Object o28, Object o29, Object o30, Object o31, 93 Object o32, Object o33, Object o34, Object o35, Object o36, Object o37, Object o38, Object o39, 94 Object o40, Object o41, Object o42, Object o43, Object o44, Object o45, Object o46, Object o47, 95 Object o48, Object o49, Object o50, Object o51, Object o52, Object o53, Object o54, Object o55, 96 Object o56, Object o57, Object o58, Object o59, Object o60, Object o61, Object o62, Object o63, 97 Object o64, Object o65, Object o66, Object o67, Object o68, Object o69, Object o70, Object o71, 98 Object o72, Object o73, Object o74, Object o75, Object o76, Object o77, Object o78, Object o79, 99 Object o80, Object o81, Object o82, Object o83, Object o84, Object o85, Object o86, Object o87, 100 Object o88, Object o89, Object o90, Object o91, Object o92, Object o93, Object o94, Object o95, 101 Object o96, Object o97, Object o98, Object o99, Object o100, Object o101, Object o102, Object o103, 102 Object o104, Object o105, Object o106, Object o107, Object o108, Object o109, Object o110, Object o111, 103 Object o112, Object o113, Object o114, Object o115, Object o116, Object o117, Object o118, Object o119, 104 Object o120, Object o121, Object o122, Object o123, Object o124, Object o125, Object o126, Object o127, 105 Object o128, Object o129, Object o130, Object o131, Object o132, Object o133, Object o134, Object o135, 106 Object o136, Object o137, Object o138, Object o139, Object o140, Object o141, Object o142, Object o143, 107 Object o144, Object o145, Object o146, Object o147, Object o148, Object o149, Object o150, Object o151, 108 Object o152, Object o153, Object o154, Object o155, Object o156, Object o157, Object o158, Object o159, 109 Object o160, Object o161, Object o162, Object o163, Object o164, Object o165, Object o166, Object o167, 110 Object o168, Object o169, Object o170, Object o171, Object o172, Object o173, Object o174, Object o175, 111 Object o176, Object o177, Object o178, Object o179, Object o180, Object o181, Object o182, Object o183, 112 Object o184, Object o185, Object o186, Object o187, Object o188, Object o189, Object o190, Object o191, 113 Object o192, Object o193, Object o194, Object o195, Object o196, Object o197, Object o198, Object o199, 114 Object o200, Object o201, Object o202, Object o203, Object o204, Object o205, Object o206, Object o207, 115 Object o208, Object o209, Object o210, Object o211, Object o212, Object o213, Object o214, Object o215, 116 Object o216, Object o217, Object o218, Object o219, Object o220, Object o221, Object o222, Object o223, 117 Object o224, Object o225, Object o226, Object o227, Object o228, Object o229, Object o230, Object o231, 118 Object o232, Object o233, Object o234, Object o235, Object o236, Object o237, Object o238, Object o239, 119 Object o240, Object o241, Object o242, Object o243, Object o244, Object o245, Object o246, Object o247, 120 Object o248, Object o249, Object o250, Object o251, Object o252, Object o253); 121 122 // Normal native withoutImplementation()123 native void withoutImplementation(); 124 // Normal native withoutImplementationRefReturn()125 native Object withoutImplementationRefReturn(); 126 // Normal native staticWithoutImplementation()127 native static void staticWithoutImplementation(); 128 129 // Normal native 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)130 native static void stackArgsIntsFirst(int i1, int i2, int i3, int i4, int i5, int i6, int i7, 131 int i8, int i9, int i10, float f1, float f2, float f3, float f4, float f5, float f6, 132 float f7, float f8, float f9, float f10); 133 134 // Normal native 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)135 native static void stackArgsFloatsFirst(float f1, float f2, float f3, float f4, float f5, 136 float f6, float f7, float f8, float f9, float f10, int i1, int i2, int i3, int i4, int i5, 137 int i6, int i7, int i8, int i9, int i10); 138 139 // Normal native 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)140 native static void stackArgsMixed(int i1, float f1, int i2, float f2, int i3, float f3, int i4, 141 float f4, int i5, float f5, int i6, float f6, int i7, float f7, int i8, float f8, int i9, 142 float f9, int i10, float f10); 143 144 // Normal native logD(double d)145 static native double logD(double d); 146 // Normal native logF(float f)147 static native float logF(float f); 148 // Normal native returnTrue()149 static native boolean returnTrue(); 150 // Normal native returnFalse()151 static native boolean returnFalse(); 152 // Normal native returnInt()153 static native int returnInt(); 154 // Normal native returnDouble()155 static native double returnDouble(); 156 // Normal native returnLong()157 static native long returnLong(); 158 159 160 161 @FastNative throwException_Fast()162 native void throwException_Fast(); 163 @FastNative foo_Fast()164 native void foo_Fast(); 165 @FastNative bar_Fast(int count)166 native int bar_Fast(int count); 167 @FastNative sbar_Fast(int count)168 static native int sbar_Fast(int count); 169 @FastNative fooI_Fast(int x)170 native int fooI_Fast(int x); 171 @FastNative fooII_Fast(int x, int y)172 native int fooII_Fast(int x, int y); 173 @FastNative fooJJ_Fast(long x, long y)174 native long fooJJ_Fast(long x, long y); 175 @FastNative fooO_Fast(Object x)176 native Object fooO_Fast(Object x); 177 @FastNative fooDD_Fast(double x, double y)178 native double fooDD_Fast(double x, double y); 179 @FastNative fooIOO_Fast(int x, Object y, Object z)180 native Object fooIOO_Fast(int x, Object y, Object z); 181 @FastNative fooSIOO_Fast(int x, Object y, Object z)182 static native Object fooSIOO_Fast(int x, Object y, Object z); 183 @FastNative fooSII_Fast(int x, int y)184 static native int fooSII_Fast(int x, int y); 185 @FastNative fooSDD_Fast(double x, double y)186 static native double fooSDD_Fast(double x, double y); 187 @FastNative arraycopy_Fast(Object src, int src_pos, Object dst, int dst_pos, int length)188 static native void arraycopy_Fast(Object src, int src_pos, Object dst, int dst_pos, int length); 189 @FastNative compareAndSwapInt_Fast(Object obj, long offset, int expected, int newval)190 native boolean compareAndSwapInt_Fast(Object obj, long offset, int expected, int newval); 191 @FastNative getText_Fast(long val1, Object obj1, long val2, Object obj2)192 static native int getText_Fast(long val1, Object obj1, long val2, Object obj2); 193 @FastNative getSinkPropertiesNative_Fast(String path)194 native Object[] getSinkPropertiesNative_Fast(String path); 195 196 @FastNative instanceMethodThatShouldReturnClass_Fast()197 native Class<?> instanceMethodThatShouldReturnClass_Fast(); 198 @FastNative staticMethodThatShouldReturnClass_Fast()199 static native Class<?> staticMethodThatShouldReturnClass_Fast(); 200 201 @FastNative instanceMethodThatShouldTakeClass_Fast(int i, Class<?> c)202 native void instanceMethodThatShouldTakeClass_Fast(int i, Class<?> c); 203 @FastNative staticMethodThatShouldTakeClass_Fast(int i, Class<?> c)204 static native void staticMethodThatShouldTakeClass_Fast(int i, Class<?> c); 205 206 // TODO: These 3 seem like they could work for @CriticalNative as well if they were static. 207 @FastNative checkFloats_Fast(float f1, float f2)208 native float checkFloats_Fast(float f1, float f2); 209 @FastNative forceStackParameters_Fast(int i1, int i2, int i3, int i4, int i5, int i6, int i8, int i9, float f1, float f2, float f3, float f4, float f5, float f6, float f7, float f8, float f9)210 native void forceStackParameters_Fast(int i1, int i2, int i3, int i4, int i5, int i6, int i8, int i9, 211 float f1, float f2, float f3, float f4, float f5, float f6, 212 float f7, float f8, float f9); 213 @FastNative checkParameterAlign_Fast(int i1, long l1)214 native void checkParameterAlign_Fast(int i1, long l1); 215 216 @FastNative maxParamNumber_Fast(Object o0, Object o1, Object o2, Object o3, Object o4, Object o5, Object o6, Object o7, Object o8, Object o9, Object o10, Object o11, Object o12, Object o13, Object o14, Object o15, Object o16, Object o17, Object o18, Object o19, Object o20, Object o21, Object o22, Object o23, Object o24, Object o25, Object o26, Object o27, Object o28, Object o29, Object o30, Object o31, Object o32, Object o33, Object o34, Object o35, Object o36, Object o37, Object o38, Object o39, Object o40, Object o41, Object o42, Object o43, Object o44, Object o45, Object o46, Object o47, Object o48, Object o49, Object o50, Object o51, Object o52, Object o53, Object o54, Object o55, Object o56, Object o57, Object o58, Object o59, Object o60, Object o61, Object o62, Object o63, Object o64, Object o65, Object o66, Object o67, Object o68, Object o69, Object o70, Object o71, Object o72, Object o73, Object o74, Object o75, Object o76, Object o77, Object o78, Object o79, Object o80, Object o81, Object o82, Object o83, Object o84, Object o85, Object o86, Object o87, Object o88, Object o89, Object o90, Object o91, Object o92, Object o93, Object o94, Object o95, Object o96, Object o97, Object o98, Object o99, Object o100, Object o101, Object o102, Object o103, Object o104, Object o105, Object o106, Object o107, Object o108, Object o109, Object o110, Object o111, Object o112, Object o113, Object o114, Object o115, Object o116, Object o117, Object o118, Object o119, Object o120, Object o121, Object o122, Object o123, Object o124, Object o125, Object o126, Object o127, Object o128, Object o129, Object o130, Object o131, Object o132, Object o133, Object o134, Object o135, Object o136, Object o137, Object o138, Object o139, Object o140, Object o141, Object o142, Object o143, Object o144, Object o145, Object o146, Object o147, Object o148, Object o149, Object o150, Object o151, Object o152, Object o153, Object o154, Object o155, Object o156, Object o157, Object o158, Object o159, Object o160, Object o161, Object o162, Object o163, Object o164, Object o165, Object o166, Object o167, Object o168, Object o169, Object o170, Object o171, Object o172, Object o173, Object o174, Object o175, Object o176, Object o177, Object o178, Object o179, Object o180, Object o181, Object o182, Object o183, Object o184, Object o185, Object o186, Object o187, Object o188, Object o189, Object o190, Object o191, Object o192, Object o193, Object o194, Object o195, Object o196, Object o197, Object o198, Object o199, Object o200, Object o201, Object o202, Object o203, Object o204, Object o205, Object o206, Object o207, Object o208, Object o209, Object o210, Object o211, Object o212, Object o213, Object o214, Object o215, Object o216, Object o217, Object o218, Object o219, Object o220, Object o221, Object o222, Object o223, Object o224, Object o225, Object o226, Object o227, Object o228, Object o229, Object o230, Object o231, Object o232, Object o233, Object o234, Object o235, Object o236, Object o237, Object o238, Object o239, Object o240, Object o241, Object o242, Object o243, Object o244, Object o245, Object o246, Object o247, Object o248, Object o249, Object o250, Object o251, Object o252, Object o253)217 native void maxParamNumber_Fast(Object o0, Object o1, Object o2, Object o3, Object o4, Object o5, Object o6, Object o7, 218 Object o8, Object o9, Object o10, Object o11, Object o12, Object o13, Object o14, Object o15, 219 Object o16, Object o17, Object o18, Object o19, Object o20, Object o21, Object o22, Object o23, 220 Object o24, Object o25, Object o26, Object o27, Object o28, Object o29, Object o30, Object o31, 221 Object o32, Object o33, Object o34, Object o35, Object o36, Object o37, Object o38, Object o39, 222 Object o40, Object o41, Object o42, Object o43, Object o44, Object o45, Object o46, Object o47, 223 Object o48, Object o49, Object o50, Object o51, Object o52, Object o53, Object o54, Object o55, 224 Object o56, Object o57, Object o58, Object o59, Object o60, Object o61, Object o62, Object o63, 225 Object o64, Object o65, Object o66, Object o67, Object o68, Object o69, Object o70, Object o71, 226 Object o72, Object o73, Object o74, Object o75, Object o76, Object o77, Object o78, Object o79, 227 Object o80, Object o81, Object o82, Object o83, Object o84, Object o85, Object o86, Object o87, 228 Object o88, Object o89, Object o90, Object o91, Object o92, Object o93, Object o94, Object o95, 229 Object o96, Object o97, Object o98, Object o99, Object o100, Object o101, Object o102, Object o103, 230 Object o104, Object o105, Object o106, Object o107, Object o108, Object o109, Object o110, Object o111, 231 Object o112, Object o113, Object o114, Object o115, Object o116, Object o117, Object o118, Object o119, 232 Object o120, Object o121, Object o122, Object o123, Object o124, Object o125, Object o126, Object o127, 233 Object o128, Object o129, Object o130, Object o131, Object o132, Object o133, Object o134, Object o135, 234 Object o136, Object o137, Object o138, Object o139, Object o140, Object o141, Object o142, Object o143, 235 Object o144, Object o145, Object o146, Object o147, Object o148, Object o149, Object o150, Object o151, 236 Object o152, Object o153, Object o154, Object o155, Object o156, Object o157, Object o158, Object o159, 237 Object o160, Object o161, Object o162, Object o163, Object o164, Object o165, Object o166, Object o167, 238 Object o168, Object o169, Object o170, Object o171, Object o172, Object o173, Object o174, Object o175, 239 Object o176, Object o177, Object o178, Object o179, Object o180, Object o181, Object o182, Object o183, 240 Object o184, Object o185, Object o186, Object o187, Object o188, Object o189, Object o190, Object o191, 241 Object o192, Object o193, Object o194, Object o195, Object o196, Object o197, Object o198, Object o199, 242 Object o200, Object o201, Object o202, Object o203, Object o204, Object o205, Object o206, Object o207, 243 Object o208, Object o209, Object o210, Object o211, Object o212, Object o213, Object o214, Object o215, 244 Object o216, Object o217, Object o218, Object o219, Object o220, Object o221, Object o222, Object o223, 245 Object o224, Object o225, Object o226, Object o227, Object o228, Object o229, Object o230, Object o231, 246 Object o232, Object o233, Object o234, Object o235, Object o236, Object o237, Object o238, Object o239, 247 Object o240, Object o241, Object o242, Object o243, Object o244, Object o245, Object o246, Object o247, 248 Object o248, Object o249, Object o250, Object o251, Object o252, Object o253); 249 250 @FastNative withoutImplementation_Fast()251 native void withoutImplementation_Fast(); 252 @FastNative withoutImplementationRefReturn_Fast()253 native Object withoutImplementationRefReturn_Fast(); 254 @FastNative staticWithoutImplementation_Fast()255 native static void staticWithoutImplementation_Fast(); 256 257 @FastNative stackArgsIntsFirst_Fast(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)258 native static void stackArgsIntsFirst_Fast(int i1, int i2, int i3, int i4, int i5, int i6, int i7, 259 int i8, int i9, int i10, float f1, float f2, float f3, float f4, float f5, float f6, 260 float f7, float f8, float f9, float f10); 261 262 @FastNative stackArgsFloatsFirst_Fast(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)263 native static void stackArgsFloatsFirst_Fast(float f1, float f2, float f3, float f4, float f5, 264 float f6, float f7, float f8, float f9, float f10, int i1, int i2, int i3, int i4, int i5, 265 int i6, int i7, int i8, int i9, int i10); 266 267 @FastNative stackArgsMixed_Fast(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)268 native static void stackArgsMixed_Fast(int i1, float f1, int i2, float f2, int i3, float f3, int i4, 269 float f4, int i5, float f5, int i6, float f6, int i7, float f7, int i8, float f8, int i9, 270 float f9, int i10, float f10); 271 272 @FastNative logD_Fast(double d)273 static native double logD_Fast(double d); 274 @FastNative logF_Fast(float f)275 static native float logF_Fast(float f); 276 @FastNative returnTrue_Fast()277 static native boolean returnTrue_Fast(); 278 @FastNative returnFalse_Fast()279 static native boolean returnFalse_Fast(); 280 @FastNative returnInt_Fast()281 static native int returnInt_Fast(); 282 @FastNative returnDouble_Fast()283 static native double returnDouble_Fast(); 284 @FastNative returnLong_Fast()285 static native long returnLong_Fast(); 286 287 288 289 @CriticalNative sbar_Critical(int count)290 static native int sbar_Critical(int count); 291 @CriticalNative fooSII_Critical(int x, int y)292 static native int fooSII_Critical(int x, int y); 293 @CriticalNative fooSDD_Critical(double x, double y)294 static native double fooSDD_Critical(double x, double y); 295 296 @CriticalNative staticWithoutImplementation_Critical()297 native static void staticWithoutImplementation_Critical(); 298 299 @CriticalNative stackArgsIntsFirst_Critical(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)300 native static void stackArgsIntsFirst_Critical(int i1, int i2, int i3, int i4, int i5, int i6, int i7, 301 int i8, int i9, int i10, float f1, float f2, float f3, float f4, float f5, float f6, 302 float f7, float f8, float f9, float f10); 303 304 @CriticalNative stackArgsFloatsFirst_Critical(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)305 native static void stackArgsFloatsFirst_Critical(float f1, float f2, float f3, float f4, float f5, 306 float f6, float f7, float f8, float f9, float f10, int i1, int i2, int i3, int i4, int i5, 307 int i6, int i7, int i8, int i9, int i10); 308 309 @CriticalNative stackArgsMixed_Critical(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)310 native static void stackArgsMixed_Critical(int i1, float f1, int i2, float f2, int i3, float f3, int i4, 311 float f4, int i5, float f5, int i6, float f6, int i7, float f7, int i8, float f8, int i9, 312 float f9, int i10, float f10); 313 314 @CriticalNative logD_Critical(double d)315 static native double logD_Critical(double d); 316 @CriticalNative logF_Critical(float f)317 static native float logF_Critical(float f); 318 @CriticalNative returnTrue_Critical()319 static native boolean returnTrue_Critical(); 320 @CriticalNative returnFalse_Critical()321 static native boolean returnFalse_Critical(); 322 @CriticalNative returnInt_Critical()323 static native int returnInt_Critical(); 324 @CriticalNative returnDouble_Critical()325 static native double returnDouble_Critical(); 326 @CriticalNative returnLong_Critical()327 static native long returnLong_Critical(); 328 329 330 331 // Check for @FastNative/@CriticalNative annotation presence [or lack of presence]. normalNative()332 public static native void normalNative(); 333 @FastNative fastNative()334 public static native void fastNative(); 335 @CriticalNative criticalNative()336 public static native void criticalNative(); 337 } 338