Loading api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -28871,6 +28871,7 @@ package android.telecomm { method public android.telecomm.PhoneAccountHandle getDefaultOutgoingPhoneAccount(); method public java.util.List<android.telecomm.PhoneAccountHandle> getEnabledPhoneAccounts(); method public android.telecomm.PhoneAccount getPhoneAccount(android.telecomm.PhoneAccountHandle); method public boolean hasMultipleEnabledAccounts(); method public void registerPhoneAccount(android.telecomm.PhoneAccount); method public void unregisterPhoneAccount(android.telecomm.PhoneAccountHandle); field public static final java.lang.String ACTION_CONNECTION_SERVICE_CONFIGURE = "android.intent.action.CONNECTION_SERVICE_CONFIGURE"; telecomm/java/android/telecomm/TelecommManager.java +10 −0 Original line number Diff line number Diff line Loading @@ -290,6 +290,16 @@ public class TelecommManager { return null; } /** * Determine whether the device has more than one account registered and enabled. * * @return {@code true} if the device has more than one account registered and enabled and * {@code false} otherwise. */ public boolean hasMultipleEnabledAccounts() { return getEnabledPhoneAccounts().size() > 1; } /** * Return the {@link PhoneAccount} for a specified {@link PhoneAccountHandle}. Object includes * resources which can be used in a user interface. Loading Loading
api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -28871,6 +28871,7 @@ package android.telecomm { method public android.telecomm.PhoneAccountHandle getDefaultOutgoingPhoneAccount(); method public java.util.List<android.telecomm.PhoneAccountHandle> getEnabledPhoneAccounts(); method public android.telecomm.PhoneAccount getPhoneAccount(android.telecomm.PhoneAccountHandle); method public boolean hasMultipleEnabledAccounts(); method public void registerPhoneAccount(android.telecomm.PhoneAccount); method public void unregisterPhoneAccount(android.telecomm.PhoneAccountHandle); field public static final java.lang.String ACTION_CONNECTION_SERVICE_CONFIGURE = "android.intent.action.CONNECTION_SERVICE_CONFIGURE";
telecomm/java/android/telecomm/TelecommManager.java +10 −0 Original line number Diff line number Diff line Loading @@ -290,6 +290,16 @@ public class TelecommManager { return null; } /** * Determine whether the device has more than one account registered and enabled. * * @return {@code true} if the device has more than one account registered and enabled and * {@code false} otherwise. */ public boolean hasMultipleEnabledAccounts() { return getEnabledPhoneAccounts().size() > 1; } /** * Return the {@link PhoneAccount} for a specified {@link PhoneAccountHandle}. Object includes * resources which can be used in a user interface. Loading