From c5f519c5ec57400f04f1d0bdc69f7bfddf47f8cb Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Thu, 29 Mar 2012 17:58:15 -0700 Subject: Rename ioReceive and ioSend First checkin of Allocation IO test Change-Id: I26379e442796caab95a089dbb42b02192f4cc563 --- graphics/java/android/renderscript/Allocation.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'graphics/java/android') diff --git a/graphics/java/android/renderscript/Allocation.java b/graphics/java/android/renderscript/Allocation.java index 6b59b106c699..18a0a0c468ba 100644 --- a/graphics/java/android/renderscript/Allocation.java +++ b/graphics/java/android/renderscript/Allocation.java @@ -365,7 +365,7 @@ public class Allocation extends BaseObj { * @hide * */ - public void ioSendOutput() { + public void ioSend() { if ((mUsage & USAGE_IO_OUTPUT) == 0) { throw new RSIllegalArgumentException( "Can only send buffer if IO_OUTPUT usage specified."); @@ -374,13 +374,21 @@ public class Allocation extends BaseObj { mRS.nAllocationIoSend(getID()); } + /** + * Delete once code is updated. + * @hide + */ + public void ioSendOutput() { + ioSend(); + } + /** * Receive the latest input into the Allocation. * * @hide * */ - public void ioGetInput() { + public void ioReceive() { if ((mUsage & USAGE_IO_INPUT) == 0) { throw new RSIllegalArgumentException( "Can only receive if IO_INPUT usage specified."); -- cgit v1.2.3-59-g8ed1b