Loading api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -37578,6 +37578,7 @@ package android.telephony { method public void listen(android.telephony.PhoneStateListener, int); method public java.lang.String sendEnvelopeWithStatus(java.lang.String); method public void sendUssdRequest(java.lang.String, android.telephony.TelephonyManager.OnReceiveUssdResponseCallback, android.os.Handler); method public void sendUssdRequest(java.lang.String, int, android.telephony.TelephonyManager.OnReceiveUssdResponseCallback, android.os.Handler); method public boolean setLine1NumberForDisplay(java.lang.String, java.lang.String); method public boolean setOperatorBrandOverride(java.lang.String); method public boolean setPreferredNetworkTypeToGlobal(); api/system-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -40727,6 +40727,7 @@ package android.telephony { method public boolean needsOtaServiceProvisioning(); method public java.lang.String sendEnvelopeWithStatus(java.lang.String); method public void sendUssdRequest(java.lang.String, android.telephony.TelephonyManager.OnReceiveUssdResponseCallback, android.os.Handler); method public void sendUssdRequest(java.lang.String, int, android.telephony.TelephonyManager.OnReceiveUssdResponseCallback, android.os.Handler); method public void setDataEnabled(boolean); method public void setDataEnabled(int, boolean); method public boolean setLine1NumberForDisplay(java.lang.String, java.lang.String); api/test-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -37667,6 +37667,7 @@ package android.telephony { method public void listen(android.telephony.PhoneStateListener, int); method public java.lang.String sendEnvelopeWithStatus(java.lang.String); method public void sendUssdRequest(java.lang.String, android.telephony.TelephonyManager.OnReceiveUssdResponseCallback, android.os.Handler); method public void sendUssdRequest(java.lang.String, int, android.telephony.TelephonyManager.OnReceiveUssdResponseCallback, android.os.Handler); method public boolean setLine1NumberForDisplay(java.lang.String, java.lang.String); method public boolean setOperatorBrandOverride(java.lang.String); method public boolean setPreferredNetworkTypeToGlobal(); telephony/java/android/telephony/TelephonyManager.java +31 −17 Original line number Diff line number Diff line Loading @@ -4650,10 +4650,24 @@ public class TelephonyManager { /* <p>Requires permission: * @link android.Manifest.permission#CALL_PHONE} * @param ussdRequest the USSD command to be executed. * @param wrappedCallback receives a callback result. */ @RequiresPermission(android.Manifest.permission.CALL_PHONE) public void sendUssdRequest(String ussdRequest, final OnReceiveUssdResponseCallback callback, Handler handler) { sendUssdRequest(ussdRequest, getSubId(), callback, handler); } /* <p>Requires permission: * @link android.Manifest.permission#CALL_PHONE} * @param subId The subscription to use. * @param ussdRequest the USSD command to be executed. * @param wrappedCallback receives a callback result. */ @RequiresPermission(android.Manifest.permission.CALL_PHONE) public void sendUssdRequest(String ussdRequest, int subId, final OnReceiveUssdResponseCallback callback, Handler handler) { checkNotNull(callback, "OnReceiveUssdResponseCallback cannot be null."); ResultReceiver wrappedCallback = new ResultReceiver(handler) { Loading @@ -4675,7 +4689,7 @@ public class TelephonyManager { try { ITelephony telephony = getITelephony(); if (telephony != null) { telephony.handleUssdRequest(ussdRequest, wrappedCallback); telephony.handleUssdRequest(subId, ussdRequest, wrappedCallback); } } catch (RemoteException e) { Log.e(TAG, "Error calling ITelephony#sendUSSDCode", e); Loading telephony/java/com/android/internal/telephony/ITelephony.aidl +2 −1 Original line number Diff line number Diff line Loading @@ -275,10 +275,11 @@ interface ITelephony { /** * Handles USSD commands. * * @param subId The subscription to use. * @param ussdRequest the USSD command to be executed. * @param wrappedCallback receives a callback result. */ void handleUssdRequest(String ussdRequest, in ResultReceiver wrappedCallback); void handleUssdRequest(int subId, String ussdRequest, in ResultReceiver wrappedCallback); /** * Handles PIN MMI commands (PIN/PIN2/PUK/PUK2), which are initiated Loading Loading
api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -37578,6 +37578,7 @@ package android.telephony { method public void listen(android.telephony.PhoneStateListener, int); method public java.lang.String sendEnvelopeWithStatus(java.lang.String); method public void sendUssdRequest(java.lang.String, android.telephony.TelephonyManager.OnReceiveUssdResponseCallback, android.os.Handler); method public void sendUssdRequest(java.lang.String, int, android.telephony.TelephonyManager.OnReceiveUssdResponseCallback, android.os.Handler); method public boolean setLine1NumberForDisplay(java.lang.String, java.lang.String); method public boolean setOperatorBrandOverride(java.lang.String); method public boolean setPreferredNetworkTypeToGlobal();
api/system-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -40727,6 +40727,7 @@ package android.telephony { method public boolean needsOtaServiceProvisioning(); method public java.lang.String sendEnvelopeWithStatus(java.lang.String); method public void sendUssdRequest(java.lang.String, android.telephony.TelephonyManager.OnReceiveUssdResponseCallback, android.os.Handler); method public void sendUssdRequest(java.lang.String, int, android.telephony.TelephonyManager.OnReceiveUssdResponseCallback, android.os.Handler); method public void setDataEnabled(boolean); method public void setDataEnabled(int, boolean); method public boolean setLine1NumberForDisplay(java.lang.String, java.lang.String);
api/test-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -37667,6 +37667,7 @@ package android.telephony { method public void listen(android.telephony.PhoneStateListener, int); method public java.lang.String sendEnvelopeWithStatus(java.lang.String); method public void sendUssdRequest(java.lang.String, android.telephony.TelephonyManager.OnReceiveUssdResponseCallback, android.os.Handler); method public void sendUssdRequest(java.lang.String, int, android.telephony.TelephonyManager.OnReceiveUssdResponseCallback, android.os.Handler); method public boolean setLine1NumberForDisplay(java.lang.String, java.lang.String); method public boolean setOperatorBrandOverride(java.lang.String); method public boolean setPreferredNetworkTypeToGlobal();
telephony/java/android/telephony/TelephonyManager.java +31 −17 Original line number Diff line number Diff line Loading @@ -4650,10 +4650,24 @@ public class TelephonyManager { /* <p>Requires permission: * @link android.Manifest.permission#CALL_PHONE} * @param ussdRequest the USSD command to be executed. * @param wrappedCallback receives a callback result. */ @RequiresPermission(android.Manifest.permission.CALL_PHONE) public void sendUssdRequest(String ussdRequest, final OnReceiveUssdResponseCallback callback, Handler handler) { sendUssdRequest(ussdRequest, getSubId(), callback, handler); } /* <p>Requires permission: * @link android.Manifest.permission#CALL_PHONE} * @param subId The subscription to use. * @param ussdRequest the USSD command to be executed. * @param wrappedCallback receives a callback result. */ @RequiresPermission(android.Manifest.permission.CALL_PHONE) public void sendUssdRequest(String ussdRequest, int subId, final OnReceiveUssdResponseCallback callback, Handler handler) { checkNotNull(callback, "OnReceiveUssdResponseCallback cannot be null."); ResultReceiver wrappedCallback = new ResultReceiver(handler) { Loading @@ -4675,7 +4689,7 @@ public class TelephonyManager { try { ITelephony telephony = getITelephony(); if (telephony != null) { telephony.handleUssdRequest(ussdRequest, wrappedCallback); telephony.handleUssdRequest(subId, ussdRequest, wrappedCallback); } } catch (RemoteException e) { Log.e(TAG, "Error calling ITelephony#sendUSSDCode", e); Loading
telephony/java/com/android/internal/telephony/ITelephony.aidl +2 −1 Original line number Diff line number Diff line Loading @@ -275,10 +275,11 @@ interface ITelephony { /** * Handles USSD commands. * * @param subId The subscription to use. * @param ussdRequest the USSD command to be executed. * @param wrappedCallback receives a callback result. */ void handleUssdRequest(String ussdRequest, in ResultReceiver wrappedCallback); void handleUssdRequest(int subId, String ussdRequest, in ResultReceiver wrappedCallback); /** * Handles PIN MMI commands (PIN/PIN2/PUK/PUK2), which are initiated Loading