Merge "Clean up SIM CallManager APIs." into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
fe1fdacf1d
@@ -476,39 +476,6 @@ public class TelecomManager {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the SIM call manager to the specified phone account.
|
|
||||||
*
|
|
||||||
* @param accountHandle The phone account handle of the account to set as the sim call manager.
|
|
||||||
* @hide
|
|
||||||
*/
|
|
||||||
public void setSimCallManager(PhoneAccountHandle accountHandle) {
|
|
||||||
try {
|
|
||||||
if (isServiceConnected()) {
|
|
||||||
getTelecomService().setSimCallManager(accountHandle);
|
|
||||||
}
|
|
||||||
} catch (RemoteException e) {
|
|
||||||
Log.e(TAG, "Error calling ITelecomService#setSimCallManager");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the list of registered SIM call managers.
|
|
||||||
*
|
|
||||||
* @return List of registered SIM call managers.
|
|
||||||
* @hide
|
|
||||||
*/
|
|
||||||
public List<PhoneAccountHandle> getSimCallManagers() {
|
|
||||||
try {
|
|
||||||
if (isServiceConnected()) {
|
|
||||||
return getTelecomService().getSimCallManagers(mContext.getOpPackageName());
|
|
||||||
}
|
|
||||||
} catch (RemoteException e) {
|
|
||||||
Log.e(TAG, "Error calling ITelecomService#getSimCallManagers");
|
|
||||||
}
|
|
||||||
return new ArrayList<>();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the current connection manager. Apps must be prepared for this method to return
|
* Returns the current connection manager. Apps must be prepared for this method to return
|
||||||
* {@code null}, indicating that there currently exists no user-chosen default
|
* {@code null}, indicating that there currently exists no user-chosen default
|
||||||
|
|||||||
@@ -92,16 +92,6 @@ interface ITelecomService {
|
|||||||
*/
|
*/
|
||||||
PhoneAccountHandle getSimCallManager();
|
PhoneAccountHandle getSimCallManager();
|
||||||
|
|
||||||
/**
|
|
||||||
* @see TelecomServiceImpl#setSimCallManager
|
|
||||||
*/
|
|
||||||
void setSimCallManager(in PhoneAccountHandle account);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @see TelecomServiceImpl#getSimCallManagers
|
|
||||||
*/
|
|
||||||
List<PhoneAccountHandle> getSimCallManagers(String callingPackage);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see TelecomServiceImpl#registerPhoneAccount
|
* @see TelecomServiceImpl#registerPhoneAccount
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user