Merge "Implement ITelephony#isDomainSelectionSupported"
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index ffc67e2..b8b730a 100644
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -192,6 +192,7 @@
import com.android.internal.telephony.TelephonyIntents;
import com.android.internal.telephony.TelephonyPermissions;
import com.android.internal.telephony.data.DataUtils;
+import com.android.internal.telephony.domainselection.DomainSelectionResolver;
import com.android.internal.telephony.emergency.EmergencyNumberTracker;
import com.android.internal.telephony.euicc.EuiccConnector;
import com.android.internal.telephony.ims.ImsResolver;
@@ -11804,4 +11805,22 @@
Binder.restoreCallingIdentity(identity);
}
}
+
+ /**
+ * Returns whether the device supports the domain selection service.
+ *
+ * @return {@code true} if the device supports the domain selection service.
+ */
+ @Override
+ public boolean isDomainSelectionSupported() {
+ mApp.enforceCallingOrSelfPermission(Manifest.permission.READ_PRIVILEGED_PHONE_STATE,
+ "isDomainSelectionSupported");
+
+ final long identity = Binder.clearCallingIdentity();
+ try {
+ return DomainSelectionResolver.getInstance().isDomainSelectionSupported();
+ } finally {
+ Binder.restoreCallingIdentity(identity);
+ }
+ }
}