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

Commit ca4a95d6 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

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


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