summaryrefslogtreecommitdiff
path: root/telecomm
diff options
context:
space:
mode:
authorHall Liu <hallliu@google.com>2021-03-10 19:24:43 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-03-10 19:24:43 +0000
commit53252b14e5825c2646f4728e277b98573c8310d1 (patch)
tree7513acebfe9a4669952dba24e4d513475a6933dd /telecomm
parent90e336819ce160ac7a75633d3160516f25fbe167 (diff)
parenteb7c9eaf16b3a740e1cd93b296f65ad543b130bd (diff)
Merge "Add onBindClient for testing"
Diffstat (limited to 'telecomm')
-rwxr-xr-xtelecomm/java/android/telecom/ConnectionService.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/telecomm/java/android/telecom/ConnectionService.java b/telecomm/java/android/telecom/ConnectionService.java
index 580513c12453..b022154ea917 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;
@@ -1887,6 +1888,7 @@ public abstract class ConnectionService extends Service {
/** {@inheritDoc} */
@Override
public final IBinder onBind(Intent intent) {
+ onBindClient(intent);
return mBinder;
}
@@ -1897,6 +1899,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