Loading api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -36351,6 +36351,7 @@ package android.telecom { method public boolean handleMmi(java.lang.String, android.telecom.PhoneAccountHandle); method public boolean isInCall(); method public boolean isVoiceMailNumber(android.telecom.PhoneAccountHandle, java.lang.String); method public void launchManageBlockedNumbersActivity(); method public void placeCall(android.net.Uri, android.os.Bundle); method public void registerPhoneAccount(android.telecom.PhoneAccount); method public void showInCallScreen(boolean); api/system-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -38927,6 +38927,7 @@ package android.telecom { method public boolean isRinging(); method public boolean isTtySupported(); method public boolean isVoiceMailNumber(android.telecom.PhoneAccountHandle, java.lang.String); method public void launchManageBlockedNumbersActivity(); method public void placeCall(android.net.Uri, android.os.Bundle); method public void registerPhoneAccount(android.telecom.PhoneAccount); method public void showInCallScreen(boolean); api/test-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -36366,6 +36366,7 @@ package android.telecom { method public boolean handleMmi(java.lang.String, android.telecom.PhoneAccountHandle); method public boolean isInCall(); method public boolean isVoiceMailNumber(android.telecom.PhoneAccountHandle, java.lang.String); method public void launchManageBlockedNumbersActivity(); method public void placeCall(android.net.Uri, android.os.Bundle); method public void registerPhoneAccount(android.telecom.PhoneAccount); method public void showInCallScreen(boolean); telecomm/java/android/telecom/TelecomManager.java +17 −0 Original line number Diff line number Diff line Loading @@ -1414,6 +1414,23 @@ public class TelecomManager { return result; } /** * Launches the {@link android.app.Activity} to manage blocked numbers. * <p> This method displays the UI to manage blocked numbers only if * {@link android.provider.BlockedNumberContract#canCurrentUserBlockNumbers(Context)} returns * {@code true} for the current user. */ public void launchManageBlockedNumbersActivity() { ITelecomService service = getTelecomService(); if (service != null) { try { service.launchManageBlockedNumbersActivity(mContext.getPackageName()); } catch (RemoteException e) { Log.e(TAG, "Error calling ITelecomService#manageBlockedNumbers", e); } } } private ITelecomService getTelecomService() { if (mTelecomServiceOverride != null) { return mTelecomServiceOverride; Loading Loading
api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -36351,6 +36351,7 @@ package android.telecom { method public boolean handleMmi(java.lang.String, android.telecom.PhoneAccountHandle); method public boolean isInCall(); method public boolean isVoiceMailNumber(android.telecom.PhoneAccountHandle, java.lang.String); method public void launchManageBlockedNumbersActivity(); method public void placeCall(android.net.Uri, android.os.Bundle); method public void registerPhoneAccount(android.telecom.PhoneAccount); method public void showInCallScreen(boolean);
api/system-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -38927,6 +38927,7 @@ package android.telecom { method public boolean isRinging(); method public boolean isTtySupported(); method public boolean isVoiceMailNumber(android.telecom.PhoneAccountHandle, java.lang.String); method public void launchManageBlockedNumbersActivity(); method public void placeCall(android.net.Uri, android.os.Bundle); method public void registerPhoneAccount(android.telecom.PhoneAccount); method public void showInCallScreen(boolean);
api/test-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -36366,6 +36366,7 @@ package android.telecom { method public boolean handleMmi(java.lang.String, android.telecom.PhoneAccountHandle); method public boolean isInCall(); method public boolean isVoiceMailNumber(android.telecom.PhoneAccountHandle, java.lang.String); method public void launchManageBlockedNumbersActivity(); method public void placeCall(android.net.Uri, android.os.Bundle); method public void registerPhoneAccount(android.telecom.PhoneAccount); method public void showInCallScreen(boolean);
telecomm/java/android/telecom/TelecomManager.java +17 −0 Original line number Diff line number Diff line Loading @@ -1414,6 +1414,23 @@ public class TelecomManager { return result; } /** * Launches the {@link android.app.Activity} to manage blocked numbers. * <p> This method displays the UI to manage blocked numbers only if * {@link android.provider.BlockedNumberContract#canCurrentUserBlockNumbers(Context)} returns * {@code true} for the current user. */ public void launchManageBlockedNumbersActivity() { ITelecomService service = getTelecomService(); if (service != null) { try { service.launchManageBlockedNumbersActivity(mContext.getPackageName()); } catch (RemoteException e) { Log.e(TAG, "Error calling ITelecomService#manageBlockedNumbers", e); } } } private ITelecomService getTelecomService() { if (mTelecomServiceOverride != null) { return mTelecomServiceOverride; Loading