summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorFelka Chang <felkachang@google.com>2020-09-08 20:58:50 +0800
committerFelka Chang <felkachang@google.com>2020-10-22 08:28:47 +0800
commit3e1776c67c5d3af35cfd553ce2c760d04aa0ab33 (patch)
tree8d704619e973433d6866cf9d68e66fa2bf013a82 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentfaf7e4a05b9c23a55dec24f93540244ca9b86a46 (diff)
Remove PackageManager.getResourcesForApplicationAsUser API
To switch another user to do something should create the context of the specified user by using Context.createContextAsUser rather than call *AsUser API directly. Replacing PackageManager.getResourcesForApplicationAsUser with context.createContextAsUser(...) applys in not only ShortcutService but also the related ShortcutManager test. Test: TEST_NAME="FrameworksServicesTests"; \ PACKAGE_NAME="com.android.server.pm.ShortcutManagerTest"; \ MODULE_LIST="CtsShortcutHostTestCases CtsShortcutManagerTestCases"; \ for i in `seq 1 11`; \ do\ MODULE_LIST="${MODULE_LIST} ${TEST_NAME}:${PACKAGE_NAME}${i}"; \ done; \ atest $MODULE_LIST Test: make -j droid cts gts vts Test: make -j docs Test: atest SystemUITests \ FrameworksServicesTests:com.android.server.pm Bug: 170928809 Change-Id: I5a4acce42b0d71e405412f84aaa73c0dfbb610e4
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions