Lines Matching refs:id
73 public PersistableBundle onLoadConfig(@Nullable CarrierIdentifier id) { in onLoadConfig() argument
85 return loadConfig(parser, id); in onLoadConfig()
93 PersistableBundle loadConfig(XmlPullParser parser, @Nullable CarrierIdentifier id) { in loadConfig() argument
97 if (id == null) { in loadConfig()
118 if (id.getCarrierId() != TelephonyManager.UNKNOWN_CARRIER_ID) { in loadConfig()
125 .getCarrierIdFromMccMnc(id.getMcc() + id.getMnc()); in loadConfig()
127 if (file.startsWith(CARRIER_ID_PREFIX + id.getSpecificCarrierId() + "_")) { in loadConfig()
131 } else if (file.startsWith(CARRIER_ID_PREFIX + id.getCarrierId() + "_")) { in loadConfig()
152 MCCMNC_PREFIX + id.getMcc() + id.getMnc() + ".xml"), "utf-8"); in loadConfig()
153 config = readConfigFromXml(parser, id, sku); in loadConfig()
165 PersistableBundle vendorConfig = readConfigFromXml(vendorInput, id, sku); in loadConfig()
217 static PersistableBundle readConfigFromXml(XmlPullParser parser, @Nullable CarrierIdentifier id, in readConfigFromXml() argument
231 if (!checkFilters(parser, id, sku)) { in readConfigFromXml()
274 static boolean checkFilters(XmlPullParser parser, @Nullable CarrierIdentifier id, String sku) { in checkFilters() argument
281 result = result && (id == null || value.equals(id.getMcc())); in checkFilters()
284 result = result && (id == null || value.equals(id.getMnc())); in checkFilters()
287 result = result && (id == null || value.equalsIgnoreCase(id.getGid1())); in checkFilters()
290 result = result && (id == null || value.equalsIgnoreCase(id.getGid2())); in checkFilters()
293 result = result && (id == null || matchOnSP(value, id)); in checkFilters()
296 result = result && (id == null || matchOnImsi(value, id)); in checkFilters()
302 result = result && (id == null || (Integer.parseInt(value) == id.getCarrierId()) in checkFilters()
303 || (Integer.parseInt(value) == id.getSpecificCarrierId())); in checkFilters()
329 static boolean matchOnImsi(String xmlImsi, CarrierIdentifier id) { in matchOnImsi() argument
332 String currentImsi = id.getImsi(); in matchOnImsi()
350 static boolean matchOnSP(String xmlSP, CarrierIdentifier id) { in matchOnSP() argument
353 String currentSP = id.getSpn(); in matchOnSP()