diff options
author | Hall Liu <hallliu@google.com> | 2021-03-10 21:02:07 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-03-10 21:02:07 +0000 |
commit | 3074ceab621ff5115daa1552774b302567b1cd20 (patch) | |
tree | d94b7884338d85e12e6e8b086c0c8c9c22cebf8c /telecomm/java/android/telecom/ConnectionService.java | |
parent | 8db272ff654221330d4f528bea31a55f6e047e32 (diff) | |
parent | 8c022a831ab92ed904a8f3c7bfc0a0c2b576e59f (diff) |
Merge "Add onBindClient for testing" am: 53252b14e5 am: 40a22b24b0 am: 8c022a831a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1625243
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I2e05f57f4ec6b01082c0e1eac97a2a23ce677cbd
Diffstat (limited to 'telecomm/java/android/telecom/ConnectionService.java')
-rwxr-xr-x | telecomm/java/android/telecom/ConnectionService.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/telecomm/java/android/telecom/ConnectionService.java b/telecomm/java/android/telecom/ConnectionService.java index c189b19c71af..97a06a81072e 100755 --- a/telecomm/java/android/telecom/ConnectionService.java +++ b/telecomm/java/android/telecom/ConnectionService.java @@ -20,6 +20,7 @@ import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.SdkConstant; import android.annotation.SystemApi; +import android.annotation.TestApi; import android.app.Service; import android.content.ComponentName; import android.content.Intent; @@ -1919,6 +1920,7 @@ public abstract class ConnectionService extends Service { /** {@inheritDoc} */ @Override public final IBinder onBind(Intent intent) { + onBindClient(intent); return mBinder; } @@ -1929,6 +1931,13 @@ public abstract class ConnectionService extends Service { return super.onUnbind(intent); } + /** + * Used for testing to let the test suite know when the connection service has been bound. + * @hide + */ + @TestApi + public void onBindClient(@Nullable Intent intent) { + } /** * This can be used by telecom to either create a new outgoing conference call or attach |