Merge "Add isEmergencyApn"

am: 660a94aea9

Change-Id: I2cc69815894a426423396efb512986581b25c3e3
This commit is contained in:
Jordan Liu
2020-01-07 12:10:35 -08:00
committed by android-build-merger

View File

@@ -1055,6 +1055,11 @@ public class ApnSetting implements Parcelable {
return (mApnTypeBitmask & type) == type; return (mApnTypeBitmask & type) == type;
} }
/** @hide */
public boolean isEmergencyApn() {
return hasApnType(TYPE_EMERGENCY);
}
/** @hide */ /** @hide */
public boolean canHandleType(@ApnType int type) { public boolean canHandleType(@ApnType int type) {
if (!mCarrierEnabled) { if (!mCarrierEnabled) {