/** * @since Available in iOS 3.0 and later. */ @Bridge(symbol="CFStringTokenizerAdvanceToNextToken", optional=true) public native CFStringTokenizerTokenType advanceToNextToken(); /**
public static long resolveBridge(Library library, Bridge bridge, Method method) { if (library == null) { throw new IllegalArgumentException("No @" + Library.class.getName() + " annotation found on class " + method.getDeclaringClass().getName()); } long handle = getHandle(library.value()); String symbol = bridge.symbol(); if (symbol == null || "".equals(symbol)) { symbol = method.getName(); } long f = Dl.resolve(handle, symbol); if (f == 0L) { f = Dl.resolve(handle, UNHIDDEN_SYMBOL_PREFIX + symbol); } if (f == 0L && !bridge.optional()) { throw new UnsatisfiedLinkError("Failed to resolve native function '" + symbol + "' " + "for method " + method + " with @Bridge annotation " + bridge + " in library " + library); } return f; }
public static void bind(Class<?> c) { Library library = c.getAnnotation(Library.class); if (library != null) { Runtime.loadLibrary(library); } for (Method method : c.getDeclaredMethods()) { Bridge bridge = method.getAnnotation(Bridge.class); if (bridge != null && !bridge.dynamic() && !VM.isBridgeMethodBound(method)) { long f = Runtime.resolveBridge(library, bridge, method); if (f != 0L) { VM.bindBridgeMethod(method, f); } } else { GlobalValue globalValue = method.getAnnotation(GlobalValue.class); if (globalValue != null && !VM.isBridgeMethodBound(method)) { long f = Runtime.resolveGlobalValue(library, globalValue, method); if (f != 0L) { VM.bindBridgeMethod(method, f); } } } } }
public static long resolveBridge(Library library, Bridge bridge, Method method) { if (library == null) { throw new IllegalArgumentException("No @" + Library.class.getName() + " annotation found on class " + method.getDeclaringClass().getName()); } long handle = getHandle(library.value()); String symbol = bridge.symbol(); if (symbol == null || "".equals(symbol)) { symbol = method.getName(); } long f = Dl.resolve(handle, symbol); if (f == 0L) { f = Dl.resolve(handle, UNHIDDEN_SYMBOL_PREFIX + symbol); } if (f == 0L && !bridge.optional()) { throw new UnsatisfiedLinkError("Failed to resolve native function '" + symbol + "' " + "for method " + method + " with @Bridge annotation " + bridge + " in library " + library); } return f; }
public static void bind(Class<?> c) { Library library = c.getAnnotation(Library.class); if (library != null) { Runtime.loadLibrary(library); } for (Method method : c.getDeclaredMethods()) { Bridge bridge = method.getAnnotation(Bridge.class); if (bridge != null && !bridge.dynamic() && !VM.isBridgeMethodBound(method)) { long f = Runtime.resolveBridge(library, bridge, method); if (f != 0L) { VM.bindBridgeMethod(method, f); } } else { GlobalValue globalValue = method.getAnnotation(GlobalValue.class); if (globalValue != null && !VM.isBridgeMethodBound(method)) { long f = Runtime.resolveGlobalValue(library, globalValue, method); if (f != 0L) { VM.bindBridgeMethod(method, f); } } } } }
/** * @since Available in iOS 2.0 and later. */ @Bridge(symbol="AudioServicesPlaySystemSound", optional=true) public static native void playSystemSound(int systemSoundID); /**
public static long resolveBridge(Library library, Bridge bridge, Method method) { if (library == null) { throw new IllegalArgumentException("No @" + Library.class.getName() + " annotation found on class " + method.getDeclaringClass().getName()); } long handle = getHandle(library.value()); String symbol = bridge.symbol(); if (symbol == null || "".equals(symbol)) { symbol = method.getName(); } long f = Dl.resolve(handle, symbol); if (f == 0L) { f = Dl.resolve(handle, UNHIDDEN_SYMBOL_PREFIX + symbol); } if (f == 0L && !bridge.optional()) { throw new UnsatisfiedLinkError("Failed to resolve native function '" + symbol + "' " + "for method " + method + " with @Bridge annotation " + bridge + " in library " + library); } return f; }
public static void bind(Class<?> c) { Library library = c.getAnnotation(Library.class); if (library != null) { Runtime.loadLibrary(library); } for (Method method : c.getDeclaredMethods()) { Bridge bridge = method.getAnnotation(Bridge.class); if (bridge != null && !bridge.dynamic() && !VM.isBridgeMethodBound(method)) { long f = Runtime.resolveBridge(library, bridge, method); if (f != 0L) { VM.bindBridgeMethod(method, f); } } else { GlobalValue globalValue = method.getAnnotation(GlobalValue.class); if (globalValue != null && !VM.isBridgeMethodBound(method)) { long f = Runtime.resolveGlobalValue(library, globalValue, method); if (f != 0L) { VM.bindBridgeMethod(method, f); } } } } }
/** * @since Available in iOS 2.0 and later. */ @Bridge(symbol="CFTimeZoneGetNextDaylightSavingTimeTransition", optional=true) public native double getNextDaylightSavingTimeTransition(double at); /**
public static long resolveBridge(Library library, Bridge bridge, Method method) { if (library == null) { throw new IllegalArgumentException("No @" + Library.class.getName() + " annotation found on class " + method.getDeclaringClass().getName()); } long handle = getHandle(library.value()); String symbol = bridge.symbol(); if (symbol == null || "".equals(symbol)) { symbol = method.getName(); } long f = Dl.resolve(handle, symbol); if (f == 0L) { f = Dl.resolve(handle, UNHIDDEN_SYMBOL_PREFIX + symbol); } if (f == 0L && !bridge.optional()) { throw new UnsatisfiedLinkError("Failed to resolve native function '" + symbol + "' " + "for method " + method + " with @Bridge annotation " + bridge + " in library " + library); } return f; }
public static void bind(Class<?> c) { Library library = c.getAnnotation(Library.class); if (library != null) { Runtime.loadLibrary(library); } for (Method method : c.getDeclaredMethods()) { Bridge bridge = method.getAnnotation(Bridge.class); if (bridge != null && !bridge.dynamic() && !VM.isBridgeMethodBound(method)) { long f = Runtime.resolveBridge(library, bridge, method); if (f != 0L) { VM.bindBridgeMethod(method, f); } } else { GlobalValue globalValue = method.getAnnotation(GlobalValue.class); if (globalValue != null && !VM.isBridgeMethodBound(method)) { long f = Runtime.resolveGlobalValue(library, globalValue, method); if (f != 0L) { VM.bindBridgeMethod(method, f); } } } } }
/** * @since Available in iOS 2.1 and later. */ @Bridge(symbol="ExtAudioFileWriteAsync", optional=true) protected native OSStatus writeAsync0(int inNumberFrames, AudioBufferList ioData); /**
public static long resolveBridge(Library library, Bridge bridge, Method method) { if (library == null) { throw new IllegalArgumentException("No @" + Library.class.getName() + " annotation found on class " + method.getDeclaringClass().getName()); } long handle = getHandle(library.value()); String symbol = bridge.symbol(); if (symbol == null || "".equals(symbol)) { symbol = method.getName(); } long f = Dl.resolve(handle, symbol); if (f == 0L) { f = Dl.resolve(handle, UNHIDDEN_SYMBOL_PREFIX + symbol); } if (f == 0L && !bridge.optional()) { throw new UnsatisfiedLinkError("Failed to resolve native function '" + symbol + "' " + "for method " + method + " with @Bridge annotation " + bridge + " in library " + library); } return f; }
public static void bind(Class<?> c) { Library library = c.getAnnotation(Library.class); if (library != null) { Runtime.loadLibrary(library); } for (Method method : c.getDeclaredMethods()) { Bridge bridge = method.getAnnotation(Bridge.class); if (bridge != null && !bridge.dynamic() && !VM.isBridgeMethodBound(method)) { long f = Runtime.resolveBridge(library, bridge, method); if (f != 0L) { VM.bindBridgeMethod(method, f); } } else { GlobalValue globalValue = method.getAnnotation(GlobalValue.class); if (globalValue != null && !VM.isBridgeMethodBound(method)) { long f = Runtime.resolveGlobalValue(library, globalValue, method); if (f != 0L) { VM.bindBridgeMethod(method, f); } } } } }
/** * @since Available in iOS 2.0 and later. */ @Bridge(symbol="CGColorSpaceGetBaseColorSpace", optional=true) public native CGColorSpace getBaseColorSpace(); /**
public static long resolveBridge(Library library, Bridge bridge, Method method) { if (library == null) { throw new IllegalArgumentException("No @" + Library.class.getName() + " annotation found on class " + method.getDeclaringClass().getName()); } long handle = getHandle(library.value()); String symbol = bridge.symbol(); if (symbol == null || "".equals(symbol)) { symbol = method.getName(); } long f = Dl.resolve(handle, symbol); if (f == 0L) { f = Dl.resolve(handle, UNHIDDEN_SYMBOL_PREFIX + symbol); } if (f == 0L && !bridge.optional()) { throw new UnsatisfiedLinkError("Failed to resolve native function '" + symbol + "' " + "for method " + method + " with @Bridge annotation " + bridge + " in library " + library); } return f; }
public static void bind(Class<?> c) { Library library = c.getAnnotation(Library.class); if (library != null) { Runtime.loadLibrary(library); } for (Method method : c.getDeclaredMethods()) { Bridge bridge = method.getAnnotation(Bridge.class); if (bridge != null && !bridge.dynamic() && !VM.isBridgeMethodBound(method)) { long f = Runtime.resolveBridge(library, bridge, method); if (f != 0L) { VM.bindBridgeMethod(method, f); } } else { GlobalValue globalValue = method.getAnnotation(GlobalValue.class); if (globalValue != null && !VM.isBridgeMethodBound(method)) { long f = Runtime.resolveGlobalValue(library, globalValue, method); if (f != 0L) { VM.bindBridgeMethod(method, f); } } } } }
/** * @since Available in iOS 2.0 and later. */ @Bridge(symbol="AudioFileReadBytes", optional=true) protected native OSStatus readBytes0(boolean inUseCache, long inStartingByte, IntPtr ioNumBytes, BytePtr outBuffer); /**