Lines Matching refs:id
49 * files in our assets folder. First we look for a file named after the MCC+MNC of {@code id}
54 public PersistableBundle onLoadConfig(CarrierIdentifier id) {
57 if (id == null) {
71 String fileName = "carrier_config_" + id.getMcc() + id.getMnc() + ".xml";
73 config = readConfigFromXml(parser, id);
84 PersistableBundle vendorConfig = readConfigFromXml(vendorInput, id);
98 * parses it into a bundle if its filters match {@code id}. The format of XML bundles is defined
116 * @param id the details of the SIM operator used to filter parts of the document
119 static PersistableBundle readConfigFromXml(XmlPullParser parser, CarrierIdentifier id)
133 if (!checkFilters(parser, id)) {
148 * checks each one against {@code id} or {@link Build.DEVICE}. Attributes that are not specified
162 * @param id the carrier details to check against.
165 static boolean checkFilters(XmlPullParser parser, CarrierIdentifier id) {
172 result = result && value.equals(id.getMcc());
175 result = result && value.equals(id.getMnc());
178 result = result && value.equalsIgnoreCase(id.getGid1());
181 result = result && value.equalsIgnoreCase(id.getGid2());
184 result = result && value.equalsIgnoreCase(id.getSpn());