summaryrefslogtreecommitdiff
path: root/support
AgeCommit message (Collapse)Author
2016-03-29[RenderScript] Update the documentation of Script.LaunchOptionsMiao Wang
Bug: 26916665 - Add description of the endArg. - Update the example. - Update the incorrect description. Change-Id: I89fda42dc6a8bdbf3766916d84f7937275f96a42
2016-03-28Merge "Turn FORTIFY back on for the RS support library." am: cfc67d1Stephen Hines
am: db902fe * commit 'db902fec2a919444238c745fb85aeb2e74b5ff99': Turn FORTIFY back on for the RS support library.
2016-03-28Turn FORTIFY back on for the RS support library.Stephen Hines
Bug: http://b/21084950 This started out disabled a long time ago, because of problems with the NDK implementation (and Clang, I assume). It works now, so there is no need to keep it disabled. Change-Id: I43cee37d9ec9789701fa889794d6e321cbca3c41
2016-03-25Removed unused variablesYang Ni
Bug: 27272549 Also avoided alloca(0) Change-Id: I64d0baf3ccd1da37851f337293d356973a12a9d7
2016-03-24Added new files to libRSSupportYang Ni
Bug: 26546579 We added new files in recent refactoring of libRS.so. The same files are needed by libRSupport.so ag/890566 Change-Id: Iac58695316edc9aff87ade2bac3b4a44d1a68b23 (cherry picked from commit 3d23e5fff4901de118a36101a1926de2f5a8db4b)
2016-03-24Merge "Added new files to libRSSupport" into nyc-devYang Ni
am: 437fd7f * commit '437fd7f47c692b376b87908409e44ae3d11cf85f': Added new files to libRSSupport
2016-03-24Merge "Added new files to libRSSupport" into nyc-devYang Ni
2016-03-23Added new files to libRSSupportYang Ni
Bug: 26546579 We added new files in recent refactoring of libRS.so. The same files are needed by libRSupport.so ag/890566 Change-Id: Iac58695316edc9aff87ade2bac3b4a44d1a68b23
2016-03-19Merge "Fix possibly uninitialized access to strideIn, and turn on -Werror." ↵Stephen Hines
am: d142ace am: e9e973e * commit 'e9e973e34738ecb58ab21f0adf47583384a4affd': Fix possibly uninitialized access to strideIn, and turn on -Werror.
2016-03-18Fix possibly uninitialized access to strideIn, and turn on -Werror.Stephen Hines
Change-Id: Ia3f333761e512490a9db61e74c56c1d56a6d1dc5
2016-03-18[RenderScript] Stop targeting froyo for RenderScript support lib.Miao Wang
Bug: 27746233 Change-Id: I4a2779e303d95ed5ac3773c004ae030b167448b5 (cherry picked from commit a4aac2d6cbcad371d3f7084205174a1fe84d2fe0)
2016-03-12Merge "[RenderScript] Stop targeting froyo for RenderScript support lib." ↵Miao Wang
am: 62eb3105e5 am: 2c514135f8 * commit '2c514135f8396d159d734af0ede85e1065a71d7c': [RenderScript] Stop targeting froyo for RenderScript support lib.
2016-03-11[RenderScript] Stop targeting froyo for RenderScript support lib.Miao Wang
Change-Id: I4a2779e303d95ed5ac3773c004ae030b167448b5
2016-02-29Merge "Compatibility library support for general reduction." into nyc-devDavid Gross
2016-02-26Compatibility library support for general reduction.David Gross
Requires corresponding change in frameworks/rs. Bug: 23535724 (cherry picked from commit 62a63e5b0d6548c3ff8ade45235739008f6589f1) Change-Id: I171eda6388115e19bea9c51c3c68a857d866cf25
2016-02-26[RenderScript] Remove LOCAL_JACK_ENABLED := disabledMiao Wang
am: ea5ddd5d64 * commit 'ea5ddd5d6441f0be21fc5d3c4107028046e533a0': [RenderScript] Remove LOCAL_JACK_ENABLED := disabled
2016-02-26[RenderScript] Remove LOCAL_JACK_ENABLED := disabledMiao Wang
Bug: 27338966 - Now fw/rs/update_rs_prebuilts.sh explicitly ask JACK to produce the jar file for support lib, LOCAL_JACK_ENABLED := disabled is not necessary anymore. Change-Id: I3aa199e86d253106bce7f47ecfc25b17e991e958 (cherry picked from commit ea5ddd5d6441f0be21fc5d3c4107028046e533a0)
2016-02-26Merge "Compatibility library support for general reduction." am: ae3c3ce3d1David Gross
am: 7ed0ada999 * commit '7ed0ada999320fae155dcc0ebbbb2c99ff2ccc96': Compatibility library support for general reduction.
2016-02-26[RenderScript] Remove LOCAL_JACK_ENABLED := disabledMiao Wang
Bug: 27338966 - Now fw/rs/update_rs_prebuilts.sh explicitly ask JACK to produce the jar file for support lib, LOCAL_JACK_ENABLED := disabled is not necessary anymore. Change-Id: I3aa199e86d253106bce7f47ecfc25b17e991e958
2016-02-26Merge "Compatibility library support for general reduction."David Gross
2016-02-26Merge "Pin support libraries to Java 1.7 so they can be used with dx"Neil Fuller
2016-02-25Pin support libraries to Java 1.7 so they can be used with dxNeil Fuller
The .jar artifacts must contain v51 class files to prevent them being rejected by dx. Bug: 26753820 Bug: 27353172 Bug: 27338966 (cherry-picked from commit e1cd5a1f80010eece43cb4608505fd39f4832c00) Change-Id: I04f5f32aea99fdc680305a273bae3bc3fff884c5
2016-02-25Pin support libraries to Java 1.7 so they can be used with dxNeil Fuller
The .jar artifacts must contain v51 class files to prevent them being rejected by dx. Bug: 26753820 Bug: 27353172 Bug: 27338966 Change-Id: I03a881a86bb6e3fcaa4ccb33e6c0615157ee363f
2016-02-24[RenderScript] Make support lib use c++_static instead ofMiao Wang
stlport_static. Bug: 27230989 Change-Id: Ia31a0868ef9e21ac98b7da81fb6daa4a4f49669a (cherry picked from commit 810fd8ca9f301fd0c1efa873e26fcd26c70b944c)
2016-02-24[RenderScript] Make support lib use c++_static instead ofMiao Wang
stlport_static. Bug: 27230989 Change-Id: Ia31a0868ef9e21ac98b7da81fb6daa4a4f49669a
2016-02-24Compatibility library support for general reduction.David Gross
Requires corresponding change in frameworks/rs. Bug: 23535724 Change-Id: Ib5d047470ce76edbf02fb025a16624c3192562f2
2016-02-17[RenderScript] Fix potential leak in RS JNIMiao Wang
Bug: 27145639 Change-Id: I4d0759c3658dd3de3026237a670bdfb07fd6d268 (cherry picked from commit 11fdcf704d79b0609887069cecab51dd964fa4b2)
2016-02-11[RenderScript] Fix potential leak in RS JNIMiao Wang
Bug: 27145639 Change-Id: I4d0759c3658dd3de3026237a670bdfb07fd6d268
2016-01-31Merge "Remove unused rsCpuRuntimeMathFuncs.cpp file." am: 7362a90567Stephen Hines
am: eae1841793 * commit 'eae184179377638614966b7772feeab31b785289': Remove unused rsCpuRuntimeMathFuncs.cpp file.
2016-01-30Remove unused rsCpuRuntimeMathFuncs.cpp file.Stephen Hines
Cleanup work for the runtime library merged the contents of this file into another. Change-Id: I3147b90a6d105eda9f27d38f67ac7bbef614d758
2016-01-15Avoid absolute path loading .so after MYang Ni
Bug: 26548955 Some apps have unpacked APKs, e.g., Google Camera. Using absolute path for shared libraries provided by the app will prevent them from loading. Fixed this by limiting usage of the absolute path to API levels older than M. Updated the bug number comment in the code so that they are clickable. Bumped the SDK level to 23 for RenderScript support lib build, so that we can use the proper API level constant defined in android.os.Build.VERSION_CODES. Change-Id: I9b6d9efed380e3e077e1efeabea324d4c01a7f0b (cherry picked from commit e214512fee6106909d3c6de59d28c307d71236c1)
2016-01-15Avoid absolute path loading .so after MYang Ni
Bug: 26548955 Some apps have unpacked APKs, e.g., Google Camera. Using absolute path for shared libraries provided by the app will prevent them from loading. Fixed this by limiting usage of the absolute path to API levels older than M. Updated the bug number comment in the code so that they are clickable. Bumped the SDK level to 23 for RenderScript support lib build, so that we can use the proper API level constant defined in android.os.Build.VERSION_CODES. Change-Id: I9b6d9efed380e3e077e1efeabea324d4c01a7f0b
2015-12-15Merge "[RenderScript] Add API to map Allocation mallocptr to Java ↵Miao Wang
ByteBuffer" am: 8bcba7a552 am: aa97c90326 * commit 'aa97c90326e2830f03da9b70a5be66e9d56d739a': [RenderScript] Add API to map Allocation mallocptr to Java ByteBuffer
2015-12-15[RenderScript] Add API to map Allocation mallocptr to Java ByteBufferMiao Wang
- Construct the ByteBuffer using the AllocationGetPointer when running on L+ devices, otherwise create a read-only ByteBuffer and explicitly copy the data from Allocation to it. - 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. Bug: 25926361 Change-Id: I3ac187ffc598d07362abb704ec3393ae2b8b892a
2015-12-09Add 23.1.1 support library API files am: 8868c3d91aChris Banes
am: 4b9aa834b8 * commit '4b9aa834b8cc5954335af50aff11a1df9ff12522': Add 23.1.1 support library API files
2015-12-09Add 23.1.1 support library API filesChris Banes
Change-Id: Ibf7beecbb899b7480dec373a969afab751febb75
2015-11-13Various fixes in setting globals in a script groupYang Ni
Bug: 25602504 1) Passing floating point values into a script group was broken, since they were casted to long values. Fixed that in the frameworks implementation by taking the raw bits instead. 2) Passing 64-bit values into a script group was broken on 32-bit platforms, since they were casted to pointer-sized integers (uintptr_t) in the JNI code. Fixed that by casting to int64_t instead. 3) Setting global variables of Allocation type in a script group was broken. The special size value -1 was used to indicate the value is an Allocation. However, size was casted to size_t in the JNI code. Fixed that by using signed integers. Change-Id: Ifff099a76be7707df7b67c388395f5a00f9cae66
2015-11-07Merge "[RenderScript] Load from the full path of librsjni and libRSSupport."Miao Wang
2015-11-06[RenderScript] Load from the full path of librsjni and libRSSupport.Miao Wang
- For API 9+ load from the full path of librsjni, libRSSupport. - Enable logging of critical error. - Log the version of both JAVA and JNI. Bug: 25226912 Change-Id: I357398634ec3bfd70c71e005241c5a66650bdba6
2015-10-23Merge "Fix improper declaration/use of pointer."Miao Wang
am: a4567ab388 * commit 'a4567ab388e270760935673affec2e0d1682fbe7': Fix improper declaration/use of pointer.
2015-10-23Fix improper declaration/use of pointer.Miao Wang
https://code.google.com/p/android/issues/detail?id=61547 This variable is shadowing the outer "ptr" declaration, resulting in a potential NULL pointer being passed to the message API. Previous CL in fw/base/rs: Change-Id: If96bfae8d5e874e12597182678a180ba137b78da Change-Id: I46ec4eceb197f0e78769c764edb9884d1488da11
2015-10-12am 35bb8589: am 14222d5d: [RenderScript] pass correct length of ains to BLAS ↵Miao Wang
functions. * commit '35bb85896bb2adafb8688602d04d92810dbed59b': [RenderScript] pass correct length of ains to BLAS functions.
2015-10-09[RenderScript] pass correct length of ains to BLAS functions.Miao Wang
bug: 24540091 Change-Id: I7b7b42041d2241c265c15f5b92394f6b7cef8c2b (cherry picked from commit 5df13a81a731c6486d67ee24d7eb74988cd2366f)
2015-10-07am b1d35575: Add 23.1.0 API filesChris Banes
* commit 'b1d3557501182e6335b1a25f778e27f7e6bfd689': Add 23.1.0 API files
2015-10-07Add 23.1.0 API filesChris Banes
Also renamed the 23.0.0 files to match the naming scheme. Change-Id: I48aca5ff1c024186ff8f2f768ff078420aa6cf16
2015-10-05am 4d70a806: Merge "Retry if interrupted before mMessageThread has joined."Miao Wang
* commit '4d70a8068fdab1ea8003446cdd70264adffe7d8b': Retry if interrupted before mMessageThread has joined.
2015-10-05Retry if interrupted before mMessageThread has joined.Miao Wang
- Taking the same change from pirama in fw/base/rs: I3213091a0e996449bceb403dffca3063786d5a65 I452124915ea3f19610e6d4a3411d741f2f604af2 - 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. - Interrupt current thread if InterruptedException is received during Thread.join(). Also, log the interruption. Change-Id: Iaba078318141eb74d0cf20e00e47be0c8edde59f
2015-09-30am ea6952c2: Merge "[RenderScript] pass correct length of ains to BLAS ↵Miao Wang
functions." * commit 'ea6952c2aff3714798e706f83c280f92defa0919': [RenderScript] pass correct length of ains to BLAS functions.
2015-09-30[RenderScript] pass correct length of ains to BLAS functions.Miao Wang
bug: 24540091 Change-Id: I7b7b42041d2241c265c15f5b92394f6b7cef8c2b
2015-09-22am e3bbb6a5: Merge "[RenderScript] making the gemmlowp token more descriptive"Miao Wang
* commit 'e3bbb6a575d60e382e2c7882803be078db983d21': [RenderScript] making the gemmlowp token more descriptive