Lines Matching refs:ident
302 public boolean matches(NetworkIdentity ident) {
305 return matchesMobile(ident);
307 return matchesMobile3gLower(ident);
309 return matchesMobile4g(ident);
311 return matchesWifi(ident);
313 return matchesEthernet(ident);
315 return matchesMobileWildcard(ident);
317 return matchesWifiWildcard(ident);
319 return matchesBluetooth(ident);
321 return matchesProxy(ident);
336 private boolean matchesMobile(NetworkIdentity ident) {
337 if (ident.mType == TYPE_WIMAX) {
341 return (sForceAllNetworkTypes || (ident.mType == TYPE_MOBILE && ident.mMetered))
343 && ArrayUtils.contains(mMatchSubscriberIds, ident.mSubscriberId);
351 private boolean matchesMobile3gLower(NetworkIdentity ident) {
353 if (ident.mType == TYPE_WIMAX) {
355 } else if (matchesMobile(ident)) {
356 switch (getNetworkClass(ident.mSubType)) {
370 private boolean matchesMobile4g(NetworkIdentity ident) {
372 if (ident.mType == TYPE_WIMAX) {
375 } else if (matchesMobile(ident)) {
376 switch (getNetworkClass(ident.mSubType)) {
387 private boolean matchesWifi(NetworkIdentity ident) {
388 switch (ident.mType) {
391 removeDoubleQuotes(mNetworkId), removeDoubleQuotes(ident.mNetworkId));
400 private boolean matchesEthernet(NetworkIdentity ident) {
401 if (ident.mType == TYPE_ETHERNET) {
407 private boolean matchesMobileWildcard(NetworkIdentity ident) {
408 if (ident.mType == TYPE_WIMAX) {
411 return sForceAllNetworkTypes || (ident.mType == TYPE_MOBILE && ident.mMetered);
415 private boolean matchesWifiWildcard(NetworkIdentity ident) {
416 switch (ident.mType) {
428 private boolean matchesBluetooth(NetworkIdentity ident) {
429 if (ident.mType == TYPE_BLUETOOTH) {
438 private boolean matchesProxy(NetworkIdentity ident) {
439 return ident.mType == TYPE_PROXY;