diff options
author | Tony Mak <tonymak@google.com> | 2016-11-30 14:59:39 +0000 |
---|---|---|
committer | Tony Mak <tonymak@google.com> | 2016-11-30 14:59:39 +0000 |
commit | 700c6ae74813182ec5cc1423911526197b5cf2a9 (patch) | |
tree | f5366d00a1b53b056744c3eda19aaf0123ae3bf1 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 6b92a910e159b4f2f0b364e6df8dc491f5ee317f (diff) |
Revise when to throw SecurityException in bindDeviceAdminServiceAsUser
1. No longer throw SecurityException when we fail to resolve the intent.
Return false instead.
2. Throw IllegalArgumentException early if the incoming intent is not
explicit.
3. Throw SecurityException with different error message. It makes debug
easier and allows tests to verify a particular thing happened.
Bug: 33197200
Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerPlusManagedProfileTest
Change-Id: I723ab7f434c10407aa4e7dc8e9a6e3e9bb9f2059
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions