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

Commit 4e81e5e6 authored by Collin Fijalkovich's avatar Collin Fijalkovich Committed by Automerger Merge Worker
Browse files

Merge "Disable caching during HeadsetPhoneStateTest" into rvc-dev am:...

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

Change-Id: I6e1a7130d63ff1729a2415cf4a25b0520f33d42f
parents 23a5e3df 371009af
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