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

Commit 371009af authored by Collin Fijalkovich's avatar Collin Fijalkovich Committed by Automerger Merge Worker
Browse files

Merge "Disable caching during HeadsetPhoneStateTest" into rvc-dev am: 5fe6b3d7 am: ca4a95d6

Change-Id: I7ec3c28d5181f954a7c760d87a31f7d629fc5756
parents ea2b1181 ca4a95d6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ package com.android.bluetooth.hfp;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.*;

import android.app.PropertyInvalidatedCache;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.content.Context;
@@ -66,6 +67,7 @@ public class HeadsetPhoneStateTest {
        if (Looper.myLooper() == null) {
            Looper.prepare();
        }
        PropertyInvalidatedCache.disableForTestMode();
        MockitoAnnotations.initMocks(this);
        TelephonyManager.disableServiceHandleCaching();
        // Mock SubscriptionManager.getDefaultSubscriptionId() to return a valid value