Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7a76e872 authored by Santos Cordon's avatar Santos Cordon Committed by Android (Google) Code Review
Browse files

Merge "Move cancelMissedCallsNotification to PhoneManager."

parents 1a0fd95a 3c4ff9ef
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -21782,6 +21782,7 @@ package android.os.storage {
package android.phone {
  public final class PhoneManager {
    method public void cancelMissedCallsNotification();
    method public boolean handlePinMmi(java.lang.String);
  }
+14 −0
Original line number Diff line number Diff line
@@ -62,6 +62,20 @@ public final class PhoneManager {
        return false;
    }

    /**
     * Removes the missed-call notification if one is present.
     * <p>
     * Requires that the caller be set at the system dialer app.
     * </p>
     */
    public void cancelMissedCallsNotification() {
        try {
            mService.cancelMissedCallsNotification();
        } catch (RemoteException e) {
            Log.e(TAG, "Error calling ITelecommService#cancelMissedCallNotification", e);
        }
    }

    private ITelephony getITelephony() {
        return ITelephony.Stub.asInterface(ServiceManager.getService(Context.TELEPHONY_SERVICE));
    }
+5 −0
Original line number Diff line number Diff line
@@ -80,4 +80,9 @@ interface ITelecommService {
     * @see TelecommManager#acceptRingingCall
     */
    void acceptRingingCall();

    /**
     * @see PhoneManager#cancelMissedCallsNotification
     */
    void cancelMissedCallsNotification();
}
+0 −10
Original line number Diff line number Diff line
@@ -2945,16 +2945,6 @@ public class TelephonyManager {
        return false;
    }

    /** @hide */
    @SystemApi
    public void cancelMissedCallsNotification() {
        try {
            getITelephony().cancelMissedCallsNotification();
        } catch (RemoteException e) {
            Log.e(TAG, "Error calling ITelephony#cancelMissedCallsNotification", e);
        }
    }

    /** @hide */
    @SystemApi
    public boolean supplyPin(String pin) {
+0 −5
Original line number Diff line number Diff line
@@ -151,11 +151,6 @@ interface ITelephony {
     */
    boolean isSimPinEnabled();

    /**
     * Cancels the missed calls notification.
     */
    void cancelMissedCallsNotification();

    /**
     * Supply a pin to unlock the SIM.  Blocks until a result is determined.
     * @param pin The pin to check.