Loading api/current.txt +5 −0 Original line number Diff line number Diff line Loading @@ -21517,6 +21517,7 @@ package android.renderscript { method public deprecated synchronized void resize(int); method public void setFromFieldPacker(int, android.renderscript.FieldPacker); method public void setFromFieldPacker(int, int, android.renderscript.FieldPacker); method public void setOnBufferAvailableListener(android.renderscript.Allocation.OnBufferAvailableListener); method public void setSurface(android.view.Surface); method public void syncAll(int); field public static final int USAGE_GRAPHICS_CONSTANTS = 8; // 0x8 Loading @@ -21537,6 +21538,10 @@ package android.renderscript { enum_constant public static final android.renderscript.Allocation.MipmapControl MIPMAP_ON_SYNC_TO_TEXTURE; } public static abstract interface Allocation.OnBufferAvailableListener { method public abstract void onBufferAvailable(android.renderscript.Allocation); } public class AllocationAdapter extends android.renderscript.Allocation { method public static android.renderscript.AllocationAdapter create1D(android.renderscript.RenderScript, android.renderscript.Allocation); method public static android.renderscript.AllocationAdapter create2D(android.renderscript.RenderScript, android.renderscript.Allocation); graphics/java/android/renderscript/Allocation.java +5 −9 Original line number Diff line number Diff line Loading @@ -79,7 +79,7 @@ public class Allocation extends BaseObj { int mCurrentCount; static HashMap<Integer, Allocation> mAllocationMap = new HashMap<Integer, Allocation>(); IoInputNotifier mBufferNotifier; OnBufferAvailableListener mBufferNotifier; /** * The usage of the Allocation. These signal to RenderScript where to place Loading Loading @@ -1825,26 +1825,22 @@ public class Allocation extends BaseObj { } /** * @hide * * Interface to handle notification when new buffers are available via * {@link #USAGE_IO_INPUT}. An application will receive one notification * when a buffer is available. Additional buffers will not trigger new * notifications until a buffer is processed. */ public interface IoInputNotifier { public interface OnBufferAvailableListener { public void onBufferAvailable(Allocation a); } /** * @hide * * Set a notification handler for {@link #USAGE_IO_INPUT}. * * @param callback instance of the IoInputNotifier class to be called * when buffer arrive. * @param callback instance of the OnBufferAvailableListener * class to be called when buffer arrive. */ public void setIoInputNotificationHandler(IoInputNotifier callback) { public void setOnBufferAvailableListener(OnBufferAvailableListener callback) { synchronized(mAllocationMap) { mAllocationMap.put(new Integer(getID(mRS)), this); mBufferNotifier = callback; Loading Loading
api/current.txt +5 −0 Original line number Diff line number Diff line Loading @@ -21517,6 +21517,7 @@ package android.renderscript { method public deprecated synchronized void resize(int); method public void setFromFieldPacker(int, android.renderscript.FieldPacker); method public void setFromFieldPacker(int, int, android.renderscript.FieldPacker); method public void setOnBufferAvailableListener(android.renderscript.Allocation.OnBufferAvailableListener); method public void setSurface(android.view.Surface); method public void syncAll(int); field public static final int USAGE_GRAPHICS_CONSTANTS = 8; // 0x8 Loading @@ -21537,6 +21538,10 @@ package android.renderscript { enum_constant public static final android.renderscript.Allocation.MipmapControl MIPMAP_ON_SYNC_TO_TEXTURE; } public static abstract interface Allocation.OnBufferAvailableListener { method public abstract void onBufferAvailable(android.renderscript.Allocation); } public class AllocationAdapter extends android.renderscript.Allocation { method public static android.renderscript.AllocationAdapter create1D(android.renderscript.RenderScript, android.renderscript.Allocation); method public static android.renderscript.AllocationAdapter create2D(android.renderscript.RenderScript, android.renderscript.Allocation);
graphics/java/android/renderscript/Allocation.java +5 −9 Original line number Diff line number Diff line Loading @@ -79,7 +79,7 @@ public class Allocation extends BaseObj { int mCurrentCount; static HashMap<Integer, Allocation> mAllocationMap = new HashMap<Integer, Allocation>(); IoInputNotifier mBufferNotifier; OnBufferAvailableListener mBufferNotifier; /** * The usage of the Allocation. These signal to RenderScript where to place Loading Loading @@ -1825,26 +1825,22 @@ public class Allocation extends BaseObj { } /** * @hide * * Interface to handle notification when new buffers are available via * {@link #USAGE_IO_INPUT}. An application will receive one notification * when a buffer is available. Additional buffers will not trigger new * notifications until a buffer is processed. */ public interface IoInputNotifier { public interface OnBufferAvailableListener { public void onBufferAvailable(Allocation a); } /** * @hide * * Set a notification handler for {@link #USAGE_IO_INPUT}. * * @param callback instance of the IoInputNotifier class to be called * when buffer arrive. * @param callback instance of the OnBufferAvailableListener * class to be called when buffer arrive. */ public void setIoInputNotificationHandler(IoInputNotifier callback) { public void setOnBufferAvailableListener(OnBufferAvailableListener callback) { synchronized(mAllocationMap) { mAllocationMap.put(new Integer(getID(mRS)), this); mBufferNotifier = callback; Loading