Lines Matching refs:s

65 std::string CdmaSmsTest::UnicodeToString(uint8_t *s, int len) const  in UnicodeToString()  argument
70 char32_t u8char = (s[i] << BIT_8) | s[i + 1]; in UnicodeToString()
76 void CdmaSmsTest::PrintAddr(TransportAddr &addr, string s) const in PrintAddr()
82 ss << s << "digitMode : " << addr.digitMode << endl; in PrintAddr()
83 ss << s << "numberMode : " << addr.numberMode << endl; in PrintAddr()
84 ss << s << "numberType : " << static_cast<int>(addr.numberType) << endl; in PrintAddr()
85 ss << s << "numberPlan : " << static_cast<int>(addr.numberPlan) << endl; in PrintAddr()
86 ss << s << "addrLen : " << addr.addrLen << endl; in PrintAddr()
87 ss << s << "szData : "; in PrintAddr()
95 void CdmaSmsTest::PrintSubAddr(TransportSubAddr &addr, string s) const in PrintSubAddr()
102 cout << s << "type : NSAP - " << static_cast<int>(addr.type) << endl; in PrintSubAddr()
105 cout << s << "type : USER - " << static_cast<int>(addr.type) << endl; in PrintSubAddr()
108 cout << s << "type : " << static_cast<int>(addr.type) << endl; in PrintSubAddr()
111 cout << s << "odd : " << addr.odd << endl; in PrintSubAddr()
112 cout << s << "addrLen : " << addr.addrLen << endl; in PrintSubAddr()
117 cout << s << "szData : " << ss.str() << endl << flush; in PrintSubAddr()
120 void CdmaSmsTest::PrintSmsTeleSvcAddr(SmsTeleSvcAddr &addr, string s) const in PrintSmsTeleSvcAddr()
125 cout << s << "digitMode : " << addr.digitMode << endl; in PrintSmsTeleSvcAddr()
126 cout << s << "numberType : " << static_cast<int>(addr.numberType) << endl; in PrintSmsTeleSvcAddr()
127 cout << s << "numberPlan : " << static_cast<int>(addr.numberPlan) << endl; in PrintSmsTeleSvcAddr()
128 cout << s << "addrLen : " << addr.addrLen << endl; in PrintSmsTeleSvcAddr()
133 cout << s << "szData : " << ss.str() << endl << flush; in PrintSmsTeleSvcAddr()
136 void CdmaSmsTest::PrintHeader(const SmsUDH &header, string s) const in PrintHeader()
140 cout << s << "udhType : UDH_CONCAT_8BIT - " << static_cast<int>(header.udhType) << endl; in PrintHeader()
141 …cout << s << "concat8bit: msgRef[" << static_cast<int>(header.udh.concat8bit.msgRef) << "] totalSe… in PrintHeader()
147 … cout << s << "udhType : UDH_CONCAT_16BIT - " << static_cast<int>(header.udhType) << endl; in PrintHeader()
148 …cout << s << "concat16bit.seqNum [" << static_cast<int>(header.udh.concat16bit.seqNum) << "]" << e… in PrintHeader()
152 … cout << s << "udhType : UDH_APP_PORT_8BIT - " << static_cast<int>(header.udhType) << endl; in PrintHeader()
153 …cout << s << "appPort8bit.destPort [" << static_cast<int>(header.udh.appPort8bit.destPort) << "]" … in PrintHeader()
154 …cout << s << "appPort8bit.originPort [" << static_cast<int>(header.udh.appPort8bit.originPort) << … in PrintHeader()
159 … cout << s << "udhType : UDH_APP_PORT_16BIT - " << static_cast<int>(header.udhType) << endl; in PrintHeader()
160 …cout << s << "appPort16bit.destPort [" << static_cast<int>(header.udh.appPort16bit.destPort) << "]… in PrintHeader()
161 …cout << s << "appPort16bit.originPort [" << static_cast<int>(header.udh.appPort16bit.originPort) <… in PrintHeader()
166 cout << s << "udhType : UDH_SPECIAL_SMS - " << static_cast<int>(header.udhType) << endl; in PrintHeader()
167 cout << s << "Decoding special sms udh." << endl; in PrintHeader()
171 … cout << s << "udhType : UDH_SINGLE_SHIFT - " << static_cast<int>(header.udhType) << endl; in PrintHeader()
172 …cout << s << "singleShift.langId [" << static_cast<int>(header.udh.singleShift.langId) << "]" << e… in PrintHeader()
176 … cout << s << "udhType : UDH_LOCKING_SHIFT - " << static_cast<int>(header.udhType) << endl; in PrintHeader()
177 …cout << s << "lockingShift.langId [" << static_cast<int>(header.udh.lockingShift.langId) << "]" <<… in PrintHeader()
181 cout << s << "udhType : " << static_cast<int>(header.udhType) << endl; in PrintHeader()
187 void CdmaSmsTest::PrintTimeAbs(SmsTimeAbs &time, string s) const in PrintTimeAbs()
189 cout << dec << s << static_cast<int>(time.year) << "/" << static_cast<int>(time.month) << "/" in PrintTimeAbs()
195 void CdmaSmsTest::PrintEncodeType(SmsEncodingType encodeType, string s) const in PrintEncodeType()
199 cout << s << "encodeType : OCTET - " << static_cast<int>(encodeType) << endl; in PrintEncodeType()
202 cout << s << "encodeType : EPM - " << static_cast<int>(encodeType) << endl; in PrintEncodeType()
205 cout << s << "encodeType : ASCII_7BIT - " << static_cast<int>(encodeType) << endl; in PrintEncodeType()
208 cout << s << "encodeType : IA5 - " << static_cast<int>(encodeType) << endl; in PrintEncodeType()
211 cout << s << "encodeType : UNICODE - " << static_cast<int>(encodeType) << endl; in PrintEncodeType()
214 cout << s << "encodeType : SHIFT_JIS - " << static_cast<int>(encodeType) << endl; in PrintEncodeType()
217 cout << s << "encodeType : KOREAN - " << static_cast<int>(encodeType) << endl; in PrintEncodeType()
220 cout << s << "encodeType : LATIN_HEBREW - " << static_cast<int>(encodeType) << endl; in PrintEncodeType()
223 cout << s << "encodeType : LATIN - " << static_cast<int>(encodeType) << endl; in PrintEncodeType()
226 cout << s << "encodeType : GSM7BIT - " << static_cast<int>(encodeType) << endl; in PrintEncodeType()
229 cout << s << "encodeType : GSMDCS - " << static_cast<int>(encodeType) << endl; in PrintEncodeType()
232 cout << s << "encodeType : EUCKR - " << static_cast<int>(encodeType) << endl; in PrintEncodeType()
235 cout << s << "encodeType : RESERVED - " << static_cast<int>(encodeType) << endl; in PrintEncodeType()
238 cout << s << "encodeType : - " << static_cast<int>(encodeType) << endl; in PrintEncodeType()
244 void CdmaSmsTest::PrintUserData(SmsTeleSvcUserData &userData, string s) const in PrintUserData()
249 PrintEncodeType(userData.encodeType, s); in PrintUserData()
250 cout << s << "msgType : " << static_cast<int>(userData.msgType) << endl; in PrintUserData()
251 cout << s << "headerCnt : " << static_cast<int>(userData.userData.headerCnt) << endl; in PrintUserData()
255 cout << s << "length : " << userData.userData.length << endl; in PrintUserData()
262 … cout << s << "data : " << UnicodeToString(unicodeChar, userData.userData.length) << endl; in PrintUserData()
267 cout << s << "data : " << ss.str() << endl; in PrintUserData()
272 void CdmaSmsTest::PrintCmasData(SmsTeleSvcCmasData cmasData, string s) const in PrintCmasData()
277 PrintEncodeType(cmasData.encodeType, s); in PrintCmasData()
278 cout << s << "dataLen : " << cmasData.dataLen << endl; in PrintCmasData()
291 cout << s << "alertText : " << ss.str() << endl; in PrintCmasData()
292 cout << s << "category : " << static_cast<uint32_t>(cmasData.category) << endl; in PrintCmasData()
293 cout << s << "responseType : " << static_cast<uint32_t>(cmasData.responseType) << endl; in PrintCmasData()
294 cout << s << "severity : " << static_cast<uint32_t>(cmasData.severity) << endl; in PrintCmasData()
295 cout << s << "urgency : " << static_cast<uint32_t>(cmasData.urgency) << endl; in PrintCmasData()
296 cout << s << "certainty : " << static_cast<uint32_t>(cmasData.certainty) << endl; in PrintCmasData()
297 cout << s << "id : " << static_cast<uint32_t>(cmasData.id) << endl; in PrintCmasData()
298 cout << s << "alertHandle : " << static_cast<uint32_t>(cmasData.alertHandle) << endl; in PrintCmasData()
299 cout << s << "language : " << static_cast<uint32_t>(cmasData.language) << endl; in PrintCmasData()
300 … cout << s << "isWrongRecodeType : " << static_cast<uint32_t>(cmasData.isWrongRecodeType) << endl; in PrintCmasData()
301 cout << s << "expires : " << endl; in PrintCmasData()
306 void CdmaSmsTest::PrintSmsReplyOption(SmsReplyOption &replyOpt, string s) const in PrintSmsReplyOption()
308 cout << s << "userAck : " << replyOpt.userAck << endl; in PrintSmsReplyOption()
309 cout << s << "dak : " << replyOpt.dak << endl; in PrintSmsReplyOption()
310 cout << s << "readAck : " << replyOpt.readAck << endl; in PrintSmsReplyOption()
311 cout << s << "report : " << replyOpt.report << endl; in PrintSmsReplyOption()
315 void CdmaSmsTest::PrintSmsValPeriod(SmsValPeriod &valPeriod, string s) const in PrintSmsValPeriod()
319 … cout << s << "RELATIVE : " << static_cast<uint32_t>(valPeriod.time.relTime.time) << endl; in PrintSmsValPeriod()
322 cout << s << "ABSOLUTE : " << endl; in PrintSmsValPeriod()
326 cout << s << "EMPTY" << endl; in PrintSmsValPeriod()
329 cout << s << " " << static_cast<uint32_t>(valPeriod.format) << endl; in PrintSmsValPeriod()
335 void CdmaSmsTest::PrintSmsEnhancedVmn(SmsEnhancedVmn &vmn, string s) const in PrintSmsEnhancedVmn()
337 cout << s << "priority : " << static_cast<int>(vmn.priority) << endl; in PrintSmsEnhancedVmn()
338 cout << s << "vmMsgId : " << static_cast<int>(vmn.vmMsgId) << endl; in PrintSmsEnhancedVmn()
339 cout << s << "anNumField : " << static_cast<int>(vmn.anNumField) << endl; in PrintSmsEnhancedVmn()
340 cout << s << "cliNumField : " << static_cast<int>(vmn.cliNumField) << endl; in PrintSmsEnhancedVmn()
344 void CdmaSmsTest::PrintTeleserviceDeliver(TeleserviceDeliver &deliver, bool isCMAS, string s) const in PrintTeleserviceDeliver()
346 cout << s << " msgId : " << static_cast<int>(deliver.msgId.msgId) << endl; in PrintTeleserviceDeliver()
347 cout << s << " headerInd : " << static_cast<int>(deliver.msgId.headerInd) << endl; in PrintTeleserviceDeliver()
349 cout << s << " cmasData : " << endl; in PrintTeleserviceDeliver()
352 cout << s << " userData : " << endl; in PrintTeleserviceDeliver()
355 cout << s << " timeStamp : " << endl; in PrintTeleserviceDeliver()
357 cout << s << " valPeriod : " << endl; in PrintTeleserviceDeliver()
359 cout << s << " deferValPeriod : " << endl; in PrintTeleserviceDeliver()
361 cout << s << " replyOpt : " << endl; in PrintTeleserviceDeliver()
363 cout << s << " numMsg : " << static_cast<int>(deliver.numMsg) << endl; in PrintTeleserviceDeliver()
364 cout << s << " language : " << static_cast<int>(deliver.language) << endl; in PrintTeleserviceDeliver()
365 cout << s << " callbackNumber : " << endl; in PrintTeleserviceDeliver()
367 cout << s << " depositId : " << static_cast<int>(deliver.depositId) << endl; in PrintTeleserviceDeliver()
368 cout << s << " vmn : " << endl; in PrintTeleserviceDeliver()
372 void CdmaSmsTest::PrintTeleserviceSubmit(TeleserviceSubmit submit, string s) const in PrintTeleserviceSubmit()
374 cout << s << " msgId : " << static_cast<int>(submit.msgId.msgId) << endl; in PrintTeleserviceSubmit()
375 cout << s << " headerInd : " << static_cast<int>(submit.msgId.headerInd) << endl; in PrintTeleserviceSubmit()
376 cout << s << " userData : " << endl; in PrintTeleserviceSubmit()
378 cout << s << " valPeriod : " << endl; in PrintTeleserviceSubmit()
380 cout << s << " deferValPeriod : " << endl; in PrintTeleserviceSubmit()
382 cout << s << " replyOpt : " << endl; in PrintTeleserviceSubmit()
384 cout << s << " language : " << static_cast<int>(submit.language) << endl; in PrintTeleserviceSubmit()
385 cout << s << " callbackNumber : " << endl; in PrintTeleserviceSubmit()
387 cout << s << " depositId : " << static_cast<int>(submit.depositId) << endl; in PrintTeleserviceSubmit()
390 void CdmaSmsTest::PrintTeleserviceDeliverAck(TeleserviceDeliverAck deliveryAck, string s) const in PrintTeleserviceDeliverAck()
392 cout << s << " msgId : " << static_cast<int>(deliveryAck.msgId.msgId) << endl; in PrintTeleserviceDeliverAck()
393 cout << s << " headerInd : " << static_cast<int>(deliveryAck.msgId.headerInd) << endl; in PrintTeleserviceDeliverAck()
394 cout << s << " userData : " << endl; in PrintTeleserviceDeliverAck()
396 cout << s << " timeStamp : " << endl; in PrintTeleserviceDeliverAck()
398 cout << s << " msgStatus : " << static_cast<int>(deliveryAck.msgStatus) << endl; in PrintTeleserviceDeliverAck()
401 void CdmaSmsTest::PrintTelesvc(CdmaTeleserviceMsg &telesvcMsg, bool isCMAS, string s) const in PrintTelesvc()
403 cout << s << "TeleserviceMsg >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" << endl; in PrintTelesvc()
406 cout << s << "Type: RESERVED - " << static_cast<int>(telesvcMsg.type) << endl; in PrintTelesvc()
409 cout << s << "Type: DELIVER - " << static_cast<int>(telesvcMsg.type) << endl; in PrintTelesvc()
410 PrintTeleserviceDeliver(telesvcMsg.data.deliver, isCMAS, s); in PrintTelesvc()
413 cout << s << "Type: SUBMIT - " << static_cast<int>(telesvcMsg.type) << endl; in PrintTelesvc()
414 PrintTeleserviceSubmit(telesvcMsg.data.submit, s); in PrintTelesvc()
418 cout << s << "Type: CANCEL - " << static_cast<int>(telesvcMsg.type) << endl; in PrintTelesvc()
419 … cout << s << " msgId : " << static_cast<int>(telesvcMsg.data.cancel.msgId.msgId) << endl; in PrintTelesvc()
420 … cout << s << " headerInd : " << static_cast<int>(telesvcMsg.data.cancel.msgId.headerInd) << endl; in PrintTelesvc()
423 cout << s << "Type: DELIVERY_ACK - " << static_cast<int>(telesvcMsg.type) << endl; in PrintTelesvc()
424 PrintTeleserviceDeliverAck(telesvcMsg.data.deliveryAck, s); in PrintTelesvc()
427 cout << s << "Type: DELIVER_REPORT - " << static_cast<int>(telesvcMsg.type) << endl; in PrintTelesvc()
428 …cout << s << " msgId : " << static_cast<int>(telesvcMsg.data.report.msgId.msgId) << end… in PrintTelesvc()
429 …cout << s << " headerInd : " << static_cast<int>(telesvcMsg.data.report.msgId.headerInd) <<… in PrintTelesvc()
430 cout << s << " userData : " << endl; in PrintTelesvc()
432 …cout << s << " tpFailCause : " << static_cast<int>(telesvcMsg.data.report.tpFailCause) << end… in PrintTelesvc()
433 … cout << s << " language : " << static_cast<int>(telesvcMsg.data.report.language) << endl; in PrintTelesvc()
434 …cout << s << " multiEncodeData : " << static_cast<int>(telesvcMsg.data.report.multiEncodeData) <<… in PrintTelesvc()
437 cout << s << "Type: SUBMIT_REPORT - " << static_cast<int>(telesvcMsg.type) << endl; in PrintTelesvc()
440 cout << s << "Type: RESERVED - " << static_cast<int>(telesvcMsg.type) << endl; in PrintTelesvc()
443 cout << s << "TeleserviceMsg <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<" << endl << flush; in PrintTelesvc()