Home
last modified time | relevance | path

Searched refs:mSimulatedCommands (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsNrSaModeHandlerTest.java100 mContext, mSimulatedCommands, mNotifier, true, 0, in setUp()
132 mSimulatedCommands.setN1ModeEnabled(false, null); in testTearDown()
139 assertTrue(mSimulatedCommands.isN1ModeEnabled()); in testTearDown()
169 mSimulatedCommands.setN1ModeEnabled(false, null); in testOnImsRegisteredWithSaDisablePolicyWfcEstablished()
176 assertTrue(mSimulatedCommands.isN1ModeEnabled()); in testOnImsRegisteredWithSaDisablePolicyWfcEstablished()
191 mSimulatedCommands.setN1ModeEnabled(true, null); in testOnImsRegisteredWithSaDisablePolicyWfcEstablishedWithVonrDisabled()
194 mSimulatedCommands.setVonrEnabled(true); in testOnImsRegisteredWithSaDisablePolicyWfcEstablishedWithVonrDisabled()
200 assertTrue(mSimulatedCommands.isN1ModeEnabled()); in testOnImsRegisteredWithSaDisablePolicyWfcEstablishedWithVonrDisabled()
202 mSimulatedCommands.setN1ModeEnabled(true, null); in testOnImsRegisteredWithSaDisablePolicyWfcEstablishedWithVonrDisabled()
205 mSimulatedCommands.setVonrEnabled(false); in testOnImsRegisteredWithSaDisablePolicyWfcEstablishedWithVonrDisabled()
[all …]
DImsPhoneTest.java1194 mSimulatedCommands.updateImsRegistrationInfo(0, 0, 0, 0, null); in testUpdateImsRegistrationInfoRadioTech()
1196 int[] regInfo = mSimulatedCommands.getImsRegistrationInfo(); in testUpdateImsRegistrationInfoRadioTech()
1207 regInfo = mSimulatedCommands.getImsRegistrationInfo(); in testUpdateImsRegistrationInfoRadioTech()
1214 mSimulatedCommands.updateImsRegistrationInfo(0, 0, 0, 0, null); in testUpdateImsRegistrationInfoRadioTech()
1215 regInfo = mSimulatedCommands.getImsRegistrationInfo(); in testUpdateImsRegistrationInfoRadioTech()
1224 regInfo = mSimulatedCommands.getImsRegistrationInfo(); in testUpdateImsRegistrationInfoRadioTech()
1232 regInfo = mSimulatedCommands.getImsRegistrationInfo(); in testUpdateImsRegistrationInfoRadioTech()
1238 mSimulatedCommands.updateImsRegistrationInfo(0, 0, 0, 0, null); in testUpdateImsRegistrationInfoRadioTech()
1239 regInfo = mSimulatedCommands.getImsRegistrationInfo(); in testUpdateImsRegistrationInfoRadioTech()
1248 regInfo = mSimulatedCommands.getImsRegistrationInfo(); in testUpdateImsRegistrationInfoRadioTech()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DServiceStateTrackerTest.java206 sst = new ServiceStateTracker(mPhone, mSimulatedCommands, mFeatureFlags); in onLooperPrepared()
297 mSimulatedCommands.setVoiceRegState(NetworkRegistrationInfo.REGISTRATION_STATE_HOME); in setUp()
298 mSimulatedCommands.setVoiceRadioTech(ServiceState.RIL_RADIO_TECHNOLOGY_HSPA); in setUp()
299 mSimulatedCommands.setDataRegState(NetworkRegistrationInfo.REGISTRATION_STATE_HOME); in setUp()
300 mSimulatedCommands.setDataRadioTech(ServiceState.RIL_RADIO_TECHNOLOGY_HSPA); in setUp()
432 boolean oldState = (mSimulatedCommands.getRadioState() == TelephonyManager.RADIO_POWER_ON); in testSetRadioPower()
436 != (mSimulatedCommands.getRadioState() == TelephonyManager.RADIO_POWER_ON)); in testSetRadioPower()
457 assertEquals(TelephonyManager.RADIO_POWER_ON, mSimulatedCommands.getRadioState()); in testSetRadioPowerWaitForAllDataDisconnected()
462 assertEquals(TelephonyManager.RADIO_POWER_ON, mSimulatedCommands.getRadioState()); in testSetRadioPowerWaitForAllDataDisconnected()
479 assertEquals(TelephonyManager.RADIO_POWER_ON, mSimulatedCommands.getRadioState()); in testSetRadioPowerWaitForAllDataDisconnected()
[all …]
DSmsStorageMonitorTest.java70 mSimulatedCommands.notifyIccSmsFull(); in testEventIccFull()
83 mSimulatedCommands.notifyRadioOn(); in testSmsMemoryStatus()
97 mSimulatedCommands.notifyRadioOn(); in testSmsMemoryStatus()
110 mSimulatedCommands.notifyRadioOn(); in testSmsMemoryStatus()
118 mSimulatedCommands.setReportSmsMemoryStatusFailResponse(true); in testRetrySmsMemoryStatus()
135 mSimulatedCommands.setReportSmsMemoryStatusFailResponse(false); in testRetrySmsMemoryStatus()
138 mSimulatedCommands.notifyRadioOn(); in testRetrySmsMemoryStatus()
152 mSimulatedCommands.notifyRadioOn(); in testReportSmsMemoryStatusToIms()
166 mSimulatedCommands.notifyRadioOn(); in testReportSmsMemoryStatusToIms()
182 mSimulatedCommands.setReportSmsMemoryStatusFailResponse(true); in testReportSmsMemoryStatusDuringRetry()
[all …]
DCellularNetworkServiceTest.java133 mSimulatedCommands.setVoiceRegState(voiceRegState); in testGetNetworkRegistrationInfo()
134 mSimulatedCommands.setVoiceRadioTech(voiceRadioTech); in testGetNetworkRegistrationInfo()
135 mSimulatedCommands.setDataRegState(dataRegState); in testGetNetworkRegistrationInfo()
136 mSimulatedCommands.setDataRadioTech(dataRadioTech); in testGetNetworkRegistrationInfo()
137 mSimulatedCommands.mCssSupported = cssSupported; in testGetNetworkRegistrationInfo()
138 mSimulatedCommands.mRoamingIndicator = roamingIndicator; in testGetNetworkRegistrationInfo()
139 mSimulatedCommands.mSystemIsInPrl = systemIsInPrl; in testGetNetworkRegistrationInfo()
140 mSimulatedCommands.mDefaultRoamingIndicator = defaultRoamingIndicator; in testGetNetworkRegistrationInfo()
141 mSimulatedCommands.mReasonForDenial = reasonForDenial; in testGetNetworkRegistrationInfo()
142 mSimulatedCommands.mMaxDataCalls = maxDataCalls; in testGetNetworkRegistrationInfo()
[all …]
DSignalStrengthControllerTest.java509 mSimulatedCommands.setSignalStrength(ss); in testLteSignalStrengthReportingCriteria()
510 mSimulatedCommands.notifySignalStrength(); in testLteSignalStrengthReportingCriteria()
525 mSimulatedCommands.setSignalStrength(ss); in testLteSignalStrengthReportingCriteria()
526 mSimulatedCommands.notifySignalStrength(); in testLteSignalStrengthReportingCriteria()
807 mSimulatedCommands.setSignalStrength(ss); in test5gNrSignalStrengthReportingCriteria_UseSsRsrp()
808 mSimulatedCommands.notifySignalStrength(); in test5gNrSignalStrengthReportingCriteria_UseSsRsrp()
834 mSimulatedCommands.setSignalStrength(ss); in test5gNrSignalStrengthReportingCriteria_UseSsRsrpAndSsRsrq()
835 mSimulatedCommands.notifySignalStrength(); in test5gNrSignalStrengthReportingCriteria_UseSsRsrpAndSsRsrq()
862 mSimulatedCommands.setSignalStrength(ss); in test5gNrSignalStrengthReportingCriteria_ConfiguredThresholds()
863 mSimulatedCommands.notifySignalStrength(); in test5gNrSignalStrengthReportingCriteria_ConfiguredThresholds()
[all …]
DCallWaitingControllerTest.java77 mSimulatedCommands.setRadioPower(true, null); in setUp()
78 mPhone.mCi = this.mSimulatedCommands; in setUp()
267 mSimulatedCommands.setCallWaiting(false, SERVICE_CLASS_VOICE, null); in testSyncUserChange()
283 mSimulatedCommands.setCallWaiting(true, SERVICE_CLASS_VOICE, null); in testSyncUserChange()
339 mSimulatedCommands.setCallWaiting(false, SERVICE_CLASS_VOICE, null); in testSyncFirstChange()
345 mSimulatedCommands.setCallWaiting(true, SERVICE_CLASS_VOICE, null); in testSyncFirstChange()
355 assertTrue(mSimulatedCommands.mCallWaitActivated); in testSyncFirstChange()
362 assertTrue(mSimulatedCommands.mCallWaitActivated); in testSyncFirstChange()
376 mSimulatedCommands.setCallWaiting(false, SERVICE_CLASS_VOICE, null); in testSyncImsOnly()
DGsmCdmaCallTrackerTest.java75 mSimulatedCommands.setRadioPower(true, null); in setUp()
76 mPhone.mCi = this.mSimulatedCommands; in setUp()
136 mSimulatedCommands.progressConnectingToActive(); in testMOCallPickUp()
256 mSimulatedCommands.triggerRing(mDialString); in setupRingingCall()
346 mSimulatedCommands.progressConnectingToActive(); in testMOCallPickUpHangUpResumeBackGround()
468 mSimulatedCommands.progressConnectingToActive(); in testCantCallOtaspInProgress()
DIccSmsInterfaceManagerTest.java86 mSimulatedCommands.mSendSetGsmBroadcastConfigResponse = false; in testSynchronization()
87 mSimulatedCommands.mSendGetSmscAddressResponse = false; in testSynchronization()
DTelephonyTest.java312 protected SimulatedCommands mSimulatedCommands; field in TelephonyTest
594 mSimulatedCommands = new SimulatedCommands(); in setUp()
612 mPhone.mCi = mSimulatedCommands; in setUp()
613 mCT.mCi = mSimulatedCommands; in setUp()
971 new CommandsInterface[] {mSimulatedCommands}); in setUp()
1002 if (mSimulatedCommands != null) { in tearDown()
1003 mSimulatedCommands.dispose(); in tearDown()
1029 mSimulatedCommands = null; in tearDown()
DMultiSimSettingControllerTest.java171 mPhoneMock1.mCi = mSimulatedCommands; in setUp()
172 mPhoneMock2.mCi = mSimulatedCommands; in setUp()
349 replaceInstance(BaseCommands.class, "mState", mSimulatedCommands, in testSubInfoChangeAfterRadioUnavailable()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DUiccCardApplicationTest.java77 mContext, mSimulatedCommands); in setUp()
125 mUiccCardApplication.update(mUiccCardAppStatus, mContext, mSimulatedCommands); in testGetSetAppType()
137 mUiccCardApplication.update(mUiccCardAppStatus, mContext, mSimulatedCommands); in testGetSetAppState()
155 mUiccCardApplication.setIccFdnEnabled(true, mSimulatedCommands.DEFAULT_SIM_PIN2_CODE, in testGetSetIccFdnEnabled()
171 mUiccCardApplication.setIccLockEnabled(true, mSimulatedCommands.DEFAULT_SIM_PIN_CODE, in testGetSetIccLockedEnabled()
181 mUiccCardApplication.changeIccLockPassword(mSimulatedCommands.DEFAULT_SIM_PIN_CODE, in testChangeIccLockPassword()
185 eq(mSimulatedCommands.DEFAULT_SIM_PIN_CODE), eq("1111"), eq(TAG), (Message) any()); in testChangeIccLockPassword()
194 mUiccCardApplication.supplyPin(mSimulatedCommands.DEFAULT_SIM_PIN_CODE, mSupplyPin); in testSupplyPin()
204 assertEquals(mSimulatedCommands.DEFAULT_PIN1_ATTEMPT - 1, mAttemptsRemaining); in testSupplyPin()
226 mUiccCardApplication.update(mUiccCardAppStatus, mContext, mSimulatedCommands); in testAppStateChangeNotification()
[all …]
DUiccSlotTest.java67 mUiccSlot.update(mSimulatedCommands, mIccCardStatus, 0 /* phoneId */, in onLooperPrepared()
143 mSimulatedCommands.setRadioPower(true, null); in testUpdateActiveSlotStatus()
154 mUiccSlot.update(new CommandsInterface[] {mSimulatedCommands}, iss, 0 /* slotIndex */); in testUpdateActiveSlotStatus()
191 mUiccSlot.update(new CommandsInterface[] {mSimulatedCommands}, iss, 0 /* slotIndex */); in testUpdateSlotStatusEuiccIsSupported()
226 mUiccSlot.update(new CommandsInterface[] {mSimulatedCommands}, iss, 0 /* slotIndex */); in testUpdateSlotStatusEuiccIsNotSupported()
261 mUiccSlot.update(new CommandsInterface[] {mSimulatedCommands}, iss, 0 /* slotIndex */); in testUpdateSlotStatusVoltageClassA()
296 mUiccSlot.update(new CommandsInterface[] {mSimulatedCommands}, iss, 0 /* slotIndex */); in testUpdateSlotStatusVoltageClassANoTa()
331 mUiccSlot.update(new CommandsInterface[] {mSimulatedCommands}, iss, 0 /* slotIndex */); in testUpdateSlotStatusVoltageClassB()
366 mUiccSlot.update(new CommandsInterface[] {mSimulatedCommands}, iss, 0 /* slotIndex */); in testUpdateSlotStatusVoltageClassC()
380 mUiccSlot.update(mSimulatedCommands, mIccCardStatus, phoneId, slotIndex); in testUpdateAbsentState()
[all …]
DIccRecordsTest.java72 mIccRecords = new SIMRecords(mUiccCardApplication3gpp, mContext, mSimulatedCommands); in onLooperPrepared()
155 mSimulatedCommands.setAuthenticationMode(mSimulatedCommands.ICC_AUTHENTICATION_MODE_NULL); in testGetIccSimChallengeResponseNull()
164 timeSpent < mSimulatedCommands.ICC_SIM_CHALLENGE_TIMEOUT_MILLIS); in testGetIccSimChallengeResponseNull()
175 mSimulatedCommands.setAuthenticationMode( in testGetIccSimChallengeResponseTimeout()
176 mSimulatedCommands.ICC_AUTHENTICATION_MODE_TIMEOUT); in testGetIccSimChallengeResponseTimeout()
184 timeSpent >= mSimulatedCommands.ICC_SIM_CHALLENGE_TIMEOUT_MILLIS); in testGetIccSimChallengeResponseTimeout()
214 mSimulatedCommands.setAuthenticationMode( in testGetIccSimChallengeResponseDefault()
215 mSimulatedCommands.ICC_AUTHENTICATION_MODE_DEFAULT); in testGetIccSimChallengeResponseDefault()
225 timeSpent < mSimulatedCommands.ICC_SIM_CHALLENGE_TIMEOUT_MILLIS); in testGetIccSimChallengeResponseDefault()
DSimPhonebookRecordCacheTest.java51 new SimPhonebookRecordCache(mContext, 0, mSimulatedCommands); in onLooperPrepared()
76 mSimulatedCommands.notifySimPhonebookChanged(); in testSimPhonebookChangedOnBootup()
82 mSimulatedCommands.notifySimPhonebookChanged(); in testSimPhonebookChangedOnBootup()
91 mSimulatedCommands.notifySimPhonebookChanged(); in testGetPhonebookRecords()
123 mSimulatedCommands.notifySimPhonebookChanged(); in testUpdatePhonebookRecord()
DUiccProfileTest.java124 mSimulatedCommands.setIccIoResultForApduLogicalChannel(mIccIoResult); in setUp()
131 mUiccProfile = new UiccProfile(mContext, mSimulatedCommands, mIccCardStatus, in setUp()
207 mUiccProfile.update(mContext, mSimulatedCommands, mIccCardStatus); in testUpdateUiccProfileApplication()
221 mSimulatedCommands.setOpenChannelId(mChannelId); in testUpdateUiccProfile()
222 mUiccProfile.update(mContext, mSimulatedCommands, mIccCardStatus); in testUpdateUiccProfile()
238 mUiccProfile.update(mContext, mSimulatedCommands, mIccCardStatus); in testUpdateUiccProfilePinState()
268 mUiccProfile.update(mContext, mSimulatedCommands, mIccCardStatus); in testUpdateUiccProfileApplicationNotReady()
298 mUiccProfile.update(mContext, mSimulatedCommands, mIccCardStatus); in testUpdateUiccProfileApplicationAllReady()
330 mUiccProfile.update(mContext, mSimulatedCommands, mIccCardStatus); in testUpdateUiccProfileApplicationAllSupportedAppsReady()
366 mUiccProfile.update(mContext, mSimulatedCommands, mIccCardStatus); in testUpdateUiccProfileApplicationWithDuplicateApps()
[all …]
DUiccCardTest.java63 mSimulatedCommands.setIccIoResultForApduLogicalChannel(mIccIoResult); in setUp()
64 mUiccCard = new UiccCard(mContext, mSimulatedCommands, mIccCardStatus, 0 /* phoneId */, in setUp()
91 mUiccCard.update(mContext, mSimulatedCommands, mIccCardStatus, 0); in testUpdateUiccCardState()
DUiccStateChangedLauncherTest.java101 UiccCard card = new UiccCard(mContext, mSimulatedCommands, in testProvisioningPackageSet()
117 card.update(mContext, mSimulatedCommands, in testProvisioningPackageSet()
132 card.update(mContext, mSimulatedCommands, in testProvisioningPackageSet()
DUiccPortTest.java83 mSimulatedCommands.setIccIoResultForApduLogicalChannel(mIccIoResult); in setUp()
84 mUiccPort = new UiccPort(mContext, mSimulatedCommands, mIccCardStatus, in setUp()
DRuimRecordsTest.java41 mRuimRecords = new RuimRecords(mUiccCardApplication3gpp2, mContext, mSimulatedCommands); in onLooperPrepared()
DUiccControllerTest.java121 mSimulatedCommands.setIccCardStatus(mIccCardStatus); in setUp()
185 mSimulatedCommands.requestShutdown(null); in testPowerOff()
188 assertEquals(TelephonyManager.RADIO_POWER_UNAVAILABLE, mSimulatedCommands.getRadioState()); in testPowerOff()
193 mSimulatedCommands.setRadioPower(true, null); in testPowerOn()
196 assertEquals(TelephonyManager.RADIO_POWER_ON, mSimulatedCommands.getRadioState()); in testPowerOn()
217 mSimulatedCommands.setIccCardStatus(mIccCardStatus); in testPowerOffPowerOnWithApp()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cat/
DCATServiceTest.java144 mSimulatedCommands = mock(SimulatedCommands.class); in setUp()
145 mSimulatedCommands.setIccIoResultForApduLogicalChannel(mIccIoResult); in setUp()
146 mUiccProfile = new UiccProfile(mContext, mSimulatedCommands, mIccCardStatus, in setUp()
151 mCatService = CatService.getInstance(mSimulatedCommands, mContext, in setUp()
168 mSimulatedCommands = null; in tearDown()
256 verify(mSimulatedCommands, never()).sendTerminalResponse( in testSendTerminalResponseForSendSuccess()
271 verify(mSimulatedCommands, atLeastOnce()).sendTerminalResponse( in testSendTerminalResponseForSendSmsRpError()
286 verify(mSimulatedCommands, atLeastOnce()).sendTerminalResponse( in testSendTerminalResponseForSendSmsNetworkError()
299 verify(mSimulatedCommands, atLeastOnce()).sendTerminalResponse( in testSendTerminalResponseForDeliveryFailure()
312 verify(mSimulatedCommands, atLeastOnce()).sendTerminalResponse( in testSendTerminalResponseForDeliverySuccess()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/emergency/
DEmergencyNumberTrackerTest.java158 mEmergencyNumberTrackerMock = new EmergencyNumberTracker(mPhone, mSimulatedCommands, in setUp()
160 mEmergencyNumberTrackerMock2 = new EmergencyNumberTracker(mPhone2, mSimulatedCommands, in setUp()
375 localEmergencyNumberTracker = new EmergencyNumberTracker(mPhone, mSimulatedCommands, in testRegistrationForCountryChangeIntent()
554 mPhone, mSimulatedCommands, mFeatureFlags); in testUsingEmergencyNumberDatabaseWheneverHal_1_4()
627 mPhone, mSimulatedCommands, mFeatureFlags); in testUsingEmergencyNumberDatabaseWithRouting()
731 mPhone, mSimulatedCommands, mFeatureFlags); in testUsingEmergencyNumberDatabaseWithRoutingInOOS()
854 new EmergencyNumberTracker(mPhone, mSimulatedCommands, mFeatureFlags); in testOverridingEmergencyNumberPrefixCarrierConfig()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DGsmSmsDispatcherTest.java166 mSimulatedCommands.notifySmsStatus(new byte[]{(byte)0xFF, (byte)0xFF, (byte)0xFF}); in testSmsStatus()
564 mSimulatedCommands); in testSendTextWithMessageRefNegativeBoundaryCondition()
583 mSimulatedCommands); in testSendTextWithMessageRefMaxBoundaryCondition()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/
DEuiccCardTest.java122 mEuiccCard.update(mContext, mSimulatedCommands, mMockIccCardStatus, 1); in testEuiccCardInfoCorrectness()

12