Pass in code cache directory when creating a script group.

Change-Id: Ia73ea917a126a5055ec97f13d90a5feaafd6a2f5
This commit is contained in:
Yang Ni
2015-01-16 11:06:26 -08:00
parent 106da5bf80
commit ebf63408d2
3 changed files with 11 additions and 15 deletions

View File

@@ -7,9 +7,6 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
@hide Pending Android public API approval.
*/
/**
******************************
@@ -240,12 +237,10 @@ public class ScriptGroup2 extends BaseObj {
for (int i = 0; i < closureIDs.length; i++) {
closureIDs[i] = closures.get(i).getID(rs);
}
long id = rs.nScriptGroup2Create(closureIDs);
long id = rs.nScriptGroup2Create(ScriptC.mCachePath, closureIDs);
setID(id);
}
// TODO: If this was reflected method, we could enforce the number of
// arguments.
public Object[] execute(Object... inputs) {
if (inputs.length < mInputs.size()) {
Log.e(TAG, this.toString() + " receives " + inputs.length + " inputs, " +
@@ -309,8 +304,6 @@ public class ScriptGroup2 extends BaseObj {
}
public ScriptGroup2 create(Future... outputs) {
// TODO: Save all script groups that have been created and return one that was
// saved and matches the outputs.
ScriptGroup2 ret = new ScriptGroup2(mRS, mClosures, mInputs, outputs);
return ret;
}