Update TestCallService to use new APIs
The CallServiceAdapter API changed; update the calls here, too.
Change-Id: I83de860d72069845a879c46df309fca78156eea7
diff --git a/tests/src/com/android/telecomm/testcallservice/TestCallService.java b/tests/src/com/android/telecomm/testcallservice/TestCallService.java
index faeee52..4cbaf71 100644
--- a/tests/src/com/android/telecomm/testcallservice/TestCallService.java
+++ b/tests/src/com/android/telecomm/testcallservice/TestCallService.java
@@ -89,7 +89,7 @@
// Returning positively on setCompatibleWith() doesn't guarantee that we will be chosen
// to place the call. If we *are* chosen then CallsManager will execute the call()
// method below.
- mTelecommAdapter.setCompatibleWith(callInfo.getId(), isCompatible);
+ mTelecommAdapter.setIsCompatibleWith(callInfo.getId(), isCompatible);
}
/**
@@ -122,7 +122,7 @@
String handle = "5551234";
CallInfo callInfo = new CallInfo(callId, CallState.RINGING, handle);
- mTelecommAdapter.handleIncomingCall(callInfo);
+ mTelecommAdapter.notifyIncomingCall(callInfo);
}
/** {@inheritDoc} */