commit | 63d25a5411ec63a78e921b4c91cd5e24d410d11d | [log] [tgz] |
---|---|---|
author | Pengquan Meng <mpq@google.com> | Tue Nov 21 18:01:13 2017 -0800 |
committer | Hall Liu <hallliu@google.com> | Tue Jan 09 10:50:38 2018 -0800 |
tree | 22ba12680ecc435cc1cb7c471e8c6ca1ce516c39 | |
parent | 5d286326b15171d6a8a54d9fbc0e928fb06ef6bd [diff] [blame] |
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
diff --git a/telecomm/java/android/telecom/ConnectionServiceAdapter.java b/telecomm/java/android/telecom/ConnectionServiceAdapter.java index 92a9dc2..0d319bb 100644 --- a/telecomm/java/android/telecom/ConnectionServiceAdapter.java +++ b/telecomm/java/android/telecom/ConnectionServiceAdapter.java
@@ -628,4 +628,17 @@ } } } + + /** + * 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) { + } + } + } }