Merge "Add onBindClient for testing" am: 53252b14e5 am: 40a22b24b0 am: 8c022a831a am: 3074ceab62

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1625243

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I54535fc81158ab8e842dedf2c0cae1757507ee50
This commit is contained in:
Hall Liu
2021-03-10 21:16:03 +00:00
committed by Automerger Merge Worker
2 changed files with 13 additions and 0 deletions

View File

@@ -2150,6 +2150,10 @@ package android.telecom {
method @NonNull public android.telecom.ConnectionRequest.Builder setVideoState(int);
}
public abstract class ConnectionService extends android.app.Service {
method public void onBindClient(@Nullable android.content.Intent);
}
}
package android.telephony {

View File

@@ -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