Loading api/current.txt +0 −1 Original line number Original line Diff line number Diff line Loading @@ -38181,7 +38181,6 @@ package android.telephony { method public void listen(android.telephony.PhoneStateListener, int); method public void listen(android.telephony.PhoneStateListener, int); method public java.lang.String sendEnvelopeWithStatus(java.lang.String); 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, 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(boolean); method public boolean setLine1NumberForDisplay(java.lang.String, java.lang.String); method public boolean setLine1NumberForDisplay(java.lang.String, java.lang.String); method public boolean setOperatorBrandOverride(java.lang.String); method public boolean setOperatorBrandOverride(java.lang.String); api/system-current.txt +0 −1 Original line number Original line Diff line number Diff line Loading @@ -41405,7 +41405,6 @@ package android.telephony { method public boolean needsOtaServiceProvisioning(); method public boolean needsOtaServiceProvisioning(); method public java.lang.String sendEnvelopeWithStatus(java.lang.String); 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, android.telephony.TelephonyManager.OnReceiveUssdResponseCallback, android.os.Handler); method public void sendUssdRequest(java.lang.String, int, android.telephony.TelephonyManager.OnReceiveUssdResponseCallback, android.os.Handler); method public int setAllowedCarriers(int, java.util.List<android.service.carrier.CarrierIdentifier>); method public int setAllowedCarriers(int, java.util.List<android.service.carrier.CarrierIdentifier>); method public void setDataEnabled(boolean); method public void setDataEnabled(boolean); method public void setDataEnabled(int, boolean); method public void setDataEnabled(int, boolean); api/test-current.txt +0 −1 Original line number Original line Diff line number Diff line Loading @@ -38280,7 +38280,6 @@ package android.telephony { method public void listen(android.telephony.PhoneStateListener, int); method public void listen(android.telephony.PhoneStateListener, int); method public java.lang.String sendEnvelopeWithStatus(java.lang.String); 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, 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(boolean); method public boolean setLine1NumberForDisplay(java.lang.String, java.lang.String); method public boolean setLine1NumberForDisplay(java.lang.String, java.lang.String); method public boolean setOperatorBrandOverride(java.lang.String); method public boolean setOperatorBrandOverride(java.lang.String); telephony/java/android/telephony/TelephonyManager.java +11 −16 Original line number Original line Diff line number Diff line Loading @@ -5070,26 +5070,21 @@ public class TelephonyManager { public void onReceiveUssdResponseFailed(String request, int failureCode) {}; public void onReceiveUssdResponseFailed(String request, int failureCode) {}; } } /* <p>Requires permission: /** * @link android.Manifest.permission#CALL_PHONE} * Sends an Unstructured Supplementary Service Data (USSD) request to the cellular network and * informs the caller of the response via {@code callback}. * <p>Carriers define USSD codes which can be sent by the user to request information such as * the user's current data balance or minutes balance. * <p>Requires permission: * {@link android.Manifest.permission#CALL_PHONE} * @param ussdRequest the USSD command to be executed. * @param ussdRequest the USSD command to be executed. * @param wrappedCallback receives a callback result. * @param callback called by the framework to inform the caller of the result of executing the * USSD request (see {@link OnReceiveUssdResponseCallback}). * @param handler the {@link Handler} to run the request on. */ */ @RequiresPermission(android.Manifest.permission.CALL_PHONE) @RequiresPermission(android.Manifest.permission.CALL_PHONE) public void sendUssdRequest(String ussdRequest, public void sendUssdRequest(String ussdRequest, final OnReceiveUssdResponseCallback callback, Handler handler) { 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."); checkNotNull(callback, "OnReceiveUssdResponseCallback cannot be null."); ResultReceiver wrappedCallback = new ResultReceiver(handler) { ResultReceiver wrappedCallback = new ResultReceiver(handler) { Loading @@ -5111,7 +5106,7 @@ public class TelephonyManager { try { try { ITelephony telephony = getITelephony(); ITelephony telephony = getITelephony(); if (telephony != null) { if (telephony != null) { telephony.handleUssdRequest(subId, ussdRequest, wrappedCallback); telephony.handleUssdRequest(mSubId, ussdRequest, wrappedCallback); } } } catch (RemoteException e) { } catch (RemoteException e) { Log.e(TAG, "Error calling ITelephony#sendUSSDCode", e); Log.e(TAG, "Error calling ITelephony#sendUSSDCode", e); Loading Loading
api/current.txt +0 −1 Original line number Original line Diff line number Diff line Loading @@ -38181,7 +38181,6 @@ package android.telephony { method public void listen(android.telephony.PhoneStateListener, int); method public void listen(android.telephony.PhoneStateListener, int); method public java.lang.String sendEnvelopeWithStatus(java.lang.String); 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, 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(boolean); method public boolean setLine1NumberForDisplay(java.lang.String, java.lang.String); method public boolean setLine1NumberForDisplay(java.lang.String, java.lang.String); method public boolean setOperatorBrandOverride(java.lang.String); method public boolean setOperatorBrandOverride(java.lang.String);
api/system-current.txt +0 −1 Original line number Original line Diff line number Diff line Loading @@ -41405,7 +41405,6 @@ package android.telephony { method public boolean needsOtaServiceProvisioning(); method public boolean needsOtaServiceProvisioning(); method public java.lang.String sendEnvelopeWithStatus(java.lang.String); 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, android.telephony.TelephonyManager.OnReceiveUssdResponseCallback, android.os.Handler); method public void sendUssdRequest(java.lang.String, int, android.telephony.TelephonyManager.OnReceiveUssdResponseCallback, android.os.Handler); method public int setAllowedCarriers(int, java.util.List<android.service.carrier.CarrierIdentifier>); method public int setAllowedCarriers(int, java.util.List<android.service.carrier.CarrierIdentifier>); method public void setDataEnabled(boolean); method public void setDataEnabled(boolean); method public void setDataEnabled(int, boolean); method public void setDataEnabled(int, boolean);
api/test-current.txt +0 −1 Original line number Original line Diff line number Diff line Loading @@ -38280,7 +38280,6 @@ package android.telephony { method public void listen(android.telephony.PhoneStateListener, int); method public void listen(android.telephony.PhoneStateListener, int); method public java.lang.String sendEnvelopeWithStatus(java.lang.String); 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, 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(boolean); method public boolean setLine1NumberForDisplay(java.lang.String, java.lang.String); method public boolean setLine1NumberForDisplay(java.lang.String, java.lang.String); method public boolean setOperatorBrandOverride(java.lang.String); method public boolean setOperatorBrandOverride(java.lang.String);
telephony/java/android/telephony/TelephonyManager.java +11 −16 Original line number Original line Diff line number Diff line Loading @@ -5070,26 +5070,21 @@ public class TelephonyManager { public void onReceiveUssdResponseFailed(String request, int failureCode) {}; public void onReceiveUssdResponseFailed(String request, int failureCode) {}; } } /* <p>Requires permission: /** * @link android.Manifest.permission#CALL_PHONE} * Sends an Unstructured Supplementary Service Data (USSD) request to the cellular network and * informs the caller of the response via {@code callback}. * <p>Carriers define USSD codes which can be sent by the user to request information such as * the user's current data balance or minutes balance. * <p>Requires permission: * {@link android.Manifest.permission#CALL_PHONE} * @param ussdRequest the USSD command to be executed. * @param ussdRequest the USSD command to be executed. * @param wrappedCallback receives a callback result. * @param callback called by the framework to inform the caller of the result of executing the * USSD request (see {@link OnReceiveUssdResponseCallback}). * @param handler the {@link Handler} to run the request on. */ */ @RequiresPermission(android.Manifest.permission.CALL_PHONE) @RequiresPermission(android.Manifest.permission.CALL_PHONE) public void sendUssdRequest(String ussdRequest, public void sendUssdRequest(String ussdRequest, final OnReceiveUssdResponseCallback callback, Handler handler) { 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."); checkNotNull(callback, "OnReceiveUssdResponseCallback cannot be null."); ResultReceiver wrappedCallback = new ResultReceiver(handler) { ResultReceiver wrappedCallback = new ResultReceiver(handler) { Loading @@ -5111,7 +5106,7 @@ public class TelephonyManager { try { try { ITelephony telephony = getITelephony(); ITelephony telephony = getITelephony(); if (telephony != null) { if (telephony != null) { telephony.handleUssdRequest(subId, ussdRequest, wrappedCallback); telephony.handleUssdRequest(mSubId, ussdRequest, wrappedCallback); } } } catch (RemoteException e) { } catch (RemoteException e) { Log.e(TAG, "Error calling ITelephony#sendUSSDCode", e); Log.e(TAG, "Error calling ITelephony#sendUSSDCode", e); Loading