History log of /frameworks/base/rs/java/android/renderscript/RenderScript.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4a4578530a1a5fb751ea5a7bfbff83f3ab669895 02-Jun-2016 David Gross <dgross@google.com> Delete simple reduction implementation.

Bug: 27298560
Change-Id: I8a89c9df753d12ee8af06008d424e77bb916cd8f
/frameworks/base/rs/java/android/renderscript/RenderScript.java
33703f0c4e9b16bda5fd72e71d7d89359ee0db17 19-Apr-2016 Yang Ni <yangni@google.com> Made Element accessors thread-safe

Bug: 28177082
Change-Id: I8f3f2d8ce559e93cba29f8eedd5b95d1389deb23
/frameworks/base/rs/java/android/renderscript/RenderScript.java
4a70df58a32591429ec04902deac2b2210fb96c3 04-Apr-2016 Yang Ni <yangni@google.com> Avoid destroying Device separately

Bug: 27983025

Device should be destroyed inside the destructor of the associated
Context.

Change-Id: I921a89974e1174f837349a89aef9b03efa4882f5
/frameworks/base/rs/java/android/renderscript/RenderScript.java
15fcf61dc0f1206b8eb562df8984035a599d290a 11-Mar-2016 Yang Ni <yangni@google.com> Correctly init code cache path for RS

Bug: 27439261

Script Group needs to know the code cache path before it can call bcc to
merge kernels. However, before this change, the code cache path has been
initialized by the ScriptC class.

In the case where a script group (or even the entire app) does not contain any
regular script but only intrinsics, the code cache would remain uninitialized.

Fixed this by initializing the code cache path in the RenderScript class
the first time when the accessor method is called.

Change-Id: I87f9e62e0f3b479f94e43daa3e9695a5b38710db
(cherry picked from commit 689f63770048589e1001ce99faf1d2eaf9780a80)
/frameworks/base/rs/java/android/renderscript/RenderScript.java
49aee686d8c1c888fd0dd2778c19d5968dae0252 30-Jan-2016 Stephen Hines <srhines@google.com> Merge "Remove the CREATE_FLAG_OPT_LEVEL_0 from the Java API."
8c1509249c5552270d8accc2c9512f499a8f5e2d 27-Oct-2015 Miao Wang <miaowang@google.com> [RenderScript] Implement APIs for better multi-frame process support.

Bug: 23535524

Two APIs added for multiframe processing:
- createAllocations(...): To create an array of Allocations sharing the
same Type and Usage. For USAGE_IO_INPUT Allocations, they also share
the same BufferQueue.
- getTimeStamp(): API to retrieve the time stamp associated with the
most recent buffer.

Change-Id: I6b7b35d7dca5e87ee2f3db2ee17cb9cf824bcfe1
/frameworks/base/rs/java/android/renderscript/RenderScript.java
ed50f333fb28905f085473d3150f906f0106295a 26-Jan-2016 Miao Wang <miaowang@google.com> Merge "[RenderScript] Add API to map Allocation mallocptr to Java ByteBuffer"
0facf021ea1a0399d956372b9d3ad9025a9a04d2 25-Nov-2015 Miao Wang <miaowang@google.com> [RenderScript] Add API to map Allocation mallocptr to Java ByteBuffer

Bug: 25926361
Bug: 23535524

- Construct the ByteBuffer using the AllocationGetPointer.
- Add an API to query the stride of the allocation.
- Both ByteBuffer and Stride will be cached for normal Allocations.
if using USAGE_IO, since after each ioReceive, the mallocPtr will
change, getByteBuffer will always create a new one using the most
up-to-date mallocPtr.

Change-Id: I5e84b6690e83bb062c383043275524d0e51e46eb
/frameworks/base/rs/java/android/renderscript/RenderScript.java
26ef7a739b724452f93f850a1c268c42e439317b 12-Jan-2016 David Gross <dgross@google.com> Add general reduction plumbing starting with Java Script::reduce().

Requires coordinated change in frameworks/rs.

Bug: 23535724
Change-Id: I2fee6750cf542948d8fa87a98441002c4d84f36e
/frameworks/base/rs/java/android/renderscript/RenderScript.java
c9390c8baf0a41633c176d6d9a2d7e5d0c61c387 06-Oct-2015 Pirama Arumuga Nainar <pirama@google.com> am 46b51097: Merge "Safely handle interrupts during Thread.join()"

* commit '46b51097b92900866ac5b25762f622d3ceb1be5d':
Safely handle interrupts during Thread.join()
83461d73bc50d41f631e1db5c195d12b4eb9e6cf 03-Oct-2015 Pirama Arumuga Nainar <pirama@google.com> Safely handle interrupts during Thread.join()

Interrupt current thread if InterruptedException is received during
Thread.join(). Also, log the interruption.

Change-Id: I452124915ea3f19610e6d4a3411d741f2f604af2
/frameworks/base/rs/java/android/renderscript/RenderScript.java
5fbb245230317b5ca312556b73380195871827eb 03-Oct-2015 Pirama Arumuga Nainar <pirama@google.com> am ca3e5aea: Merge "Retry if interrupted before mMessageThread has joined"

* commit 'ca3e5aeaa65ae1d77ce92f082ab789933eb18237':
Retry if interrupted before mMessageThread has joined
2f25ce7753f7f1f6a0cc549a0df0082286bd5f85 02-Oct-2015 Pirama Arumuga Nainar <pirama@google.com> Retry if interrupted before mMessageThread has joined

Bug: 24342101

If interrupted during mMessageThread.join(), retry the join instead of
assuming the thread has joined and continuing. Continuing to destroy
the context will cause a segfault when the message thread attempts to
use the destroyed context.

Change-Id: I3213091a0e996449bceb403dffca3063786d5a65
/frameworks/base/rs/java/android/renderscript/RenderScript.java
88891e63c09bee4f6f994e53213018845e0f7268 02-Sep-2015 Stephen McGroarty <stephen@codeplay.com> Remove the CREATE_FLAG_OPT_LEVEL_0 from the Java API.

The flag was previously used to set the optimization level
of the bcc compiler to -O0. However, this functionality is
now accomplished through deriving the optimization level
from the input bitcode. That patch can be found here:
https://android-review.googlesource.com/169330

Change-Id: I9c57d941bb35c6f737a31fcd74f31d9de25a16a8
Signed-off-by: Stephen McGroarty <stephen@codeplay.com>
/frameworks/base/rs/java/android/renderscript/RenderScript.java
b3a1674a47f8671f0e35e63c8d2ba7b3b73abc59 24-Jul-2015 Stephen Hines <srhines@google.com> am ed3ffe0f: am 6430812a: Merge "RenderScript: implement a Script entry point for calling a reduce-style kernel."

* commit 'ed3ffe0fc86de016ff2b4231e2fcc74a6119f6c7':
RenderScript: implement a Script entry point for calling a reduce-style kernel.
36eb1f74b3d19d9dbae0803f3bc271683be811ce 21-Jul-2015 Matt Wala <wala@google.com> RenderScript: implement a Script entry point for calling a
reduce-style kernel.

Bug: 22631253

This adds a new (currently hidden) API to the Script class and the
corresponding code for the RenderScript JNI layer.

Change-Id: I40f19aaeb90411b859bd6b0bffc3f071fa327c21
/frameworks/base/rs/java/android/renderscript/RenderScript.java
dd67c9d6a886dfc6ff18fc9e3809d77c9ed7a105 18-Jul-2015 Stephen Hines <srhines@google.com> am 0f5b7bc2: am 79a1bde2: Merge "Add a flag to the API to specify -O0 on the bcc command line."

* commit '0f5b7bc2fe2ae554ab1f044eb5b10aab5f4812cb':
Add a flag to the API to specify -O0 on the bcc command line.
c9659ea3a2d8462354737d51bf6a3865a56fb4d4 22-May-2015 verena beckham <verena@codeplay.com> Add a flag to the API to specify -O0 on the bcc command line.

Add a flag CREATE_FLAG_OPT_LEVEL_0 to set the optimization level to 0 when calling bcc.
This will result in an object file that is easier to debug.

Change-Id: I0384dca098fa0d9ae0f2e02e798da9de342c1122
Signed-off-by: verena beckham <verena@codeplay.com>
/frameworks/base/rs/java/android/renderscript/RenderScript.java
8bd4d77dc4dcd18ff8019da9a8de6cfe69086871 21-May-2015 Stephen Hines <srhines@google.com> am 95e31ac8: am 3385b616: Merge "Added in flag to ask context to wait for debugger attach."

* commit '95e31ac85d4ba0b7dfb087f8bc0a10e4065ca8cd':
Added in flag to ask context to wait for debugger attach.
f9d518a2afb1715c8ecf96a2639d9a1fbd48e263 14-May-2015 Miao Wang <miaowang@google.com> [RenderScript] Add dummy getMinorID to maintain compatible with old RS
compat lib.

bug: 21132592
Change-Id: I375f188dfbd33367a9589533aa51b182fda8bc21
/frameworks/base/rs/java/android/renderscript/RenderScript.java
62cb9bdc9def07fefca51939bba4dfb79c122664 08-May-2015 Stephen McGroarty <stephen@codeplay.com> Added in flag to ask context to wait for debugger attach.

Adds in flag CREATE_FLAG_WAIT_FOR_ATTACH with value 0x0008 to the RenderScript API
to be passed down to the C++ implementation to tell it to wait for a debugger to be
attached before executing the kernel.

Change-Id: Ibc4e903efbed1b1fb14cf378d1a8517d5c8d1f26
Signed-off-by: Stephen McGroarty <stephen@codeplay.com>
/frameworks/base/rs/java/android/renderscript/RenderScript.java
f76423062a06fec9757c65806b6a47bbf63883c4 12-May-2015 Jason Sams <jsams@google.com> Fix API name based on API review

rename getMinorID to getMinorVersion

bug 21039492

Change-Id: I03908dba508e30a605818d81a085ad627fa202fb
/frameworks/base/rs/java/android/renderscript/RenderScript.java
17c2d7a3e1fac8d8876262255eb24f2f81c8fbac 01-May-2015 Yang Ni <yangni@google.com> Sanity checks in JNI code for closure creation

b/20728113

In case the requested size for memory allocation overflows, or memory
allocation fails.

Change-Id: I8dac132dd4d0210938660ffbb82cbe44000d2a90
(cherry picked from commit 4e90b9b57cc96964a9d5c1845172a72cb51feafb)
/frameworks/base/rs/java/android/renderscript/RenderScript.java
4e90b9b57cc96964a9d5c1845172a72cb51feafb 01-May-2015 Yang Ni <yangni@google.com> Sanity checks in JNI code for closure creation

b/20728113

In case the requested size for memory allocation overflows, or memory
allocation fails.

Change-Id: I8dac132dd4d0210938660ffbb82cbe44000d2a90
/frameworks/base/rs/java/android/renderscript/RenderScript.java
ef532f8435d47e68a3b718c861463e429b261682 16-Apr-2015 Tim Murray <timmurray@google.com> am 3d9c9093: am 91d2f27b: am 7f72f747: Merge "Add BNNM intrinsic."

* commit '3d9c9093d1d76d4aeb5f99b1746b65788c72736e':
Add BNNM intrinsic.
7f72f74766fed73ae9816fec6031a199f70d1428 16-Apr-2015 Tim Murray <timmurray@google.com> Merge "Add BNNM intrinsic."
9cb16a2f91c79845e5425fbf55f3b679fb18a4dd 01-Apr-2015 Tim Murray <timmurray@google.com> Add BNNM intrinsic.

Change-Id: I05fc9835786455e28d69f2b4ffe70c3292a01404
/frameworks/base/rs/java/android/renderscript/RenderScript.java
5024f20a85ed28e637fd61d0a2cb7c87a2e9322a 14-Apr-2015 Yang Ni <yangni@google.com> am 09339053: am 6ca1e45a: am 8704ae46: Merge "Add name to ScriptGroup2.Builder.create() method"

* commit '0933905375790eb850334b53fd6d0981bd40e007':
Add name to ScriptGroup2.Builder.create() method
35be56cce821d86f69026398ff9433e2d173b02f 03-Apr-2015 Yang Ni <yangni@google.com> Add name to ScriptGroup2.Builder.create() method

This name will be used to name the .so file generated for the
script group with fused kernels.

Change-Id: I46e351c8412740512f56b7915b14f36183c6eeaf
/frameworks/base/rs/java/android/renderscript/RenderScript.java
9509bfe46a96a724a9166b115b287f16862b9fc5 10-Apr-2015 Tim Murray <timmurray@google.com> am 72fcf9eb: am af61d43d: am 6d718c2f: Merge "Add support for setting the cache directory."

* commit '72fcf9eb1079312afd7bdbee167c759109af4244':
Add support for setting the cache directory.
47f31582b67f492d9e1523abd0d8b86c38ec007d 08-Apr-2015 Tim Murray <timmurray@google.com> Add support for setting the cache directory.

Change-Id: I2bf1874705b877a8a8262ab49b47fe8241e603d5
/frameworks/base/rs/java/android/renderscript/RenderScript.java
b6b17a575fa844b74d7673a41481ff4db6273ed8 07-Apr-2015 Stephen Hines <srhines@google.com> resolved conflicts for merge of 764f08ad to master

Change-Id: I0a22225b2d26b6d806de2dcc70ffba29c96865b3
e1e6c66198e628f0784e1731bbdb775da479075b 07-Apr-2015 Tim Murray <timmurray@google.com> Move cache dir to its own class.

This prevents us from loading the RS static initializer all the time.

Change-Id: I8cea7540e50251aba8c2f199f06f344f991e7d7f
/frameworks/base/rs/java/android/renderscript/RenderScript.java
6a420b5e0be235d35f319118eb4920f74a61dc5e 31-Mar-2015 Jason Sams <jsams@google.com> unhide RS apis

Change-Id: I30c3349c9222765ad7850890e0431bc6a6d3757a
/frameworks/base/rs/java/android/renderscript/RenderScript.java
ab452f70fc658fbc0b93da77ef8e67596dec2954 24-Mar-2015 Miao Wang <miaowang@google.com> am 2b30b73b: am 6f6f44b0: am b2b0c4c2: Merge "[RenderScript] Add create(Context, int) to be compatible with the thunker layer & minor tweaks."

* commit '2b30b73b017f10bc2ce514981b577c2efaeab739':
[RenderScript] Add create(Context, int) to be compatible with the thunker layer & minor tweaks.
a4e5adf955ad7dfde3081fa8307b2d1bf562473f 23-Mar-2015 Miao Wang <miaowang@google.com> [RenderScript] Add create(Context, int) to be compatible with
the thunker layer & minor tweaks.

bug:19888167
bug:19888339
Change-Id: Ib264c4ca48c990b3476456838047f73d95f6752f
/frameworks/base/rs/java/android/renderscript/RenderScript.java
db8cfd062ef52e46df08ecd561a3eac059af9354 19-Mar-2015 Jason Sams <jsams@google.com> am d8e891f4: am f75e4ca3: Merge "Make it harder to leak contexts"

* commit 'd8e891f474096c310f60ca6d2f737cdc0251003e':
Make it harder to leak contexts
e16da12b7b841dd4876d8c20af04991cdfcde831 19-Mar-2015 Jason Sams <jsams@google.com> Make it harder to leak contexts

Change-Id: Ied60b6428bedb200d7b5b627e8196fbf2b4151e1
/frameworks/base/rs/java/android/renderscript/RenderScript.java
8ab7eb4c02dcebd31194de06cd11c8b056982ad0 13-Mar-2015 Jason Sams <jsams@google.com> am bb8c910f: am d2e4a166: Merge "Remove dead path code"

* commit 'bb8c910fc12f304c97c94ee86a3a3da56afe8374':
Remove dead path code
a7e2509d8da69ab1c9e14b4ce6608786c572209a 11-Mar-2015 Jason Sams <jsams@google.com> Remove dead path code

This API was never shipped and the implementation
never finished.

Change-Id: I2491db216d6a7a8ea30628d791773f89da5fb4d2
/frameworks/base/rs/java/android/renderscript/RenderScript.java
de770528ec18445175ea2a1d025988c73e62d7c7 08-Mar-2015 Miao Wang <miaowang@google.com> am 989e03f1: am c1e2bf95: am 4b5af9bc: Merge "[RenderScript] Update the java API about Allocation copyTo & From FieldPacker"

* commit '989e03f144e8031f33af08945e845283dddcc8ad':
[RenderScript] Update the java API about Allocation copyTo & From FieldPacker
12d8a860b847170b3a751682efa151512e016542 08-Mar-2015 Miao Wang <miaowang@google.com> am ec89c1ea: am a61832c8: am 288e6f67: Merge "[RenderScript] AutoPadding & Unpadding for Vec3 Elements during copyTo & copyFrom."

* commit 'ec89c1ea731256cd0d71ee58733b2855e1e6e4fa':
[RenderScript] AutoPadding & Unpadding for Vec3 Elements during copyTo & copyFrom.
45cec0a9711f736df26fd097c6d74834e350f9bc 05-Mar-2015 Miao Wang <miaowang@google.com> [RenderScript] Update the java API about Allocation copyTo & From FieldPacker

Change-Id: I4e1b911d4cdfec8a841bc5a8bc615c64c50e8fc8
/frameworks/base/rs/java/android/renderscript/RenderScript.java
87e908dfdece91b5f504386d4901fa3342dc8083 03-Mar-2015 Miao Wang <miaowang@google.com> [RenderScript] AutoPadding & Unpadding for Vec3 Elements during
copyTo & copyFrom.

Change-Id: I10b6fb235717e181ebb30b92e4dbe23e6183a29c
/frameworks/base/rs/java/android/renderscript/RenderScript.java
e5ad00d1f58c734783497d2e40711fb1faaa848d 03-Mar-2015 Miao Wang <miaowang@google.com> am 5830e7a9: am 411473de: am caa8a8fb: Merge "[Renderscript] JAVA API update for Allocation.CopyTo add the following functions to make it more symmetric to copyFrom()."

* commit '5830e7a9fb56db24a101d7b45c6db970e38ed6f6':
[Renderscript] JAVA API update for Allocation.CopyTo add the following functions to make it more symmetric to copyFrom().
08c7116ab9cd04ad6dd3c04aa1017237e7f409ac 28-Feb-2015 John Spurlock <jspurlock@google.com> Remove unused imports in frameworks/base.

Change-Id: I031443de83f93eb57a98863001826671b18f3b17
/frameworks/base/rs/java/android/renderscript/RenderScript.java
c8e237e27165c7f7855ed0b077cfe5f1e54908ef 21-Feb-2015 Miao Wang <miaowang@google.com> [Renderscript] JAVA API update for Allocation.CopyTo
add the following functions to make it more symmetric to copyFrom().

- copy1DRangeToUnchecked, copy1DRangeTo
- copy2DRangeToUnchecked, copy2DRangeTo
- copy3DRangeToUnchecked, copy3DRangeTo
- setFromFieldPacker, 2D and 3D variants
- copyElementTo, (1D, 2D & 3D)

Change-Id: I6b896123e1c00cead552aa5b31a701b15dd70f85
/frameworks/base/rs/java/android/renderscript/RenderScript.java
d22a6f09dc4df8fd19b85bace5085aa099b90e53 20-Feb-2015 Jason Sams <jsams@google.com> Implement finalizer for RS contexts.

Fixes memory leak when apps forget to call .destroy() on the context.

Change-Id: Ida4685768e92cfe3875da38846d17b86cc386cd0
/frameworks/base/rs/java/android/renderscript/RenderScript.java
25207df658d6a8a3e885c7017fcc25702363583c 13-Jan-2015 Tim Murray <timmurray@google.com> Add BLAS intrinsic.

Change-Id: I95ddc46cb3f6217d2ead1091fd47450389544324
/frameworks/base/rs/java/android/renderscript/RenderScript.java
46ba27e3fdcf1ce3b940e8b2ec90fcd2c9b7fe43 07-Feb-2015 Jason Sams <jsams@google.com> Implement array types

Change-Id: I1b83f21ea2aeaa4b9f5934aadcb69d4a1c1fea20
/frameworks/base/rs/java/android/renderscript/RenderScript.java
be392ad35e29b17ed54fdbbbb8dd3e80fc1022b9 24-Jan-2015 Yang Ni <yangni@google.com> Adds invocable functions to ScriptGroup

This also includes InvokeID support

Change-Id: I5b59df166ea30b309b8dd9623825ac0e72d03856
/frameworks/base/rs/java/android/renderscript/RenderScript.java
ebf63408d2b5181aeb7d83adf0f7ab95946a16d4 16-Jan-2015 Yang Ni <yangni@google.com> Pass in code cache directory when creating a script group.

Change-Id: Ia73ea917a126a5055ec97f13d90a5feaafd6a2f5
/frameworks/base/rs/java/android/renderscript/RenderScript.java
231df77eff4e31fead0dfadee6ea6ead980b24ea 22-Jan-2015 Jason Sams <jsams@google.com> Merge "Fix default compute thread priority"
c9870c145f820b7fc8e4a1f2879f4f452fc6ae01 21-Jan-2015 Jason Sams <jsams@google.com> Fix default compute thread priority

bug 16651474

Compute inherited graphics default thread priority of Display. This
was not intended.

Change-Id: I0dd9a230ce8ceba64e971b024cbe518927cd2550
/frameworks/base/rs/java/android/renderscript/RenderScript.java
a5835a2e5fdb98fdf03a223ddf7e082ba1020807 06-Nov-2014 Jason Sams <jsams@google.com> Add FP16 types to the list of RenderScript types.

Change-Id: Ibf9a6d391fb4d6a5c4b4e05ab73fb58bd74dc586
/frameworks/base/rs/java/android/renderscript/RenderScript.java
281c3252510bcf4120d17fa0125f369c2c78f162 24-Oct-2014 Yang Ni <yangni@google.com> New Script Group API.

Change-Id: I73d3572276a38dac775025b472ba229ad8770c84
/frameworks/base/rs/java/android/renderscript/RenderScript.java
d11a658db15c9c78510a7de32c0460bc4fa129ce 16-Dec-2014 Tim Murray <timmurray@google.com> Fix typo with register native allocation.

bug 18579193

Change-Id: I42d30709b79a37d6a4126559a511e98e9c8d4808
/frameworks/base/rs/java/android/renderscript/RenderScript.java
aefbd5f97c8cfe6a553a166be8ebeb20a2420410 12-Dec-2014 Tim Murray <timmurray@google.com> Enable native tracking for RS contexts to improve GC behavior.

This should prevent apps from leaking RS contexts as easily.

bug 18579193

Change-Id: I2d943ce4443ce7cb90ebdd3dd37d338eda6df3a2
/frameworks/base/rs/java/android/renderscript/RenderScript.java
d0080ee004e0477cfd51fdab456f4e7f45ed42de 19-Aug-2014 Tim Murray <timmurray@google.com> am 7fa25bc1: am 3c02b020: Merge "Fix IO_INPUT with 64-bit." into lmp-dev

* commit '7fa25bc1269d3ba2db79f32acb17d80194cbadce':
Fix IO_INPUT with 64-bit.
b730d866a0f4f56c103420f818f7f5ec6b8fd618 19-Aug-2014 Tim Murray <timmurray@google.com> Fix IO_INPUT with 64-bit.

bug 16846318
bug 17006933

Change-Id: Ic13ef26875d8a6fab1ffb542d62038b768a536ff
/frameworks/base/rs/java/android/renderscript/RenderScript.java
93697c5f8eba2e0e9e67222f5505a6cd44416022 18-Aug-2014 Stephen Hines <srhines@google.com> am 4ae9a6d5: am 42895561: Merge "Collapse code paths for single- and multi-input kernels."

* commit '4ae9a6d5c517f67d9929cc43568c6b7e3b4dfe23':
Collapse code paths for single- and multi-input kernels.
be7b1defb6b11920703b241ba5815fb09487bb02 15-Jul-2014 Chris Wailes <chriswailes@google.com> Collapse code paths for single- and multi-input kernels.

This patch simplifies the RenderScript JNI layer by replacing six functions
with a single funciton. This new function now handles all previous cases.
Functions in android.renderscript.script have been updated to use this new JNI
function.

Change-Id: I6cd5448534c38123d51a589339bbeb7e98453e73
/frameworks/base/rs/java/android/renderscript/RenderScript.java
42a33d5bbf228298bb1b0506ea711b890f326e9e 13-Aug-2014 Stephen Hines <srhines@google.com> am b75dc06b: am 4179e889: Merge "Revert "Collapse code paths for single- and multi-input kernels.""

* commit 'b75dc06bbe2fdff1a4c9baa69eb92a849c22715d':
Revert "Collapse code paths for single- and multi-input kernels."
c27ebda05e89e927a97f275791ab807743134a42 13-Aug-2014 Stephen Hines <srhines@google.com> am 5aaeb8e8: am 24a2ee66: Merge "Collapse code paths for single- and multi-input kernels."

* commit '5aaeb8e89eb0afd710ba9586f5e314b76e806116':
Collapse code paths for single- and multi-input kernels.
c9c7daf69b32c0e72a3b99379cc5116c1647f24e 13-Aug-2014 Stephen Hines <srhines@google.com> Revert "Collapse code paths for single- and multi-input kernels."

This reverts commit eb3470219dea322efa93eb4b5457813ce71d0c5d.

Change-Id: Id943abf953e832ef831318e6699d4b46e9b46201
/frameworks/base/rs/java/android/renderscript/RenderScript.java
eb3470219dea322efa93eb4b5457813ce71d0c5d 15-Jul-2014 Chris Wailes <chriswailes@google.com> Collapse code paths for single- and multi-input kernels.

This patch simplifies the RenderScript JNI layer by replacing six functions
with a single funciton. This new function now handles all previous cases.
Functions in android.renderscript.script have been updated to use this new JNI
function.

Change-Id: I77e4b155cc7ca1581b05bf901c70ae53a9ff0b12
/frameworks/base/rs/java/android/renderscript/RenderScript.java
949610653fdf55dd2cb3c846047e6aa2c6d73f0d 11-Jun-2014 Chris Wailes <chriswailes@google.com> Adds support for multi-input kernels to Frameworks/Base/RS.

* Added a new JNI call to pass arrays of Allocations to the RS runtime.
* Added a new version of ForEach that takes an array of Allocations.
* Added some casts to disambiguate existing calls to forEach.

Change-Id: I46d2834c37075b2a2407fd8b010546818a4540d1
/frameworks/base/rs/java/android/renderscript/RenderScript.java
48ba506dfa591d0bcd79a088457eb95a9bd4c575 09-Jul-2014 Stephen Hines <srhines@google.com> resolved conflicts for merge of 31012e2c to master

Change-Id: I2e24e0457570d7d856293637a553f0242a97a83b
08d3775cbef1ddcb35d194d8239f82d9c13600bd 07-Jun-2014 Tim Murray <timmurray@google.com> am b43bc047: Merge "Change flags to use int instead of long." into lmp-preview-dev

* commit 'b43bc0475490fe2a20c2ddeed1c34b55b8f8a152':
Change flags to use int instead of long.
fd710e705ac4564bc9c8a15a91857eb1cff75e91 06-Jun-2014 Tim Murray <timmurray@google.com> Change flags to use int instead of long.

bug 15429629

Change-Id: Ideb983b17aa3c146d23f2be6bb0e9808cb6725b7
/frameworks/base/rs/java/android/renderscript/RenderScript.java
56f9e6f8d5436d50530807950661e66ca5efe2bb 16-May-2014 Tim Murray <timmurray@google.com> Add support for mixed 32/64 APKs using RenderScript.

Change-Id: I8901a1547d180c9dcef320f86d07a5b82551fb5c
/frameworks/base/rs/java/android/renderscript/RenderScript.java
f0c62b26765f1e0ec0df8fceeecb77fca690c29a 16-May-2014 Tim Murray <timmurray@google.com> Add support for mixed 32/64 APKs using RenderScript.

Change-Id: I8901a1547d180c9dcef320f86d07a5b82551fb5c
/frameworks/base/rs/java/android/renderscript/RenderScript.java
b69c791b7995afa5d74d081ef13ccc49a8a7e8da 21-May-2014 Jason Sams <jsams@google.com> Validate RenderScript context creation flags

Sync the IDs to that of the native interface.

Change-Id: I7516c1ea4f4a93844ddb8397b2fc1e79ff8d6b68
/frameworks/base/rs/java/android/renderscript/RenderScript.java
26e9051957dc3255cce9c5336c4a32f280c3eb4d 07-May-2014 Jason Sams <jsams@google.com> Add flags to context creation for RS

We have a number of context options exposed though native
that were not available though the Java API. This brings them
to parity. Will finish plumbing in a follow on CL.

Change-Id: I8c65ee743d0e750e418304127b84088f25176c38
/frameworks/base/rs/java/android/renderscript/RenderScript.java
5341f881e0372c1c2af570d42fbe61a6500f315c 19-Mar-2014 Glenn Kasten <gkasten@android.com> am 4f346bf0: am ff1e1d99: am 240d5638: am c1f3d4c1: Merge "Fix 64 bit compile failures in renderscript"

* commit '4f346bf0ffe1c596ca261dfec23c50977de77d82':
Fix 64 bit compile failures in renderscript
78c0ce56129d8109fa2427de769f4d25a971d162 19-Mar-2014 Narayan Kamath <narayan@google.com> Fix 64 bit compile failures in renderscript

Use uintptr_t for pointers (and not uint32_t) and
also don't assume that size_t is 32 bits wide.

Also uses java longs for passing pointers across
JNI boundaries.

Change-Id: Ie52bd8ae967fbddc911eda3a43cc799d53bbce66
/frameworks/base/rs/java/android/renderscript/RenderScript.java
659a05a25c006359d8f119e7b66a9827b22e3c2a 06-Mar-2014 Jason Sams <jsams@google.com> am edf0b79d: am 24ea88a9: am 9a9916b5: am 2383f220: Merge "Validate objects are from the correct context."

* commit 'edf0b79d55df17fddb6b96de32f34ffccc8ec2d4':
Validate objects are from the correct context.
678cc7fe9fef00fb3381e64f95cc6907796bcd8e 06-Mar-2014 Jason Sams <jsams@google.com> Validate objects are from the correct context.

Change-Id: I7d87b0e253b8d2e36d1aed790cfe3a7dd23e158f
/frameworks/base/rs/java/android/renderscript/RenderScript.java
11e4317555fdabeecf28fe8a70bfecb216224ad1 28-Feb-2014 Narayan Kamath <narayan@google.com> am 62d675c2: am 0d3548be: am d138029d: am 14420e29: Merge "AArch64: Use long[] for RS id array"

* commit '62d675c240fd87cb987c86ae4f6ac17dc13374c8':
AArch64: Use long[] for RS id array
14420e29abc0f16f818ddaf606515861ba69ae68 28-Feb-2014 Narayan Kamath <narayan@google.com> Merge "AArch64: Use long[] for RS id array"
b542e8e128178560b7e36d476890e66b4e5a69ff 15-Feb-2014 Tim Murray <timmurray@google.com> am bdb04f02: am 17b7ff4a: am b25a6936: am d7043f00: Merge "Add hidden minor version ID for support lib workarounds."

* commit 'bdb04f025ce34b0240f01961c43d8156a78e27a2':
Add hidden minor version ID for support lib workarounds.
d7043f0084237200b6aab5d101c8ab6d3ab495c6 14-Feb-2014 Tim Murray <timmurray@google.com> Merge "Add hidden minor version ID for support lib workarounds."
9807155b11a25fb6068edc9b1cd82928ac2f05de 12-Feb-2014 Ashok Bhat <ashok.bhat@arm.com> AArch64: Use long[] for RS id array

Change-Id: Ia5145a547c0d13c7d6f1bb4d8f5472be62481bd9
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
/frameworks/base/rs/java/android/renderscript/RenderScript.java
f152d950854e3052c5d73aefa43d377c10d7d814 10-Feb-2014 Narayan Kamath <narayan@google.com> am 33a608a0: am 578d4f5f: am 56062983: Merge "AArch64: Use long for pointers in RS Java/JNI code"

* commit '33a608a0a326d9671bffd6750cb5521d6687cc57':
AArch64: Use long for pointers in RS Java/JNI code
67cc2d033e90572a198898e1814982bea71a2288 07-Feb-2014 Tim Murray <timmurray@google.com> Add hidden minor version ID for support lib workarounds.

Change-Id: I7940e32c78caaab351fb28d92e5fadbea6292b27
/frameworks/base/rs/java/android/renderscript/RenderScript.java
0e0c0885aed99a119052a792becb5a0c5a93632d 04-Feb-2014 Ashok Bhat <ashok.bhat@arm.com> AArch64: Use long for pointers in RS Java/JNI code

Changes include
[x] Some JNI functions, with return type jlong, casts
pointer to jint before returning it. This has been fixed.

[x] Minor JNI function prototype changes where
formal paramter type has been changed to a JNI
type (int to jint for example).

[x] long is used for ScriptC, Sampler, Font, ProgramStore
handles as they can be 64-bit.

[x] A new hidden constructor ScriptC(long, RenderScript)
has been added. This should eventually replace public
API method ScriptC(int, RenderScript).

[x] Font and FileA3D use getNativeAsset instead of getAssetInt
to get Asset Handles. The getAssetInt method will be
deprecated in favor of getNativeAsset, as the former does
not support 64-bit.

[x] rsnPathCreate method accepts loop as an int. This should
be long as the underlying RS function assumes this to be
a pointer.

Change-Id: I919d857e5933febe63966049da83de9f9adee6f5
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
/frameworks/base/rs/java/android/renderscript/RenderScript.java
504abb362660f87239103be182a2e717a98ff32a 07-Jan-2014 Tim Murray <timmurray@google.com> Enable asynchronous destruction of BaseObjs.

Change-Id: Iaddf8041a3c870a986ec8999e6ccc3aede38fc4c

Conflicts:
rs/java/android/renderscript/BaseObj.java
/frameworks/base/rs/java/android/renderscript/RenderScript.java
355707e4f665904e31d9f5fcff1e3921f7db8cdd 17-Dec-2013 Tim Murray <timmurray@google.com> Move RenderScript from graphics/ to new fw/base subdirectory rs.

Change-Id: I30b6633578f063840e1bdbcc9ba513b727912a6d
/frameworks/base/rs/java/android/renderscript/RenderScript.java
06b4567559bbf39eccfa9c28152c8e5e067cf576 07-Jan-2014 Tim Murray <timmurray@google.com> Enable asynchronous destruction of BaseObjs.

Change-Id: Iaddf8041a3c870a986ec8999e6ccc3aede38fc4c
/frameworks/base/rs/java/android/renderscript/RenderScript.java
d1576fb039f018ea4d55abbb2c03d542011be399 17-Dec-2013 Tim Murray <timmurray@google.com> Move RenderScript from graphics/ to new fw/base subdirectory rs.

Change-Id: I30b6633578f063840e1bdbcc9ba513b727912a6d
/frameworks/base/rs/java/android/renderscript/RenderScript.java