Merge "Add isMatchRuleMobile back" am: 9ff2fe7747 am: 0d3e843bb2
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2444979 Change-Id: Idfd3a2f9359cf9fb7414ce048c079bae2424b420 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -436,6 +436,19 @@ public final class NetworkTemplate implements Parcelable {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO(b/270089918): Remove this method after no callers.
|
||||||
|
/** @hide */
|
||||||
|
public boolean isMatchRuleMobile() {
|
||||||
|
switch (mMatchRule) {
|
||||||
|
case MATCH_MOBILE:
|
||||||
|
// Old MATCH_MOBILE_WILDCARD
|
||||||
|
case 6:
|
||||||
|
return true;
|
||||||
|
default:
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get match rule of the template. See {@code MATCH_*}.
|
* Get match rule of the template. See {@code MATCH_*}.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user