Home
last modified time | relevance | path

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

12

/base/telephony/sms_mms/services/sms/gsm/
Dgsm_user_data_encode.cpp56 uint16_t location = buffer.GetIndex(); in EncodeGsmHeadPdu()
62 uint16_t udhl = buffer.GetIndex(); in EncodeGsmHeadPdu()
67 if (buffer.GetIndex() > udhl) { in EncodeGsmHeadPdu()
68 udhl = buffer.GetIndex() - udhl; in EncodeGsmHeadPdu()
129 uint16_t location = buffer.GetIndex(); in Encode8bitHeadPdu()
137 uint16_t udhl = buffer.GetIndex(); in Encode8bitHeadPdu()
141 if (buffer.GetIndex() > udhl) { in Encode8bitHeadPdu()
142 udhl = buffer.GetIndex() - udhl; in Encode8bitHeadPdu()
172 if (buffer.GetIndex() >= MAX_TPDU_LEN || userData->length + buffer.GetIndex() > MAX_TPDU_LEN) { in Encode8bitBodyPdu()
176 …if (buffer.GetIndex() >= buffer.GetSize() || userData->length + buffer.GetIndex() > buffer.GetSize… in Encode8bitBodyPdu()
[all …]
Dgsm_sms_tpdu_encode.cpp58 if (buffer.data_ == nullptr || (buffer.GetIndex() + position) > buffer.GetSize()) { in EncodeSubmitPdu()
62 … if (memcpy_s(buffer.data_.get() + buffer.GetIndex(), position, address.data(), position) != EOK) { in EncodeSubmitPdu()
80 if (buffer.data_ == nullptr || (buffer.GetIndex() + HEX_VALUE_01) > buffer.GetSize()) { in EncodeSubmitPduPartData()
84 uint16_t bufferLen = buffer.GetSize() - buffer.GetIndex() - HEX_VALUE_01; in EncodeSubmitPduPartData()
85 …if (memcpy_s(buffer.data_.get() + buffer.GetIndex(), bufferLen, dcs.data(), HEX_VALUE_01) != EOK) { in EncodeSubmitPduPartData()
97 if (buffer.data_ == nullptr || (buffer.GetIndex() + position) > buffer.GetSize()) { in EncodeSubmitPduPartData()
101 … if (memcpy_s(buffer.data_.get() + buffer.GetIndex(), position, vpTime.data(), position) != EOK) { in EncodeSubmitPduPartData()
115 if (!buffer.InsertByte(HEX_VALUE_01, buffer.GetIndex())) { in EncodeSubmitTpduType()
126 if (!buffer.InsertByte(oneByte | HEX_VALUE_04, buffer.GetIndex())) { in EncodeSubmitTpduType()
146 if (!buffer.InsertByte(oneByte | HEX_VALUE_08, buffer.GetIndex())) { in EncodeSubmitTypePartData()
[all …]
Dgsm_user_data_decode.cpp80 if (buffer.GetIndex() + udl >= buffer.GetSize()) { in DecodeGsmHeadPdu()
81 len = buffer.GetSize() - buffer.GetIndex(); in DecodeGsmHeadPdu()
87 … if (memcpy_s(pTPUD->ud, sizeof(pTPUD->ud), buffer.data_.get() + buffer.GetIndex(), len) != EOK) { in DecodeGsmHeadPdu()
112 uint8_t current = buffer.GetIndex(); in DecodeGsmHeadPduPartData()
113 for (int i = 0; buffer.GetIndex() < current + udhl && i < MAX_UD_HEADER_NUM; i++) { in DecodeGsmHeadPduPartData()
124 if (buffer.GetIndex() >= buffer.GetSize()) { in DecodeGsmHeadPduPartData()
175 uint16_t current = buffer.GetIndex(); in Decode8bitPdu()
191 if (buffer.data_ == nullptr || (buffer.GetIndex() + pTPUD->udl > buffer.GetSize())) { in Decode8bitPdu()
195 …if (memcpy_s(pTPUD->ud, sizeof(pTPUD->ud), buffer.data_.get() + buffer.GetIndex() + WAP_PUSH_USER_… in Decode8bitPdu()
222 current = buffer.GetIndex(); in Decode8bitPduPartData()
[all …]
Dgsm_sms_common_utils.cpp64 if (!buffer.GetValueFromIndex(buffer.GetIndex() - 1, oneByte)) { in Pack7bitChar()
69 if (!buffer.InsertByte(oneByte, (buffer.GetIndex() - 1))) { in Pack7bitChar()
84 if (!buffer.GetValueFromIndex(buffer.GetIndex() - 1, oneByte)) { in Pack7bitCharPartData()
89 if (!buffer.InsertByte(oneByte, (buffer.GetIndex() - 1))) { in Pack7bitCharPartData()
133 if (!buffer.PickOneByteFromIndex(buffer.GetIndex() - 1, oneByte)) { in Unpack7bitChar()
Dgsm_sms_tpdu_codec.cpp73 bufLen = pduBuffer.GetIndex(); in EncodeSmsPdu()
130 TELEPHONY_LOGI("buffer index:%{public}d", buffer.GetIndex()); in DecodeSmsPdu()
131 if (decodeResult && buffer.GetIndex() <= (TpduLen + 1)) { in DecodeSmsPdu()
Dgsm_user_data_pdu.cpp155 uint16_t current = buffer.GetIndex(); in GetHeaderCnt()
168 if ((buffer.GetIndex() - current) > (udhl + SLIDE_DATA_STEP)) { in GetHeaderCnt()
294 if (buffer.data_ == nullptr || (buffer.GetIndex() + addrLen) > buffer.GetSize()) { in EncodeHeaderReplyAddress()
298 …if (memcpy_s(buffer.data_.get() + buffer.GetIndex(), addrLen, encodedAddr.data(), addrLen) != EOK)… in EncodeHeaderReplyAddress()
373 headerLen = buffer.GetIndex(); in DecodeHeader()
412 if (buffer.GetIndex() > headerLen) { in DecodeHeader()
413 headerLen = buffer.GetIndex() - headerLen; in DecodeHeader()
/base/telephony/sms_mms/test/gtest/
Dzero_branch_cdma_sms_test.cpp163 EXPECT_EQ(buffer->GetIndex(), 0);
165 EXPECT_EQ(buffer->GetIndex(), 0);
167 EXPECT_EQ(buffer->GetIndex(), 0);
190 EXPECT_EQ(buffer->GetIndex(), 0);
192 EXPECT_EQ(buffer->GetIndex(), 1);
194 EXPECT_EQ(buffer->GetIndex(), 0);
196 EXPECT_EQ(buffer->GetIndex(), pduLen);
198 EXPECT_EQ(buffer->GetIndex(), pduLen);
201 EXPECT_EQ(buffer->GetIndex(), 0);
208 EXPECT_EQ(buffer->GetIndex(), 0);
[all …]
/base/telephony/cellular_call/services/control/include/
Dcontrol_base.h250 if (pConnection != nullptr && pConnection->GetIndex() == index) { in FindConnectionByIndex()
329 return pConnection->StartDtmfRequest(callInfo.slotId, cDtmfCode, pConnection->GetIndex()); in StartDtmf()
361 return pConnection->StopDtmfRequest(callInfo.slotId, pConnection->GetIndex()); in StopDtmf()
409 return pConnection->SendDtmfRequest(callInfo.slotId, cDtmfCode, pConnection->GetIndex()); in SendDtmf()
/base/global/i18n/frameworks/intl/include/
Dindex_util.h33 std::string GetIndex(const std::string &String);
/base/telephony/sms_mms/test/fuzztest/smspdubuffer_fuzzer/
Dsmspdubuffer_fuzzer.cpp38 buffer->GetIndex(); in ReadBuffer()
75 buffer->GetIndex(); in WriteBuffer()
/base/telephony/cellular_call/services/connection/include/
Dbase_connection.h101 int32_t GetIndex() const;
/base/telephony/sms_mms/services/sms/cdma/
Dcdma_sms_transport_message.cpp186 uint16_t index = pdu.GetIndex(); in CdmaSmsP2pMessage()
220 uint16_t index = pdu.GetIndex(); in CdmaSmsBroadcastMessage()
225 uint16_t index = pdu.GetIndex(); in CdmaSmsBroadcastMessage()
Dcdma_sms_parameter_record.cpp438 uint8_t index = pdu.GetIndex(); in CdmaSmsBearerData()
482 len_ = pdu.GetIndex() - lenIndex - 1; in Encode()
/base/telephony/sms_mms/services/sms/include/
Dsms_pdu_buffer.h30 uint16_t GetIndex();
/base/telephony/cellular_call/test/fuzztest/setorupdatecallreportinfo_fuzzer/
Dsetorupdatecallreportinfo_fuzzer.cpp65 baseConnection->GetIndex(); in DoSomethingInterestingWithMyAPI()
/base/telephony/cellular_call/services/connection/src/
Dbase_connection.cpp70 int32_t BaseConnection::GetIndex() const in GetIndex() function in OHOS::Telephony::BaseConnection
Dcellular_call_connection_cs.cpp64 int32_t index = GetIndex(); in HangUpRequest()
302 SendDtmfRequest(slotId, c, GetIndex()); in ProcessPostDialCallChar()
311 postDial->callId = GetIndex(); in ProcessPostDialCallChar()
Dcellular_call_connection_ims.cpp391 SendDtmfRequest(slotId, c, GetIndex()); in ProcessPostDialCallChar()
400 postDial->callId = GetIndex(); in ProcessPostDialCallChar()
/base/global/i18n/frameworks/intl/src/
Dindex_util.cpp74 std::string IndexUtil::GetIndex(const std::string &String) in GetIndex() function in OHOS::Global::I18n::IndexUtil
/base/telephony/cellular_call/services/control/src/
Dims_control.cpp272 int32_t index = it.second.GetIndex(); in HangUpAllConnection()
296 return pConnection->KickOutFromConferenceRequest(slotId, pConnection->GetIndex()); in KickOutFromConference()
445 ExecutePostDial(slotId, pConnection->GetIndex()); in ReportUpdateInfo()
544 ExecutePostDial(callInfo.slotId, pConnection->GetIndex()); in PostDialProceed()
Dcs_control.cpp358 return pConnection->SeparateConferenceRequest(slotId, pConnection->GetIndex(), VOICE_CALL); in SeparateConference()
441 ExecutePostDial(slotId, pConnection->GetIndex()); in ReportUpdateInfo()
609 ExecutePostDial(callInfo.slotId, pConnection->GetIndex()); in PostDialProceed()
/base/telephony/core_service/interfaces/innerkits/include/
Ddialling_numbers_info.h152 int32_t GetIndex() in GetIndex() function
/base/telephony/core_service/services/sim/src/
Dicc_dialling_numbers_manager.cpp186 int index = diallingNumber->GetIndex(); in UpdateIccDiallingNumbers()
215 int index = diallingNumber->GetIndex(); in DelIccDiallingNumbers()
/base/telephony/sms_mms/services/sms/
Dsms_pdu_buffer.cpp38 uint16_t SmsPduBuffer::GetIndex() in GetIndex() function in OHOS::Telephony::SmsPduBuffer
/base/telephony/core_service/services/sim/include/
Dicc_dialling_numbers_handler.h107 int GetIndex() in GetIndex() function

12