Lines Matching defs:template
162 * that should be considered to match this template.
197 Log.e(TAG, "Unknown network template rule " + matchRule
309 * Test if given {@link NetworkIdentity} matches this template.
332 // We have no idea what kind of network template we are, so we
375 * Check if matches Wi-Fi network template.
388 * Check if matches Ethernet network template.
416 * Check if matches Bluetooth network template.
426 * Check if matches Proxy network template.
454 * Examine the given template and normalize if it refers to a "merged"
456 * for key purposes, and expand the template to match all other merged
459 * For example, given an incoming template matching B, and the currently
460 * active merge set [A,B], we'd return a new template that primarily matches
463 public static NetworkTemplate normalize(NetworkTemplate template, String[] merged) {
464 if (template.isMatchRuleMobile() && ArrayUtils.contains(merged, template.mSubscriberId)) {
465 // Requested template subscriber is part of the merge group; return
466 // a template that matches all merged subscribers.
467 return new NetworkTemplate(template.mMatchRule, merged[0], merged,
468 template.mNetworkId);
470 return template;
512 "Restored network template contains unknown match rule " + matchRule);