summaryrefslogtreecommitdiff
path: root/libs/androidfw/AssetsProvider.cpp
diff options
context:
space:
mode:
author Yao Li <yaohuali@google.com> 2025-01-21 15:42:20 -0800
committer Yao Li <yaohuali@google.com> 2025-01-30 10:25:45 -0800
commit99884acdce3946e281a718044377421c69e2a6db (patch)
tree896ab4872a34482a5b7ce56733ee0f5c8a6680e0 /libs/androidfw/AssetsProvider.cpp
parent96edebcb91a742b567ff521e39d769caa5f25ac8 (diff)
Mock Resources.getSystem in UserManagerServiceTest
UserManagerService uses Resources.getSystem() to get Resources, along with other methods. This CL makes UserManagerServiceTest mock Resources.getSystem, so it is possible to test with different resource values there, in future CLs. This CL also moves shouldShowNotificationForBackgroundUserSounds(), so that we do not have one service class call another. Bug: 390496349 Flag: EXEMPT refactor Test: atest FrameworksMockingServicesTests:com.android.server.pm.UserManagerServiceTest Test: atest FrameworksVibratorServicesTests:com.android.server.vibrator.VibratorManagerServiceTest Change-Id: Ieb730dd9f3d3c36d1bdf2ff555871f2539971030
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions