am f151a541: am d6b8a035: Merge "Add support for synchronous get()." into jb-mr2-dev

* commit 'f151a5411eb6afd104daac10b3e43f5e3a60c61d':
  Add support for synchronous get().
This commit is contained in:
Tim Murray
2013-04-12 13:11:45 -07:00
committed by Android Git Automerger
6 changed files with 395 additions and 7 deletions

View File

@@ -590,31 +590,59 @@ public class RenderScript {
validate();
rsnScriptInvokeV(mContext, id, slot, params);
}
native void rsnScriptSetVarI(int con, int id, int slot, int val);
synchronized void nScriptSetVarI(int id, int slot, int val) {
validate();
rsnScriptSetVarI(mContext, id, slot, val);
}
native int rsnScriptGetVarI(int con, int id, int slot);
synchronized int nScriptGetVarI(int id, int slot) {
validate();
return rsnScriptGetVarI(mContext, id, slot);
}
native void rsnScriptSetVarJ(int con, int id, int slot, long val);
synchronized void nScriptSetVarJ(int id, int slot, long val) {
validate();
rsnScriptSetVarJ(mContext, id, slot, val);
}
native long rsnScriptGetVarJ(int con, int id, int slot);
synchronized long nScriptGetVarJ(int id, int slot) {
validate();
return rsnScriptGetVarJ(mContext, id, slot);
}
native void rsnScriptSetVarF(int con, int id, int slot, float val);
synchronized void nScriptSetVarF(int id, int slot, float val) {
validate();
rsnScriptSetVarF(mContext, id, slot, val);
}
native float rsnScriptGetVarF(int con, int id, int slot);
synchronized float nScriptGetVarF(int id, int slot) {
validate();
return rsnScriptGetVarF(mContext, id, slot);
}
native void rsnScriptSetVarD(int con, int id, int slot, double val);
synchronized void nScriptSetVarD(int id, int slot, double val) {
validate();
rsnScriptSetVarD(mContext, id, slot, val);
}
native double rsnScriptGetVarD(int con, int id, int slot);
synchronized double nScriptGetVarD(int id, int slot) {
validate();
return rsnScriptGetVarD(mContext, id, slot);
}
native void rsnScriptSetVarV(int con, int id, int slot, byte[] val);
synchronized void nScriptSetVarV(int id, int slot, byte[] val) {
validate();
rsnScriptSetVarV(mContext, id, slot, val);
}
native void rsnScriptGetVarV(int con, int id, int slot, byte[] val);
synchronized void nScriptGetVarV(int id, int slot, byte[] val) {
validate();
rsnScriptGetVarV(mContext, id, slot, val);
}
native void rsnScriptSetVarVE(int con, int id, int slot, byte[] val,
int e, int[] dims);
synchronized void nScriptSetVarVE(int id, int slot, byte[] val,