summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/Script.java
Commit message (Collapse)AuthorAgeFilesLines
* Deprecate RS Java APIs.Xusong Wang2021-03-011-0/+5
| | | | | | | | | | | This CL marks RenderScript Java APIs as deprecated. Bug: 168711199 Test: m Test: CtsRenderscriptTestCases Test: CtsRsCppTestCases Test: CtsRsBlasTestCases Change-Id: Id271a794679d445c480d62c87ae6c8150f6901f8
* Use new UnsupportedAppUsage annotation.Artur Satayev2020-01-081-1/+1
| | | | | | | | | | Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv \ git diff HEAD^ HEAD | grep '^[+-][^+-]' | grep -v '.import' Change-Id: I853372f3c6fef905553bb31be4f1bb48df735f7a
* Revert "Use new UnsupportedAppUsage annotation."Austin Wang2019-12-191-1/+1
| | | | | | | | This reverts commit a5264903e22bc741add895133474ea13a370de4c. Reason for revert: Droidcop-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?branch=git_master&target=sdk_phone_armv7-sdk&lkgb=6083299&lkbb=6085371&fkbb=6083313, bug b/146533269 Change-Id: Ie5b031d7b277cf0e09b0a9776b26bf74f5f69e70
* Use new UnsupportedAppUsage annotation.Artur Satayev2019-12-181-1/+1
| | | | | | | | | Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv \ git diff HEAD^ HEAD | grep '^[+-][^+-]' | grep -v '.import' Change-Id: I087bb1cecbe59f1cf0c2e770c735d7a433722c6f
* Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-061-0/+3
| | | | | | | | | | | | | | | | | For packages: android.renderscript This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Change-Id: I016f6e720e79c48afe44f4690b5dd99fc81ae780 Merged-In: I1aa8ebca448547031b426a7b305c5c3d6fcf2652
* Do not CloseGuard KernelID or FieldIDYang Ni2017-06-131-2/+0
| | | | | | | | | | | | | | | | | | | | Bug: 28053584 Stop CloseGuarding for two reasons: 1) KernelID and FieldID objects are constructed in auto-generated (RenderScript reflected) Java code. It would be impossible for a user to explicitly call destroy() on them. Guarding them would leave a lot of noisy warnings in logcat. 2) These KernelID and FieldID objects are not big compared to other RenderScript objects, e.g. Allocations. They occupy almost no native resources except for a native pointer. Leaving their destruction to Java GC would be completely acceptable, since any delay in reclaiming them is unlikely to cause memory pressure. Test: CTS on x86_64 emulator Change-Id: I587b5561a0b2bdbf0b2e95bf2995c20d5f5faf9d
* Delete simple reduction implementation.David Gross2016-06-021-30/+1
| | | | | Bug: 27298560 Change-Id: I8a89c9df753d12ee8af06008d424e77bb916cd8f
* Merge "Added CloseGuard for BaseObj" into nyc-devYang Ni2016-04-011-0/+15
|\
| * Added CloseGuard for BaseObjYang Ni2016-03-311-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 27719830 To turn on warnings, apps have to add to their Activity.onCreate() method the following code. StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder() .detectLeakedClosableObjects() .penaltyLog() .build()); For Slang generated ScriptC derived classes, we assume their constructors won't throw exceptions after calling the ScriptC constructor. In addition, ScriptIntrinsic derived classes do not seem to throw exceptions in their constructors either. Therefore, we can leave the guard.open() call in the Script constructor. This may be only an approximation, but allows us to add CloseGuard for script objects without making changes to slang. Change-Id: I77ed45239a60b85af5c811dee6c124fb53da9060 (cherry picked from commit eb4dd08ec132f83745b8b28fa7da58eb4478b5b9)
* | [RenderScript] Update the documentation of Script.LaunchOptionsMiao Wang2016-03-291-14/+15
|/ | | | | | | | | | Bug: 26916665 - Add description of the endArg. - Update the example. - Update the incorrect description. Change-Id: Idd07db5d790e2d6462fff9cb580115ec45cfd4f0
* Unhide Script::reduce() interface for general reduction.David Gross2016-01-251-1/+0
| | | | | | Bug: 23535724 Change-Id: I7a43622954de9f4168f7e4376f39d6ec54191c03
* Add general reduction plumbing starting with Java Script::reduce().David Gross2016-01-151-1/+41
| | | | | | | Requires coordinated change in frameworks/rs. Bug: 23535724 Change-Id: I2fee6750cf542948d8fa87a98441002c4d84f36e
* am ed3ffe0f: am 6430812a: Merge "RenderScript: implement a Script entry ↵Stephen Hines2015-07-231-1/+29
|\ | | | | | | | | | | | | point for calling a reduce-style kernel." * commit 'ed3ffe0fc86de016ff2b4231e2fcc74a6119f6c7': RenderScript: implement a Script entry point for calling a reduce-style kernel.
| * RenderScript: implement a Script entry point for calling aMatt Wala2015-07-211-1/+29
| | | | | | | | | | | | | | | | | | | | | | 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
| * Merge "Fix Allocation-less launches"Jason Sams2015-05-051-2/+2
| |\
| | * Fix Allocation-less launchesJason Sams2015-04-161-2/+2
| | | | | | | | | | | | Change-Id: Ic4c6644072a11aab9a273070be5734519136f685
| * | Move new script group API into ScriptGroup classYang Ni2015-04-221-2/+0
| |/ | | | | | | | | | | | | | | | | And mark existing methods and builder deprecated. Removed ScriptGroup2 class. Renamed nested class UnboundValue to Input. Marked classes Closure, Future, and Input as final. Change-Id: I362910c115e9d0173dc515674e08bf4878232879
* | Fix Allocation-less launchesJason Sams2015-05-051-2/+2
| | | | | | | | | | | | | | | | | | | | Cherry-pick fix from AOSP. Error check for kernel launch was generating a false positive. bug 20690242 Change-Id: Ic4c6644072a11aab9a273070be5734519136f685
* | Update LaunchOptions descriptionJason Sams2015-03-301-1/+17
| | | | | | | | Change-Id: I7425c9ea9d82ed54950557e93aa46b69ebc02c23
* | unhide RS apisJason Sams2015-03-301-6/+3
|/ | | | Change-Id: I30c3349c9222765ad7850890e0431bc6a6d3757a
* Frameworks/base: Fix potential NPE in ScriptAndreas Gampe2015-03-181-3/+8
| | | | | Bug: 19797138 Change-Id: I5cd9394bd2c0f7c044c1f2f24665384fa797cd97
* Frameworks/base: Check before foreach in ScriptAndreas Gampe2015-03-151-2/+4
| | | | | | | According to the if below, ains == null is potentially valid. But the foreach loop would throw a NullPointerException. Change-Id: I4460fb1357eaa3abfe0ab9a21effb608f474ab51
* Adds invocable functions to ScriptGroupYang Ni2015-02-041-0/+40
| | | | | | This also includes InvokeID support Change-Id: I5b59df166ea30b309b8dd9623825ac0e72d03856
* Collapse code paths for single- and multi-input kernels.Chris Wailes2014-08-181-46/+68
| | | | | | | | | 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
* Revert "Collapse code paths for single- and multi-input kernels."Stephen Hines2014-08-131-68/+46
| | | | | | This reverts commit eb3470219dea322efa93eb4b5457813ce71d0c5d. Change-Id: Id943abf953e832ef831318e6699d4b46e9b46201
* Collapse code paths for single- and multi-input kernels.Chris Wailes2014-08-071-46/+68
| | | | | | | | | 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
* Adds support for multi-input kernels to Frameworks/Base/RS.Chris Wailes2014-07-071-1/+48
| | | | | | | | * 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
* Validate objects are from the correct context.Jason Sams2014-03-051-0/+9
| | | | Change-Id: I7d87b0e253b8d2e36d1aed790cfe3a7dd23e158f
* Check that bound allocations are 1DJason Sams2014-01-311-0/+7
| | | | | | | | We do not support higher order bound allocations. The stride is not available to the script so they cannot walk the allocation correctly. Change-Id: I9447a5d43c3ae1b88fc9522628a17bd5a317ffc6
* Move RenderScript from graphics/ to new fw/base subdirectory rs.Tim Murray2014-01-311-0/+464
Change-Id: I30b6633578f063840e1bdbcc9ba513b727912a6d