summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorHai Zhang <zhanghai@google.com>2020-12-28 14:24:10 -0800
committerHai Zhang <zhanghai@google.com>2020-12-30 18:32:37 -0800
commita5d44e888dd8a01bcc212793522de07f93a65a01 (patch)
treecf7e77684696be361bb6ec2802670d2a95ac5282 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent80401a0a1caab8579ecdf85c94bb4ba0ba2242a8 (diff)
Refactor RoleManagerService to use system API when possible.
Changes include but not limited to: - Use DataOutputStream for computePackageStateHash(), as OutputStream.write(int) only writes one byte, so it's better to use a proper built-in mechanism and drop dependency on another util class in the meantime. - Use a simplified enforceCrossUserPermission() similar to other system services, instead of the non-API ActivityManager.handleIncomingUser(). - Use the module library BasicShellCommandHandler to implement RoleManagerShellCommand. - Dump the existing user states, instead of for all users which potentially creates empty states. This makes the dump more truthful and saves an API. - Use a local copy of checkDumpPermission() instead of depending on the entire DumpUtils class. - Use the XmlPullParser API instead of the new non-API TypedXmlPullParser, because the legacy file can only be written before R, and thus can't be the new binary XML format. - Other small changes to use system APIs. Bug: 158736025 Test: CtsRoleTestCases Change-Id: I97d74aadfa2ccd264929c45226367b65a47f6435
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions