Lines Matching refs:cid
111 def to_string(cid): argument
113 ret = cid.mcc_mnc
114 if cid.HasField('spn'):
115 ret += 'SPN=' + cid.spn.upper()
116 if cid.HasField('imsi'):
117 ret += 'IMSI=' + cid.imsi.upper()
118 if cid.HasField('gid1'):
119 ret += 'GID1=' + cid.gid1.upper()
125 cid = carrier_list_pb2.CarrierId()
128 cid.mcc_mnc = cid_string[:ind]
129 cid.spn = cid_string[ind + len('SPN='):]
132 cid.mcc_mnc = cid_string[:ind]
133 cid.imsi = cid_string[ind + len('IMSI='):]
136 cid.mcc_mnc = cid_string[:ind]
137 cid.gid1 = cid_string[ind + len('GID1='):]
139 cid.mcc_mnc = cid_string
140 return cid
175 for cid in carriermap.carrier_id:
176 ret[to_string(cid)] = carriermap.canonical_name