Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 667b0914 authored by Valentin Iftime's avatar Valentin Iftime Committed by Iavor-Valentin Iftime
Browse files

Fix userId for PreferencesHelperTest in HSUM

 Get the userId from the mock package uid.

Flag: EXEMPT bugfix
Test: atest PreferencesHelperTest

Bug: 415771048
Change-Id: Ic751c23ec96879cd9259bf986a90854e328227cf
parent 9efc269b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3171,7 +3171,7 @@ public class PreferencesHelperTest extends UiServiceTestCase {

        doThrow(new SecurityException("no access")).when(mUgmInternal)
                .checkGrantUriPermission(eq(UID_N_MR1), any(), eq(sound),
                    anyInt(), eq(Process.myUserHandle().getIdentifier()));
                    anyInt(), eq(UserHandle.getUserId(UID_N_MR1)));

        final NotificationChannel channel = new NotificationChannel("id2", "name2",
                NotificationManager.IMPORTANCE_DEFAULT);