From 9cf842c531ad21e959f4b61bd4c702d3b75e4ce3 Mon Sep 17 00:00:00 2001 From: Brad Ebinger Date: Thu, 22 Jun 2017 11:39:11 -0700 Subject: [PATCH] Add method that checks the Binder status of ImsConfig Adds a method to check whether or not the ImsConfig binder has died. Bug: 62723694 Test: maual, follow bug procedure Merged-In: I0ecd6a43d4375d3ac4d7d54b3d437832c0221f05 Change-Id: I9df6533e7e7dc69487cea50fada6c89599b031a3 --- telephony/java/com/android/ims/ImsConfig.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/telephony/java/com/android/ims/ImsConfig.java b/telephony/java/com/android/ims/ImsConfig.java index c3010296d9c0..e7b22bdfadcc 100644 --- a/telephony/java/com/android/ims/ImsConfig.java +++ b/telephony/java/com/android/ims/ImsConfig.java @@ -697,4 +697,11 @@ public class ImsConfig { ImsReasonInfo.CODE_LOCAL_SERVICE_UNAVAILABLE); } } + + /** + * @return true if the binder connection is alive, false otherwise. + */ + public boolean isBinderAlive() { + return miConfig.asBinder().isBinderAlive(); + } } -- 2.11.0