use of com.android.internal.telephony.UUSInfo in project android_frameworks_opt_telephony by LineageOS.
the class TelephonyMetricsTest method setUp.
@Before
public void setUp() throws Exception {
super.setUp(getClass().getSimpleName());
mMetrics = new TelephonyMetrics();
mMetrics.setContext(mContext);
mUusInfo = new UUSInfo(1, 2, new byte[] { 1, 2 });
doReturn("123").when(mImsCallSession).getCallId();
mImsReasonInfo = new ImsReasonInfo();
mImsReasonInfo.mExtraMessage = "extramessage";
mImsReasonInfo.mCode = 123;
mImsReasonInfo.mExtraCode = 456;
doReturn(ROAMING_TYPE_DOMESTIC).when(mServiceState).getVoiceRoamingType();
doReturn(ROAMING_TYPE_DOMESTIC).when(mServiceState).getDataRoamingType();
doReturn("short").when(mServiceState).getOperatorAlphaShort();
doReturn("long").when(mServiceState).getOperatorAlphaLong();
doReturn("123456").when(mServiceState).getOperatorNumeric();
doReturn(RIL_RADIO_TECHNOLOGY_LTE).when(mServiceState).getRilVoiceRadioTechnology();
doReturn(RIL_RADIO_TECHNOLOGY_LTE).when(mServiceState).getRilDataRadioTechnology();
doReturn(FREQUENCY_RANGE_UNKNOWN).when(mServiceState).getNrFrequencyRange();
doReturn(NR_STATE_NONE).when(mServiceState).getNrState();
}
Aggregations