summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/RenderScript.java
diff options
context:
space:
mode:
authorAlex Klyubin <klyubin@google.com>2015-05-18 09:52:29 -0700
committerAlex Klyubin <klyubin@google.com>2015-05-18 09:54:54 -0700
commitbdc1382ac575a06c98cab69117700e081c90c595 (patch)
tree333074e30eab95253531217527a623fead0cb236 /rs/java/android/renderscript/RenderScript.java
parenta194eb9b5d36acc083aa55b9a152567d68e84f14 (diff)
Switch from getSpi to getCurrentSpi.
Crypto primitives' getSpi has a side-effect which modifies the state of the primitive: it selects an SPI implementation if it hasn't been selected yet (e.g., Cipher.getInstance("AES") doesn't select an SPI implementation until Cipher.init). The new method getCurrentSpi has no side-effects: it simply returns null if no SPI implementation is selected. The switch to getCurrentSpi lets us avoid side-effects and throw a more pertinent exception when no SPI is yet selected. Bug: 18088752 Change-Id: I6d62eb67f904a15782673d16bcdae240cdc8f979
Diffstat (limited to 'rs/java/android/renderscript/RenderScript.java')
0 files changed, 0 insertions, 0 deletions