Home
last modified time | relevance | path

Searched refs:replaceInstance (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DTelephonyTest.java368 protected synchronized void replaceInstance(final Class c, final String instanceName, in replaceInstance() method in TelephonyTest
635 replaceInstance(CallManager.class, "INSTANCE", null, mCallManager); in setUp()
636 replaceInstance(TelephonyComponentFactory.class, "sInstance", null, in setUp()
638 replaceInstance(UiccController.class, "mInstance", null, mUiccController); in setUp()
639 replaceInstance(CdmaSubscriptionSourceManager.class, "sInstance", null, mCdmaSSM); in setUp()
640 replaceInstance(ImsManager.class, "sImsManagerInstances", null, mImsManagerInstances); in setUp()
641 replaceInstance(SubscriptionController.class, "sInstance", null, mSubscriptionController); in setUp()
642 replaceInstance(ProxyController.class, "sProxyController", null, mProxyController); in setUp()
643 replaceInstance(ActivityManager.class, "IActivityManagerSingleton", null, in setUp()
645 replaceInstance(CdmaSubscriptionSourceManager.class, in setUp()
[all …]
DProxyControllerTest.java49 replaceInstance(ProxyController.class, "sProxyController", null, null); in setUp()
66 replaceInstance(PhoneFactory.class, "sPhones", null, new Phone[] {mPhone, mPhone2}); in testMultiSimConfigChange()
72 replaceInstance(PhoneFactory.class, "sPhones", null, new Phone[] {mPhone}); in testMultiSimConfigChange()
DSubscriptionInfoUpdaterTest.java124 replaceInstance(SubscriptionInfoUpdater.class, "sIccId", null, new String[1]); in setUp()
125 replaceInstance(SubscriptionInfoUpdater.class, "sContext", null, null); in setUp()
126 replaceInstance(SubscriptionInfoUpdater.class, "SUPPORTED_MODEM_COUNT", null, 1); in setUp()
127 replaceInstance(SubscriptionInfoUpdater.class, "sSimCardState", null, new int[1]); in setUp()
128 replaceInstance(SubscriptionInfoUpdater.class, "sSimApplicationState", null, new int[1]); in setUp()
129 replaceInstance(SubscriptionInfoUpdater.class, "sIsSubInfoInitialized", null, false); in setUp()
131 replaceInstance(EuiccController.class, "sInstance", null, mEuiccController); in setUp()
132 replaceInstance(IntentBroadcaster.class, "sIntentBroadcaster", null, mIntentBroadcaster); in setUp()
499 replaceInstance(PhoneFactory.class, "sPhones", null, new Phone[]{mPhone, mPhone}); in testDualSimLoaded()
500 replaceInstance(SubscriptionInfoUpdater.class, "sIccId", null, in testDualSimLoaded()
[all …]
DMultiSimSettingControllerTest.java141 replaceInstance(PhoneFactory.class, "sPhones", null, mPhones); in setUp()
142 replaceInstance(SubscriptionController.class, "sInstance", null, mSubControllerMock); in setUp()
427 replaceInstance(SubscriptionInfo.class, "mIsOpportunistic", mSubInfo1, true); in testCbrs()
465 replaceInstance(SubscriptionInfo.class, "mIsOpportunistic", mSubInfo1, true); in testGroupedCbrs()
466 replaceInstance(SubscriptionInfo.class, "mGroupUUID", mSubInfo1, mGroupUuid1); in testGroupedCbrs()
525 replaceInstance(SubscriptionInfo.class, "mGroupUUID", mSubInfo1, mGroupUuid1); in testGroupedPrimarySubscriptions()
DSmsDispatchersControllerTest.java119 replaceInstance(SMSDispatcher.SmsTracker.class, "mFormat", mTracker, in testSendRetrySmsCdmaTest()
133 replaceInstance(SMSDispatcher.SmsTracker.class, "mFormat", mTracker, in testSendRetrySmsGsmTest()
DPhoneConfigurationManagerTest.java80 replaceInstance(PhoneConfigurationManager.class, "sInstance", null, null); in init()
82 replaceInstance(PhoneConfigurationManager.class, "mMi", mPcm, mMi); in init()
DConnectionTest.java119 replaceInstance(Handler.class, "mLooper", mCT, Looper.getMainLooper()); in setUp()
DSubscriptionControllerTest.java104 replaceInstance(SubscriptionController.class, "sInstance", null, null); in setUp()
105 replaceInstance(MultiSimSettingController.class, "sInstance", null, in setUp()
1143 replaceInstance(PhoneSwitcher.class, "sPhoneSwitcher", null, null); in testSetPreferredDataSubscriptionId_phoneSwitcherNotInitialized()
1152 replaceInstance(PhoneSwitcher.class, "sPhoneSwitcher", null, null); in testGetPreferredDataSubscriptionId_phoneSwitcherNotInitialized()
DGsmCdmaPhoneTest.java201 replaceInstance(Phone.class, "mImsPhone", mPhoneUT, mImsPhone); in testGetMergedServiceState()
282 replaceInstance(Phone.class, "mImsPhone", mPhoneUT, mImsPhone); in testGetMergedServiceStateNoCsfb()
489 replaceInstance(Phone.class, "mImsPhone", mPhoneUT, mImsPhone); in testDial()
944 replaceInstance(Phone.class, "mImsPhone", mPhoneUT, mImsPhone); in testEcmCancelledPreservedThroughSrvcc()
1414 replaceInstance(Phone.class, "mImsPhone", mPhoneUT, mImsPhone); in setupTestSendUssd()
DGsmCdmaConnectionTest.java51 replaceInstance(Handler.class, "mLooper", mCT, Looper.myLooper()); in setUp()
DPhoneSwitcherTest.java126 replaceInstance(Phone.class, "mCi", mPhone, mCommandsInterface0); in setUp()
127 replaceInstance(Phone.class, "mCi", mPhone2, mCommandsInterface1); in setUp()
1133 replaceInstance(PhoneFactory.class, "sPhones", null, mPhones); in setNumPhones()
DRILTest.java308 replaceInstance(RIL.class, "mRadioVersion", mRILUnderTest, mRadioVersionV10); in setUp()
608 replaceInstance(RIL.class, "mRadioVersion", mRILUnderTest, mRadioVersionV15); in testStartNetworkScanWithUnsupportedResponse()
635 replaceInstance(RIL.class, "mRadioVersion", mRILUnderTest, mRadioVersionV15); in testGetVoiceRegistrationStateWithUnsupportedResponse()
670 replaceInstance(RIL.class, "mRadioVersion", mRILUnderTest, mRadioVersionV15); in testGetDataRegistrationStateWithUnsupportedResponse()
1235 replaceInstance(RIL.class, "mRadioVersion", mRILUnderTest, mRadioVersionV15); in testGetBarringInfo()
2467 replaceInstance(RIL.class, "mRadioVersion", mRILUnderTest, mRadioVersionV15); in testEnableUiccApplications()
2484 replaceInstance(RIL.class, "mRadioVersion", mRILUnderTest, mRadioVersionV15); in testAreUiccApplicationsEnabled()
DNetworkTypeControllerTest.java94 replaceInstance(Handler.class, "mLooper", mDisplayInfoController, Looper.myLooper()); in setUp()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsPhoneConnectionTest.java80 replaceInstance(Handler.class, "mLooper", mImsCT, Looper.myLooper()); in setUp()
81 replaceInstance(ImsPhoneCallTracker.class, "mForegroundCall", mImsCT, mForeGroundCall); in setUp()
82 replaceInstance(ImsPhoneCallTracker.class, "mBackgroundCall", mImsCT, mBackGroundCall); in setUp()
83 replaceInstance(ImsPhoneCallTracker.class, "mRingingCall", mImsCT, mRingGroundCall); in setUp()
84 replaceInstance(ImsPhoneCallTracker.class, "mPhone", mImsCT, mImsPhone); in setUp()
DImsPhoneCallTest.java55 replaceInstance(ImsPhoneCallTracker.class, "mPhone", mImsCT, mImsPhone); in setUp()
DImsPhoneTest.java147 replaceInstance(Handler.class, "mLooper", mTestHandler, mImsPhoneUT.getLooper()); in setUp()
148 replaceInstance(Phone.class, "mLooper", mPhone, mImsPhoneUT.getLooper()); in setUp()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/emergency/
DEmergencyNumberTrackerTest.java130 replaceInstance(PhoneFactory.class, "sPhones", null, mPhones); in setDsdsPhones()
135 replaceInstance(PhoneFactory.class, "sPhones", null, mPhones); in setSinglePhone()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DGsmInboundSmsHandlerTest.java796 replaceInstance(SmsBroadcastUndelivered.class, "instance", null, null); in testBroadcastUndeliveredUserLocked()
834 replaceInstance(SmsBroadcastUndelivered.class, "instance", null, null); in testBroadcastUndeliveredUserUnlocked()
853 replaceInstance(SmsBroadcastUndelivered.class, "instance", null, null); in testBroadcastUndeliveredDeleted()
891 replaceInstance(SmsBroadcastUndelivered.class, "instance", null, null); in testBroadcastUndeliveredMultiPart()
916 replaceInstance(SmsBroadcastUndelivered.class, "instance", null, null); in testBroadcastUndeliveredMultiSim()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DTelephonyNetworkFactoryTest.java142 replaceInstance(RadioConfig.class, "sRadioConfig", null, mMockRadioConfig); in setUp()
169 replaceInstance(PhoneSwitcher.class, "sPhoneSwitcher", null, mPhoneSwitcher); in createMockedTelephonyComponents()
DDataConnectionTest.java289 replaceInstance(ConnectionParams.class, "mApnContext", mCp, mApnContext); in setUp()
290 replaceInstance(ConnectionParams.class, "mRilRat", mCp, in setUp()
DRetryManagerTest.java132 replaceInstance(SubscriptionController.class, "sInstance", null, mSubscriptionController); in setUp()
133 replaceInstance(UiccController.class, "mInstance", null, mUiccController); in setUp()
DDcTrackerTest.java1739 replaceInstance(DcTracker.class, "mSubscriptionPlans", mDct, plans); in setUpSubscriptionPlans()
1808 replaceInstance(DcTracker.class, "mSubscriptionPlans", mDct, plans); in testIsNetworkTypeUnmetered()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DUiccControllerTest.java101 replaceInstance(UiccController.class, "mInstance", null, null); in setUp()
132 replaceInstance(UiccController.class, "mInstance", null, null); in reconfigureSlots()
DUiccProfileTest.java113 replaceInstance(UiccProfile.class, "mCatService", mUiccProfile, mCAT); in setUp()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/
DImsManagerTest.java870 replaceInstance(ImsManager.class, "mMmTelFeatureConnection", imsManager, in getImsManagerAndInitProvisionedValues()

12