Home
last modified time | relevance | path

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

12

/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()
434 boolean oldState = (mSimulatedCommands.getRadioState() == TelephonyManager.RADIO_POWER_ON); in testSetRadioPower()
438 != (mSimulatedCommands.getRadioState() == TelephonyManager.RADIO_POWER_ON)); in testSetRadioPower()
459 assertEquals(TelephonyManager.RADIO_POWER_ON, mSimulatedCommands.getRadioState()); in testSetRadioPowerWaitForAllDataDisconnected()
464 assertEquals(TelephonyManager.RADIO_POWER_ON, mSimulatedCommands.getRadioState()); in testSetRadioPowerWaitForAllDataDisconnected()
481 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.java512 mSimulatedCommands.setSignalStrength(ss); in testLteSignalStrengthReportingCriteria()
513 mSimulatedCommands.notifySignalStrength(); in testLteSignalStrengthReportingCriteria()
528 mSimulatedCommands.setSignalStrength(ss); in testLteSignalStrengthReportingCriteria()
529 mSimulatedCommands.notifySignalStrength(); in testLteSignalStrengthReportingCriteria()
810 mSimulatedCommands.setSignalStrength(ss); in test5gNrSignalStrengthReportingCriteria_UseSsRsrp()
811 mSimulatedCommands.notifySignalStrength(); in test5gNrSignalStrengthReportingCriteria_UseSsRsrp()
837 mSimulatedCommands.setSignalStrength(ss); in test5gNrSignalStrengthReportingCriteria_UseSsRsrpAndSsRsrq()
838 mSimulatedCommands.notifySignalStrength(); in test5gNrSignalStrengthReportingCriteria_UseSsRsrpAndSsRsrq()
865 mSimulatedCommands.setSignalStrength(ss); in test5gNrSignalStrengthReportingCriteria_ConfiguredThresholds()
866 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.java297 protected SimulatedCommands mSimulatedCommands; field in TelephonyTest
584 mSimulatedCommands = new SimulatedCommands(); in setUp()
602 mPhone.mCi = mSimulatedCommands; in setUp()
603 mCT.mCi = mSimulatedCommands; in setUp()
973 new CommandsInterface[] {mSimulatedCommands}); in setUp()
1004 if (mSimulatedCommands != null) { in tearDown()
1005 mSimulatedCommands.dispose(); in tearDown()
1031 mSimulatedCommands = null; in tearDown()
DMultiSimSettingControllerTest.java171 mPhoneMock1.mCi = mSimulatedCommands; in setUp()
172 mPhoneMock2.mCi = mSimulatedCommands; in setUp()
347 replaceInstance(BaseCommands.class, "mState", mSimulatedCommands, in testSubInfoChangeAfterRadioUnavailable()
DDisplayInfoControllerTest.java94 mSst = new ServiceStateTracker(mPhone, mSimulatedCommands, mFeatureFlags); in onLooperPrepared()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DUiccCardApplicationTest.java77 mContext, mSimulatedCommands, mFeatureFlags); 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()
144 mSimulatedCommands.setRadioPower(true, null); in testUpdateActiveSlotStatus()
155 mUiccSlot.update(new CommandsInterface[] {mSimulatedCommands}, iss, 0 /* slotIndex */); in testUpdateActiveSlotStatus()
192 mUiccSlot.update(new CommandsInterface[] {mSimulatedCommands}, iss, 0 /* slotIndex */); in testUpdateSlotStatusEuiccIsSupported()
227 mUiccSlot.update(new CommandsInterface[] {mSimulatedCommands}, iss, 0 /* slotIndex */); in testUpdateSlotStatusEuiccIsNotSupported()
262 mUiccSlot.update(new CommandsInterface[] {mSimulatedCommands}, iss, 0 /* slotIndex */); in testUpdateSlotStatusVoltageClassA()
297 mUiccSlot.update(new CommandsInterface[] {mSimulatedCommands}, iss, 0 /* slotIndex */); in testUpdateSlotStatusVoltageClassANoTa()
332 mUiccSlot.update(new CommandsInterface[] {mSimulatedCommands}, iss, 0 /* slotIndex */); in testUpdateSlotStatusVoltageClassB()
367 mUiccSlot.update(new CommandsInterface[] {mSimulatedCommands}, iss, 0 /* slotIndex */); in testUpdateSlotStatusVoltageClassC()
381 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.java123 mSimulatedCommands.setIccIoResultForApduLogicalChannel(mIccIoResult); in setUp()
130 mUiccProfile = new UiccProfile(mContext, mSimulatedCommands, mIccCardStatus, in setUp()
206 mUiccProfile.update(mContext, mSimulatedCommands, mIccCardStatus); in testUpdateUiccProfileApplication()
220 mSimulatedCommands.setOpenChannelId(mChannelId); in testUpdateUiccProfile()
221 mUiccProfile.update(mContext, mSimulatedCommands, mIccCardStatus); in testUpdateUiccProfile()
237 mUiccProfile.update(mContext, mSimulatedCommands, mIccCardStatus); in testUpdateUiccProfilePinState()
267 mUiccProfile.update(mContext, mSimulatedCommands, mIccCardStatus); in testUpdateUiccProfileApplicationNotReady()
297 mUiccProfile.update(mContext, mSimulatedCommands, mIccCardStatus); in testUpdateUiccProfileApplicationAllReady()
329 mUiccProfile.update(mContext, mSimulatedCommands, mIccCardStatus); in testUpdateUiccProfileApplicationAllSupportedAppsReady()
365 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()
92 mUiccCard.update(mContext, mSimulatedCommands, mIccCardStatus, 0); in testUpdateUiccCardState()
DUiccStateChangedLauncherTest.java106 UiccCard card = mUiccCardToDispose = new UiccCard(mContext, mSimulatedCommands, in testProvisioningPackageSet()
123 card.update(mContext, mSimulatedCommands, in testProvisioningPackageSet()
140 card.update(mContext, mSimulatedCommands, in testProvisioningPackageSet()
DUiccPortTest.java76 mSimulatedCommands.setIccIoResultForApduLogicalChannel(mIccIoResult); in setUp()
77 mUiccPort = new UiccPort(mContext, mSimulatedCommands, mIccCardStatus, in setUp()
DUiccControllerTest.java119 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/imsphone/
DImsPhoneTest.java1218 mSimulatedCommands.updateImsRegistrationInfo(0, 0, 0, 0, null); in testUpdateImsRegistrationInfoRadioTech()
1220 int[] regInfo = mSimulatedCommands.getImsRegistrationInfo(); in testUpdateImsRegistrationInfoRadioTech()
1231 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()
1256 regInfo = mSimulatedCommands.getImsRegistrationInfo(); in testUpdateImsRegistrationInfoRadioTech()
1262 mSimulatedCommands.updateImsRegistrationInfo(0, 0, 0, 0, null); in testUpdateImsRegistrationInfoRadioTech()
1263 regInfo = mSimulatedCommands.getImsRegistrationInfo(); in testUpdateImsRegistrationInfoRadioTech()
1272 regInfo = mSimulatedCommands.getImsRegistrationInfo(); in testUpdateImsRegistrationInfoRadioTech()
[all …]
DImsNrSaModeHandlerTest.java88 mSimulatedCommands.setN1ModeEnabled(enabled, message); in setN1ModeEnabled()
117 mContext, mSimulatedCommands, mNotifier, true, 0, in setUp()
218 mSimulatedCommands.setVonrEnabled(true); in testOnImsRegisteredWithSaDisablePolicyWfcEstablishedWithVonrDisabled()
229 mSimulatedCommands.setVonrEnabled(false); in testOnImsRegisteredWithSaDisablePolicyWfcEstablishedWithVonrDisabled()
240 mSimulatedCommands.setVonrEnabled(true); in testOnImsRegisteredWithSaDisablePolicyWfcEstablishedWithVonrDisabled()
451 mSimulatedCommands.setVonrEnabled(false); in testOnPreciseCallStateChangedWithSaDisablePolicyWfcEstablishedWithVonrDisabled()
/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.java142 mEmergencyNumberTrackerMock = new EmergencyNumberTracker(mPhone, mSimulatedCommands, in setUp()
144 mEmergencyNumberTrackerMock2 = new EmergencyNumberTracker(mPhone2, mSimulatedCommands, in setUp()
351 localEmergencyNumberTracker = new EmergencyNumberTracker(mPhone, mSimulatedCommands, in testRegistrationForCountryChangeIntent()
527 mPhone, mSimulatedCommands, mFeatureFlags); in testUsingEmergencyNumberDatabaseWheneverHal_1_4()
597 mPhone, mSimulatedCommands, mFeatureFlags); in testUsingEmergencyNumberDatabaseWithRouting()
698 mPhone, mSimulatedCommands, mFeatureFlags); in testUsingEmergencyNumberDatabaseWithRoutingInOOS()
815 new EmergencyNumberTracker(mPhone, mSimulatedCommands, mFeatureFlags); in testOverridingEmergencyNumberPrefixCarrierConfig()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DGsmSmsDispatcherTest.java185 mSimulatedCommands.notifySmsStatus(new byte[]{(byte)0xFF, (byte)0xFF, (byte)0xFF}); in testSmsStatus()
631 mSimulatedCommands, mFeatureFlags); in testSendTextWithMessageRefNegativeBoundaryCondition()
650 mSimulatedCommands, mFeatureFlags); in testSendTextWithMessageRefMaxBoundaryCondition()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/
DEuiccCardTest.java125 mEuiccCard.update(mContext, mSimulatedCommands, mMockIccCardStatus, 1); in testEuiccCardInfoCorrectness()

12