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

Commit cfe0e3a9 authored by Roland Levillain's avatar Roland Levillain
Browse files

Revert "Disable Telephony service handle caching while testing."

Revert submission 9592007-telephony-handle-caching

Reason for revert: Breaks tests
(com.android.cellbroadcastreceiver.unit.CellBroadcastConfigServiceTest,
com.android.bluetooth.hfp.HeadsetPhoneStateTest).

Reverted Changes:
If9bb6840c: TelephonyManager: cache service handles
I3b525c504: Disable Telephony service handle caching while tes...

Bug: 147656950
Bug: 147655973
Bug: 147658833
Bug: 147658836
Bug: 147658970
Bug: 140788621
Change-Id: I37881858a82151a1f434a1b81e0d1fa4e90bbe91
parent 8e5ca43a
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -383,7 +383,6 @@ public abstract class TelephonyTest {
    protected void setUp(String tag) throws Exception {
        TAG = tag;
        MockitoAnnotations.initMocks(this);
        TelephonyManager.disableServiceHandleCaching();

        mPhones = new Phone[] {mPhone};
        mImsCallProfile = new ImsCallProfile();
@@ -646,7 +645,6 @@ public abstract class TelephonyTest {
        sharedPreferences.edit().clear().commit();

        restoreInstances();
        TelephonyManager.enableServiceHandleCaching();
    }

    protected static void logd(String s) {