diff options
| author | 2025-01-21 15:42:20 -0800 | |
|---|---|---|
| committer | 2025-01-30 10:25:45 -0800 | |
| commit | 99884acdce3946e281a718044377421c69e2a6db (patch) | |
| tree | 896ab4872a34482a5b7ce56733ee0f5c8a6680e0 /ravenwood/scripts/extract-last-soong-commands.py | |
| parent | 96edebcb91a742b567ff521e39d769caa5f25ac8 (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 'ravenwood/scripts/extract-last-soong-commands.py')
0 files changed, 0 insertions, 0 deletions