diff options
| author | 2018-10-02 15:55:22 -0700 | |
|---|---|---|
| committer | 2018-10-02 15:55:22 -0700 | |
| commit | ffbc91f6e824eaa55542a1e59c4fdf9d80cd8c95 (patch) | |
| tree | 5efb7ee2a2bc12077b817441d8e6bd75d2197df4 | |
| parent | a447164ae5f45003b23a97c7dadefeb1d621265f (diff) | |
| parent | e35965e88112604e652e1d0c66a9312f07d07c98 (diff) | |
Merge "Add handleCallIntent method in TelecomManager."
am: e35965e881
Change-Id: I3875eee60ddbdb522b60d3066e0c14125c3a1780
| -rw-r--r-- | telecomm/java/android/telecom/TelecomManager.java | 16 | ||||
| -rw-r--r-- | telecomm/java/com/android/internal/telecom/ITelecomService.aidl | 5 |
2 files changed, 21 insertions, 0 deletions
diff --git a/telecomm/java/android/telecom/TelecomManager.java b/telecomm/java/android/telecom/TelecomManager.java index 8c37a21afa50..d33a537f2194 100644 --- a/telecomm/java/android/telecom/TelecomManager.java +++ b/telecomm/java/android/telecom/TelecomManager.java @@ -1905,6 +1905,22 @@ public class TelecomManager { return false; } + /** + * Handles {@link Intent#ACTION_CALL} intents trampolined from UserCallActivity. + * @param intent The {@link Intent#ACTION_CALL} intent to handle. + * @hide + */ + public void handleCallIntent(Intent intent) { + try { + if (isServiceConnected()) { + getTelecomService().handleCallIntent(intent); + } + } catch (RemoteException e) { + Log.e(TAG, "RemoteException handleCallIntent: " + e); + } + + } + private ITelecomService getTelecomService() { if (mTelecomServiceOverride != null) { return mTelecomServiceOverride; diff --git a/telecomm/java/com/android/internal/telecom/ITelecomService.aidl b/telecomm/java/com/android/internal/telecom/ITelecomService.aidl index 38247bc80e5c..df7d6832833a 100644 --- a/telecomm/java/com/android/internal/telecom/ITelecomService.aidl +++ b/telecomm/java/com/android/internal/telecom/ITelecomService.aidl @@ -284,4 +284,9 @@ interface ITelecomService { * @see TelecomServiceImpl#isInEmergencyCall */ boolean isInEmergencyCall(); + + /** + * @see TelecomServiceImpl#handleCallIntent + */ + void handleCallIntent(in Intent intent); } |