Lines Matching defs:toMsgId
36 int32_t SmsMiscManager::SetCBConfig(bool enable, uint32_t fromMsgId, uint32_t toMsgId, uint8_t netType)
39 if ((toMsgId > RANG_MAX) || (fromMsgId > toMsgId) || (netType != GSM_TYPE)) {
55 ret = OpenCBRange(fromMsgId, toMsgId);
57 ret = CloseCBRange(fromMsgId, toMsgId);
80 bool SmsMiscManager::OpenCBRange(uint32_t fromMsgId, uint32_t toMsgId)
82 infoData data(fromMsgId, toMsgId);
83 rangeList_.emplace_back(fromMsgId, toMsgId);
89 uint32_t fromMsgId, uint32_t toMsgId, const std::list<gsmCBRangeInfo>::iterator &oldIter)
96 rangeList_.emplace_back(toMsgId + 1, info.toMsgId);
101 bool SmsMiscManager::CloseCBRange(uint32_t fromMsgId, uint32_t toMsgId)
111 if (fromMsgId == info.fromMsgId && toMsgId == info.toMsgId) {
114 } else if (fromMsgId == info.fromMsgId && toMsgId > info.toMsgId) {
117 } else if (fromMsgId == info.fromMsgId && toMsgId < info.toMsgId) {
118 rangeList_.emplace_back(toMsgId + 1, info.toMsgId);
121 } else if (fromMsgId < info.fromMsgId && toMsgId == info.toMsgId) {
124 } else if (fromMsgId > info.fromMsgId && toMsgId == info.toMsgId) {
128 } else if (fromMsgId > info.fromMsgId && toMsgId < info.toMsgId) {
129 SplitMsgId(fromMsgId, toMsgId, oldIter);
131 } else if (fromMsgId > info.fromMsgId && fromMsgId <= info.toMsgId) {
135 } else if (fromMsgId < info.fromMsgId && toMsgId > info.toMsgId) {
138 } else if (toMsgId < info.toMsgId && toMsgId >= info.fromMsgId) {
139 rangeList_.emplace_back(toMsgId + 1, info.toMsgId);
268 } else if (OtherIter->toMsgId <= iter->toMsgId) {
271 } else if (OtherIter->fromMsgId <= static_cast<uint32_t>(iter->toMsgId + 1)) {
272 iter->toMsgId = OtherIter->toMsgId;
328 if (item.fromMsgId == item.toMsgId) {
331 ret += std::to_string(item.fromMsgId) + "-" + std::to_string(item.toMsgId);
341 TELEPHONY_LOGD("[%{public}d-%{public}d]", item.fromMsgId, item.toMsgId);