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

Commit b6e87b41 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Unit test fix for display-aware PowerManager API" into main

parents 5358a140 ba639dd5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -175,6 +175,7 @@ import android.telephony.data.TrafficDescriptor;
import android.testing.AndroidTestingRunner;
import android.testing.TestableLooper;
import android.util.SparseArray;
import android.view.Display;

import androidx.test.filters.FlakyTest;

@@ -312,6 +313,7 @@ public class RILTest extends TelephonyTest {
        } catch (RuntimeException e) {
        }
        Context context = new ContextFixture().getTestDouble();
        doReturn(Display.DEFAULT_DISPLAY).when(context).getDisplayId();
        doReturn(true).when(mConnectionManager).isNetworkSupported(ConnectivityManager.TYPE_MOBILE);
        doReturn(mConnectionManager).when(context)
            .getSystemService(Context.CONNECTIVITY_SERVICE);