summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--api/current.txt1
-rw-r--r--phone/java/android/phone/PhoneManager.java14
-rw-r--r--telecomm/java/com/android/internal/telecomm/ITelecommService.aidl5
-rw-r--r--telephony/java/android/telephony/TelephonyManager.java10
-rw-r--r--telephony/java/com/android/internal/telephony/ITelephony.aidl5
5 files changed, 20 insertions, 15 deletions
diff --git a/api/current.txt b/api/current.txt
index 9f3392d..571db85 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -21781,6 +21781,7 @@ package android.os.storage {
package android.phone {
public final class PhoneManager {
+ method public void cancelMissedCallsNotification();
method public boolean handlePinMmi(java.lang.String);
}
diff --git a/phone/java/android/phone/PhoneManager.java b/phone/java/android/phone/PhoneManager.java
index cbef347..244916f 100644
--- a/phone/java/android/phone/PhoneManager.java
+++ b/phone/java/android/phone/PhoneManager.java
@@ -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));
}
diff --git a/telecomm/java/com/android/internal/telecomm/ITelecommService.aidl b/telecomm/java/com/android/internal/telecomm/ITelecommService.aidl
index 79a17e9..d151d09 100644
--- a/telecomm/java/com/android/internal/telecomm/ITelecommService.aidl
+++ b/telecomm/java/com/android/internal/telecomm/ITelecommService.aidl
@@ -80,4 +80,9 @@ interface ITelecommService {
* @see TelecommManager#acceptRingingCall
*/
void acceptRingingCall();
+
+ /**
+ * @see PhoneManager#cancelMissedCallsNotification
+ */
+ void cancelMissedCallsNotification();
}
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java
index 66a7e6d..bd621e8 100644
--- a/telephony/java/android/telephony/TelephonyManager.java
+++ b/telephony/java/android/telephony/TelephonyManager.java
@@ -2947,16 +2947,6 @@ public class TelephonyManager {
/** @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) {
try {
return getITelephony().supplyPin(pin);
diff --git a/telephony/java/com/android/internal/telephony/ITelephony.aidl b/telephony/java/com/android/internal/telephony/ITelephony.aidl
index 237e7f3..ee04c06 100644
--- a/telephony/java/com/android/internal/telephony/ITelephony.aidl
+++ b/telephony/java/com/android/internal/telephony/ITelephony.aidl
@@ -152,11 +152,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.
* @return whether the operation was a success.