diff options
author | Pengquan Meng <mpq@google.com> | 2017-11-21 18:01:13 -0800 |
---|---|---|
committer | Hall Liu <hallliu@google.com> | 2018-01-09 10:50:38 -0800 |
commit | 63d25a5411ec63a78e921b4c91cd5e24d410d11d (patch) | |
tree | 22ba12680ecc435cc1cb7c471e8c6ca1ce516c39 /telecomm/java/android/telecom/ConnectionServiceAdapter.java | |
parent | 5d286326b15171d6a8a54d9fbc0e928fb06ef6bd (diff) |
Add connection serivce focus api interface
This add new api interface to ConnectionService to support the
connection service focus api.
Bug: 69651192
Test: manually
Change-Id: Iea49d95b086d32a0ebaf8e9f34fe4556953a0fd5
Merged-In: Iea49d95b086d32a0ebaf8e9f34fe4556953a0fd5
Diffstat (limited to 'telecomm/java/android/telecom/ConnectionServiceAdapter.java')
-rw-r--r-- | telecomm/java/android/telecom/ConnectionServiceAdapter.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/telecomm/java/android/telecom/ConnectionServiceAdapter.java b/telecomm/java/android/telecom/ConnectionServiceAdapter.java index 92a9dc2303c8..0d319bbc1d2a 100644 --- a/telecomm/java/android/telecom/ConnectionServiceAdapter.java +++ b/telecomm/java/android/telecom/ConnectionServiceAdapter.java @@ -628,4 +628,17 @@ final class ConnectionServiceAdapter implements DeathRecipient { } } } + + /** + * Notifies Telecom that the {@link ConnectionService} has released the call resource. + */ + void onConnectionServiceFocusReleased() { + for (IConnectionServiceAdapter adapter : mAdapters) { + try { + Log.d(this, "onConnectionServiceFocusReleased"); + adapter.onConnectionServiceFocusReleased(Log.getExternalSession()); + } catch (RemoteException ignored) { + } + } + } } |