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

Commit 8136cdca authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Disable Telephony service handle caching for tests"

parents e4202d95 3feec09b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -63,6 +63,7 @@ public class HeadsetPhoneStateTest {
    @Before
    public void setUp() throws Exception {
        MockitoAnnotations.initMocks(this);
        TelephonyManager.disableServiceHandleCaching();
        // Mock SubscriptionManager.getDefaultSubscriptionId() to return a valid value
        when(mISub.getDefaultSubId()).thenReturn(SubscriptionManager.DEFAULT_SUBSCRIPTION_ID);
        when(mISubBinder.queryLocalInterface(anyString())).thenReturn(mISub);
@@ -91,7 +92,7 @@ public class HeadsetPhoneStateTest {
                    mServiceManagerOriginalServices);
            mServiceManagerOriginalServices = null;
        }

        TelephonyManager.enableServiceHandleCaching();
    }

    /**