Merge change 2657
* changes: Remove versions of scriptCSetScript method that take byte arrays.
This commit is contained in:
@@ -614,20 +614,13 @@ public class RenderScript {
|
||||
|
||||
public void scriptCSetScript(String s) {
|
||||
try {
|
||||
scriptCSetScript(s.getBytes("UTF-8"));
|
||||
byte[] bytes = s.getBytes("UTF-8");
|
||||
nScriptCSetScript(bytes, 0, bytes.length);
|
||||
} catch (java.io.UnsupportedEncodingException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
|
||||
public void scriptCSetScript(byte[] utf8Bytes) {
|
||||
scriptCSetScript(utf8Bytes, 0, utf8Bytes.length);
|
||||
}
|
||||
|
||||
public void scriptCSetScript(byte[] utf8Bytes, int offset, int length) {
|
||||
nScriptCSetScript(utf8Bytes, offset, length);
|
||||
}
|
||||
|
||||
public void scriptCSetScript(Resources resources, int id) {
|
||||
InputStream is = resources.openRawResource(id);
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user