summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorEran Messeri <eranm@google.com>2019-12-19 13:06:03 +0000
committerEran Messeri <eranm@google.com>2019-12-19 14:24:29 +0000
commitf44c09c284df9eef1a4276a2e30222a103d09083 (patch)
tree0487c6c4e7b8599059fc49a65faf2f83b1d4b9bb /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent8ffc40aa01763f145c4ecf7ab83bf1ac08a985df (diff)
Refactoring: Helper method for calling with clean binder identity
Introduce a helper method for executing a runnable that returns a value with the binder caller's identity cleared. Replace multiple call sites which employed the pattern of saving the caller identity, clearing it and restoring it in the 'finally' block. This would make the code safer as there'd be no chance of forgetting to restore the caller's identity or restoring the wrong caller's identity. This refactoring introduces no functional changes. Bug: 146552069 Test: atest CtsDevicePolicyManagerTestCases:com.android.cts.devicepolicy.MixedDeviceOwnerTest Test: atest FrameworksServicesTests:DevicePolicyManagerTest Change-Id: I7eb84b00009778580560fa5f0bdd0a584f1d454b
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions