Loading android/app/tests/unit/src/com/android/bluetooth/hfp/HeadsetPhoneStateTest.java +2 −0 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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 Loading Loading
android/app/tests/unit/src/com/android/bluetooth/hfp/HeadsetPhoneStateTest.java +2 −0 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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 Loading