History log of /frameworks/base/rs/java/android/renderscript/Font.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
6484b6be5ca5233614d0a8991a5d909543824fc7 24-Mar-2016 Yang Ni <yangni@google.com> Added CloseGuard for BaseObj

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)
/frameworks/base/rs/java/android/renderscript/Font.java
6f09d08a26a902d9476e4f32530970e8504232b7 12-Jun-2014 Stephen Hines <srhines@google.com> Switch from Droid -> Noto for RS fonts.

Bug: 15436348
Change-Id: Ie62092538c7d865dcaba668392a4397baef725ec
/frameworks/base/rs/java/android/renderscript/Font.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
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/Font.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/Font.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/Font.java