Lines Matching defs:NetworkTemplate
49 public class NetworkTemplate implements Parcelable {
83 public static NetworkTemplate buildTemplateMobileAll(String subscriberId) {
84 return new NetworkTemplate(MATCH_MOBILE_ALL, subscriberId, null);
92 public static NetworkTemplate buildTemplateMobile3gLower(String subscriberId) {
93 return new NetworkTemplate(MATCH_MOBILE_3G_LOWER, subscriberId, null);
101 public static NetworkTemplate buildTemplateMobile4g(String subscriberId) {
102 return new NetworkTemplate(MATCH_MOBILE_4G, subscriberId, null);
109 public static NetworkTemplate buildTemplateMobileWildcard() {
110 return new NetworkTemplate(MATCH_MOBILE_WILDCARD, null, null);
117 public static NetworkTemplate buildTemplateWifiWildcard() {
118 return new NetworkTemplate(MATCH_WIFI_WILDCARD, null, null);
122 public static NetworkTemplate buildTemplateWifi() {
130 public static NetworkTemplate buildTemplateWifi(String networkId) {
131 return new NetworkTemplate(MATCH_WIFI, null, networkId);
138 public static NetworkTemplate buildTemplateEthernet() {
139 return new NetworkTemplate(MATCH_ETHERNET, null, null);
146 public static NetworkTemplate buildTemplateBluetooth() {
147 return new NetworkTemplate(MATCH_BLUETOOTH, null, null);
165 public NetworkTemplate(int matchRule, String subscriberId, String networkId) {
169 public NetworkTemplate(int matchRule, String subscriberId, String[] matchSubscriberIds,
177 private NetworkTemplate(Parcel in) {
199 final StringBuilder builder = new StringBuilder("NetworkTemplate: ");
222 if (obj instanceof NetworkTemplate) {
223 final NetworkTemplate other = (NetworkTemplate) obj;
423 public static NetworkTemplate normalize(NetworkTemplate template, String[] merged) {
427 return new NetworkTemplate(template.mMatchRule, merged[0], merged,
434 public static final Creator<NetworkTemplate> CREATOR = new Creator<NetworkTemplate>() {
436 public NetworkTemplate createFromParcel(Parcel in) {
437 return new NetworkTemplate(in);
441 public NetworkTemplate[] newArray(int size) {
442 return new NetworkTemplate[size];