Skip to content
Snippets Groups Projects
Commit 2f86eb67 authored by Hunsuk Choi's avatar Hunsuk Choi
Browse files

Add isAospDomainSelectionService to TelephonyManager

EmergencyCallDomainSelectionTestOnMockModem is a test
for AOSP domain selection service.

It determines whether the AOSP domain selection
service is running or not with this API.

Bug: 333893700
Test: atest EmergencyCallDomainSelectionTestOnMockModem
Change-Id: Ia5ee0074b3ebd95fe883ceb7eb4c3ab5eef4b008
parent d588b98d
No related branches found
No related tags found
No related merge requests found
......@@ -19263,6 +19263,26 @@ public class TelephonyManager {
return false;
}
 
/**
* Returns whether the AOSP domain selection service is supported.
*
* @return {@code true} if the AOSP domain selection service is supported.
* @hide
*/
@RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE)
@RequiresFeature(PackageManager.FEATURE_TELEPHONY_CALLING)
public boolean isAospDomainSelectionService() {
try {
ITelephony telephony = getITelephony();
if (telephony != null) {
return telephony.isAospDomainSelectionService();
}
} catch (RemoteException ex) {
Rlog.w(TAG, "RemoteException", ex);
}
return false;
}
/**
* Returns the primary IMEI (International Mobile Equipment Identity) of the device as
* mentioned in GSMA TS.37. {@link #getImei(int)} returns the IMEI that belongs to the selected
......
......@@ -3243,6 +3243,12 @@ interface ITelephony {
*/
boolean clearDomainSelectionServiceOverride();
/**
* @return {@code true} if the AOSP domain selection service is supported,
* {@code false} otherwise.
*/
boolean isAospDomainSelectionService();
/**
* Enable or disable notifications sent for cellular identifier disclosure events.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment