Lines Matching refs:fromMsgId

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)
92 if (fromMsgId == UINT32_MAX || fromMsgId < 1) {
95 rangeList_.emplace_back(info.fromMsgId, fromMsgId - 1);
101 bool SmsMiscManager::CloseCBRange(uint32_t fromMsgId, uint32_t toMsgId)
103 if (fromMsgId == UINT32_MAX || fromMsgId < 1) {
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) {
121 } else if (fromMsgId < info.fromMsgId && toMsgId == info.toMsgId) {
124 } else if (fromMsgId > info.fromMsgId && toMsgId == info.toMsgId) {
125 rangeList_.emplace_back(info.fromMsgId, fromMsgId - 1);
128 } else if (fromMsgId > info.fromMsgId && toMsgId < info.toMsgId) {
129 SplitMsgId(fromMsgId, toMsgId, oldIter);
131 } else if (fromMsgId > info.fromMsgId && fromMsgId <= info.toMsgId) {
132 rangeList_.emplace_back(info.fromMsgId, fromMsgId - 1);
135 } else if (fromMsgId < info.fromMsgId && toMsgId > info.toMsgId) {
138 } else if (toMsgId < info.toMsgId && toMsgId >= info.fromMsgId) {
265 if (OtherIter->fromMsgId == iter->fromMsgId) {
271 } else if (OtherIter->fromMsgId <= static_cast<uint32_t>(iter->toMsgId + 1)) {
328 if (item.fromMsgId == item.toMsgId) {
329 ret += std::to_string(item.fromMsgId);
331 ret += std::to_string(item.fromMsgId) + "-" + std::to_string(item.toMsgId);
341 TELEPHONY_LOGD("[%{public}d-%{public}d]", item.fromMsgId, item.toMsgId);